/* Estructura inspirada en un modelo editorial; logo, colores y fotos originales sin modificar. */

/* Cinco momentos: pestañas + texto + foto */
.moments{padding-top:110px}
.moments-box{border:1px solid var(--line);background:#fff}
.moment-tabs{display:grid;grid-template-columns:repeat(5,1fr);border-bottom:1px solid var(--line)}
.moment-tabs button{background:#FAF7F5;border:0;border-right:1px solid var(--line);border-top:3px solid transparent;padding:18px 16px;font-size:13px;color:#606060;cursor:pointer;text-align:left;min-height:56px;transition:background .25s,color .25s}
.moment-tabs button:last-child{border-right:0}
.moment-tabs button:hover{color:#161922;background:#fff}
.moment-tabs button[aria-selected="true"]{background:#fff;color:#161922;border-top-color:var(--brand-cyan);font-weight:600}
.moment-panel{display:grid;grid-template-columns:.9fr 1.1fr;min-height:470px}
.js .moment-panel[data-inactive]{display:none}
.moment-panel:not([data-inactive]){animation:fadein .5s ease both}
@keyframes fadein{from{opacity:0}}
.moment-copy{padding:44px 44px 40px;display:flex;flex-direction:column}
.moment-num{font-size:11px;color:var(--brand-teal);display:flex;align-items:center;gap:14px}
.moment-num:after{content:'';width:56px;height:1px;background:var(--brand-cyan)}
.moment-copy h3{font-size:clamp(30px,2.6vw,40px);margin:auto 0 18px;padding-top:60px}
.moment-copy p{color:#606060;font-size:15px;margin-bottom:34px}
.moment-copy .text-link{align-self:flex-start}
.moment-photo{margin:0;background:var(--brand-cream);overflow:hidden}
.moment-photo img{width:100%;height:100%;object-fit:cover;object-position:50% 25%}
#panel-cambios .moment-photo img{object-fit:contain;object-position:50% 100%}

/* Escalones de transición */
.pixel-edge{display:flex;align-items:flex-end;height:64px;margin-top:40px}
.pixel-edge span{flex:1;background:var(--brand-teal)}
.pixel-edge span:nth-child(1){height:30%}.pixel-edge span:nth-child(2){height:55%}.pixel-edge span:nth-child(3){height:20%}
.pixel-edge span:nth-child(4){height:75%}.pixel-edge span:nth-child(5){height:40%}.pixel-edge span:nth-child(6){height:100%}
.pixel-edge span:nth-child(7){height:60%}.pixel-edge span:nth-child(8){height:15%}.pixel-edge span:nth-child(9){height:85%}
.pixel-edge span:nth-child(10){height:35%}.pixel-edge span:nth-child(11){height:65%}.pixel-edge span:nth-child(12){height:25%}
.pixel-edge span{transform-origin:bottom;transition:transform 1s cubic-bezier(.2,.7,.2,1)}
.js .pixel-edge span{transform:scaleY(0)}
.js .pixel-edge.is-in span{transform:none}
.pixel-edge.is-in span:nth-child(odd){transition-delay:.12s}.pixel-edge.is-in span:nth-child(3n){transition-delay:.24s}

/* Servicios en franja oscura */
.services{background:var(--brand-teal);color:#fff;max-width:none;padding-left:max(48px,calc((100vw - 1216px)/2));padding-right:max(48px,calc((100vw - 1216px)/2))}
.services .eyebrow,.services h2{color:#fff}
.services em{color:var(--brand-cream)!important}
.services .section-heading>p{color:#ffffffd9}
.services .services-note{color:#ffffffd9}.services .services-note a{color:var(--brand-cream)}
.services .therapy{color:#161922}

/* Proceso en tarjetas con dibujos lineales */
.steps{border-top:0}
.steps-list{gap:0;border:1px solid var(--line);background:#fff}
.steps-list li{padding:0 30px 34px;border-right:1px solid var(--line)}
.steps-list li:last-child{border-right:0}
.step-art{height:170px;margin:0 -30px 26px;border-bottom:1px solid var(--line);display:grid;place-items:center;background:#FAF7F5}
.step-art svg{width:150px;height:100px;fill:none;stroke:var(--brand-teal);stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.steps-list li>span{font-size:13px;font-family:var(--sans);border:0;padding:0;margin-bottom:12px}

/* Cierre grande */
.contact{padding-top:110px;padding-bottom:120px}
.contact h2{font-size:clamp(52px,7vw,104px)}

/* Pie con logo grande */
footer{padding-bottom:0}
.footer-bottom{padding-bottom:30px}
.footer-giant{width:100vw;margin-left:calc(50% - 50vw);background:var(--brand-teal);padding:40px max(48px,calc((100vw - 1216px)/2)) 30px}
.footer-giant img{width:100%;max-width:1216px;height:auto;margin:auto}

@media(max-width:1050px){.moment-copy{padding:34px 30px}.steps-list li{padding:0 22px 28px}.step-art{margin:0 -22px 22px}}
@media(max-width:800px){.moment-tabs{display:flex;overflow-x:auto;scrollbar-width:none}.moment-tabs::-webkit-scrollbar{display:none}.moment-tabs button{flex:0 0 auto;white-space:nowrap}.moment-panel{grid-template-columns:1fr}.moment-photo{height:320px;order:-1}.moment-copy h3{padding-top:26px}}
@media(max-width:640px){
  .moments{padding-top:64px}
  .moment-photo{height:260px}
  .moment-copy{padding:26px 22px 30px}
  .services{padding-left:24px;padding-right:24px}
  .steps-list{grid-template-columns:1fr}
  .steps-list li{display:block;border-right:0;border-bottom:1px solid var(--line);padding:0 22px 26px}
  .steps-list li:last-child{border-bottom:0}
  .step-art{height:130px}
  .pixel-edge{height:40px;margin-top:20px}
  .footer-giant{padding:24px 24px 96px}
}
@media(prefers-reduced-motion:reduce){.js .pixel-edge span{transform:none}}

/* Portada: fondo turquesa de marca + retrato original */
.hero-immersive{background:linear-gradient(120deg,var(--brand-teal) 0%,var(--brand-teal) 45%,var(--brand-cyan) 100%)}
.hero-glow{position:absolute;right:max(20px,calc((100vw - 1216px)/2 - 40px));bottom:0;width:min(560px,44vw);aspect-ratio:1/1.05;background:var(--brand-cream);border-radius:999px 999px 0 0;opacity:.95;z-index:-2}
.hero-cutout{position:absolute;right:max(20px,calc((100vw - 1216px)/2 - 40px));bottom:0;height:min(92%,760px);width:auto;max-width:48vw;object-fit:contain;object-position:bottom;z-index:-1;animation:rise 1.1s cubic-bezier(.2,.7,.2,1) both}
@keyframes rise{from{opacity:0;transform:translateY(40px)}}
.hero-immersive .immersive-content{max-width:620px}
.hero-immersive h1 em{color:var(--brand-cream)}
.hero-immersive .button{background:var(--brand-cream);color:#161922}
.hero-immersive .button:hover{background:#fff}
.immersive-bottom{border-top-color:#ffffff66}
.immersive-person{display:none}
@media(max-width:1050px){.hero-immersive .immersive-content{max-width:520px}.hero-immersive h1{font-size:58px}}
@media(max-width:800px){.hero-cutout{opacity:.35}.hero-glow{opacity:.25}}
@media(max-width:640px){.hero-immersive{padding-bottom:360px;justify-content:flex-start}.hero-cutout{opacity:1;max-width:none;height:340px;right:50%;transform:translateX(50%);animation:none}.hero-glow{opacity:1;width:300px;right:50%;transform:translateX(50%);bottom:0}.immersive-bottom{display:none}}
@media(prefers-reduced-motion:reduce){.hero-cutout{animation:none}}

/* Icono de WhatsApp en los botones de consulta */
.wa-ico{flex:none;width:20px;height:20px;transition:transform .35s cubic-bezier(.3,1.6,.5,1)}
.button:hover .wa-ico,.mobile-contact:hover .wa-ico{transform:rotate(-12deg) scale(1.12)}
@media(prefers-reduced-motion:reduce){.wa-ico{transition:none}}

/* Línea de confianza junto a los botones de WhatsApp */
.cta-trust{margin-top:16px;font-size:14px;line-height:1.6;font-weight:500;max-width:460px;color:#fff}
.contact>p.cta-trust:not(.eyebrow){margin:16px auto 0;max-width:460px;color:#111;font-size:14px}
.header-cta .wa-ico{width:18px;height:18px}
.site-header .header-cta{gap:12px}
.header-cta:hover .wa-ico{transform:rotate(-12deg) scale(1.12)}
@media(max-width:640px){.cta-trust{font-size:13px}}
