/* Shared light palette. Original images remain unchanged; portrait logo is an HTML overlay. */
:root{--navy:#164E63;--navy-mid:#164E63;--navy-light:#164E63;--gold:#164E63;--gold-light:#164E63;--cream:#F7F9F8;--cream-dark:#E3F1EE;--text-dark:#263238;--text-mid:#263238;--text-muted:#263238;}
html{font-size:18px;scroll-padding-top:7rem;}
body{background:#F7F9F8;color:#263238;overflow-x:visible;}
body *{min-width:0;}
p,li,.credential-text,.examen-desc,.sede-address,.sede-location,.schedule-day,.schedule-time,.sede-row-loc,.contacto-card-phone,.form-note,figcaption{font-size:1rem!important;line-height:1.6!important;font-weight:400;color:#263238!important;opacity:1!important;}
h1,h2,h3,h4,.section-title,.hero-title,.hero-title em,.page-hero h1,.page-hero h1 em,.section-title em,.sede-name,.examen-name{color:#164E63!important;font-weight:500;}
a{color:#164E63;overflow-wrap:anywhere;}
p a,li a,.related-links a,.breadcrumb a{text-decoration:underline;text-underline-offset:.2em;}
a:hover{text-decoration:underline;text-decoration-thickness:2px;}
::selection{background:#164E63;color:#fff;}
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #164E63;outline-offset:4px;box-shadow:0 0 0 4px #fff;}
nav{position:sticky;min-height:84px;height:auto;padding:.4rem 3%;background:#F7F9F8;backdrop-filter:none;border-bottom:1px solid #164E63;gap:1rem;flex-wrap:wrap;}
.nav-logo{gap:.6rem;}.nav-logo-text,.nav-logo-text em,.footer-logo-text,.footer-logo-text em{color:#164E63;}
.nav-links{gap:.9rem;flex-wrap:wrap;}.nav-links a{font-size:.9rem;letter-spacing:0;text-transform:none;color:#164E63;font-weight:500;}.nav-links a.active{ text-decoration:underline;text-decoration-thickness:2px;}
.language-switch,.language-switch a{color:#164E63;font-size:.9rem;}.language-switch{margin-left:0;}.nav-hamburger{padding:.6rem;}.nav-hamburger span{background:#164E63;}
.nav-mobile{position:sticky;top:0;max-height:75vh;background:#F7F9F8;border-bottom:1px solid #164E63;}.nav-mobile ul li a{color:#164E63;font-size:1rem;letter-spacing:0;}
.hero,.page-hero,.doctor-section,.doctor-hero,.examenes-section,.examen-item,.sedes-section{background:#F7F9F8;}
.hero{min-height:0;overflow:visible;grid-template-columns:1.1fr 1fr;max-width:1500px;margin:auto;}
.hero-bg,.hero-overlay{display:none;}
.hero-content{padding:3.5rem 3rem;max-width:none;}.hero-right{padding:2rem 3rem 2rem 0;display:flex;}
.hero-right .hero-portrait{position:relative;width:min(100%,480px);}
.hero-portrait-photo{width:100%;height:auto;display:block;border-radius:12px;}
.hero-portrait-logo{position:absolute;right:3%;bottom:0;width:48%;height:auto;aspect-ratio:1;border-radius:50%;padding:3%;background:#fff;object-fit:contain;border:2px solid #164E63;}
.hero-title{font-size:clamp(2.4rem,4.6vw,3.8rem);}.hero-subtitle{font-size:1.25rem!important;}.hero-desc{max-width:38rem;}
.section-label,.hero-eyebrow,.ctag,.contacto-card-label,.doctor-photo-caption span,.gallery-item-label span{color:#164E63!important;font-size:.9rem!important;font-weight:500;letter-spacing:.06em;}
.page-hero{padding:3rem clamp(1.3rem,6vw,6rem);}.page-hero .lede{max-width:42rem;}
.breadcrumb{background:#E3F1EE;color:#263238;font-size:.9rem;overflow-wrap:anywhere;}.breadcrumb a,.breadcrumb span.sep{color:#164E63;}
.pillar-card.general,.pillar-card.neuro{background:#F7F9F8;border-top:2px solid #164E63;}.pillar-card.neuro{border-left:1px solid #164E63;}.pillar-card.neuro *{color:#263238;}.pillar-card{padding:3rem;}
.btn-primary,.btn-outline,.btn-outline.on-dark,.btn-whatsapp,.btn-small{background:#164E63!important;color:#fff!important;border:2px solid #164E63;padding:.8rem 1.25rem;font-size:1rem!important;font-weight:500;line-height:1.5;letter-spacing:0;text-transform:none;text-align:center;white-space:normal;max-width:100%;}
.btn-primary:hover,.btn-outline:hover,.btn-whatsapp:hover{background:#164E63;color:#fff;transform:none;text-decoration:underline;text-underline-offset:.2em;box-shadow:0 0 0 2px #F7F9F8,0 0 0 4px #164E63;}
.sede-card,.sede-list,.contact-side .contacto-card,.location-priority{background:#E3F1EE;border:1px solid #164E63;}
.sede-card{padding:1.4rem;}.sede-location,.sede-address,.footer-copy{color:#263238!important;}.sede-badge{background:#E3F1EE;color:#164E63;border:1px solid #164E63;font-size:.85rem;letter-spacing:.03em;}
.sede-name,.sede-row-name,.contact-side .contacto-card-name{font-size:1.35rem;color:#164E63;}.sede-tel{font-size:1rem;color:#164E63;text-decoration:underline;}.schedule-row{flex-wrap:wrap;}.schedule-time{text-align:left;}.sede-divider,.divider{background:#164E63;}
.sedes-section{padding:4rem 3rem;}.sedes-row-bottom{max-width:100%;}.sede-row-info{min-width:min(200px,100%);}
.cta-band,footer,.team-feature,.note-box,.alert-box,.urgent-note{background:#E3F1EE;}.alert-box,.urgent-note{border-left:4px solid #164E63;}.alert-box strong{color:#263238;}
.condition-card{background:#F7F9F8;border:1px solid #164E63;}.condition-card:hover{background:#E3F1EE;}.condition-card:hover *{color:#263238!important;}.condition-card:hover h3{color:#164E63!important;text-decoration:underline;}.condition-grid{gap:1rem;grid-template-columns:repeat(auto-fit,minmax(min(230px,100%),1fr));background:transparent;}
.doctor-content,.doctor-hero-content,.examenes-content{padding:3rem;}.doctor-photo,.doctor-hero-photo,.examenes-visual{min-height:0;height:auto;align-self:start;}.doctor-photo img,.doctor-hero-photo img,.examenes-visual img{height:auto;min-height:0;filter:none;}
.doctor-photo-caption,.gallery-item-label{position:static;background:#F7F9F8;padding:1rem 1.3rem;}.gallery-strip{height:auto;}.gallery-item{height:auto;}.gallery-item img{height:auto;object-fit:contain;}.gallery-item-label p{color:#263238;}
.footer-logo img{opacity:1;}.footer-col a,.footer-copy,.footer-desc{color:#263238;font-size:1rem;}.footer-col h4{font-size:1rem;}.footer-top{grid-template-columns:repeat(4,minmax(0,1fr));}.footer-desc{max-width:none;}
.content-section{padding:3rem clamp(1.3rem,5vw,4rem);max-width:1050px;}.content-section.wide{max-width:1300px;}.contact-grid{padding:3rem;gap:2rem;}.team-feature{padding:3rem;gap:3rem;}
@media(max-width:1250px){.nav-links{display:none;}.nav-hamburger{display:flex;}.language-switch{margin-left:auto;margin-right:0;}.sedes-row-top{grid-template-columns:repeat(2,minmax(0,1fr));}.footer-top{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media(max-width:900px){nav{padding:.5rem 1rem;gap:.6rem;}.hero{grid-template-columns:1fr;}.hero-content{padding:2.5rem 1.3rem 1.5rem;}.hero-right{padding:0 1.3rem 2.5rem;}.pillar-card,.doctor-content,.doctor-hero-content,.examenes-content,.sedes-section,.team-feature,.contact-grid{padding:2.5rem 1.3rem;}.sedes-row-top,.sedes-row-bottom{grid-template-columns:1fr;}.team-feature{gap:1.5rem;}.pillar-card.neuro{border-left:0;}.examenes-grid{grid-template-columns:1fr;}.footer-top{grid-template-columns:1fr;}.nav-logo-text{font-size:1rem;}.nav-logo{flex:1;}.nav-logo img{flex-shrink:0;}footer{padding:2.5rem 1.3rem;}}
@media(max-width:370px){.nav-logo-text{font-size:.9rem;}.nav-logo{flex-basis:65%;}.language-switch{margin-left:0;}.hero-title{font-size:2.2rem;}.hero-cta>a,.sede-row-actions>a{width:100%;}.breadcrumb{padding:1rem 1.3rem;}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto;}}
/* Long medical terms must reflow with enlarged text. */
body{overflow-wrap:anywhere;}
.sede-badge{max-width:100%;}
.doctor-photo{max-width:100%;}
@media(max-width:900px){nav{position:relative;}.nav-mobile{position:relative;max-height:none;}html{scroll-padding-top:1rem;}}
@media(max-width:1250px){.nav-logo{flex:1 0 min(100%,11rem);}.nav-logo-text{overflow-wrap:normal;}.nav-hamburger{flex-shrink:0;}}

/* Comfortable desktop reading, without reducing contrast. */
@media(min-width:901px){.hero-desc{font-size:1.111111rem!important;line-height:1.6!important;}.hero-subtitle{font-weight:500!important;}}
