/* Site layout over the HeyHelenFit design system (tokens.css + components.css). */
html{scroll-behavior:smooth}
body{margin:0;background:var(--white)}
img{max-width:100%;height:auto}
.wrap{max-width:1168px;margin:0 auto;padding:0 var(--space-6)}
.wrap-narrow{max-width:728px;margin:0 auto;padding:var(--space-12) var(--space-6) var(--space-16)}
.skip{position:absolute;left:-999px}
.skip:focus{left:var(--space-4);top:var(--space-4);background:var(--white);padding:var(--space-2) var(--space-4);z-index:20}
.link{color:var(--coral-deep);font-weight:500;text-underline-offset:4px}
.link:hover{color:var(--text)}

/* header */
.site-header{position:sticky;top:0;z-index:10;background:rgba(255,255,255,.94);backdrop-filter:blur(8px);border-bottom:1px solid var(--border)}
.site-header .wrap{display:flex;align-items:center;gap:var(--space-6);min-height:72px}
.site-logo img{height:44px;width:auto;display:block}
.site-header nav{display:flex;gap:var(--space-6);margin-left:auto}
.site-header nav a{color:var(--text);text-decoration:none;font-weight:500;font-size:15px;padding:var(--space-2) 0}
.site-header nav a:hover{color:var(--coral-deep)}
.site-cta{min-height:44px;padding:8px 20px;font-size:15px;box-shadow:none}

/* sections */
.hero{padding-top:var(--space-8)}
.hero .hh-welcome h1{font-size:52px;line-height:1.08;letter-spacing:-.01em}
.hero-photo{display:block;width:100%;aspect-ratio:5/4;object-fit:cover;object-position:50% 35%;border-radius:var(--radius-md);margin-bottom:var(--space-4)}
.proof{padding-top:var(--space-6)}
.section{padding-top:var(--space-24);padding-bottom:0}
.section--warm{background:var(--surface-warm);padding-bottom:var(--space-24);margin-top:var(--space-24)}
.section--warm + .section{padding-top:var(--space-24)}
.section h2.hh-h,.page-title{font-size:36px;line-height:1.15;margin:var(--space-3) 0 var(--space-6);max-width:22ch}
.page-title{font-size:40px;max-width:24ch}
.lead{font-size:18px;margin:0 0 var(--space-4);max-width:56ch}
.split{display:grid;grid-template-columns:1fr 1fr;gap:var(--space-12);align-items:start}
.split .hh-cred{max-width:none}
.grid-4{display:grid;grid-template-columns:repeat(4,1fr);gap:var(--space-6)}
.grid-3{display:grid;grid-template-columns:repeat(3,1fr);gap:var(--space-6);align-items:start}
.grid-3 .hh-quote{max-width:none}
.grid-3 .hh-quote blockquote{font-size:17px;line-height:1.55}
.tile{background:var(--white);border:1px solid var(--border-warm);border-radius:var(--radius-lg);padding:var(--space-6)}
.tile h3{font:600 20px/1.3 var(--font-serif);color:var(--text);margin:0 0 var(--space-2)}
.tile p{margin:0;font-size:15px}
.plan-wide{width:auto}
.plan-wide h3{font-size:28px;margin:var(--space-2) 0 var(--space-3)}
.plan-wide p{margin:0}
.steps{list-style:none;margin:0;padding:0;counter-reset:s}
.steps li{counter-increment:s;position:relative;padding:0 0 var(--space-6) 56px}
.steps li::before{content:counter(s,decimal-leading-zero);position:absolute;left:0;top:0;width:40px;height:40px;border-radius:50%;background:var(--coral-tint);box-shadow:inset 0 0 0 1px var(--border-coral);color:var(--coral-deep);font:600 14px/40px var(--font-sans);text-align:center}
.steps b{display:block;font:600 20px/1.3 var(--font-serif);color:var(--text)}
.steps span{display:block;font-size:15px}
.closing{background:var(--text);border-radius:var(--radius-lg);padding:var(--space-16) var(--space-6);text-align:center}
.closing .hh-eyebrow{color:var(--coral-xlight)}
.closing h2.hh-h{color:var(--white);margin-left:auto;margin-right:auto}
.closing p{color:var(--white);max-width:52ch;margin:0 auto var(--space-6)}
.closing .hh-btn--quiet{color:var(--white)}
.closing .hh-btn--quiet:hover{color:var(--coral-xlight)}
.closing :focus-visible{outline-color:var(--white)}

/* stories: carousel on home, grid on /resultados/ */
.story__imgs{display:grid;grid-auto-flow:column;grid-auto-columns:1fr;gap:var(--space-2);align-items:start;margin-bottom:var(--space-4)}
.story__img{position:relative;display:block;cursor:zoom-in}
.story__img img{display:block;width:100%;height:auto;aspect-ratio:6/5;object-fit:cover;border-radius:var(--radius-md)}
.story__zoom{position:absolute;top:8px;right:8px;width:34px;height:34px;display:grid;place-items:center;border-radius:50%;background:rgba(255,255,255,.88);color:var(--text)}
.story__img:hover .story__zoom,.story__img:focus-visible .story__zoom{background:var(--white);color:var(--coral-deep)}
/* ponytail: each photo is one antes|después composite, so the labels are pure CSS */
.story__img::before,.story__img::after{content:"Antes";position:absolute;bottom:8px;left:8px;padding:2px 8px;border-radius:var(--radius-pill);background:rgba(255,255,255,.88);color:var(--text);font:600 11px/1.4 var(--font-sans);letter-spacing:.08em;text-transform:uppercase}
.story__img::after{content:"Después";left:auto;right:8px;color:var(--coral-deep)}
.story h3{margin:var(--space-3) 0 var(--space-1);font:600 24px/1.2 var(--font-serif);color:var(--text)}
.story h4{margin:var(--space-4) 0 var(--space-1);font:600 15px/1.3 var(--font-sans);color:var(--text)}
.story p{margin:0 0 var(--space-3);font-size:15px;line-height:1.6}
.story .story__profile{font-size:13px}
.story blockquote{font-size:17px;line-height:1.5;margin-bottom:0}
.story cite{display:block;margin-top:var(--space-2);font:600 11px/1.4 var(--font-sans);letter-spacing:.08em;text-transform:uppercase;color:var(--coral-deep)}
.story__stats{display:grid;grid-template-columns:repeat(4,1fr);gap:var(--space-2);margin:var(--space-4) 0}
.story__stats div{padding:var(--space-2);border-top:3px solid var(--coral);border-radius:var(--radius-sm);background:var(--surface-2);text-align:center}
.story__stats dt{font:600 18px/1.2 var(--font-serif);color:var(--coral-deep)}
.story__stats dd{margin:4px 0 0;font-size:11px;line-height:1.3;letter-spacing:.04em;text-transform:uppercase;color:var(--text-mid)}
.story .link{display:inline-block;font-size:14px}
.carousel__track{display:flex;gap:var(--space-6);overflow-x:auto;scroll-snap-type:x mandatory;padding-bottom:var(--space-4);scrollbar-width:thin}
.carousel__track .story{flex:0 0 calc((100% - 2 * var(--space-6)) / 3);max-width:none;scroll-snap-align:start}
.story .story__clamp{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:5;line-clamp:5;overflow:hidden;margin-bottom:var(--space-2)}
.story--more{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:var(--space-2);min-height:260px;padding:var(--space-6);text-align:center;text-decoration:none;color:var(--text);background:var(--surface-warm);border:1.5px dashed var(--coral,#FF6F61);border-radius:var(--radius-lg)}
.story--more .story__plus{display:grid;place-items:center;width:64px;height:64px;margin-bottom:var(--space-2);border-radius:50%;background:var(--coral,#FF6F61);color:var(--text);font:400 36px/1 var(--font-sans);transition:transform .2s}
.story--more:hover .story__plus{transform:scale(1.08)}
.story--more strong{font:600 22px/1.2 var(--font-serif)}
.carousel__nav{display:flex;gap:var(--space-2);justify-content:flex-end;margin-top:var(--space-2)}
.carousel__nav button{width:44px;height:44px;border-radius:50%;border:1.5px solid var(--text);background:var(--white);color:var(--text);font:500 18px/1 var(--font-sans);cursor:pointer}
.carousel__nav button:hover{background:var(--surface-2)}
.carousel__head{display:flex;align-items:center;justify-content:space-between;gap:var(--space-4);margin:var(--space-3) 0 var(--space-6)}
.results .carousel__head{margin-top:var(--space-12,64px)}
.carousel__head h2.hh-h{margin:0}
.carousel__head .carousel__nav{margin:0;flex:none}
.carousel--full .carousel__track{align-items:flex-start}
.carousel--full .story{flex-basis:calc((100% - var(--space-6)) / 2);scroll-margin-top:140px}

/* blog */
.post-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:var(--space-6)}
.post-card{display:flex;flex-direction:column;gap:var(--space-2);text-decoration:none;background:var(--white);border:1px solid var(--border);border-radius:var(--radius-lg);padding:var(--space-4);transition:border-color .15s}
.post-card:hover{border-color:var(--text)}
.post-card img{width:100%;aspect-ratio:16/10;object-fit:cover;border-radius:var(--radius-md)}
.post-card b{font:600 20px/1.3 var(--font-serif);color:var(--text)}
.post-card span{font-size:14px;line-height:1.5;color:var(--text-mid)}
.post-card u{margin-top:auto;padding-top:var(--space-2);font-size:14px;font-weight:500;color:var(--coral-deep);text-underline-offset:4px}

/* prose (posts and pages) */
.prose{font-size:17px;line-height:1.7}
.prose h1{font:600 40px/1.12 var(--font-serif);color:var(--text);margin:var(--space-3) 0 var(--space-6)}
.prose h2{font:600 28px/1.25 var(--font-serif);color:var(--text);margin:var(--space-12) 0 var(--space-4)}
.prose h3{font:600 21px/1.3 var(--font-serif);color:var(--text);margin:var(--space-8) 0 var(--space-3)}
.prose h4{font:600 16px/1.4 var(--font-sans);color:var(--text);margin:var(--space-6) 0 var(--space-2)}
.prose p{margin:0 0 var(--space-4)}
.prose strong{font-weight:600;color:var(--text)}
.prose a{color:var(--coral-deep);text-underline-offset:3px}
.prose ul,.prose ol{margin:0 0 var(--space-4);padding-left:22px}
.prose li{margin-bottom:var(--space-2)}
.prose ul li::marker{color:var(--coral)}
.prose figure{margin:var(--space-8) 0}
.prose figure img,.post-hero{display:block;width:100%;border-radius:var(--radius-lg)}
.post-hero{margin-bottom:var(--space-8);aspect-ratio:16/9;object-fit:cover}
.gallery{display:grid;gap:var(--space-4);margin:var(--space-8) 0}
/* ponytail: two captioned photos side by side, natural ratio */
.pair{display:grid;grid-template-columns:1fr 1fr;gap:var(--space-4);align-items:start;margin:var(--space-8) 0}
.prose .pair figure{margin:0}
.pair img{height:auto}
.gallery--3{grid-template-columns:repeat(3,1fr)}
.gallery--2{grid-template-columns:repeat(2,1fr)}
.gallery img{display:block;width:100%;aspect-ratio:3/4;object-fit:cover;border-radius:var(--radius-lg)}
.prose figcaption{font-size:14px;color:var(--text-mid);margin-top:var(--space-2);text-align:center}
.prose blockquote{margin:var(--space-6) 0;padding:var(--space-4) var(--space-6);background:var(--coral-tint);border:1px solid var(--border-coral);border-radius:var(--radius-sm)}
.prose blockquote p{margin:0}
.prose table{width:100%;border-collapse:collapse;margin:var(--space-6) 0;font-size:15px;display:block;overflow-x:auto}
.prose th{text-align:left;font:600 12px/1.3 var(--font-sans);letter-spacing:.06em;text-transform:uppercase;color:var(--coral-deep);background:var(--coral-tint);padding:var(--space-3);border-bottom:1px solid var(--border-coral)}
.prose td{padding:var(--space-3);vertical-align:top;border-bottom:1px solid var(--border)}
.prose tbody tr:nth-child(even){background:var(--surface-1)}
.post-sign{font:600 italic 20px/1.3 var(--font-serif);color:var(--coral-deep);margin-top:var(--space-12) !important}
.post-sign span{display:block;font:400 14px/1.5 var(--font-sans);color:var(--text-mid)}
.post-cta{margin-top:var(--space-8);background:var(--surface-warm);border:1px solid var(--border-warm);border-radius:var(--radius-lg);padding:var(--space-8);text-align:center}
.post-cta h2{margin:0 0 var(--space-2);font-size:26px}
.post-cta p{margin:0 auto var(--space-4);max-width:48ch;font-size:16px}

/* footer */
.site-footer{margin-top:var(--space-24);background:var(--surface-1);border-top:1px solid var(--border);padding:var(--space-12) 0;font-size:14px;color:var(--text-mid)}
.site-footer .wrap{display:grid;grid-template-columns:2fr 1fr 1fr;gap:var(--space-8)}
.site-footer p{margin:0;max-width:36ch}
.site-footer__name{font:600 22px/1.3 var(--font-serif);color:var(--text);margin-bottom:var(--space-2) !important}
.site-footer nav{display:flex;flex-direction:column;gap:var(--space-2)}
.site-footer a{color:var(--text-soft);text-underline-offset:3px}
.site-footer a:hover{color:var(--coral-deep)}

@media (max-width:960px){
  .split,.grid-3,.post-grid{grid-template-columns:1fr}
  .carousel__track .story{flex-basis:calc((100% - var(--space-6)) / 2)}
  .grid-4{grid-template-columns:1fr 1fr}
  /* ponytail: no hamburger; four links fit on a second row */
  .site-header .wrap{flex-wrap:wrap;row-gap:0;padding-top:var(--space-3)}
  .site-header nav{order:3;width:100%;margin:var(--space-3) 0 0;gap:var(--space-6);border-top:1px solid var(--border);overflow-x:auto}
  .site-header nav a{padding:var(--space-3) 0;white-space:nowrap}
  .site-cta{margin-left:auto}
  .hh-welcome{grid-template-columns:1fr}
  .section{padding-top:var(--space-16)}
  .section--warm{padding-bottom:var(--space-16);margin-top:var(--space-16)}
  .section--warm + .section{padding-top:var(--space-16)}
}
@media (max-width:640px){
  .wrap{padding-left:var(--space-4);padding-right:var(--space-4)}
  .wrap-narrow{padding:var(--space-8) var(--space-4) var(--space-12)}
  .grid-4,.site-footer .wrap{grid-template-columns:1fr}
  .story__stats{grid-template-columns:1fr 1fr}
  .pair{grid-template-columns:1fr}
  .carousel__track .story{flex-basis:86%}
  .hero .hh-welcome h1{font-size:34px}
  .section h2.hh-h,.page-title,.prose h1{font-size:30px}
  .site-logo img{height:36px}
  .site-cta{min-height:40px;padding:8px 16px;font-size:14px}
  .section{padding-top:var(--space-12)}
  .section--warm{padding-bottom:var(--space-12);margin-top:var(--space-12)}
  .section--warm + .section{padding-top:var(--space-12)}
  .closing{padding:var(--space-12) var(--space-4)}
}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
.section .hh-lead{max-width:none}
.prose a.hh-btn{color:var(--on-coral)}
.prose a.hh-btn--secondary{color:var(--text)}
.confirm{align-items:center}
.confirm__photo{display:block;width:100%;max-width:520px;aspect-ratio:1/1;object-fit:cover;border-radius:var(--radius-lg);margin:0 auto}
.confirm .hh-callout{max-width:none}
.tile__icon{display:grid;place-items:center;width:52px;height:52px;border-radius:50%;background:var(--coral-tint);box-shadow:inset 0 0 0 1px var(--border-coral);color:var(--coral-deep);margin-bottom:var(--space-4)}
.tile--link{display:flex;flex-direction:column;text-decoration:none;color:inherit;transition:border-color .15s}
.tile--link:hover{border-color:var(--text)}
.tile--link u{margin-top:auto;padding-top:var(--space-4);font-size:14px;font-weight:500;color:var(--coral-deep);text-underline-offset:4px}

/* stepper: page-section navigation on the home, wide screens only */
main section[id]{scroll-margin-top:88px}
.stepper{display:none}
@media (min-width:1240px){
  .stepper{position:fixed;right:10px;top:50%;transform:translateY(-50%);z-index:9;display:flex;flex-direction:column}
  .stepper a{position:relative;display:flex;justify-content:flex-end;align-items:center;width:20px;height:28px;text-decoration:none}
  .stepper a::after{content:"";position:relative;width:12px;height:12px;margin-right:4px;border-radius:50%;background:var(--border);transition:transform .15s,background .15s}
  .stepper a:hover::after{background:var(--coral-xlight)}
  .stepper a[aria-current]::after{background:var(--coral);transform:scale(1.15)}
  .stepper span{position:absolute;right:28px;white-space:nowrap;background:var(--surface-2);color:var(--text-mid);box-shadow:inset 0 0 0 1px var(--border);font:500 12px/1 var(--font-sans);padding:6px 10px;border-radius:var(--radius-pill);opacity:0;pointer-events:none;transition:opacity .15s}
  .stepper a:hover span,.stepper a:focus-visible span{opacity:1}
}
@media (min-width:1480px){.stepper a[aria-current] span{opacity:1}}
@media (prefers-reduced-motion:reduce){.stepper a::after,.stepper span{transition:none}}

/* stage pages */
.stage-hero h1{font-size:44px;line-height:1.12}
.stage-hero__icon{display:grid;place-items:center}
.stage-hero__icon .tile__icon{width:160px;height:160px;margin:0;background:var(--white)}
.stage-hero__icon svg{width:80px;height:80px}
.stage-tiles .tile{height:100%}
.stage-side{display:grid;gap:var(--space-4);align-content:start}
.stage-side .hh-callout{max-width:none;background:var(--white)}
.stage-guide{margin:var(--space-6) 0 0;font-size:15px}
.stage-others{display:flex;flex-wrap:wrap;gap:var(--space-2);margin-top:var(--space-3)}
.stage-others .hh-badge{text-decoration:none;font-size:13px;padding:8px 14px}
.stage-others .hh-badge:hover{background:var(--white)}
@media (max-width:960px){.stage-hero__icon{display:none}}
@media (max-width:640px){.stage-hero h1{font-size:30px}}
/* home, Nuestro enfoque: card centred against the text, credentials in one tidy column */
#enfoque .split{align-items:center}
#enfoque .hh-cred ul{grid-template-columns:1fr}
.results-proof{margin:0 0 var(--space-8)}
.results .page-title,.results .lead{max-width:none}
.site-footer__credit{margin-top:var(--space-4) !important;font-size:13px;color:var(--text-muted)}
.site-footer__credit span{color:var(--coral)}

/* ponytail: textarea reuses the input look */
.hh-field textarea{width:100%;padding:10px 14px;border:1.5px solid var(--text-mid);border-radius:var(--radius-sm);background:var(--white);color:var(--text);font:400 16px/1.4 var(--font-sans);resize:vertical}
.hh-field textarea:hover{border-color:var(--text)}

/* Contact popup (build.py contact_dialog) */
.closing .closing__alt{margin:var(--space-3) auto 0}
.modal{width:min(520px,calc(100vw - 32px));max-height:calc(100dvh - 32px);overflow:auto;border:0;border-radius:var(--radius-lg);padding:var(--space-8);background:var(--white);color:var(--text)}
/* popups: blur lives on ::backdrop, the dark tint on a fixed page layer. iOS Safari colours its status-bar and
   toolbar areas from fixed elements at the screen edges and never from ::backdrop, so the tint has to be a real layer. */
.modal::backdrop,.lightbox::backdrop{background:transparent;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);animation:lb-fade .3s ease}
html:has(dialog[open]) body::after{content:"";position:fixed;inset:0;z-index:2147483000;background:rgba(37,37,37,.55);pointer-events:none;animation:lb-fade .3s ease}
html:has(dialog[open]){background:#878787}
@media (prefers-reduced-motion:reduce){html:has(dialog[open]) body::after{animation:none}}
.modal h2.hh-h{margin:0 0 var(--space-2);font-size:26px}
.modal .hh-form{max-width:none;margin-top:var(--space-4)}
.modal__x{position:absolute;top:8px;right:8px;width:44px;height:44px;border:0;background:none;font-size:28px;line-height:1;color:var(--text);cursor:pointer;border-radius:50%}
.modal__x:hover{background:var(--surface-2)}
@media (max-width:600px){.modal{padding:var(--space-6) var(--space-4)}}
.hero .hero__ig{margin:var(--space-3) 0 0;padding-top:var(--space-3);border-top:1px solid var(--border-warm)}
.hero__ig .hh-btn{display:inline-flex;flex-direction:row;align-items:center;gap:8px;min-height:0;padding:4px 0}
.lightbox{width:fit-content;max-width:94vw;max-height:94dvh;overflow:auto;border:0;padding:0;background:none}
.lightbox[open]{animation:lb-in .28s cubic-bezier(.2,.8,.2,1)}

.lightbox__imgs{display:flex;gap:var(--space-2);align-items:center;justify-content:center}
.lightbox__imgs img{display:block;flex:0 1 auto;min-width:0;max-width:100%;max-height:90dvh;width:auto;height:auto;object-fit:contain;border-radius:var(--radius-md)}
.lightbox .modal__x{z-index:1;background:rgba(255,255,255,.88)}
@keyframes lb-in{from{opacity:0;transform:scale(.92)}}
@keyframes lb-fade{from{opacity:0}}
@media (max-width:640px){.lightbox__imgs{flex-direction:column}.lightbox__imgs img{max-height:none}}
@media (prefers-reduced-motion:reduce){.lightbox[open],.lightbox::backdrop,.modal::backdrop{animation:none}}
.cookies{position:fixed;left:var(--space-4);right:var(--space-4);bottom:var(--space-4);z-index:50;display:flex;gap:var(--space-4);align-items:center;justify-content:space-between;max-width:960px;margin:0 auto;padding:var(--space-4) var(--space-6);border:1px solid var(--border,#F0E2DF);border-radius:var(--radius-lg);background:var(--white);box-shadow:0 8px 30px rgba(37,37,37,.14)}
.cookies[hidden]{display:none}
.cookies p{margin:0;font-size:14px;line-height:1.5}
.cookies div{display:flex;gap:var(--space-2);flex:none}
.cookies .hh-btn{padding:10px 18px;font-size:14px}
@media (max-width:640px){.cookies{flex-direction:column;align-items:stretch;padding:var(--space-4)}.cookies div{justify-content:flex-end}}

/* WhatsApp: floating button gives way to the cookie banner; three hero actions wrap cleanly */
.fabs{position:fixed;right:var(--space-4);bottom:var(--space-4);z-index:50;display:flex;flex-direction:column;gap:var(--space-3)}
.fabs .hh-wa-fab{position:static}
.fab{display:flex;align-items:center;justify-content:center;width:56px;height:56px;padding:0;border:0;border-radius:50%;color:var(--text);cursor:pointer;box-shadow:var(--shadow-card);transition:background .15s,transform .15s}
.fab svg{width:28px;height:28px}
.fab--call{background:var(--coral)}
.fab--call:hover{background:var(--coral-light)}
.fab--mail{background:var(--white);box-shadow:inset 0 0 0 1.5px var(--text),var(--shadow-card)}
.fab--mail:hover{background:var(--surface-2)}
.fab:hover{transform:translateY(-1px)}
.fab:focus-visible,.hh-wa-fab:focus-visible{outline:3px solid var(--coral-deep);outline-offset:3px}
.cookies:not([hidden])~.fabs{display:none}
@media print{.fabs{display:none}}
@media (prefers-reduced-motion:reduce){.fab{transition:none}.fab:hover{transform:none}}
/* hero: videollamada + WhatsApp always share one row from tablet up; a third action drops below */
@media (min-width:641px){
  .hero .hh-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));max-width:580px}
  .hero .hh-actions .hh-btn{padding-inline:var(--space-2);white-space:nowrap;font-size:clamp(13px,1.25vw,16px)}
}

/* options popup: the floating stack, explained; discs fly in from the corner (script in build.py) */
.options{overflow:visible}
.options[open]{animation:opt-bg .35s ease}
.options[open] .hh-eyebrow,.options[open] h2,.options[open] .opt__txt,.options[open] .modal__x{animation:lb-fade .35s ease .12s backwards}
@keyframes opt-bg{from{background:transparent}}
.opts{display:grid;gap:var(--space-3);margin-top:var(--space-6)}
.opt{display:flex;align-items:center;gap:var(--space-4);width:100%;padding:var(--space-3);border:1px solid var(--border);border-radius:var(--radius-lg);background:none;color:var(--text);font:inherit;text-align:left;text-decoration:none;cursor:pointer;transition:border-color .15s,background .15s}
.opt:hover{border-color:var(--text);background:var(--surface-warm)}
.opt__ico{flex:none}
.opt:hover .opt__ico{transform:none}
.fab--wa{background:var(--whatsapp)}
.fab--wa svg{fill:currentColor}
.opt__txt b{display:block;font:600 17px/1.3 var(--font-serif)}
.opt__txt small{display:block;margin-top:2px;font-size:14px;line-height:1.45;color:var(--text-mid)}
@media (prefers-reduced-motion:reduce){.options[open],.options[open] *,.options::backdrop{animation:none}}

/* "Más opciones": tinted fill + the three channel colours, so it does not read as a plain secondary */
.hh-btn--more{flex-direction:row;gap:10px;background:var(--coral-tint);color:var(--text);box-shadow:inset 0 0 0 1.5px var(--coral)}
.hh-btn--more:hover{background:var(--coral-xlight)}
.more-dots{display:flex;flex:none}
.more-dots i{width:18px;height:18px;border-radius:50%;border:2px solid var(--coral-tint);background:var(--coral);transition:margin .15s}
.more-dots i+i{margin-left:-8px}
.more-dots i:nth-child(2){background:var(--white);box-shadow:inset 0 0 0 1.5px var(--text)}
.more-dots i:nth-child(3){background:var(--whatsapp)}
.hh-btn--more:hover .more-dots i{border-color:var(--coral-xlight)}
.hh-btn--more:hover .more-dots i+i{margin-left:-4px}

/* popup-to-popup switch: keep the backdrop still, only the panel comes in */
.modal.swap::backdrop{animation:none}
.modal.swap[open]{animation:lb-in .3s cubic-bezier(.2,.8,.2,1)}
@media (prefers-reduced-motion:reduce){.modal.swap[open]{animation:none}}
@media (max-width:640px){.hero__ig .hh-btn{font-size:14px;white-space:nowrap}}

/* hero left column: one rhythm (eyebrow, title, text, actions, quiet link) */
.hero .hh-welcome:not(.stage-hero) h1{margin:var(--space-4) 0 var(--space-6)}
.hero .hh-welcome>div>p:not(.hh-eyebrow){margin-bottom:var(--space-8)}
.hero__how{display:inline-flex;align-items:center;gap:var(--space-2);margin:var(--space-6) 0 0 var(--space-3);font:500 17px/1.4 var(--font-sans);color:var(--text);text-decoration:none;border-bottom:1.5px solid var(--coral);padding-bottom:2px;transition:color .15s,border-color .15s}
.hero__how span{transition:transform .15s}
.hero__how:hover{color:var(--coral-deep);border-color:var(--coral-deep)}
.hero__how:hover span{transform:translateY(2px)}
@media (max-width:640px){.hero .hh-actions .hh-btn{display:flex;width:100%}}
@media (prefers-reduced-motion:reduce){.hero__how span{transition:none}.hero__how:hover span{transform:none}}

/* two-column hero: left column centred beside the card, text blocks close together, a wider gap before the actions */
@media (min-width:961px){
  .hero .hh-welcome:not(.stage-hero)>div:first-child{align-self:stretch;display:flex;flex-direction:column;justify-content:center;align-items:flex-start}
  .hero .hh-welcome:not(.stage-hero)>div:first-child>*{margin-top:0;margin-bottom:0}
  .hero .hh-welcome:not(.stage-hero)>div:first-child>*+*{margin-top:var(--space-6)}
  .hero .hh-welcome:not(.stage-hero)>div:first-child>h1{margin-top:20px}
  .hero .hh-welcome:not(.stage-hero)>div:first-child>.hh-actions{margin-top:52px}
  .hero .hh-welcome:not(.stage-hero)>div:first-child>.hero__how{margin-top:28px}
  .hero .hh-welcome:not(.stage-hero) .hh-actions{width:100%}
  .hero .hh-welcome:not(.stage-hero) .hero__how{margin-left:var(--space-3)}
}

/* phones: one floating button instead of three; it opens the options popup */
.fab--more{display:none;background:var(--coral-tint);box-shadow:inset 0 0 0 1.5px var(--coral),var(--shadow-card)}
@media (max-width:640px){
  .fabs>.fab--call,.fabs>.fab--mail,.fabs>.fab--ig,.fabs>.hh-wa-fab{display:none}
  .fab--more{display:flex}
  .fabs{transition:opacity .25s,transform .25s}
  .fabs.is-off{opacity:0;transform:translateY(12px);pointer-events:none}
}
@media (max-width:640px) and (prefers-reduced-motion:reduce){.fabs{transition:none}}

/* four contact channels: Instagram joins, discs and dots a size smaller. Instagram's own gradient, used here only. */
.fabs{gap:10px}
.fab,.fabs .hh-wa-fab{width:48px;height:48px}
.fab svg,.fabs .hh-wa-fab svg{width:24px;height:24px}
.fab--ig{background:linear-gradient(45deg,var(--instagram-start),var(--instagram) 50%,var(--instagram-end));color:var(--white)}
.fab--ig:hover{filter:brightness(.92)}
.fab--more{width:52px;height:52px}
.more-dots i{width:16px;height:16px}
.more-dots i+i{margin-left:-7px}
.more-dots i:nth-child(3){background:linear-gradient(45deg,var(--instagram-start),var(--instagram) 50%,var(--instagram-end))}
.more-dots i:nth-child(4){background:var(--whatsapp)}

/* closing blocks: call on its own row, the three message routes on one row under it */
.hh-actions--alt{justify-content:center;margin-top:var(--space-3)}
.hh-actions--alt .hh-btn{min-height:48px;padding-inline:var(--space-4);font-size:15px;white-space:nowrap}
/* narrow boxed variant (posts, Resultados, Sobre mí, FAQ): tighter so the three still share one row */
@media (min-width:761px){
  .post-cta .hh-actions--alt{gap:var(--space-2);margin-inline:calc(-1 * var(--space-4));flex-wrap:nowrap}
  .post-cta .hh-actions--alt .hh-btn{font-size:14px;padding-inline:14px}
}

/* closing blocks: primary button a fixed comfortable width; message buttons are icon discs that open on hover */
.hh-btn--secondary:has(>svg){flex-direction:row;gap:var(--space-2)}
.hh-btn--secondary>svg{flex:none;width:20px;height:20px}
@media (min-width:761px){.cta-stack>.hh-actions:first-child .hh-btn{padding-inline:32px}}
/* ponytail: max-width transition, no JS. Touch screens: a tap acts at once, the label shows while pressed and when coming back */
.hh-actions--alt{flex-wrap:nowrap}
.hh-actions--alt .hh-btn,.post-cta .hh-actions--alt .hh-btn{box-sizing:border-box;flex:none;max-width:48px;min-height:48px;padding-inline:14px;gap:14px;justify-content:flex-start;overflow:hidden;transition:max-width .4s ease,padding .4s ease,gap .4s ease,background .15s}
.hh-actions--alt .hh-btn:hover,.hh-actions--alt .hh-btn:focus-visible,.hh-actions--alt .hh-btn:active{max-width:280px;padding-inline:16px 20px;gap:var(--space-2)}
@media (max-width:640px){.hh-actions--alt{gap:var(--space-2)}.hh-actions--alt .hh-btn{font-size:14px}}
/* floating buttons step aside at the closing block on every screen size */
.fabs{transition:opacity .25s,transform .25s}
.fabs.is-end{opacity:0;transform:translateY(12px);pointer-events:none}
@media (prefers-reduced-motion:reduce){.fabs,.hh-actions--alt .hh-btn{transition:none}}

/* small label between the booking button and the message discs */
.closing p.cta-or,.post-cta p.cta-or{margin:var(--space-6) auto var(--space-2);font-size:13px;letter-spacing:.02em;color:var(--text-mid)}
.closing p.cta-or{color:var(--coral-xlight)}
.cta-or+.hh-actions--alt{margin-top:0}

/* options popup closing (html.opts-out set by hhOptsClose): everything but the discs fades while they fly home */
html.opts-out body::after,html.opts-out .options::backdrop{animation:lb-out .38s ease forwards}
html.opts-out .options[open]{animation:opt-out .3s ease forwards}
html.opts-out .options[open] .hh-eyebrow,html.opts-out .options[open] h2,html.opts-out .options[open] .opt__txt,html.opts-out .options[open] .modal__x{animation:lb-out .2s ease forwards}
@keyframes lb-out{to{opacity:0}}
@keyframes opt-out{to{background:transparent;border-color:transparent;box-shadow:none}}
html.opts-out .opt,html.opts-out .opt:hover{border-color:transparent;background:none}

/* every other popup closing (html.dlg-out set by the close() wrapper): panel, blur and tint fade together */
html.dlg-out body::after,html.dlg-out .modal::backdrop,html.dlg-out .lightbox::backdrop{animation:lb-out .24s ease forwards}
html.dlg-out dialog.modal[open],html.dlg-out dialog.lightbox[open]{animation:dlg-out .24s ease forwards}
@keyframes dlg-out{to{opacity:0;transform:scale(.96)}}

/* Método FEM4 section on the home page (the pill itself is .hh-method in components.css) */
.fem4-lead{max-width:68ch;margin:var(--space-4) 0 var(--space-8);font-size:17px;line-height:1.6;color:var(--text-mid)}
#etapas{scroll-margin-top:72px}

/* fem4.es (build_fem4.py): wordmark, numbered stage tiles, steps and the pointer back to heyhelenfit.es */
.fem4-logo{display:flex;flex-direction:column;line-height:1;text-decoration:none;color:var(--text)}
.fem4-logo b{font:700 26px/1 var(--font-serif);letter-spacing:.04em}
.fem4-logo span{margin-top:3px;font:500 11px/1 var(--font-sans);letter-spacing:.08em;color:var(--coral-deep)}
.fem4-tile{position:relative}
.fem4-n{position:absolute;top:var(--space-4);right:var(--space-4);font:600 40px/1 var(--font-serif);color:var(--coral-xlight)}
.fem4-steps{max-width:640px;margin-top:var(--space-8)}
.fem4-more{margin:var(--space-4) 0 0;font-size:15px}
