
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&family=Montserrat:wght@400;500;600;700&display=swap');

:root{--navy:#071d31;--gold:#c7a35a;--cream:#f8f7f4;--text:#17202b}

*{box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding-top:var(--header-offset,88px)}
body{margin:0;color:var(--text);font-family:Montserrat,Arial,sans-serif}

.header{height:88px;background:var(--navy);display:flex;align-items:center;padding:0 28px;color:#fff;position:sticky;top:0;z-index:10}
.brand{width:370px}
.brand img{width:320px;display:block}

nav{display:flex;align-items:center;gap:31px;flex:1;justify-content:center}
nav a{color:#fff;text-decoration:none;font-size:14px;font-weight:600;letter-spacing:.5px;white-space:nowrap}
nav a.active{color:var(--gold);border-bottom:2px solid var(--gold);padding:17px 0}
nav a{transition:color .2s ease,border-color .2s ease}
section[id]{scroll-margin-top:calc(var(--header-offset,88px) + 14px)}

.wa-head{height:88px;background:var(--gold);display:flex;align-items:center;gap:12px;padding:0 30px;text-decoration:none;color:#fff;min-width:245px}
.wa-head span{font-size:30px}
.wa-head small,.wa-head strong{display:block}
.wa-head small{font-weight:600;letter-spacing:1px}
.wa-head strong{font-size:17px;margin-top:5px}

.hero{min-height:510px;position:relative;overflow:hidden;background:var(--navy)}
.hero-bg{position:absolute;inset:0;background-image:linear-gradient(90deg,rgba(7,29,49,.98) 0%,rgba(7,29,49,.92) 37%,rgba(7,29,49,.40) 63%,rgba(7,29,49,.04) 100%),url('assets/hero.jpg');background-size:cover;background-position:center right}
.hero-content{position:relative;z-index:1;padding:67px 6vw 56px max(6vw,78px);color:#fff}

.hero h1,h2{font-family:'Cormorant Garamond',Georgia,serif;font-weight:600}
.hero h1{font-size:55px;line-height:1.03;margin:0 0 21px}
.gold-line,.small-line{width:53px;height:2px;background:var(--gold);margin:0 0 20px}
.lead{font-size:17px;line-height:1.6;margin:0 0 28px}
.actions{display:flex;gap:23px}
.btn{display:inline-flex;align-items:center;justify-content:center;min-height:54px;padding:0 30px;text-decoration:none;font-size:13px;font-weight:700;letter-spacing:.4px}
.btn.gold{background:var(--gold);color:#fff}
.btn.outline{border:1px solid var(--gold);color:#fff}

.areas{padding:27px 7.2% 14px}
.section-top{display:flex;justify-content:space-between;align-items:end;margin-bottom:15px}
.section-top h2{font-size:35px;margin:0}
.section-top>p{line-height:1.6;margin:0 10% 4px 0;font-size:14px}
.eyebrow{font-size:12px;letter-spacing:1.7px;color:var(--gold);font-weight:600;margin:0 0 11px}
.small-line{margin:10px 0 0}

.cards{display:grid;grid-template-columns:repeat(4,1fr);border:1px solid #ddd}
.cards article{text-align:center;min-height:250px;padding:19px 15px;border-right:1px solid #ddd}
.cards article:last-child{border-right:0}
.icon{font-size:39px;color:var(--navy);height:57px}
.cards h3{font-family:'Cormorant Garamond',Georgia,serif;font-size:15px;line-height:1.25;margin:8px 0 12px}
.cards p{font-size:12px;line-height:1.55;min-height:58px;margin:0 0 9px}
.cards a{font-size:12px;color:var(--gold);font-weight:700;text-decoration:none}

.why{display:grid;grid-template-columns:27% 73%;min-height:260px;background:var(--navy);color:#fff}
.why-image{background:url('assets/hero.jpg') center/cover;filter:brightness(.55)}
.why-copy{padding:28px 4.3%}
.why-copy h2{font-size:29px;line-height:1.1;margin:0 0 20px}
.why-items{display:grid;grid-template-columns:repeat(3,1fr);gap:30px}
.why-items>div{border-left:1px solid #ffffff4d;padding-left:22px}
.why-items b{font-size:11px}
.why-items p{font-size:11px;line-height:1.5;color:#e9edf1}

.faq{padding:60px 17%;background:var(--cream)}
.faq h2{font-size:37px;margin:0 0 25px}
.faq details{border-top:1px solid #ccc;padding:17px 0}
.faq summary{font-weight:600;cursor:pointer}
.faq details p{font-size:14px;line-height:1.6}

.contact{padding:55px 10%;display:flex;align-items:center;justify-content:space-between}
.contact h2{font-size:42px;margin:0 0 5px}
.contact p{margin:0;line-height:1.6}

/* PIE DE PAGINA */
footer{background:var(--navy);color:#fff;padding:28px 7%;display:flex;align-items:center;justify-content:space-between}
footer img{width:260px}
footer p{font-size:11px;color:#ccd4db}

.floating-wa{position:fixed;right:26px;bottom:25px;z-index:20}
.floating-wa a{width:60px;height:60px;border-radius:50%;background:#20c76a;color:#fff;display:flex;align-items:center;justify-content:center;text-decoration:none;font-size:32px;box-shadow:0 5px 20px #0003}

@media(max-width:1100px){
.header{height:auto;min-height:88px;flex-wrap:wrap;padding:10px 22px}
.brand{width:220px}
.brand img{width:210px}
.header nav{order:3;width:100%;flex:1 0 100%;padding:8px 0;gap:22px;overflow-x:auto;justify-content:flex-start}
.header nav a{font-size:12px}
.header nav a.active{padding:8px 0}
.wa-head{margin-left:auto;height:60px}
.brand{width:250px}
.brand img{width:230px}
nav{gap:15px}
nav a{font-size:11px}
.wa-head{min-width:190px;padding:0 15px}
.hero h1{font-size:47px}
.cards{grid-template-columns:repeat(3,1fr)}
.cards article:nth-child(3n){border-right:0}
.cards article{border-bottom:1px solid #ddd}
.why{grid-template-columns:1fr}
.why-image{height:180px}
.why-copy{padding:35px 7%}
}

@media(max-width:760px){
.header{height:auto;min-height:72px;padding:12px 18px;flex-wrap:wrap}
.brand{width:190px}
.brand img{width:185px}
nav{order:3;width:100%;overflow:auto;justify-content:flex-start;padding-top:10px;gap:21px}
nav a{font-size:10px}
.wa-head{margin-left:auto;min-width:auto;height:48px;padding:0 10px}
.wa-head span{font-size:22px}
.wa-head strong{font-size:12px}
.wa-head small{font-size:9px}
.hero{height:auto;min-height:570px}
.hero-content{padding:58px 24px 46px}
.hero h1{font-size:clamp(36px,9vw,43px);line-height:1.08}
.lead{font-size:15px}
.lead br{display:none}
.actions{flex-direction:column;gap:12px;align-items:flex-start}
.btn{min-height:50px}
.section-top{display:block}
.section-top>p{margin:16px 0}
.cards{grid-template-columns:repeat(2,minmax(0,1fr))}
.cards article{border-right:1px solid #ddd}
.cards article:nth-child(2n){border-right:0}
.why-items{grid-template-columns:1fr;gap:10px}
.faq{padding:45px 28px}
.contact{padding:45px 28px;display:block}
.contact .btn{margin-top:25px}
footer{display:block;text-align:center}
footer img{width:230px}
.floating-wa{right:18px;bottom:18px}
}

@media(max-width:520px){
.cards{grid-template-columns:1fr}
.cards article,.cards article:nth-child(2n){border-right:0}
.section-top h2{font-size:31px}
.hero h1{font-size:36px}
.faq h2{font-size:32px}
.why-copy h2{font-size:27px}
.wa-head{padding:0 9px}
.header nav{gap:18px}
}

@media(prefers-reduced-motion:reduce){
html{scroll-behavior:auto}
*,*::before,*::after{transition:none!important}
}

/* PAGINAS DE AREAS DE PRACTICA */
.practice-hero{min-height:440px;padding:80px max(8vw,32px);background:linear-gradient(110deg,rgba(7,29,49,.97),rgba(7,29,49,.84)),url('../assets/hero.jpg') center/cover;color:#fff}
.practice-hero h1{max-width:900px;margin:0 0 18px;font:600 clamp(40px,6vw,64px)/1.05 'Cormorant Garamond',Georgia,serif}
.practice-hero>p:not(.eyebrow){max-width:760px;font-size:17px;line-height:1.75}
.practice-hero .actions{margin-top:30px;flex-wrap:wrap}
.practice-contact{padding:56px 8%;background:var(--cream)}
.practice-contact h2{font-size:36px;margin:0 0 8px}
.practice-contact p{margin:0 0 22px}
.practice-hero .eyebrow{color:#e1c47f}

@media(max-width:760px){
.practice-hero{min-height:0;padding:58px 24px}
.practice-hero h1{font-size:42px}
.practice-hero>p:not(.eyebrow){font-size:15px}
.practice-hero .actions{align-items:stretch}
.practice-hero .actions .btn{width:100%;text-align:center}
.practice-contact{padding:42px 24px}
.practice-contact h2{font-size:31px}
}

.wa-head .wa-icon{width:34px;height:34px;display:block;color:#fff;flex:none}
.floating-wa a{width:60px;height:60px}
.floating-wa img{display:block;width:36px;height:36px;color:#fff}

.practice-detail{display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);gap:8%;padding:64px max(8vw,32px);background:#fff}
.practice-detail h2{font-size:38px;line-height:1.1;margin:0 0 16px}
.practice-detail h3{font-size:18px;color:var(--navy);margin:0 0 10px}
.practice-detail p,.practice-detail li{font-size:15px;line-height:1.75}
.practice-detail ul{padding-left:22px}
.practice-detail li{padding:3px 0}
.practice-note{margin-top:20px;padding:14px 18px;background:var(--cream);border-left:3px solid var(--gold)}

@media(max-width:760px){
.wa-head .wa-icon{width:27px;height:27px}
.floating-wa a{width:54px;height:54px}
.floating-wa img{width:32px;height:32px}
.practice-detail{grid-template-columns:1fr;gap:24px;padding:42px 24px}
.practice-detail h2{font-size:32px}
.practice-detail p,.practice-detail li{font-size:14px}
}

/* VENTANA EMERGENTE DE REDES */
.social-dialog{width:min(92vw,480px);border:0;border-top:4px solid var(--gold);padding:42px 34px 30px;text-align:center;color:var(--text);box-shadow:0 24px 80px #0005}
.social-dialog::backdrop{background:rgba(4,18,31,.72);backdrop-filter:blur(3px)}
.social-dialog h2{font-size:38px;margin:0 0 8px;color:var(--navy)}
.social-dialog>p:not(.eyebrow){margin:0;color:#55616c;line-height:1.6}
.social-close{position:absolute;top:8px;right:12px;border:0;background:none;color:#59636c;font-size:30px;cursor:pointer;line-height:1}
.social-icons{display:flex;justify-content:center;gap:20px;margin:26px 0}
.social-icon{display:flex;flex-direction:column;align-items:center;gap:8px;color:var(--navy);font-size:13px;font-weight:600;text-decoration:none;cursor:pointer}
.social-icon svg{width:54px;height:54px;padding:13px;border-radius:50%;border:1px solid #e4dccd;fill:none;stroke:var(--navy);stroke-width:1.8}
.social-icon:nth-child(2) svg{fill:var(--navy);stroke:none}
.social-icon:nth-child(2) svg path{fill:var(--navy)}
.social-icon .social-dot{fill:var(--navy);stroke:none}
.social-icon:hover{color:var(--gold)}
.social-icon:hover svg{border-color:var(--gold)}
.social-dismiss{border:0;background:var(--navy);color:white;padding:14px 24px;font:600 13px Montserrat,Arial,sans-serif;cursor:pointer}
.social-dismiss:hover{background:#123b5b}
.social-close:focus-visible,.social-dismiss:focus-visible,.social-icon:focus-visible{outline:3px solid var(--gold);outline-offset:3px}

@media(max-width:520px){
.social-dialog{padding:38px 24px 24px}
.social-dialog h2{font-size:33px}
.social-icons{gap:14px}
}

/* PIE DE PAGINA CON REDES SOCIALES */
.site-footer{
background:var(--navy);
color:#fff;
padding:28px 7%;
display:flex;
align-items:center;
justify-content:space-between;
gap:25px;
}

.site-footer>img{
width:260px;
max-width:100%;
}

.site-footer>p{
font-size:11px;
color:#ccd4db;
margin:0;
}

.footer-social{
display:flex;
align-items:center;
gap:16px;
}

.footer-social span{
color:var(--gold);
font-size:11px;
font-weight:600;
letter-spacing:1px;
}

.footer-social a{
display:flex;
align-items:center;
justify-content:center;
width:38px;
height:38px;
border:1px solid var(--gold);
border-radius:50%;
transition:background .2s ease;
}

.footer-social a:hover{
background:var(--gold);
}

.footer-social svg{
width:19px;
height:19px;
fill:none;
stroke:#fff;
stroke-width:1.8;
}

.footer-social a:nth-of-type(2) svg{
fill:#fff;
stroke:none;
}

@media(max-width:760px){
.site-footer{
flex-direction:column;
text-align:center;
gap:20px;
}

.site-footer>img{
width:230px;
}

.footer-social{
justify-content:center;
flex-wrap:wrap;
}

.site-footer>p{
line-height:1.6;
}
}

/* ==========================================
   CORRECCION GENERAL DE ICONOS DEL FOOTER
   ========================================== */

/* Limita el tamaño de los enlaces que contienen los iconos */
footer .footer-social a,
footer .social-icons a,
.site-footer .footer-social a,
.site-footer .social-icons a{
display:inline-flex !important;
align-items:center !important;
justify-content:center !important;
width:42px !important;
height:42px !important;
min-width:42px !important;
min-height:42px !important;
max-width:42px !important;
max-height:42px !important;
overflow:hidden !important;
flex:0 0 42px !important;
}

/* Limita cualquier SVG directamente dentro de los enlaces del footer */
footer a svg,
.site-footer a svg{
display:block !important;
width:22px !important;
height:22px !important;
min-width:22px !important;
min-height:22px !important;
max-width:22px !important;
max-height:22px !important;
padding:0 !important;
margin:0 auto !important;
}

/* Control de iconos SVG directos dentro del pie */
footer svg,
.site-footer svg{
max-width:22px !important;
max-height:22px !important;
}

/* Color de los iconos */
footer a svg,
.site-footer a svg{
stroke:#fff !important;
}

/* Facebook */
footer a:nth-of-type(2) svg,
.site-footer a:nth-of-type(2) svg{
fill:#fff !important;
stroke:none !important;
}

/* Instagram */
footer a:first-of-type svg{
fill:none !important;
stroke:#fff !important;
}

/* Evita que las imágenes del logo se vean afectadas */
.site-footer>img{
width:260px;
max-width:100%;
height:auto;
}

@media(max-width:760px){
.site-footer>img{
width:230px;
}

footer a svg,
.site-footer a svg{
width:20px !important;
height:20px !important;
min-width:20px !important;
min-height:20px !important;
max-width:20px !important;
max-height:20px !important;
}
}
