/* =========================================================================
   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, .header.is-over .lang a { color: var(--cloud); }
.header.is-over .lang button[aria-pressed="true"], .header.is-over .lang a[aria-current="page"] { color: var(--cloud); }
.header.is-over .lang button:not([aria-pressed="true"]), .header.is-over .lang a:not([aria-current="page"]) { 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; }
/* alturas de las barras (antes en atributos style; aquí para una CSP sin estilos en línea) */
.mk-tool__chart i:nth-child(1) { --h: 38%; } .mk-tool__chart i:nth-child(2) { --h: 56%; } .mk-tool__chart i:nth-child(3) { --h: 47%; }
.mk-tool__chart i:nth-child(4) { --h: 72%; } .mk-tool__chart i:nth-child(5) { --h: 64%; } .mk-tool__chart i:nth-child(6) { --h: 88%; }
.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; } }

/* Foco visible con contraste suficiente (WCAG 2.2, 3:1 frente al fondo): Midnight sobre fondos claros y
   lima sobre fondos oscuros. Solo se ve al navegar con teclado. */
:focus-visible, .btn:focus-visible { outline-color: var(--mid); }
.xh :focus-visible, .xs--contact :focus-visible, .footer :focus-visible, .legal-bar :focus-visible,
.header.is-over :focus-visible, .consent :focus-visible, .intro :focus-visible { outline-color: var(--lime); }
.float-cta:focus-visible { outline-color: var(--lime); box-shadow: 0 0 0 5px var(--mid); }

/* ---------- Hero con dos momentos (2026-10-27) ----------
   Presentación (titular y botones) y cierre de marca (WONTEX). Un solo desplazamiento pasa de uno al otro:
   el tramo del hero equivale a una pantalla más de scroll. */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.xh { height: 200svh; }
@media (prefers-reduced-motion: reduce) {
  .xh { height: auto; }
  .xh__step[data-step="1"] { display: block; position: relative; top: auto; bottom: auto; opacity: 1; transform: none; pointer-events: auto; }
}
/* Enfoque: tres frases cortas, una por línea en escritorio */
.xs__statement { max-width: 24ch; font-size: clamp(28px, 4vw, 60px); line-height: 1.12; }
@media (max-width: 640px) { .xs__statement { font-size: min(7.4vw, 34px); } }
/* CRM: canales unificados y recordatorio sobre el embudo de ventas */
.mk--crm { grid-template-rows: auto 1fr; row-gap: 12px; aspect-ratio: 16 / 11.5; }
.mk-crm__inbox { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.mk-chip { padding: 4px 10px; border-radius: 999px; background: rgba(247, 248, 244, .08); font-size: 10.5px; letter-spacing: .02em; color: var(--cloud); }
.mk-crm__note { margin-left: auto; padding: 4px 10px; border-radius: 999px; background: var(--lime); color: var(--mid); font-size: 10.5px; font-style: normal; font-weight: 600; }
@media (max-width: 640px) { .mk-crm__note { margin-left: 0; } .mk--crm { aspect-ratio: auto; } .mk--crm .mk-col { min-height: 150px; } }

/* ---------- Tecnología aplicada · PC con el sitio real (propuesta para un hotel) ----------
   El sitio se carga dentro de un marco solo cuando la sección se acerca a la pantalla; main.js lo escala para que
   se vea como en un computador de 1440 px. */
.cx__pc { position: relative; z-index: 1; width: min(760px, 92vw); display: flex; flex-direction: column; align-items: center; transition: opacity .7s var(--ease), transform .7s var(--ease); }
.cx__slide:not(.is-active) .cx__pc { opacity: .4; transform: scale(.94); }
/* Ventana de navegador (contorno de la página): barra clara con los tres botones y la dirección real */
.pc__monitor { width: 100%; overflow: hidden; border-radius: 14px; background: #fff; border: 1px solid rgba(20, 43, 59, .12); box-shadow: 0 1px 2px rgba(20, 43, 59, .08), 0 30px 70px -30px rgba(20, 43, 59, .45); }
.pc__bar { display: grid; grid-template-columns: 1fr minmax(0, 3fr) 1fr; align-items: center; gap: 10px; padding: 10px 14px; background: #F1F2EE; border-bottom: 1px solid #E2E5E0; }
.pc__dots { display: flex; gap: 7px; }
.pc__dots i { width: 11px; height: 11px; border-radius: 50%; background: #FF5F57; }
.pc__dots i:nth-child(2) { background: #FEBC2E; }
.pc__dots i:nth-child(3) { background: #28C840; }
.pc__url { display: flex; align-items: center; justify-content: center; gap: 6px; min-width: 0; padding: 5px 12px; border-radius: 8px; background: #fff; border: 1px solid #E2E5E0; color: var(--slate); font-family: var(--font-text); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc__url svg { flex: none; width: 12px; height: 12px; fill: none; stroke: var(--slate); stroke-width: 2; stroke-linecap: round; }
.pc__screen { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #fff; }
.pc__frame { position: absolute; left: 0; top: 0; width: 1440px; height: 900px; border: 0; transform-origin: 0 0; }
.cx__open { margin: 14px 0 0; text-align: center !important; }
.cx__open a { font-family: var(--font-text); font-weight: 600; font-size: 15px; color: var(--mid); text-decoration: underline; text-underline-offset: 4px; }
.cx__open a:hover { color: var(--slate); }
@media (max-width: 640px) { .pc__monitor { border-radius: 10px; } .pc__bar { grid-template-columns: auto minmax(0, 1fr); padding: 7px 10px; } .pc__sp { display: none; } .pc__dots i { width: 8px; height: 8px; } .pc__url { font-size: 10px; padding: 3px 8px; } }

/* ---------- Cómo trabajamos: línea de tiempo con los textos nuevos (2026-10-27) ---------- */
.xs__intro { margin: 22px 0 0; max-width: 62ch; font-size: clamp(17px, 1.35vw, 20px); line-height: 1.55; color: var(--slate); -webkit-hyphens: manual; hyphens: manual; }
.steps2 p { max-width: 30ch; }

/* ---------- Contacto: distribución y estética (2026-10-26) ----------
   Texto a la izquierda (fijo al desplazarse en escritorio) y formulario en una tarjeta a la derecha. */
@media (min-width: 901px) { .xc { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 96px); align-items: start; } }
.contact .xc .form { grid-column: auto; grid-row: auto; }
.xc__intro { position: sticky; top: calc(var(--header-h, 72px) + 32px); }
.xc__lead { margin-bottom: 36px; }
.xc__mail { flex-direction: row !important; align-items: center; gap: 16px !important; max-width: 380px; padding: 18px 20px; border-radius: 18px; background: rgba(247, 248, 244, .05); border: 1px solid rgba(247, 248, 244, .1); }
.xc__mail-ic { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--lime); }
.xc__mail-ic svg { width: 22px; height: 22px; fill: none; stroke: var(--mid); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.xc__mail-tx { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.xc .contact__mail .xc__mail-tx a { font-size: 17px; overflow-wrap: anywhere; }

.xc .form { gap: 22px 18px; padding: clamp(24px, 3.2vw, 44px); border-radius: 28px; background: #1C3A4F; border: 1px solid rgba(247, 248, 244, .08); box-shadow: 0 40px 80px -48px rgba(0, 0, 0, .6); }
.xc .field label, .xc .interest legend { font-family: var(--font-text); font-weight: 600; font-size: 13.5px; letter-spacing: .01em; color: #C9D2D8; }
.xc .field input, .xc .field textarea { padding: 13px 16px; border: 1px solid rgba(247, 248, 244, .14); border-radius: 12px; background: rgba(13, 31, 44, .45); font-size: 17px; transition: border-color .25s var(--ease), background-color .25s var(--ease); }
.xc .field textarea { min-height: 132px; resize: vertical; }
.xc .field input:hover, .xc .field textarea:hover { border-color: rgba(247, 248, 244, .28); }
.xc .field input:focus, .xc .field textarea:focus { border-color: var(--lime); background: rgba(13, 31, 44, .7); }
.xc .field.is-invalid input, .xc .field.is-invalid textarea { border-color: #FFB3A1; }
.xc .field .err { font-family: var(--font-text); font-size: 13.5px; color: #FFB3A1; }
.xc .interest__opts span { font-family: var(--font-text); font-weight: 500; font-size: 14.5px; padding: 9px 15px; }

.xc__consents { grid-column: 1 / -1; display: grid; gap: 12px; padding-top: 22px; border-top: 1px solid rgba(247, 248, 244, .1); }
.xc__consents .field--consent { margin-top: 0; }
.xc .consent-check { font-family: var(--font-text); font-size: 14.5px; line-height: 1.5; color: #C9D2D8; }
.xc .field--consent.is-invalid .consent-check { color: var(--cloud); }
.xc .form__foot { margin-top: 4px; }
.xc .form__foot .btn { min-width: 220px; justify-content: center; }

@media (max-width: 900px) {
  .xc__intro { position: static; }
}
@media (max-width: 640px) {
  .xc .form { border-radius: 22px; }
  .xc .form__foot .btn { width: 100%; }
}
.xc .field label .opt { color: #A3AFB7; font-weight: 500; }

/* Hero interactivo (js/hero-live.js): en computadores la animación se dibuja en vivo y reemplaza al video */
.xh__live { filter: saturate(1.65) contrast(1.12) brightness(1.1); }
.xh__media.is-live .xh__video:not(.xh__live) { display: none; }

/* ---------- CRM · experiencia del cliente (animación automática, no interactiva) ----------
   main.js recorre 5 escenas en bucle (20 s): chat en el sitio → WhatsApp con enlace → agenda →
   confirmación y recordatorio → reseña. Los nombres son ficticios. */
.mk--journey { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: clamp(16px, 3vw, 40px); aspect-ratio: 16 / 11; }
.cj-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: cj; }
.cj-steps li { counter-increment: cj; display: grid; grid-template-columns: 26px 1fr; align-items: center; gap: 10px; font-family: var(--font-text); font-size: clamp(12.5px, 1.05vw, 14.5px); line-height: 1.3; color: rgba(247, 248, 244, .45); transition: color .4s var(--ease); }
.cj-steps li::before { content: counter(cj); display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: rgba(247, 248, 244, .08); font-family: var(--font-display); font-size: 11.5px; font-weight: 600; color: rgba(247, 248, 244, .6); transition: background-color .4s var(--ease), color .4s var(--ease); }
.cj-steps li.is-on { color: var(--cloud); }
.cj-steps li.is-on::before { background: var(--lime); color: var(--mid); }
.cj-phone { height: 100%; max-height: 420px; aspect-ratio: 9 / 18.6; padding: 7px; border-radius: 30px; background: #0B1A26; box-shadow: inset 0 0 0 1.5px #2B313A, 0 30px 60px -28px rgba(0, 0, 0, .7); }
.cj-screen { position: relative; height: 100%; overflow: hidden; border-radius: 24px; background: #F4F5F1; font-family: var(--font-text); color: #142B3B; font-size: 10.5px; line-height: 1.35; }
.cj-s { position: absolute; inset: 0; display: flex; flex-direction: column; opacity: 0; transform: translateY(10px); transition: opacity .45s var(--ease), transform .45s var(--ease); }
.cj-s.on { opacity: 1; transform: none; }
.cj-s.gone { opacity: 0; transform: translateY(-10px); }
.cj-pop { opacity: 0; transform: translateY(6px) scale(.98); transition: opacity .35s var(--ease), transform .35s var(--ease); }
.cj-pop.on { opacity: 1; transform: none; }
.cj-av { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #142B3B; color: #fff; font-size: 9px; font-weight: 600; }
.cj-av--wa { background: #1F8F5F; }
.cj-bub { display: block; max-width: 86%; padding: 7px 9px; border-radius: 12px; }
.cj-bub--in { background: #fff; box-shadow: 0 1px 2px rgba(20, 43, 59, .1); border-top-left-radius: 4px; }
.cj-bub--out { align-self: flex-end; background: #D9FDD3; border-top-right-radius: 4px; }
/* 1 · sitio web con chat */
.cj-site { display: flex; align-items: center; justify-content: space-between; padding: 26px 12px 8px; background: #fff; }
.cj-site b { font-size: 11px; }
.cj-site__nav { display: flex; gap: 3px; } .cj-site__nav i { width: 12px; height: 3px; border-radius: 2px; background: #C9D0D4; }
.cj-site__hero { display: grid; gap: 6px; padding: 14px 12px 70px; background: linear-gradient(160deg, #E4F1F5, #F4F5F1); }
.cj-site__hero span { height: 7px; width: 80%; border-radius: 4px; background: #B8C6CE; } .cj-site__hero span:nth-child(2) { width: 55%; }
.cj-site__hero .cj-site__btn { width: 38%; height: 14px; border-radius: 8px; background: #142B3B; margin-top: 4px; }
.cj-chat { position: absolute; left: 8px; right: 8px; bottom: 10px; display: flex; flex-direction: column; border-radius: 16px; background: #fff; box-shadow: 0 14px 30px -12px rgba(20, 43, 59, .45); overflow: hidden; }
.cj-chat__top { display: flex; align-items: center; gap: 7px; padding: 8px 10px; background: #142B3B; color: #fff; }
.cj-chat__top small, .cj-wa small { display: block; font-size: 8.5px; opacity: .75; }
.cj-chat__body { display: flex; flex-direction: column; gap: 6px; padding: 9px; min-height: 92px; background: #F4F5F1; }
.cj-chat__in { display: flex; align-items: center; gap: 6px; margin: 7px; padding: 6px 8px; border-radius: 10px; border: 1px solid #DDE1DB; min-height: 26px; }
.cj-typed { display: inline-block; max-width: 0; overflow: hidden; white-space: nowrap; color: #142B3B; transition: max-width 1.2s steps(34); }
.cj-typed.on { max-width: 100%; }
.cj-typed.gone { max-width: 0; transition: none; }
.cj-send { margin-left: auto; flex: none; width: 18px; height: 18px; border-radius: 50%; background: var(--lime); transition: transform .2s; }
.cj-send.tap, .cj-link.tap, .cj-btn.tap { transform: scale(.9); }
/* 2 y 5 · WhatsApp */
.cj-wa { display: flex; align-items: center; gap: 7px; padding: 26px 10px 8px; background: #1F8F5F; color: #fff; }
.cj-wa__body { flex: 1; display: flex; flex-direction: column; gap: 8px; padding: 12px 9px; background: #ECE5DD; }
.cj-link { display: block; margin-top: 7px; padding: 6px 8px; border-radius: 8px; background: #E9F7EF; color: #1F8F5F; font-style: normal; font-weight: 600; text-align: center; transition: transform .2s; }
/* 3 · agenda */
.cj-s3 { padding: 26px 12px 12px; gap: 10px; }
.cj-cal__h small { display: block; font-size: 8.5px; color: #56656F; } .cj-cal__h b { font-size: 12.5px; }
.cj-cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cj-cal i { aspect-ratio: 1; border-radius: 6px; background: #E6EAE3; font-style: normal; font-size: 8.5px; display: grid; place-items: center; }
.cj-day.on, .cj-slot.on { background: #142B3B; color: #fff; }
.cj-slots { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; }
.cj-slots span { padding: 6px 0; border-radius: 8px; border: 1px solid #DDE1DB; text-align: center; background: #fff; transition: background-color .3s, color .3s; }
.cj-btn { margin-top: auto; padding: 8px; border-radius: 10px; background: #C7F464; color: #142B3B; font-weight: 600; text-align: center; transition: transform .2s; }
/* 4 · confirmación y recordatorio */
.cj-s4 { padding: 30px 9px 12px; gap: 10px; background: linear-gradient(180deg, #DDE6EB, #F4F5F1); }
.cj-mail { display: grid; gap: 3px; padding: 10px; border-radius: 12px; background: #fff; box-shadow: 0 1px 3px rgba(20, 43, 59, .12); }
.cj-mail small { font-size: 8.5px; color: #56656F; } .cj-mail b { font-size: 12px; }
.cj-mail em { margin-top: 5px; font-style: normal; font-weight: 600; color: #1F6FA8; }
.cj-push { display: flex; gap: 7px; align-items: center; padding: 9px; border-radius: 14px; background: rgba(255, 255, 255, .92); box-shadow: 0 10px 24px -12px rgba(20, 43, 59, .5); }
.cj-push small { display: block; color: #56656F; }
/* 5 · reseña */
.cj-stars { display: flex; gap: 4px; padding: 7px 9px; border-radius: 12px; background: #fff; align-self: flex-start; }
.cj-stars i { width: 15px; height: 15px; background: #DDE1DB; clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); transition: background-color .25s; }
.cj-stars i.on { background: #F5B301; }
.cj-thanks { align-self: center; padding: 5px 10px; border-radius: 999px; background: rgba(20, 43, 59, .08); font-size: 9.5px; font-weight: 600; }
@media (max-width: 640px) {
  .mk--journey { grid-template-columns: 1fr; aspect-ratio: auto; justify-items: center; }
  .cj-phone { height: 400px; }
  .cj-steps { justify-self: stretch; }
}
/* Movimiento reducido: escena de la agenda fija y sin transiciones */
@media (prefers-reduced-motion: reduce) {
  .cj-s, .cj-pop, .cj-typed { transition: none !important; }
}
.cj-month { margin: 0; font-weight: 600; font-size: 10px; color: #56656F; }
.cj-cal { gap: 3px; }
.cj-cal i { font-size: 8.5px; color: #142B3B; background: #fff; }
.cj-cal i.cj-wd { aspect-ratio: auto; background: none; font-weight: 600; color: #82919B; }
.cj-cal i.cj-off { background: transparent; color: #B4BEC4; }
.cj-s3 { gap: 8px; }
.cj-clock { display: grid; justify-items: center; margin: 4px 0 6px; color: #142B3B; }
.cj-clock b { font-family: var(--font-display); font-size: 30px; font-weight: 600; letter-spacing: -.02em; line-height: 1.1; }
.cj-clock small { font-size: 9px; color: #56656F; }
