
:root{--purple:#883279;--mid:#af6ba8;--pale:#e3c9e4;--ink:#29202b;--muted:#6f6471;--bg:#fbf9fb;--radius:22px}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;font-family:'DM Sans',Arial,sans-serif;color:var(--ink);background:#fff}a{text-decoration:none;color:inherit}button{font:inherit;cursor:pointer}img{display:block;max-width:100%}h1,h2,h3,p{margin-top:0}h1,h2,h3{font-family:Manrope,Arial,sans-serif}h2{font-size:clamp(2rem,4vw,3.7rem);letter-spacing:-.055em;line-height:1.15}.wrap{width:min(1180px,calc(100% - 48px));margin:auto}.eyebrow{text-transform:uppercase;letter-spacing:.18em;font-size:.74rem;font-weight:800;color:var(--purple)}.btn{display:inline-flex;align-items:center;justify-content:center;gap:12px;border:0;background:var(--purple);color:white;border-radius:6px;padding:16px 25px;font-weight:700;transition:transform .2s,background .2s}.btn:hover{transform:translateY(-3px);background:#6d245f}.btn.ghost{background:#fff;color:var(--purple)}.btn.line{border:1px solid #c5a2c4;background:transparent;color:var(--purple)}.topline{background:#753069;color:#fff;font-size:.77rem}.topline .wrap{min-height:33px;display:flex;justify-content:space-between;align-items:center;gap:10px}.site-header{position:sticky;top:0;z-index:40;background:#fff;box-shadow:0 4px 25px #40203912;transition:box-shadow .25s}.header-inner{max-width:1380px;margin:auto;padding:8px 38px;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:26px;min-height:142px;transition:min-height .3s,padding .3s}.site-header.shrunk .header-inner{min-height:80px;padding-top:4px;padding-bottom:4px}.nav{display:flex;gap:clamp(13px,2vw,31px);align-items:center}.nav.right{justify-content:flex-end}.nav a{font-weight:700;font-size:.88rem;white-space:nowrap;transition:color .2s}.nav a:hover{color:var(--purple)}.brand{display:flex;justify-content:center;align-items:center}.brand img{width:300px;height:115px;object-fit:contain;transition:width .3s,height .3s}.site-header.shrunk .brand img{width:184px;height:67px}.nav .contact-nav{background:var(--purple);color:#fff;padding:12px 17px;border-radius:6px}.nav .contact-nav:hover{color:#fff;background:#6c235f}.menu-toggle{display:none;background:transparent;border:0;color:var(--purple);font-size:1.8rem}.mobile-nav{display:none}.hero{position:relative;min-height:min(670px,74vh);background:#322333;overflow:hidden}.slide{position:absolute;inset:0;opacity:0;transition:opacity .9s;pointer-events:none}.slide.active{opacity:1;pointer-events:auto}.slide img{width:100%;height:100%;object-fit:cover;filter:brightness(.72)}.slide:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(32,16,34,.78),rgba(32,16,34,.32) 65%,rgba(32,16,34,.05))}.slide-content{position:absolute;z-index:2;top:50%;left:max(7%,calc((100vw - 1180px)/2));transform:translateY(-50%);width:min(620px,83%);color:#fff}.slide-content .eyebrow{color:#f0d4ee}.slide-content h1{font-size:clamp(2.7rem,5.3vw,5.4rem);letter-spacing:-.065em;line-height:1.07;margin:20px 0}.slide-content p{font-size:clamp(1rem,1.4vw,1.2rem);line-height:1.7;max-width:510px}.hero-controls{position:absolute;bottom:32px;left:max(7%,calc((100vw - 1180px)/2));z-index:5;display:flex;align-items:center;gap:12px}.hero-controls button{border:1px solid #ffffffa0;background:#ffffff22;color:white;border-radius:50%;width:43px;height:43px;font-size:1.25rem}.dots{display:flex;gap:8px;margin-left:15px}.dots button{width:9px;height:9px;padding:0;border:0;border-radius:20px;background:#ffffff88;transition:width .3s}.dots button.active{width:31px;background:white}.quick{position:relative;z-index:6;margin-top:-1px;background:#fff;box-shadow:0 15px 40px #4d1d4411}.quick-grid{display:grid;grid-template-columns:repeat(3,1fr)}.quick-item{padding:27px 22px;display:flex;align-items:center;gap:18px;border-right:1px solid #eadfea}.quick-item:last-child{border:0}.quick-icon{background:#f6ebf5;border-radius:13px;width:55px;height:55px;display:grid;place-items:center;color:var(--purple);font-size:1.5rem;flex-shrink:0}.quick-item strong{display:block;font-size:1rem}.quick-item small{display:block;color:var(--muted);margin-top:4px;line-height:1.4}.section{padding:110px 0}.section-heading{display:flex;justify-content:space-between;align-items:end;gap:35px;margin-bottom:35px}.section-heading p{max-width:370px;color:var(--muted);line-height:1.7}.specialties{background:#faf7fa}.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}.service-card{border-radius:12px;overflow:hidden;background:#fff;box-shadow:0 8px 30px #493b490e;transition:transform .25s,box-shadow .25s}.service-card:hover{transform:translateY(-7px);box-shadow:0 20px 35px #493b491c}.service-photo{height:195px;overflow:hidden;background:#e6dce5}.service-photo img{width:100%;height:100%;object-fit:cover;transition:transform .5s}.service-card:hover img{transform:scale(1.05)}.service-info{padding:25px}.service-info h3{font-size:1.25rem;margin-bottom:10px}.service-info p{color:var(--muted);line-height:1.6;font-size:.91rem}.more{color:var(--purple);font-weight:800;font-size:.87rem}.about-grid{display:grid;grid-template-columns:1.05fr .95fr;align-items:center;gap:80px}.about-image{position:relative}.about-image img{border-radius:12px;width:100%;height:500px;object-fit:cover}.about-badge{position:absolute;right:-22px;bottom:26px;background:var(--purple);color:#fff;padding:23px 30px;border-radius:8px;box-shadow:0 12px 35px #40183830}.about-badge strong{font-size:2rem;display:block}.about-copy p{color:var(--muted);line-height:1.85}.stats{display:grid;grid-template-columns:repeat(2,1fr);gap:18px;margin:30px 0}.stat{border-left:3px solid var(--mid);padding-left:16px}.stat strong{display:block;color:var(--purple);font-size:1.25rem}.stat small{color:var(--muted)}.parallax{min-height:390px;position:relative;display:flex;align-items:center;overflow:hidden;color:#fff;background:#3b233e}.parallax:before{content:"";position:absolute;inset:-12%;background:linear-gradient(90deg,#3c1d3ddd,#3c1d3d88),url('../assets/_DSC0359.jpg') center/cover;transform:translateY(var(--parallax,0px))}.parallax .wrap{position:relative;z-index:1}.parallax h2{max-width:730px}.insurance{background:#f8f3f8}.insurance p{color:var(--muted);line-height:1.7}.insurers{display:flex;flex-wrap:wrap;gap:12px;margin-top:28px}.insurers span{background:white;border:1px solid #eaddea;border-radius:6px;padding:14px 20px;font-weight:700;color:#675a69}.contact-panel{background:var(--purple);color:#fff;border-radius:14px;padding:54px;display:flex;align-items:center;justify-content:space-between;gap:40px}.contact-panel h2{margin-bottom:12px}.contact-panel p{color:#f0d9ee;line-height:1.7}.footer{background:#251b27;color:#f4eaf2;padding:60px 0 25px}.footer-grid{display:grid;grid-template-columns:1.4fr 1fr 1fr;gap:55px}.footer img{width:210px;filter:brightness(1.6)}.footer p,.footer a{color:#d6c9d6;line-height:1.9;font-size:.9rem}.footer h3{font-size:1rem}.foot-bottom{border-top:1px solid #ffffff25;margin-top:45px;padding-top:20px;font-size:.78rem;color:#bdb0bd}.reveal{opacity:0;transform:translateY(24px);transition:opacity .65s,transform .65s}.reveal.visible{opacity:1;transform:translateY(0)}.notice{background:#fff7e8;color:#5d4a2e;text-align:center;padding:9px 15px;font-size:.8rem}.notice strong{font-weight:800}@media(max-width:1050px){.header-inner{gap:15px;padding:8px 18px}.brand img{width:235px}.nav{gap:12px}.nav a{font-size:.78rem}.about-grid{gap:40px}}@media(max-width:760px){.topline .wrap{justify-content:center}.topline .wrap span:last-child{display:none}.header-inner,.site-header.shrunk .header-inner{grid-template-columns:1fr auto;min-height:91px;padding:8px 20px}.brand{justify-content:flex-start}.brand img,.site-header.shrunk .brand img{width:205px;height:75px}.nav{display:none}.menu-toggle{display:block}.mobile-nav.open{display:flex;flex-direction:column;padding:15px 24px 24px;gap:18px;border-top:1px solid #f0e8f0}.mobile-nav a{font-weight:700}.hero{min-height:590px}.slide-content{left:24px;width:calc(100% - 48px)}.slide-content h1{font-size:clamp(2.4rem,10vw,4rem)}.hero-controls{left:24px}.quick-grid{grid-template-columns:1fr}.quick-item{padding:18px;border-right:0;border-bottom:1px solid #eadfea}.section{padding:75px 0}.section-heading{display:block}.cards{grid-template-columns:1fr 1fr}.about-grid{grid-template-columns:1fr}.about-image img{height:390px}.about-badge{right:10px}.contact-panel{display:block;padding:34px}.footer-grid{grid-template-columns:1fr 1fr;gap:30px}.footer-grid>div:first-child{grid-column:1/-1}}@media(max-width:520px){.wrap{width:calc(100% - 36px)}.cards{grid-template-columns:1fr}.service-photo{height:225px}.footer-grid{grid-template-columns:1fr}.footer-grid>div:first-child{grid-column:auto}.contact-panel h2{font-size:2rem}}@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*:before,*:after{animation:none!important;transition:none!important}.reveal{opacity:1;transform:none}}

/* V4: cabecera central y slider original sin filtros */
.header-inner{max-width:1640px;grid-template-columns:minmax(0,1fr) 310px minmax(0,1fr);gap:26px;min-height:148px}
.brand img{width:310px;height:122px}
.site-header.shrunk .header-inner{min-height:82px;grid-template-columns:minmax(0,1fr) 200px minmax(0,1fr)}
.site-header.shrunk .brand img{width:200px;height:70px}
.nav.left{justify-content:flex-end}.nav.right{justify-content:flex-start}
.nav-dropdown{position:relative}.policies-toggle{border:0;background:transparent;font-weight:700;font-size:.88rem;color:var(--ink);padding:14px 2px;white-space:nowrap}
.policies-toggle:hover,.policies-toggle:focus-visible{color:var(--purple)}
.policies-menu{position:absolute;top:100%;right:0;min-width:230px;padding:9px;background:#fff;box-shadow:0 16px 38px #2b1a2b30;border:1px solid #eadfea;border-radius:9px;display:none;flex-direction:column;z-index:60}
.nav-dropdown:hover .policies-menu,.nav-dropdown:focus-within .policies-menu,.nav-dropdown.open .policies-menu{display:flex}
.policies-menu a{padding:12px;border-radius:5px;font-size:.85rem}.policies-menu a:hover,.policies-menu a:focus-visible{background:#f8eef7}
.hero{height:clamp(470px,34vw,600px);min-height:0}
.slide-first img{filter:none!important;object-fit:cover;object-position:center center}
.slide-first:after{display:none!important}
.slide-first .slide-content{color:#302638;left:max(4%,calc((100vw - 1630px)/2));width:min(480px,39%)}
.slide-first .slide-content .eyebrow{color:var(--purple)}
.slide-first .slide-content h1{font-size:clamp(2.6rem,4.3vw,4.7rem)}
.slide-first .slide-content p{color:#584e58}
.slide-first .slide-content .btn{color:#fff;background:var(--purple)}
.hero:has(.slide-first.active) .hero-controls button{color:#883279;border-color:#883279;background:#ffffffd9}
.hero:has(.slide-first.active) .dots button{background:#af6ba8}
.hero:has(.slide-first.active) .dots button.active{background:#883279}
.mobile-policies{font-weight:700}.mobile-policies summary{cursor:pointer;list-style-position:inside}.mobile-policies a{display:block;margin:13px 0 0 18px;font-weight:500}
@media(max-width:1220px){.header-inner{gap:12px;grid-template-columns:minmax(0,1fr) 240px minmax(0,1fr);padding-inline:18px}.brand img{width:240px}.nav{gap:11px}.nav a,.policies-toggle{font-size:.78rem}.nav .contact-nav{padding:11px}}
@media(max-width:980px){.header-inner,.site-header.shrunk .header-inner{display:grid;grid-template-columns:1fr auto;min-height:96px;padding:7px 20px}.brand{justify-content:flex-start}.brand img,.site-header.shrunk .brand img{width:210px;height:78px}.nav{display:none}.menu-toggle{display:block}.mobile-nav.open{display:flex;flex-direction:column;padding:18px 24px;gap:18px;border-top:1px solid #f0e8f0}.slide-first .slide-content{left:3%;width:45%}.slide-first .slide-content h1{font-size:clamp(2.1rem,4vw,3.2rem)}.slide-first .slide-content p{font-size:.95rem}}
@media(max-width:650px){.hero{height:auto;min-height:0;overflow:hidden;display:flex;flex-direction:column}.slide{position:relative;display:none;opacity:1;transition:none}.slide.active{display:block}.slide img{height:270px;object-fit:cover}.slide-first img{object-fit:contain;object-position:center;background:#fff}.slide:after{display:none}.slide-content,.slide-first .slide-content{position:relative;top:auto;left:auto;transform:none;width:100%;padding:25px 22px 82px;color:#302638;background:#fff}.slide-content .eyebrow,.slide-first .slide-content .eyebrow{color:var(--purple)}.slide-content h1,.slide-first .slide-content h1{font-size:clamp(2.1rem,8vw,3rem);margin:10px 0}.slide-content p,.slide-first .slide-content p{color:#645968;font-size:1rem}.slide-content .btn.ghost{background:var(--purple);color:#fff}.hero-controls{left:22px;bottom:22px}.hero-controls button,.hero:has(.slide-first.active) .hero-controls button{border-color:#883279;color:#883279;background:#fff}.dots button{background:#c9a4c5}.dots button.active{background:#883279}.quick{margin-top:0}}

/* V6: Slider con altura idéntica en cada diapositiva */
@media(max-width:760px){
 .hero{height:610px!important;min-height:610px!important}
 .hero .slide{height:610px!important;inset:0!important}
 .hero .slide img,.hero .slide-first img{position:absolute!important;top:0!important;left:0!important;width:100%!important;height:260px!important;min-height:260px!important;max-height:260px!important;object-fit:cover!important;object-position:center center!important;filter:none!important}
 .hero .slide-first img{object-fit:contain!important;background:#fff!important}
 .hero .slide-content,.hero .slide-first .slide-content{top:260px!important;height:350px!important;overflow:auto;scrollbar-width:none}
 .hero .hero-controls{bottom:10px!important}
}
@media(max-width:420px){.hero,.hero .slide{height:625px!important;min-height:625px!important}.hero .slide-content,.hero .slide-first .slide-content{height:365px!important}}
/* V6: Carrusel accesible con doble presentación */
.insurance{overflow:hidden;padding-bottom:80px}.insurance-switch{display:inline-flex;gap:5px;border:1px solid #e4d1e2;padding:5px;background:#fff;border-radius:12px;margin:16px 0 20px}.insurance-switch button{border:0;border-radius:8px;background:transparent;color:#883279;padding:12px 18px;font-weight:800}.insurance-switch button.active{background:#883279;color:white}.insurance-marquee{overflow:hidden;width:100%;margin-top:12px;padding:16px 0 22px;mask-image:linear-gradient(90deg,transparent,#000 5%,#000 95%,transparent)}.insurance-track{display:flex;width:max-content;gap:14px;animation:insuranceScroll 48s linear infinite;will-change:transform}.insurance-marquee:hover .insurance-track,.insurance-marquee:focus-within .insurance-track{animation-play-state:paused}.insurer-chip{flex:0 0 auto;min-width:170px;min-height:84px;display:flex;align-items:center;justify-content:center;gap:12px;background:#fff;border:1px solid #e7d9e6;border-radius:13px;padding:17px 23px;box-shadow:0 6px 20px #3b213b09;color:#49354b;font-weight:800;font-size:1rem;text-align:center;white-space:nowrap}.insurer-logo img{width:34px;height:34px;object-fit:contain}.insurer-logo .logo-placeholder{color:#af6ba8;font-size:1.5rem}.logo-note,.insurance-help{font-size:.82rem!important;margin-top:10px}.logo-note{color:#6b4464!important}@keyframes insuranceScroll{to{transform:translateX(-50%)}}
/* V6: figura a la derecha extrema y detalle ornamental a la izquierda */
.contact-stage{width:min(1380px,calc(100% - 48px));max-width:1380px}.contact-stage .doctor-cutout{right:-2.5vw;bottom:-125px}.contact-stage::before{content:"";position:absolute;left:-70px;top:-42px;width:220px;height:220px;border:2px solid #e3c9e4;border-radius:50%;opacity:.55;z-index:0;pointer-events:none}.contact-stage::after{content:"";position:absolute;left:-45px;top:-12px;width:165px;height:165px;border:2px solid #af6ba8;border-radius:50%;opacity:.35;z-index:0;pointer-events:none}
@media(max-width:760px){.contact-stage{width:calc(100% - 36px)}.contact-stage .doctor-cutout{right:-18px;bottom:-55px;width:min(290px,67vw)}.insurer-chip{min-width:145px;min-height:74px;padding:14px 18px;font-size:.87rem}.insurance-track{animation-duration:58s}}
@media(prefers-reduced-motion:reduce){.insurance-track{animation:none;flex-wrap:wrap;width:auto;justify-content:center}.insurance-marquee{overflow:visible;mask-image:none}}



/* V5 — slider uniforme, sin saltos entre diapositivas */
.hero{height:clamp(480px,31.25vw,600px)!important;min-height:0!important;position:relative;overflow:hidden}
.hero .slide{position:absolute!important;inset:0!important;display:block!important;visibility:hidden;opacity:0;pointer-events:none;transition:opacity .7s ease,visibility .7s ease}
.hero .slide.active{visibility:visible;opacity:1;pointer-events:auto}
.hero .slide img{display:block;width:100%;height:100%;object-fit:cover}
.hero .slide-first img{filter:none!important;object-position:center center}
.hero .slide-first::after{display:none!important}
.hero .slide-first .slide-content{max-width:480px}
/* Pie de página con figura recortada y superpuesta */
.contact-feature{position:relative;background:#fff;padding:92px 0 95px;isolation:isolate}
.contact-stage{position:relative;min-height:260px}
.contact-stage .contact-panel{position:relative;min-height:244px;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:40px 33% 40px 48px;border-radius:13px;background:#883279;z-index:1}
.contact-stage .contact-panel .eyebrow{color:#efc9eb}
.contact-stage .contact-panel h2{font-size:clamp(2.1rem,3.3vw,3.4rem);letter-spacing:-.045em;margin:8px 0 12px;white-space:nowrap}
.contact-stage .contact-panel p{margin:0;color:#f8e9f6;line-height:1.8}
.contact-stage .contact-panel p a{color:inherit}
.contact-stage .contact-call{white-space:nowrap;flex-shrink:0;position:relative;z-index:4;padding:15px 18px}
.doctor-cutout{position:absolute;z-index:3;right:-4%;bottom:-125px;width:clamp(285px,34vw,455px);height:auto;max-width:none;pointer-events:none;filter:none}
.footer-v5{position:relative;padding-top:66px;overflow:hidden}
.footer-v5 .wrap{position:relative;z-index:1}
.footer-v5 .footer-grid{padding-right:20%}
.footer-v5 .footer-grid>div:first-child img{filter:brightness(0) invert(1);width:210px}
@media(max-width:1150px){.contact-stage .contact-panel{padding-right:35%;display:block}.contact-stage .contact-call{margin-top:18px}.contact-stage .contact-panel h2{white-space:normal}.doctor-cutout{right:-3%;width:37vw;bottom:-105px}}
@media(max-width:760px){
 .hero{height:570px!important;min-height:570px!important;display:block!important;background:#fff}
 .hero .slide{height:100%!important;overflow:hidden;background:#fff;display:block!important}
 .hero .slide img{position:absolute;top:0;left:0;width:100%;height:235px!important;object-fit:cover;object-position:center}
 .hero .slide-first img{object-fit:contain!important;object-position:center top;background:#fff}
 .hero .slide::after{display:none!important}
 .hero .slide-content,.hero .slide-first .slide-content{position:absolute;top:235px!important;left:0!important;transform:none!important;width:100%!important;max-width:none!important;height:335px;padding:24px 24px 75px;color:#302638!important;background:#fff}
 .hero .slide-content .eyebrow,.hero .slide-first .slide-content .eyebrow{color:#883279!important;font-size:.65rem}
 .hero .slide-content h1,.hero .slide-first .slide-content h1{font-size:clamp(2rem,8vw,2.8rem)!important;line-height:1.12;margin:10px 0}
 .hero .slide-content p,.hero .slide-first .slide-content p{color:#594d5c!important;font-size:.92rem;line-height:1.45;margin-bottom:14px}
 .hero .slide-content .btn,.hero .slide-first .slide-content .btn{background:#883279!important;color:white!important;font-size:.85rem;padding:12px 16px}
 .hero .hero-controls{bottom:15px!important;left:24px!important;z-index:8}
 .hero .hero-controls button{background:#f8edf7!important;border-color:#af6ba8!important;color:#883279!important}
 .hero .dots button,.hero:has(.slide-first.active) .dots button{background:#af6ba8!important}
 .hero .dots button.active,.hero:has(.slide-first.active) .dots button.active{background:#883279!important}
 .contact-feature{padding:55px 0 0}
 .contact-stage{min-height:0;padding-bottom:0}
 .contact-stage .contact-panel{min-height:0;padding:30px 25px 250px;display:block}
 .contact-stage .contact-panel h2{font-size:clamp(2rem,7vw,2.7rem)}
 .contact-stage .contact-call{margin-top:17px}
 .doctor-cutout{width:min(290px,67vw);right:0;bottom:-55px}
 .footer-v5{padding-top:85px}
 .footer-v5 .footer-grid{padding-right:0}
}
@media(max-width:420px){.hero{height:585px!important;min-height:585px!important}.hero .slide-content,.hero .slide-first .slide-content{height:350px}.hero .slide-content h1,.hero .slide-first .slide-content h1{font-size:1.95rem!important}.contact-stage .contact-panel{padding-bottom:230px}.doctor-cutout{width:235px;right:-10px;bottom:-42px}}
@media(prefers-reduced-motion:reduce){.hero .slide{transition:none!important}}

/* V6: Slider con altura idéntica en cada diapositiva */
@media(max-width:760px){
 .hero{height:610px!important;min-height:610px!important}
 .hero .slide{height:610px!important;inset:0!important}
 .hero .slide img,.hero .slide-first img{position:absolute!important;top:0!important;left:0!important;width:100%!important;height:260px!important;min-height:260px!important;max-height:260px!important;object-fit:cover!important;object-position:center center!important;filter:none!important}
 .hero .slide-first img{object-fit:contain!important;background:#fff!important}
 .hero .slide-content,.hero .slide-first .slide-content{top:260px!important;height:350px!important;overflow:auto;scrollbar-width:none}
 .hero .hero-controls{bottom:10px!important}
}
@media(max-width:420px){.hero,.hero .slide{height:625px!important;min-height:625px!important}.hero .slide-content,.hero .slide-first .slide-content{height:365px!important}}
/* V6: Carrusel accesible con doble presentación */
.insurance{overflow:hidden;padding-bottom:80px}.insurance-switch{display:inline-flex;gap:5px;border:1px solid #e4d1e2;padding:5px;background:#fff;border-radius:12px;margin:16px 0 20px}.insurance-switch button{border:0;border-radius:8px;background:transparent;color:#883279;padding:12px 18px;font-weight:800}.insurance-switch button.active{background:#883279;color:white}.insurance-marquee{overflow:hidden;width:100%;margin-top:12px;padding:16px 0 22px;mask-image:linear-gradient(90deg,transparent,#000 5%,#000 95%,transparent)}.insurance-track{display:flex;width:max-content;gap:14px;animation:insuranceScroll 48s linear infinite;will-change:transform}.insurance-marquee:hover .insurance-track,.insurance-marquee:focus-within .insurance-track{animation-play-state:paused}.insurer-chip{flex:0 0 auto;min-width:170px;min-height:84px;display:flex;align-items:center;justify-content:center;gap:12px;background:#fff;border:1px solid #e7d9e6;border-radius:13px;padding:17px 23px;box-shadow:0 6px 20px #3b213b09;color:#49354b;font-weight:800;font-size:1rem;text-align:center;white-space:nowrap}.insurer-logo img{width:34px;height:34px;object-fit:contain}.insurer-logo .logo-placeholder{color:#af6ba8;font-size:1.5rem}.logo-note,.insurance-help{font-size:.82rem!important;margin-top:10px}.logo-note{color:#6b4464!important}@keyframes insuranceScroll{to{transform:translateX(-50%)}}
/* V6: figura a la derecha extrema y detalle ornamental a la izquierda */
.contact-stage{width:min(1380px,calc(100% - 48px));max-width:1380px}.contact-stage .doctor-cutout{right:-2.5vw;bottom:-125px}.contact-stage::before{content:"";position:absolute;left:-70px;top:-42px;width:220px;height:220px;border:2px solid #e3c9e4;border-radius:50%;opacity:.55;z-index:0;pointer-events:none}.contact-stage::after{content:"";position:absolute;left:-45px;top:-12px;width:165px;height:165px;border:2px solid #af6ba8;border-radius:50%;opacity:.35;z-index:0;pointer-events:none}
@media(max-width:760px){.contact-stage{width:calc(100% - 36px)}.contact-stage .doctor-cutout{right:-18px;bottom:-55px;width:min(290px,67vw)}.insurer-chip{min-width:145px;min-height:74px;padding:14px 18px;font-size:.87rem}.insurance-track{animation-duration:58s}}
@media(prefers-reduced-motion:reduce){.insurance-track{animation:none;flex-wrap:wrap;width:auto;justify-content:center}.insurance-marquee{overflow:visible;mask-image:none}}


/* Gestor de consentimiento de cookies */
.cookie-banner{position:fixed;bottom:16px;left:16px;right:16px;z-index:100;background:#fff;border:1px solid #e7dce6;box-shadow:0 15px 55px #25162d40;border-radius:12px;padding:22px;display:flex;align-items:center;justify-content:space-between;gap:25px}.cookie-banner[hidden]{display:none}.cookie-text{max-width:720px}.cookie-text p{margin:5px 0 0;font-size:.87rem}.cookie-text a{text-decoration:underline;color:var(--purple)}.cookie-actions,.dialog-actions{display:flex;gap:9px;flex-wrap:wrap}.cookie-actions button,.dialog-actions button{border:1px solid var(--purple);color:var(--purple);background:white;padding:12px 18px;border-radius:6px;font-weight:700}.cookie-actions .primary,.dialog-actions .primary{background:var(--purple);color:white}dialog{border:0;border-radius:14px;padding:0;max-width:540px;width:calc(100% - 30px);box-shadow:0 20px 90px #20122370}dialog::backdrop{background:#2315289c}.dialog-inner{padding:30px}.dialog-inner h2{font-size:1.8rem}.dialog-inner label{display:block;padding:12px;border-bottom:1px solid #eee}.dialog-actions{margin-top:25px}.dialog-close{margin-top:15px;background:none;border:0;text-decoration:underline}

@media(max-width:700px){.cookie-banner{display:block;bottom:8px;left:8px;right:8px;padding:16px}.cookie-actions{margin-top:12px}.cookie-actions button{flex:1;padding:10px 7px;font-size:.82rem}}

.cookie-actions button:focus-visible,.dialog-actions button:focus-visible,[data-cookie-settings]:focus-visible{outline:3px solid #883279;outline-offset:3px}


/* =================================
   COMPAÑÍAS ASEGURADORAS
   ================================= */
.insurer-set{display:flex;gap:14px;flex:0 0 auto}
.insurer-logo img{width:42px;height:42px;object-fit:contain;flex:0 0 auto}


/* =================================
   PÁGINA INTERIOR: ESPECIALIDADES
   ================================= */
.inner-hero{background:linear-gradient(115deg,#fbf6fa 0%,#f1e3f0 100%);padding:80px 0 90px;overflow:hidden}
.inner-hero-grid{display:grid;grid-template-columns:1.06fr .94fr;gap:65px;align-items:center}
.inner-hero h1{font-family:Manrope,sans-serif;font-size:clamp(2.5rem,4.1vw,4.5rem);line-height:1.13;letter-spacing:-.045em;color:#38253c;margin:20px 0 22px}
.inner-hero-copy>p{color:#665a68;line-height:1.8;font-size:1.05rem;max-width:600px;margin-bottom:30px}
.inner-hero-photo{border-radius:24px;overflow:hidden;box-shadow:0 25px 65px #512a511f;min-height:360px}
.inner-hero-photo img{display:block;width:100%;height:100%;min-height:360px;object-fit:cover}
.breadcrumbs{font-size:.85rem;color:#775d7a;margin-top:22px}.breadcrumbs a{color:#883279;text-decoration:none}.breadcrumbs span{margin-right:7px}
.specialty-directory{padding-top:90px;padding-bottom:92px}
.specialty-directory:nth-of-type(odd){background:#faf7fa}
.specialty-directory .section-heading{margin-bottom:35px}
.specialty-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
.specialty-tile{background:#fff;border:1px solid #eadfea;border-radius:18px;padding:28px;min-height:228px;display:flex;flex-direction:column;box-shadow:0 8px 26px #43244308;transition:transform .2s ease,box-shadow .2s ease}
.specialty-tile:hover{transform:translateY(-4px);box-shadow:0 15px 35px #43244314}
.specialty-index{font-size:.76rem;color:#a66a9d;font-weight:800;letter-spacing:.1em}
.specialty-tile h3{font-family:Manrope,sans-serif;color:#432b45;font-size:1.14rem;line-height:1.35;margin:15px 0 12px}
.specialty-tile p{font-size:.88rem;line-height:1.6;color:#6c6170;margin:0 0 18px}
.specialty-link{margin-top:auto;font-size:.88rem;font-weight:800;color:#883279;text-decoration:none}
.specialty-link:hover{text-decoration:underline}
.specialty-cta{background:#883279;color:white;padding:68px 0}
.specialty-cta-inner{display:flex;align-items:center;justify-content:space-between;gap:35px}
.specialty-cta .eyebrow{color:#f0d4eb}.specialty-cta h2{font-size:clamp(1.7rem,3vw,2.5rem);margin:14px 0}.specialty-cta p{color:#f4e7f3}
@media(max-width:950px){.inner-hero-grid{gap:30px}.specialty-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.inner-hero{padding:45px 0 55px}.inner-hero-grid{grid-template-columns:1fr}.inner-hero-photo,.inner-hero-photo img{min-height:240px}.specialty-grid{grid-template-columns:1fr}.specialty-directory{padding:60px 0}.specialty-tile{min-height:0}.specialty-cta-inner{display:block}.specialty-cta .btn{margin-top:20px}}


/* =================================
   INICIO - Cabecera Especialidades: composición a ancho completo
   Imagen proporcionada por la clínica, sin textos incorporados.
   ================================= */

.inner-hero.inner-hero-full {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    min-height: clamp(490px, 35.47vw, 681px);
    padding: 55px 0;
    background: #f7eff7 url("../assets/especialidades-cabecera.jpg") center center / cover no-repeat;
    overflow: hidden;
}

.inner-hero-full-content {
    position: relative;
    z-index: 1;
    width: min(32%, 610px);
    margin-left: max(19.5%, calc((100% - 1200px) / 2));
}

.inner-hero-full .eyebrow {
    font-size: .75rem;
    letter-spacing: .18em;
}

.inner-hero-full h1 {
    font-size: clamp(2.45rem, 3.75vw, 4.55rem);
    line-height: 1.13;
    margin: 25px 0 22px;
}

.inner-hero-full-content > p {
    max-width: 560px;
    color: #665a68;
    font-size: 1.02rem; 
    line-height: 1.85;
    margin: 0 0 30px;
}

@media (max-width: 1100px) {
    .inner-hero-full-content {
        margin-left: 19.5%;
        width: 32%;
    }
    .inner-hero-full h1 {
        font-size: clamp(2rem, 3.9vw, 3.5rem);
    }
}

@media (max-width: 700px) {
    .inner-hero.inner-hero-full {
        display: block;
        min-height: 0;
        padding: 0;
        background: #f7eff7;
    }

    .inner-hero.inner-hero-full::before {
        content: "";
        display: block;
        height: clamp(190px, 38vw, 320px);
        background: url("../assets/especialidades-cabecera-movil.jpg") center center / cover no-repeat;
    }

    .inner-hero-full-content {
        width: auto;
        max-width: 620px;
        margin: 0 auto;
        padding: 36px 24px 48px;
    }

    .inner-hero-full h1 {
        font-size: clamp(2.1rem, 8vw, 3.3rem);
        margin: 18px 0 20px;
    }
}

/* =================================
   FIN - Cabecera Especialidades: composición a ancho completo
   ================================= */


/* =================================
   INICIO - Controles del slider en ordenador
   Asegura su visibilidad sobre la primera fotografía clara.
   No modifica la presentación en móviles.
   ================================= */

@media (min-width: 761px) {
    .hero > .hero-controls {
        position: absolute;
        left: max(7%, calc((100vw - 1180px) / 2));
        bottom: 28px;
        z-index: 30;
        display: flex;
        align-items: center;
        visibility: visible;
        opacity: 1;
        pointer-events: auto;
    }

    .hero:has(.slide-first.active) > .hero-controls > button {
        background: #ffffff;
        color: #883279;
        border: 2px solid #883279;
        box-shadow: 0 3px 12px rgba(40, 20, 40, .18);
    }

    .hero:has(.slide-first.active) > .hero-controls .dots button {
        background: #af6ba8;
    }

    .hero:has(.slide-first.active) > .hero-controls .dots button.active {
        background: #883279;
    }
}

/* =================================
   FIN - Controles del slider en ordenador
   ================================= */

/* =====================================================
   NAVEGACIÓN DE ESPECIALIDADES - DESPLEGABLE DE TRES NIVELES
   ===================================================== */
.nav .specialties-dropdown{position:relative;font-weight:700;font-size:.88rem}
.specialties-dropdown summary{list-style:none;cursor:pointer;padding:14px 2px;white-space:nowrap}
.specialties-dropdown summary::-webkit-details-marker{display:none}
.specialties-dropdown>summary:after{content:'⌄';margin-left:6px}
.specialties-menu{display:none;position:absolute;top:100%;left:0;width:275px;max-height:min(75vh,680px);overflow:visible;background:white;border:1px solid #eadfea;box-shadow:0 18px 40px #2b1a2b2b;border-radius:10px;padding:8px;z-index:100}
.specialties-dropdown[open]>.specialties-menu,.specialties-dropdown:hover>.specialties-menu,.specialties-dropdown:focus-within>.specialties-menu{display:block}
.specialties-menu>a,.specialties-submenu>summary{display:block;padding:12px 13px;border-radius:6px;font-size:.85rem;cursor:pointer;white-space:normal}
.specialties-menu>a:hover,.specialties-submenu>summary:hover,.specialties-submenu-items a:hover{background:#f8eef7;color:#883279}
.specialties-submenu{position:relative}
.specialties-submenu>summary{list-style:none;display:flex;justify-content:space-between;gap:12px}
.specialties-submenu>summary::-webkit-details-marker{display:none}
.specialties-submenu>summary:after{content:'›'}
.specialties-submenu-items{display:none;position:absolute;left:100%;top:0;width:340px;max-height:65vh;overflow-y:auto;background:#fff;border:1px solid #eadfea;border-radius:10px;padding:8px;box-shadow:0 18px 40px #2b1a2b2b;z-index:110}
.specialties-submenu[open]>.specialties-submenu-items,.specialties-submenu:hover>.specialties-submenu-items,.specialties-submenu:focus-within>.specialties-submenu-items{display:block}
.specialties-submenu-items a{display:block;padding:10px 12px;border-radius:5px;white-space:normal;line-height:1.35;font-size:.82rem}
.mobile-specialties summary{cursor:pointer;font-weight:700;padding:8px 0}
.mobile-specialties>a,.mobile-specialties details>a{display:block;padding:9px 0 9px 18px;font-size:.92rem}
.mobile-specialties details{padding-left:16px;border-left:2px solid #e8d3e6}
.mobile-specialties details>a{padding-left:15px;font-weight:500}

/* =====================================================
   DIRECTORIO - TIPOGRAFÍA Y TRES IMÁGENES INDEPENDIENTES
   ===================================================== */
.specialty-directory.specialty-decorated{position:relative;isolation:isolate;background:#fff;padding-top:70px;padding-bottom:90px;scroll-margin-top:110px}
.specialty-decorated:before,.specialty-decorated:after{content:'';position:absolute;top:155px;bottom:0;width:min(26vw,440px);background-repeat:no-repeat;background-size:100% auto;z-index:-1;pointer-events:none}
.specialty-decorated:before{left:0;background-image:url('../assets/especialidades-lateral-izquierda.jpg');background-position:left top}
.specialty-decorated:after{right:0;background-image:url('../assets/especialidades-lateral-derecha.jpg');background-position:right top}
.specialty-decorated>.wrap{position:relative;z-index:1}
.specialty-decorated .section-heading{display:block;margin:0 0 28px;position:relative}
.specialty-decorated .section-heading .eyebrow{margin-bottom:7px}
.specialty-decorated .section-heading h2{font-size:clamp(2.15rem,3.7vw,3.65rem);line-height:1.12;letter-spacing:-.055em;margin:0 0 0;color:#29202b}
.specialty-decorated .section-heading p{max-width:none;margin:12px 0 0;font-size:1rem;line-height:1.7;color:#6f6471}
.specialty-ecg{width:100vw;max-width:none;height:auto;max-height:110px;object-fit:fill;position:relative;left:50%;transform:translateX(-50%);margin:-3px 0 -9px;pointer-events:none}
.specialty-decorated .specialty-grid{position:relative}
.specialty-decorated .specialty-tile{background:rgba(255,255,255,.94)}
@media(max-width:980px){.specialties-menu{display:none}.mobile-specialties{display:block}}
@media(max-width:700px){.specialty-directory.specialty-decorated{padding:55px 0}.specialty-decorated:before,.specialty-decorated:after{opacity:.25;width:34vw;top:160px}.specialty-decorated .section-heading h2{font-size:clamp(2rem,8vw,3rem)}.specialty-ecg{min-height:42px;object-fit:cover}}
/* Las fotografías quedan por detrás de las tarjetas, pero por encima del fondo. */
.specialty-decorated:before,.specialty-decorated:after{z-index:0}


/* =====================================================
   AJUSTE - CABECERAS DECORADAS SIN DESBORDAMIENTO HORIZONTAL
   ===================================================== */
.specialty-directory.specialty-decorated {
    overflow: clip;
    overflow-clip-margin: 0;
}
.specialty-decorated .section-heading {
    position: relative;
    margin-bottom: 32px;
    isolation: isolate;
}
.specialty-decorated .section-heading > div {
    position: relative;
    z-index: 2;
}
.specialty-decorated .section-heading .eyebrow {
    position: relative;
    z-index: 3;
    width: fit-content;
    background: #fff;
}
.specialty-decorated .section-heading h2 {
    position: relative;
    z-index: 3;
    display: table;
    width: auto;
    max-width: 100%;
    padding: 0 18px 0 0;
    background: #fff;
    margin: 0;
}
.specialty-decorated .section-heading p {
    position: relative;
    z-index: 3;
    width: fit-content;
    max-width: 100%;
    background: rgba(255,255,255,.96);
    margin: 4px 0 0;
    padding: 0 8px 0 0;
}
.specialty-decorated .specialty-ecg {
    position: absolute;
    z-index: 1;
    top: 8px;
    left: calc(50% - 50vw);
    transform: none;
    display: block;
    width: 100vw;
    max-width: none;
    height: 110px;
    max-height: none;
    margin: 0;
    object-fit: fill;
    pointer-events: none;
}
@media (max-width: 700px) {
    .specialty-decorated .specialty-ecg {
        top: 23px;
        height: 72px;
        min-height: 0;
    }
    .specialty-decorated .section-heading h2 {
        font-size: clamp(1.85rem, 7.5vw, 3rem);
    }
}
/* Los submenús de escritorio solo se abren mediante clic o teclado. */
@media (min-width: 981px) {
    .specialties-dropdown:hover:not([open]) > .specialties-menu,
    .specialties-dropdown:focus-within:not([open]) > .specialties-menu,
    .specialties-submenu:hover:not([open]) > .specialties-submenu-items,
    .specialties-submenu:focus-within:not([open]) > .specialties-submenu-items {
        display: none;
    }
}

/* =====================================================
   MENÚ MÓVIL - DESPLAZAMIENTO INTERNO EN PANTALLAS PEQUEÑAS
   Permite acceder a todas las especialidades sin cortar la lista.
   ===================================================== */
@media (max-width: 980px) {
    .site-header .mobile-nav.open {
        display: flex;
        flex-direction: column;
        max-height: calc(100dvh - 105px);
        max-height: calc(100vh - 105px);
        overflow-y: auto;
        overflow-x: hidden;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
        padding-bottom: max(32px, env(safe-area-inset-bottom));
    }
    .site-header.shrunk .mobile-nav.open {
        max-height: calc(100vh - 90px);
    }
    .mobile-specialties,
    .mobile-specialties details {
        flex-shrink: 0;
    }
}
@supports (height: 100dvh) {
    @media (max-width: 980px) {
        .site-header .mobile-nav.open { max-height: calc(100dvh - 105px); }
        .site-header.shrunk .mobile-nav.open { max-height: calc(100dvh - 90px); }
    }
}

/* =====================================================
   BOTÓN FLOTANTE - VOLVER ARRIBA
   Visible tras desplazarse, en escritorio y móvil.
   ===================================================== */
.back-to-top {
    position: fixed;
    right: max(22px, env(safe-area-inset-right));
    bottom: max(22px, env(safe-area-inset-bottom));
    z-index: 90;
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #883279;
    color: #fff;
    box-shadow: 0 5px 20px rgba(60, 20, 55, .25);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    pointer-events: none;
    transition: opacity .25s ease, visibility .25s ease, transform .25s ease, background .2s ease;
}
.back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}
.back-to-top:hover,
.back-to-top:focus-visible { background: #6c235f; }
.back-to-top:focus-visible { outline: 3px solid #d9b5d6; outline-offset: 3px; }
.back-to-top svg { width: 25px; height: 25px; }
@media (max-width: 760px) {
    .back-to-top { width: 46px; height: 46px; right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) {
    .back-to-top { transition: none; }
}


/* ================================================
   NAVEGACIÓN - ENLACE Y CATEGORÍAS ACTIVAS
   ================================================ */
.site-header .nav a.is-current-page,
.site-header .nav a[aria-current="page"],
.site-header .nav a[aria-current="location"],
.site-header .nav summary.is-current-page,
.site-header .nav .policies-toggle.is-current-page,
.site-header .mobile-nav a.is-current-page,
.site-header .mobile-nav a[aria-current="page"],
.site-header .mobile-nav a[aria-current="location"],
.site-header .mobile-nav summary.is-current-page {
    color: #883279 !important;
}
/* El botón de cita mantiene el contraste blanco. */
.site-header .nav a.contact-nav.is-current-page { color: #fff !important; }
