/* =========================================================================
   WONTEX · rediseño 2026 (capa sobre styles.css)
   Midnight #142B3B · Cloud #F7F8F4 · Lime #C7F464 · Steel #82919B
   Unbounded (titulares) + Inter (texto). El lima nunca es texto sobre claro.
   ========================================================================= */
:root {
  --mid: #142B3B; --mid-2: #1C3A4F; --deep: #0D1F2C; --cloud: #F7F8F4; --lime: #C7F464; --lime-2: #B4E34A;
  --steel: #82919B; --steel-2: #A3AFB7; --slate: #56656F; --niebla: #ECEEE8; --line: #DDE1DB;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}
html { scroll-padding-top: 72px; }
body { background: var(--cloud); color: var(--mid); font-family: var(--font-text); }

/* ---------- Encabezado: transparente sobre el hero, sólido después ---------- */
.header { transition: background-color .4s var(--ease), color .4s var(--ease), transform .45s var(--ease), box-shadow .4s var(--ease); }
.header.is-over { background: transparent !important; box-shadow: none !important; border-color: transparent !important; }
.header.is-over .logo .wm, .header.is-over .nav a, .header.is-over .menu-btn, .header.is-over .lang button { color: var(--cloud); }
.header.is-over .lang button[aria-pressed="true"] { color: var(--cloud); }
.header.is-over .lang button:not([aria-pressed="true"]) { color: rgba(247, 248, 244, .65); }
.header.is-over .menu-btn__icon, .header.is-over .menu-btn__icon::before, .header.is-over .menu-btn__icon::after { background: var(--cloud); }
.nav a { font-family: var(--font-text); font-weight: 500; }

/* ---------- Etiquetas de sección ---------- */
.xs__label { margin: 0 0 22px; font-family: var(--font-display); font-weight: 300; font-size: 12.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--slate); }

/* =========================================================================
   1 · HERO AUDIOVISUAL CON SCROLL NARRATIVO
   ========================================================================= */
.xh { position: relative; height: 430svh; background: var(--deep); color: var(--cloud); }
.xh__sticky { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.xh__media { position: absolute; inset: 0; background: var(--deep) url("../assets/video/wontex-hero-poster.jpg?v=3") center / cover no-repeat; }
.xh__video { width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(calc(1.02 + var(--xp, 0) * .05)); transform-origin: 60% 50%; will-change: transform; }
.xh__shade { position: absolute; inset: 0; background:
  linear-gradient(90deg, rgba(13, 31, 44, .92) 0%, rgba(13, 31, 44, .66) 38%, rgba(13, 31, 44, .2) 70%, rgba(13, 31, 44, .1) 100%),
  linear-gradient(0deg, rgba(13, 31, 44, .7) 0%, rgba(13, 31, 44, 0) 35%); }
.xh__stage { position: relative; height: 100%; }
.xh__step { position: absolute; left: var(--gutter, 24px); right: var(--gutter, 24px); top: 50%; max-width: 760px; margin: 0; opacity: 0; transform: translateY(calc(-50% + 28px)); transition: opacity .7s var(--ease-out), transform .9s var(--ease-out); pointer-events: none; }
.xh__step.is-on { opacity: 1; transform: translateY(-50%); pointer-events: auto; }
.xh__step.is-past { opacity: 0; transform: translateY(calc(-50% - 28px)); }
.xh__kicker { margin: 0 0 24px; font-family: var(--font-display); font-weight: 300; font-size: clamp(11px, 1vw, 13px); letter-spacing: .22em; text-transform: uppercase; color: var(--steel-2); }
.xh__title { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: clamp(34px, 4.6vw, 72px); line-height: 1.04; letter-spacing: -.03em; max-width: 13ch; color: var(--cloud); text-wrap: balance; }
.xh__sub { margin: 26px 0 0; max-width: 40ch; font-size: clamp(16px, 1.35vw, 20px); line-height: 1.55; color: #D3DBE0; }
.xh__ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin-top: 36px; }
.xh__link { font-family: var(--font-text); font-weight: 600; font-size: 15px; color: var(--cloud); text-decoration: none; padding-bottom: 3px; background: linear-gradient(var(--lime), var(--lime)) 0 100% / 100% 2px no-repeat; transition: background-size .35s var(--ease); }
.xh__link:hover { background-size: 40% 2px; }
.xh__phrase { font-family: var(--font-display); font-weight: 600; font-size: clamp(30px, 4.8vw, 76px); line-height: 1.06; letter-spacing: -.03em; max-width: 15ch; color: var(--cloud); text-wrap: balance; }
.xh__final { max-width: 820px; }
.xh__wm { font-size: clamp(40px, 6.4vw, 104px); color: var(--cloud); }
.xh__claim { margin: 28px 0 34px; font-family: var(--font-display); font-weight: 500; font-size: clamp(20px, 2.4vw, 36px); line-height: 1.25; letter-spacing: -.02em; color: var(--cloud); }
.xh__claim span { color: var(--lime); }
/* Indicador de avance de la narrativa */
.xh__rail { position: absolute; right: var(--gutter, 24px); top: 50%; width: 2px; height: 26vh; transform: translateY(-50%); background: rgba(163, 175, 183, .25); border-radius: 2px; overflow: hidden; }
.xh__rail span { position: absolute; inset: 0; background: var(--lime); transform-origin: top; transform: scaleY(var(--xp, 0)); }
.xh__hint { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 10px; margin: 0; font-family: var(--font-display); font-weight: 300; font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--steel-2); transition: opacity .5s; }
.xh__hint i { width: 1px; height: 34px; background: linear-gradient(var(--lime), transparent); animation: hint 2s var(--ease) infinite; transform-origin: top; }
@keyframes hint { 0% { transform: scaleY(0); } 60% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }
.xh.is-scrolled .xh__hint { opacity: 0; }

/* =========================================================================
   2 · ENFOQUE (frase que se rellena al hacer scroll)
   ========================================================================= */
.xs { padding-block: clamp(96px, 13vw, 190px); }
.xs--statement { background: var(--cloud); }
.xs__statement { margin: 0; max-width: 17ch; font-family: var(--font-display); font-weight: 600; font-size: clamp(32px, 5vw, 78px); line-height: 1.08; letter-spacing: -.03em; }
.xs__statement .fill { color: transparent; -webkit-text-fill-color: transparent; background: linear-gradient(90deg, var(--mid) var(--fill, 0%), #BCC4C8 var(--fill, 0%)); -webkit-background-clip: text; background-clip: text; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.xs__lead { margin: 40px 0 0; max-width: 46ch; font-size: clamp(17px, 1.4vw, 21px); line-height: 1.55; color: var(--slate); }

/* =========================================================================
   3 · SOLUCIONES (composición editorial alternada)
   ========================================================================= */
.xs--solutions { background: var(--cloud); padding-top: 0; }
.xs__head { margin-bottom: clamp(40px, 6vw, 80px); }
.xs__title { margin: 0; max-width: 18ch; font-family: var(--font-display); font-weight: 600; font-size: clamp(28px, 3.6vw, 54px); line-height: 1.08; letter-spacing: -.03em; }
.sol { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 6vw, 96px); align-items: center; padding-block: clamp(40px, 6vw, 80px); border-top: 1px solid var(--line); }
.sol--rev .sol__text { order: 2; }
.sol__title { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: clamp(24px, 2.6vw, 38px); line-height: 1.1; letter-spacing: -.025em; }
.sol__desc { margin: 18px 0 28px; max-width: 38ch; font-size: clamp(16px, 1.25vw, 19px); line-height: 1.55; color: var(--slate); }
.sol__more { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 20px; border: 0; border-radius: 999px; background: transparent; box-shadow: inset 0 0 0 1px var(--line); font: 600 14.5px/1 var(--font-text); color: var(--mid); cursor: pointer; transition: box-shadow .3s var(--ease), background-color .3s var(--ease); }
.sol__more:hover { box-shadow: inset 0 0 0 1px var(--mid); }
.sol__more i { position: relative; width: 12px; height: 12px; }
.sol__more i::before, .sol__more i::after { content: ""; position: absolute; left: 0; top: 5px; width: 12px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .35s var(--ease); }
.sol__more i::after { transform: rotate(90deg); }
.sol__more[aria-expanded="true"] { background: var(--lime); box-shadow: none; }
.sol__more[aria-expanded="true"] i::after { transform: rotate(0); }
.sol__more:focus-visible, .sol__cta:focus-visible { outline: 2px solid var(--mid); outline-offset: 3px; }
.sol__detail { margin-top: 22px; animation: sol-open .45s var(--ease-out); }
.sol__detail[hidden] { display: none; }
@keyframes sol-open { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.sol__detail ul { list-style: none; margin: 0 0 20px; padding: 0; border-top: 1px solid var(--line); }
.sol__detail li { padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; color: var(--mid); }
.sol__cta { display: inline-flex; gap: 8px; font-weight: 600; font-size: 15px; color: var(--mid); text-decoration: none; padding-bottom: 2px; background: linear-gradient(var(--lime), var(--lime)) 0 100% / 100% 3px no-repeat; }
.sol__cta:hover { background-size: 100% 100%; }

/* Maquetas de interfaz (decorativas) */
.mk { position: relative; border-radius: 22px; background: var(--mid); color: var(--cloud); aspect-ratio: 16 / 10.5; padding: clamp(16px, 2.2vw, 28px); overflow: hidden; box-shadow: 0 40px 80px -48px rgba(20, 43, 59, .7); }
.mk::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(247, 248, 244, .07); pointer-events: none; }
/* Sitio web */
.mk-bar { display: flex; align-items: center; gap: 6px; margin-bottom: 14px; }
.mk-bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(247, 248, 244, .16); }
.mk-bar span { margin-left: 12px; flex: 1; max-width: 46%; height: 18px; border-radius: 9px; background: rgba(247, 248, 244, .07); }
.mk-web { height: calc(100% - 32px); border-radius: 12px; background: var(--cloud); padding: 6% 6% 0; overflow: hidden; }
.mk-web__nav { display: flex; align-items: center; gap: 4%; }
.mk-web__nav b { width: 16%; height: 10px; border-radius: 3px; background: var(--mid); }
.mk-web__nav span { width: 9%; height: 6px; border-radius: 3px; background: #CDD3D0; }
.mk-web__nav span:first-of-type { margin-left: auto; }
.mk-web__hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 6%; align-items: center; margin-top: 8%; }
.mk-web__hero b { display: block; height: 14px; border-radius: 4px; background: var(--mid); margin-bottom: 8px; }
.mk-web__hero b + b { width: 72%; }
.mk-web__hero span { display: block; height: 6px; width: 88%; border-radius: 3px; background: #CDD3D0; margin: 14px 0 16px; }
.mk-web__hero em { display: block; width: 44%; height: 22px; border-radius: 11px; background: var(--lime); }
.mk-web__hero figure { margin: 0; aspect-ratio: 4 / 3; border-radius: 10px; background: linear-gradient(135deg, var(--mid-2), var(--mid)); position: relative; overflow: hidden; }
.mk-web__hero figure::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(247, 248, 244, .14) 45%, transparent 60%); transform: translateX(-100%); animation: mk-sheen 4.5s var(--ease) infinite 1s; }
@keyframes mk-sheen { 60%, 100% { transform: translateX(100%); } }
.mk-web__row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5%; margin-top: 8%; }
.mk-web__row span { aspect-ratio: 4 / 3; border-radius: 8px; background: var(--niebla); }
/* Automatización */
.mk--flow { display: flex; align-items: center; justify-content: space-between; gap: 0; }
.mk-node { flex: 0 0 27%; padding: 14px 14px 16px; border-radius: 14px; background: rgba(247, 248, 244, .06); box-shadow: inset 0 0 0 1px rgba(247, 248, 244, .12); }
.mk-node small { display: block; font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--steel-2); }
.mk-node b { display: block; margin-top: 8px; font-family: var(--font-display); font-weight: 500; font-size: clamp(11px, 1.05vw, 14px); line-height: 1.3; }
.mk-node--core { background: rgba(199, 244, 100, .12); box-shadow: inset 0 0 0 1px rgba(199, 244, 100, .5); }
.mk-link { position: relative; flex: 1; height: 2px; margin: 0 6px; background: rgba(247, 248, 244, .14); overflow: hidden; }
.mk-link i { position: absolute; top: 0; left: -30%; width: 30%; height: 100%; background: var(--lime); animation: mk-flow 2.6s linear infinite; }
.mk-link + .mk-node + .mk-link i { animation-delay: 1.3s; }
@keyframes mk-flow { to { left: 100%; } }
/* CRM */
.mk--crm { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4%; }
.mk-col { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 12px; border-radius: 14px; background: rgba(247, 248, 244, .05); }
.mk-col small { font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--steel-2); margin-bottom: 4px; }
.mk-card { display: block; height: 22%; min-height: 38px; border-radius: 10px; background: rgba(247, 248, 244, .1); position: relative; }
.mk-card::before { content: ""; position: absolute; left: 12px; top: 12px; width: 55%; height: 6px; border-radius: 3px; background: rgba(247, 248, 244, .35); }
.mk-card::after { content: ""; position: absolute; left: 12px; bottom: 12px; width: 32%; height: 5px; border-radius: 3px; background: rgba(247, 248, 244, .18); }
.mk-card--won { background: var(--lime); }
.mk-card--won::before, .mk-card--won::after { background: rgba(20, 43, 59, .45); }
.mk-card--ghost { background: transparent; box-shadow: inset 0 0 0 1px dashed rgba(247, 248, 244, .2); border: 1px dashed rgba(247, 248, 244, .22); }
.mk-card--ghost::before, .mk-card--ghost::after { display: none; }
.mk-card--move { animation: mk-move 5s var(--ease) infinite; z-index: 1; box-shadow: 0 0 0 1.5px var(--lime); }
@keyframes mk-move { 0%, 25% { transform: none; } 50%, 75% { transform: translate(calc(100% + 34%), -100%); } 100% { transform: none; } }
/* Herramientas */
.mk--tool { display: grid; grid-template-columns: 1.15fr 1fr; gap: 6%; align-items: stretch; }
.mk-tool__rows { display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.mk-tool__rows p { display: flex; justify-content: space-between; gap: 10px; margin: 0; padding-bottom: 12px; border-bottom: 1px solid rgba(247, 248, 244, .1); font-size: clamp(11px, 1vw, 14px); }
.mk-tool__rows span { color: var(--steel-2); }
.mk-tool__total { border: 0 !important; padding: 12px 14px !important; border-radius: 12px; background: rgba(199, 244, 100, .12); }
.mk-tool__total b { color: var(--lime); font-family: var(--font-display); font-weight: 600; }
.mk-tool__chart { display: flex; align-items: flex-end; gap: 8%; padding: 14px; border-radius: 14px; background: rgba(247, 248, 244, .05); }
.mk-tool__chart i { flex: 1; height: var(--h); border-radius: 6px 6px 2px 2px; background: rgba(247, 248, 244, .18); transform-origin: bottom; animation: mk-grow 5s var(--ease) infinite; }
.mk-tool__chart i:last-child { background: var(--lime); }
.mk-tool__chart i:nth-child(2) { animation-delay: .1s; } .mk-tool__chart i:nth-child(3) { animation-delay: .2s; } .mk-tool__chart i:nth-child(4) { animation-delay: .3s; } .mk-tool__chart i:nth-child(5) { animation-delay: .4s; } .mk-tool__chart i:nth-child(6) { animation-delay: .5s; }
@keyframes mk-grow { 0% { transform: scaleY(.2); } 25%, 80% { transform: scaleY(1); } 100% { transform: scaleY(.2); } }

/* =========================================================================
   4 · TECNOLOGÍA APLICADA (ejemplos en celulares; reutiliza los flujos)
   ========================================================================= */
.cx { background: var(--niebla); padding-top: clamp(80px, 10vw, 128px); }
.cx__intro { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 24px; }
.cx__intro .xs__label { margin: 0; }
.cx__note { margin: 0; font-size: 13.5px; color: var(--slate); }
.cx__body { grid-template-columns: 1fr !important; grid-template-areas: none !important; justify-items: center; }
.cx__head { text-align: center; }
.cx__desc { margin: 14px auto 0; max-width: 40ch; font-size: 16.5px; line-height: 1.5; color: var(--slate); }
.cx__eyebrow { font-family: var(--font-display); font-weight: 300; letter-spacing: .22em; }

/* =========================================================================
   5 · CÓMO TRABAJAMOS (línea que avanza con el scroll)
   ========================================================================= */
.xs--process { background: var(--cloud); }
.steps2 { --p: 0; position: relative; list-style: none; margin: 0; padding: 40px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 3vw, 48px); }
.steps2::before, .steps2::after { content: ""; position: absolute; left: 0; top: 0; height: 2px; border-radius: 2px; }
.steps2::before { right: 0; background: var(--line); }
.steps2::after { right: 0; transform-origin: left; transform: scaleX(var(--p)); background: var(--mid); }
.steps2 li { position: relative; }
.steps2 li::before { content: ""; position: absolute; left: 0; top: -45px; width: 12px; height: 12px; border-radius: 3px; background: var(--cloud); box-shadow: inset 0 0 0 2px var(--line); transition: background-color .4s var(--ease), box-shadow .4s var(--ease); }
.steps2 li.is-on::before { background: var(--lime); box-shadow: inset 0 0 0 2px var(--mid); }
.steps2 h3 { margin: 0 0 10px; font-family: var(--font-display); font-weight: 600; font-size: clamp(17px, 1.5vw, 22px); line-height: 1.2; letter-spacing: -.02em; }
.steps2 p { margin: 0; font-size: 15.5px; line-height: 1.55; color: var(--slate); max-width: 28ch; }

/* =========================================================================
   6 · CONTACTO Y PIE
   ========================================================================= */
.xs--contact { background: var(--mid); color: var(--cloud); }
.xs--contact .xs__label { color: var(--steel-2); }
.xc { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 7vw, 120px); align-items: start; }
.xc__title { margin: 0; max-width: 14ch; font-family: var(--font-display); font-weight: 600; font-size: clamp(30px, 3.8vw, 58px); line-height: 1.08; letter-spacing: -.03em; color: var(--cloud); }
.xc__lead { margin: 24px 0 40px; max-width: 34ch; font-size: clamp(16px, 1.3vw, 19px); color: #D3DBE0; }
.xc .contact__mail { display: flex; flex-direction: column; gap: 6px; }
.xc .contact__mail .xs__label { margin: 0; }
.xc .contact__mail a { font-family: var(--font-text); font-weight: 600; font-size: 18px; color: var(--cloud); }
.xc .form { grid-column: auto; margin: 0; }
.xf { border-top: 1px solid rgba(247, 248, 244, .08); }
.xf__top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 32px; }
.xf .footer__mark { font-size: clamp(40px, 7vw, 104px); }
.xf__nav { display: flex; flex-wrap: wrap; gap: 6px 26px; font-family: var(--font-text); font-size: 14.5px; }
.xf__nav a { color: var(--steel-2); text-decoration: none; display: inline-flex; min-height: 32px; align-items: center; }
.xf__nav a:hover { color: var(--cloud); }

/* Botones (lima con texto Midnight) */
.btn--pill { font-family: var(--font-text); font-weight: 600; }
.btn:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (max-width: 900px) {
  .sol, .xc { grid-template-columns: 1fr; }
  .sol--rev .sol__text { order: 0; }
  .steps2 { grid-template-columns: 1fr 1fr; row-gap: 56px; }
  .steps2::before, .steps2::after { display: none; }
  .steps2 li::before { top: -26px; }
  .xh__rail { display: none; }
}
@media (max-width: 640px) {
  .xh__shade { background: linear-gradient(0deg, rgba(13, 31, 44, .95) 0%, rgba(13, 31, 44, .78) 45%, rgba(13, 31, 44, .35) 100%); }
  .xh__step { top: auto; bottom: 12svh; transform: translateY(28px); }
  .xh__step.is-on { transform: none; }
  .xh__step.is-past { transform: translateY(-28px); }
  .xh__title { font-size: min(9vw, 40px); }
  .xh__phrase { font-size: min(9.4vw, 42px); }
  .xh__wm { font-size: min(13vw, 56px); }
  .xh__hint { bottom: 18px; }
  .xh__video { transform-origin: 50% 50%; }
  .xs__statement { font-size: min(8.6vw, 40px); }
  .steps2 { grid-template-columns: 1fr; row-gap: 40px; padding-left: 28px; padding-top: 0; }
  .steps2 li::before { left: -28px; top: 4px; }
  .mk--flow { flex-direction: column; aspect-ratio: auto; gap: 0; }
  .mk-node { flex: none; width: 100%; }
  .mk-link { flex: none; width: 2px; height: 26px; margin: 4px 0; }
  .mk-link i { left: 0; top: -30%; width: 100%; height: 30%; animation-name: mk-flow-v; }
  @keyframes mk-flow-v { to { top: 100%; } }
  .mk--tool { grid-template-columns: 1fr; aspect-ratio: auto; }
  .mk-tool__chart { height: 120px; }
}

/* =========================================================================
   MOVIMIENTO REDUCIDO: sin narrativa por scroll, video en pausa (imagen fija)
   ========================================================================= */
@media (prefers-reduced-motion: reduce) {
  .xh { height: auto; }
  .xh__sticky { position: relative; height: auto; min-height: 100svh; }
  .xh__step { display: none; }
  .xh__step[data-step="0"], .xh__step[data-step="5"] { display: block; position: relative; top: auto; bottom: auto; opacity: 1; transform: none; pointer-events: auto; }
  .xh__stage { display: flex; flex-direction: column; justify-content: center; gap: 56px; min-height: 100svh; padding-block: 120px 80px; }
  .xh__video { display: none; }
  .xh__rail, .xh__hint { display: none; }
  .xs__statement .fill { --fill: 100%; }
  .mk *, .mk *::before, .mk *::after { animation: none !important; }
}

/* Ajustes: el sistema del video está al 66 % del ancho; sin guiones automáticos */
.xh__video { object-position: 50% 50%; transform-origin: 66% 50%; }
body, .xh__sub, .xs__lead, .sol__desc, .steps2 p, .xc__lead, .cx__desc { -webkit-hyphens: manual; hyphens: manual; }
@media (max-width: 640px) { .xh__video { object-position: 66% 40%; } }
/* Texto siempre alineado a la izquierda (sin justificar) */
.xh p, .xs p, .sol p, .steps2 p, .xc p, .cx__desc, .sol__detail li { text-align: left !important; }
.cx__desc { text-align: center !important; }
.cx__intro { margin-bottom: clamp(28px, 4vw, 48px); }
.cx { padding-bottom: clamp(48px, 6vw, 80px); }
/* Pantallas muy angostas: la cabecera cabe completa (la etiqueta "Menú" sigue disponible para lectores de pantalla) */
@media (max-width: 380px) {
  .header__in { gap: 14px; }
  .menu-btn__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media (max-width: 640px) and (max-height: 720px) { .xh__hint { display: none; } }

/* ---------- Fluidez (2026-10-19) ----------
   Las frases del hero siguen el scroll de forma continua: opacidad y desplazamiento los calcula main.js
   (--sy: 1 = entrando desde abajo, 0 = en su sitio, -1 = saliendo hacia arriba). Sin transiciones por tiempo. */
@media (prefers-reduced-motion: no-preference) {
  .js .xh__step { transition: none; opacity: 0; transform: translateY(calc(-50% + var(--sy, 1) * 36px)); will-change: opacity, transform; }
  .js .xh__step.is-on, .js .xh__step.is-past { transform: translateY(calc(-50% + var(--sy, 0) * 36px)); }
  .xh__rail span { will-change: transform; }
}
@media (prefers-reduced-motion: no-preference) and (max-width: 640px) {
  .js .xh__step, .js .xh__step.is-on, .js .xh__step.is-past { transform: translateY(calc(var(--sy, 0) * 28px)); }
}
/* "Conocer más": abre y cierra con altura animada, sin empujar el contenido de golpe */
.sol__detail { display: grid; grid-template-rows: 0fr; margin-top: 0; opacity: 0; animation: none; transition: grid-template-rows .5s var(--ease-out), opacity .35s var(--ease), margin-top .5s var(--ease-out); }
.sol__detail-in { min-height: 0; overflow: hidden; }
.sol__detail.is-open { grid-template-rows: 1fr; opacity: 1; margin-top: 22px; }
@media (prefers-reduced-motion: reduce) { .sol__detail { transition: none; } }
