/* ==========================================================================
   Wontex · estilos del sitio
   Tokens según el manual de identidad (identidad-visual/manual-de-marca.html)
   ========================================================================== */

:root {
  /* Color · principales */
  --noche: #142B3B;
  --cobre: #C7F464;
  --marfil: #F7F8F4;
  --piedra: #A3AFB7;
  /* Color · apoyo */
  --lino: #ECEEE8;
  --arena: #DDE1DB;
  --pizarra: #56656F;
  --cobre-hondo: #B4E34A;
  --cobre-claro: #C7F464;
  --noche-2: #1C3A4F;
  --noche-line: #2A4558;

  /* Tipografía */
  --font-display: "Unbounded", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-text: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;

  /* Espaciado (base 8) */
  --s-1: 4px; --s-2: 8px; --s-3: 16px; --s-4: 24px;
  --s-5: 40px; --s-6: 64px; --s-7: 104px; --s-8: 168px;

  /* Forma y movimiento */
  --radius: 2px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --t-fast: 200ms; --t-base: 400ms; --t-slow: 700ms;

  --max: 1360px;
  --gutter: max(20px, 5vw);
  --edge: calc(max((100vw - var(--max)) / 2, 0px) + var(--gutter));
  --header-h: 72px;
  --section-y: clamp(88px, 11vw, var(--s-8));
  --shadow-lg: 0 1px 0 rgba(20, 43, 59, .04), 0 40px 80px -40px rgba(20, 43, 59, .45);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--marfil); color: var(--noche);
  font-family: var(--font-text); font-size: 18px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.menu-open { overflow: hidden; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 650; text-wrap: balance; }
p { margin: 0; }
ul, ol, dl, dd { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
::selection { background: var(--cobre); color: var(--marfil); }
:focus-visible { outline: 2px solid var(--cobre); outline-offset: 3px; border-radius: 1px; }

.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--noche); color: var(--marfil); padding: 10px 16px; font-family: var(--font-display); font-size: 14px; transition: top var(--t-fast) var(--ease); }
.skip:focus { top: 16px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }

/* ---------- Tipografía ---------- */
.eyebrow { font-family: var(--font-display); font-size: 12.5px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--pizarra); }
.lead { font-size: clamp(19px, 1.6vw, 22px); line-height: 1.45; max-width: 40ch; }

.dot { font-style: normal; color: var(--cobre); }

/* ---------- Enlaces y botones ---------- */
.link-plain { font-family: var(--font-display); font-size: 15px; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; padding-bottom: 2px; transition: background-size var(--t-base) var(--ease); }
.link-plain:hover { background-size: 100% 1px; }
.arr { display: inline-block; transition: transform var(--t-base) var(--ease); }

.btn {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; gap: 18px;
  font-family: var(--font-display); font-size: 15.5px; font-weight: 500;
  background: var(--noche); color: var(--marfil);
  border: 0; border-radius: var(--radius); padding: 16px 24px; cursor: pointer;
  transition: color var(--t-base) var(--ease);
}
/* Relleno cobre que sube desde abajo */
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--cobre-hondo); transform: translateY(101%); transition: transform var(--t-base) var(--ease); }
.btn:hover::before { transform: none; }
.btn:hover .arr { transform: translateX(6px); }
.btn--small { padding: 11px 16px; font-size: 14px; }

.btn[disabled] { opacity: .6; cursor: progress; }

.circle-btn { width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--noche); background: transparent; cursor: pointer; font-family: var(--font-display); font-size: 18px; transition: background-color var(--t-base) var(--ease), color var(--t-base) var(--ease), opacity var(--t-base) var(--ease); }
.circle-btn:hover { background: var(--noche); color: var(--marfil); }
.circle-btn[disabled] { opacity: .3; pointer-events: none; }

/* ---------- Header ---------- */
.header { position: fixed; inset: 0 0 auto 0; z-index: 50; padding-top: env(safe-area-inset-top, 0px); border-bottom: 1px solid transparent; transition: transform var(--t-base) var(--ease), background-color var(--t-base) var(--ease), border-color var(--t-base) var(--ease); }
.header.is-scrolled { background: rgba(255, 255, 255, .9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom-color: rgba(20, 43, 59, .08); }
.header.is-hidden { transform: translateY(-100%); }
.header__in { height: var(--header-h); display: flex; align-items: center; gap: 32px; }
.logo { font-family: var(--font-display); font-weight: 700; font-size: 21px; letter-spacing: -.05em; white-space: nowrap; }
.logo i { font-style: normal; color: var(--cobre); display: inline-block; transition: transform var(--t-base) var(--ease); }
.logo:hover i { transform: translateY(-3px); }
.nav { display: flex; gap: 28px; margin-left: auto; font-family: var(--font-display); font-size: 15px; }
.nav a { color: var(--pizarra); position: relative; transition: color var(--t-fast) var(--ease); }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: var(--noche); transform: scaleX(0); transform-origin: left; transition: transform var(--t-base) var(--ease); }
.nav a:hover, .nav a.is-active { color: var(--noche); }
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); }

.menu-btn { display: none; margin-left: auto; background: none; border: 0; padding: 8px 0; cursor: pointer; font-family: var(--font-display); font-size: 15px; color: var(--noche); align-items: center; gap: 10px; }
.menu-btn__icon { width: 20px; height: 8px; position: relative; }
.menu-btn__icon::before, .menu-btn__icon::after { content: ""; position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; transition: transform var(--t-base) var(--ease), top var(--t-base) var(--ease); }
.menu-btn__icon::before { top: 0; }
.menu-btn__icon::after { top: 6.5px; }
.menu-btn[aria-expanded="true"] .menu-btn__icon::before { top: 3.25px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-btn__icon::after { top: 3.25px; transform: rotate(-45deg); }

.mobile-nav { position: fixed; inset: 0; z-index: 40; background: var(--marfil); padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0px) + 32px); }
.mobile-nav__in { display: flex; flex-direction: column; }
.mobile-nav a { font-family: var(--font-display); font-weight: 650; font-size: clamp(34px, 9vw, 52px); letter-spacing: -.04em; line-height: 1.2; padding-block: 10px; border-bottom: 1px solid var(--arena); }
.mobile-nav.is-open a { animation: rise-in var(--t-slow) var(--ease) both; }
.mobile-nav.is-open a:nth-child(2) { animation-delay: 50ms; }
.mobile-nav.is-open a:nth-child(3) { animation-delay: 100ms; }
.mobile-nav.is-open a:nth-child(4) { animation-delay: 150ms; }
.mobile-nav.is-open a:nth-child(5) { animation-delay: 200ms; }

/* ---------- Secciones ---------- */
.section { padding-block: var(--section-y); position: relative; }

.parallax img { height: 118%; margin-top: -9%; transform: translate3d(0, var(--py, 0px), 0) scale(var(--ps, 1)); will-change: transform; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: min(100svh, 1000px); padding-top: calc(var(--header-h) + clamp(40px, 7vw, 96px)); padding-bottom: clamp(64px, 8vw, 112px); display: flex; flex-direction: column; justify-content: center; }
.hero__title { --hero-max: 11.5em; }
.hero__title { font-size: clamp(46px, 5.9vw, 100px); font-weight: 650; line-height: .94; letter-spacing: -.052em; max-width: 11.5em; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: .07em; margin-bottom: -.07em; }
.hero__title .line > span { display: inline-block; }

/* ---------- Método: tarjetas que se apilan ---------- */

.step {
  position: sticky; top: calc(var(--header-h) + 40px + var(--i) * 26px);
  display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(20px, 2.6vw, 36px); align-items: stretch;
  min-height: clamp(380px, 46vh, 480px); padding: clamp(20px, 2.4vw, 32px);
  background: var(--lino); border: 1px solid rgba(20, 43, 59, .06); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); transform-origin: 50% 0;
  transition: transform var(--t-slow) var(--ease), filter var(--t-slow) var(--ease);
}
.step:nth-child(even) { background: #DFE4EC; }

.step h3 { font-size: clamp(30px, 3vw, 46px); letter-spacing: -.04em; line-height: 1.02; }
.step p { font-size: 17px; max-width: 40ch; }
.contact__mail { display: flex; flex-direction: column; gap: 8px; }
.contact__mail a { font-family: var(--font-display); font-size: 19px; color: var(--marfil); background: linear-gradient(var(--cobre-claro), var(--cobre-claro)) 0 100% / 0 1px no-repeat; padding-bottom: 3px; transition: background-size var(--t-base) var(--ease); width: fit-content; }
.contact__mail a:hover { background-size: 100% 1px; }
.form { grid-column: 8 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 28px 24px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label { font-family: var(--font-display); font-size: 13px; letter-spacing: .04em; color: var(--piedra); }
.field .opt { color: #8A9096; }
.field input, .field textarea { font: inherit; font-size: 17px; color: var(--marfil); background: transparent; border: 0; border-bottom: 1px solid var(--noche-line); border-radius: 0; padding: 8px 0 10px; transition: border-color var(--t-base) var(--ease); }
.field textarea { resize: vertical; min-height: 110px; }
.field input:hover, .field textarea:hover { border-bottom-color: var(--pizarra); }
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--cobre-claro); }
.field.is-invalid input, .field.is-invalid textarea { border-bottom-color: #6A8EE8; }
.field .err { font-family: var(--font-display); font-size: 13px; color: #8CA8F0; }
.form__foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 8px; }
.form__status { font-family: var(--font-display); font-size: 14.5px; color: var(--piedra); }
.form__status.is-ok { color: var(--cobre-claro); }

/* ---------- Footer ---------- */
.footer { padding-block: clamp(56px, 8vw, 104px) 40px; overflow: hidden; }
.footer__mark { font-family: var(--font-display); font-weight: 700; font-size: clamp(56px, 14.2vw, 214px); letter-spacing: -.055em; line-height: .85; white-space: nowrap; }
.footer__mark i { font-style: normal; color: var(--cobre); }
.footer__row { margin-top: 40px; padding-top: 18px; border-top: 1px solid var(--noche); display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; font-family: var(--font-display); font-size: 14px; color: var(--pizarra); }
.footer__links { display: flex; gap: 24px; }
.footer__links a:hover { color: var(--noche); }

/* Texto gigante que se desplaza con el scroll */

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.interest { border: 0; padding: 0; margin: 0; }
.interest legend { font-family: var(--font-display); font-size: 13px; letter-spacing: .04em; color: var(--piedra); margin-bottom: 12px; padding: 0; }
.interest__opts { display: flex; flex-wrap: wrap; gap: 8px; }
.interest__opts label { cursor: pointer; }
.interest__opts input { position: absolute; opacity: 0; pointer-events: none; }
.interest__opts span { display: inline-block; padding: 9px 14px; border: 1px solid var(--noche-line); border-radius: 999px; font-family: var(--font-display); font-size: 14px; color: var(--arena); transition: background-color var(--t-base) var(--ease), border-color var(--t-base) var(--ease), color var(--t-base) var(--ease); }
.interest__opts label:hover span { border-color: var(--piedra); }
.interest__opts input:checked + span { background: var(--cobre-claro); border-color: var(--cobre-claro); color: var(--noche); }
.interest__opts input:focus-visible + span { outline: 2px solid var(--cobre-claro); outline-offset: 2px; }

.progress { position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 60; pointer-events: none; }
.progress span { display: block; height: 100%; background: var(--cobre); transform-origin: 0 50%; transform: scaleX(0); }

.float-cta { position: fixed; right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 45; display: inline-flex; align-items: center; gap: 10px; padding: 14px 20px 14px 16px; border-radius: 999px; background: var(--noche); color: var(--marfil); font-family: var(--font-display); font-size: 15px; box-shadow: 0 18px 40px -16px rgba(20, 43, 59, .55), 0 0 0 1px rgba(255, 255, 255, .18); opacity: 0; transform: translateY(20px) scale(.96); pointer-events: none; transition: opacity var(--t-base) var(--ease), transform var(--t-base) var(--ease), background-color var(--t-base) var(--ease); }
.float-cta.is-on { opacity: 1; transform: none; pointer-events: auto; }
.float-cta:hover { background: var(--cobre-hondo); }
.float-cta svg { flex-shrink: 0; }
.float-cta::before { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 1px solid var(--cobre); opacity: 0; animation: ping 2.8s var(--ease) infinite 1s; }
@keyframes ping { 0% { opacity: .7; transform: scale(1); } 70%, 100% { opacity: 0; transform: scale(1.18, 1.35); } }

/* Titulares que aparecen palabra por palabra */
.js [data-split] .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.js [data-split] .w__in { display: inline-block; transform: translateY(108%); transition: transform .9s var(--ease); transition-delay: calc(var(--wi, 0) * 45ms); }
.js [data-split].is-in .w__in { transform: none; }
.js [data-split][data-reveal] { opacity: 1; transform: none; }

/* Listas que aparecen en cascada */
.js [data-stagger] > * { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--si, 0) * 90ms); }
.js [data-stagger].is-in > * { opacity: 1; transform: none; }

.btn { will-change: transform; }

/* ---------- Textos justificados (con separación silábica en español para evitar espacios grandes) ---------- */
main p {
  text-align: justify; text-justify: inter-word;
  -webkit-hyphens: auto; hyphens: auto; hyphenate-limit-chars: 7 3 3;
}
/* Etiquetas, datos cortos y líneas sueltas se mantienen alineados a la izquierda */
main p.eyebrow, .contact__mail, .form__status, .footer__mark {
  text-align: start; -webkit-hyphens: manual; hyphens: manual;
}

@keyframes float-y { 50% { transform: translateY(-10px); } }

.btn--pill { border-radius: 999px; padding: 17px 32px; background: linear-gradient(120deg, var(--cobre) 0%, var(--cobre-hondo) 100%); color: var(--marfil); box-shadow: 0 16px 32px -16px rgba(180, 227, 74, .75); }
.btn--pill::before { background: var(--noche); }
.btn--pill:hover { color: var(--marfil); }
.btn--small.btn--pill { padding: 11px 20px; }

/* ---------- Selector de idioma ---------- */
.lang { display: inline-flex; align-items: center; border: 1px solid var(--arena); border-radius: 999px; padding: 3px; font-family: var(--font-display); font-size: 12.5px; font-weight: 600; letter-spacing: .04em; }
.lang button { border: 0; background: none; cursor: pointer; padding: 5px 10px; border-radius: 999px; color: var(--pizarra); transition: background-color .3s var(--ease), color .3s var(--ease); }
.lang button[aria-pressed="true"] { background: var(--noche); color: var(--marfil); }
.lang button:not([aria-pressed="true"]):hover { color: var(--noche); }
.mobile-nav .lang { margin-top: 28px; align-self: flex-start; font-size: 15px; }

/* ---------- Animación ---------- */

/* Entrada: "Wontex" aparece y por último cae el punto */
.intro {
  display: none; place-items: center; position: fixed; inset: 0; z-index: 200;
  background: var(--marfil); cursor: pointer;
  transition: transform .6s cubic-bezier(.77, 0, .18, 1);
}
.intro-playing .intro, .intro.is-done { display: grid; }
.intro.is-done { transform: translateY(-100%); pointer-events: none; }
@keyframes intro-in { from { transform: translateY(105%); } to { transform: none; } }
@keyframes intro-fall {
  0%   { transform: translateY(-110%); animation-timing-function: cubic-bezier(.55, 0, 1, .45); }
  65%  { transform: translateY(0); animation-timing-function: cubic-bezier(0, .55, .45, 1); }
  82%  { transform: translateY(-.06em); animation-timing-function: cubic-bezier(.55, 0, 1, .45); }
  100% { transform: translateY(0); }
}
@keyframes intro-fall-dot {
  0%   { transform: translateY(-110%); animation-timing-function: cubic-bezier(.55, 0, 1, .45); }
  60%  { transform: translateY(0) scale(1.12, .85); animation-timing-function: cubic-bezier(0, .55, .45, 1); }
  80%  { transform: translateY(-.12em); animation-timing-function: cubic-bezier(.55, 0, 1, .45); }
  100% { transform: none; }
}
/* Mientras dura la entrada: sin scroll y con las animaciones del inicio en pausa */
.intro-playing body { overflow: hidden; }
.intro-playing .hero__title .line > span, .intro-playing [data-anim] { animation-play-state: paused; }

@keyframes rise-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes line-up { from { transform: translateY(105%); } to { transform: none; } }

@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes media-in { from { clip-path: inset(0 0 0 100%); } to { clip-path: inset(0 0 0 0); } }

.js .hero__title .line > span { animation: line-up 1s var(--ease) both; }
.js .hero__title .line:nth-child(2) > span { animation-delay: 80ms; }
.js .hero__title .line:nth-child(3) > span { animation-delay: 160ms; }
.js .hero__title .line:nth-child(4) > span { animation-delay: 240ms; }
.js [data-anim] { animation: rise-in var(--t-slow) var(--ease) both; animation-delay: 460ms; }

.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity var(--t-slow) var(--ease), transform var(--t-slow) var(--ease); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .hero__title { --hero-max: 9.6em; }
  .hero__title { font-size: clamp(46px, 6.2vw, 100px); max-width: 9.6em; }
  .step { grid-template-columns: 1fr; }
  
}

@media (max-width: 900px) {
  :root { --header-h: 64px; }
  body { font-size: 17px; }
  .nav, .header__cta { display: none; }
  .menu-btn { display: inline-flex; }

  .hero { min-height: 0; padding-bottom: 0; }
  .hero__title { max-width: none; }
  
  .hero { padding-bottom: 56px; }
  

  
  
  

  
  
  
  
  .step { position: relative; top: auto; min-height: 0; }
  .form { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .float-cta span { display: none; }
  .float-cta { padding: 15px; }
}

@media (max-width: 900px) {
  .header .lang { margin-left: auto; }
  .header .menu-btn { margin-left: 14px; }
}

@media (max-width: 560px) {
  .form { grid-template-columns: 1fr; }
  .footer__row { flex-direction: column; }
  
  
}

@media (prefers-reduced-motion: reduce) {
  
  .js [data-split] .w__in, .js [data-stagger] > * { transform: none; opacity: 1; }
  .float-cta::before { animation: none; }
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 1ms !important; animation-delay: 0ms !important; transition-duration: 1ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; clip-path: none; }
}
.hero__title { max-width: none; }
.hero__title .line > span { white-space: nowrap; }
@media (max-width: 900px) {
  .hero__title .line > span { white-space: normal; }
}

/* ====================================================================
   Inicio con Mac interactiva (2026-10-09, rev.)
   Misma estructura del inicio: el texto a la izquierda y, en la columna
   donde estaba la foto, un computador con un flujo de n8n.
   ==================================================================== */

/* Selector de idioma discreto, en la esquina */
.header .lang { border: 0; padding: 0; gap: 0; margin-left: 18px; font-size: 12px; font-weight: 500; letter-spacing: .08em; }
.header .lang button { padding: 4px 6px; border-radius: 0; color: var(--piedra); background: none; position: relative; }
.header .lang button + button::before { content: "/"; position: absolute; left: -3px; color: var(--arena); }
.header .lang button[aria-pressed="true"] { background: none; color: var(--noche); }
.header .lang button[aria-pressed="true"]::after { content: ""; position: absolute; left: 6px; right: 6px; bottom: 0; height: 1px; background: var(--cobre); }

/* MacBook flotando */
.mac { margin: 0 0 0 -32px; width: calc(100% + 32px); position: relative; outline: none; }
@keyframes mac-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes mac-shadow { 0%, 100% { transform: scaleX(1); opacity: 1; } 50% { transform: scaleX(.86); opacity: .6; } }

/* ---------- Demo dentro de la Mac: WhatsApp → captura → CRM → respuesta ----------
   Todo se mide en cqw (1cqw = 1 % del ancho de la pantalla). Una "cámara" (.demo__cam)
   se acerca y aleja con transform; --slow alarga las transiciones al pasar el cursor. */

/* conexiones y pulso de datos */

/* ventanas: sombras muy suaves */
.wa, .crm { position: absolute; background: #fff; border-radius: 1.4cqw; box-shadow: 0 0 0 1px rgba(20, 43, 59, .06), 0 1.6cqw 3.4cqw -1.6cqw rgba(20, 43, 59, .22); overflow: hidden; transition: box-shadow .6s var(--ease); }

/* WhatsApp Business */
.wa { left: 3cqw; top: 10cqw; width: 30cqw; height: 41cqw; display: flex; flex-direction: column; }

@keyframes wa-dot { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-.4cqw); opacity: 1; } }

/* elementos que entran: estado oculto → .is-on */

/* Captura del lead */

@keyframes blink { 50% { opacity: 0; } }

/* CRM */
.crm { left: 65cqw; top: 10cqw; width: 33cqw; height: 41cqw; }

/* HUD fijo en la pantalla: en qué paso va la automatización */

/* Cierre: la marca aparece con la misma animación de la entrada de la página */

/* Pantallas pequeñas (celular): menos detalle, misma historia */
@container (max-width: 420px) {
  .demo__live { font-size: 1.9cqw; }
  .crm__row:not(.crm__row--new):nth-child(n+4), .crm__search { visibility: hidden; }
  .crm__tag--hot { display: none; }
}

@media (max-width: 900px) {
  .mac { margin: 0; width: 100%; }
}

/* Inicio centrado verticalmente: mismo aire arriba y abajo, sin franja vacía antes de la banda */
@media (min-width: 901px) {
  .hero { min-height: min(100svh, 1000px); padding-top: calc(var(--header-h) + clamp(28px, 3.5vw, 56px)); padding-bottom: clamp(28px, 3.5vw, 56px); }
}

/* Demo: foto del cliente y logo real de Wontex */

/* CRM: más espacio para nombres largos */

/* Encabezado: logo real */
.logo { display: inline-flex; align-items: center; }

/* Demo · segunda parte: brochure de contenido creado con IA */

.reel { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 1.3cqw; }

.reel canvas { display: block; width: 100%; height: 100%; }

.reel figcaption { font-size: 1.2cqw; color: #8A8F96; transition: color .5s; white-space: nowrap; }
.reel.is-on figcaption { color: var(--noche); font-weight: 600; }

/* Brochure · 4 anuncios de la marca ficticia BRISA con movimientos de cámara tipo Higgsfield */

.reel figcaption { font-size: 1.1cqw; }

/* Movimientos de cámara (solo el anuncio activo se anima) */

/* Textos que entran en cada anuncio */
.reel [data-k] { transition: none; }

@container (max-width: 420px) {
  .ad__chips i, .ad__cta, .ad__claim small { font-size: 1.3cqw; }
}

/* Demo · tercera parte: desarrollo web (código → página publicada) */

  

     
/* el navegador con la página publicada */

.site { font-family: var(--font-display); color: var(--noche); transition: transform 1.6s var(--ez); }

/* ====================================================================
   Pantallas grandes (monitores Full HD, 2K, 4K y ultrapanorámicos tipo gamer)
   El contenido crece un poco y el computador del inicio se queda dentro de
   la misma columna que el texto, en vez de pegarse al borde de la pantalla.
   ==================================================================== */
:root { --gutter: clamp(20px, 5vw, 120px); }
@media (min-width: 1700px) { :root { --max: 1560px; } }
@media (min-width: 2300px) { :root { --max: 1760px; } body { font-size: 19px; } }
@media (min-width: 1500px) {
  .mac { margin-left: 0; width: 100%; }
}
/* pantallas muy altas: el inicio ocupa toda la altura disponible */
@media (min-width: 1500px) and (min-height: 1050px) { .hero { min-height: min(100svh, 1300px); } }
/* pantallas bajas (portátiles con poca altura): menos aire vertical */
@media (min-width: 901px) and (max-height: 760px) {
  .hero { padding-top: calc(var(--header-h) + 20px); padding-bottom: 20px; }
}

/* ====================================================================
   Acabado más luminoso: letras satinadas, luz y profundidad
   ==================================================================== */
:root { --pizarra: #56656F; }
body {
  background:
    radial-gradient(1400px 900px at 8% -12%, rgba(255, 255, 255, .9), rgba(255, 255, 255, 0) 60%),
    radial-gradient(1100px 760px at 92% 2%, rgba(199, 244, 100, .13), rgba(199, 244, 100, 0) 62%),
    var(--marfil);
  background-repeat: no-repeat;
}
/* titulares satinados: brillo arriba, banda media más profunda; funciona sobre fondos claros y oscuros */
@supports (color: color-mix(in srgb, currentColor 50%, white)) and ((-webkit-background-clip: text) or (background-clip: text)) {
:is(.hero__title .line > span, h2:not([data-split]), [data-split] .w__in, .service__t, .stats__n) {
  background-image: linear-gradient(180deg,
    color-mix(in srgb, currentColor 62%, #ffffff) 0%,
    currentColor 34%,
    color-mix(in srgb, currentColor 70%, #8A9BAD) 58%,
    currentColor 82%,
    color-mix(in srgb, currentColor 88%, #000000) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
:is(.hero__title, h2) { filter: drop-shadow(0 .06em .12em rgba(20, 43, 59, .14)); }
}
.dot { -webkit-text-fill-color: var(--cobre); background: none; text-shadow: 0 0 .35em rgba(199, 244, 100, .55); }
/* textos de apoyo con más contraste */
.hero :is(.lead, .hero__kicker, .eyebrow) { color: #3C4249; }
/* botones con volumen y brillo */
.btn--pill { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 14px 30px -12px rgba(199, 244, 100, .65), 0 4px 10px -4px rgba(20, 43, 59, .25); }
.btn--pill:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), 0 20px 40px -14px rgba(199, 244, 100, .75), 0 6px 14px -6px rgba(20, 43, 59, .3); }
/* etiquetas de servicios con relieve suave */

/* encabezado como vidrio iluminado */
.header.is-scrolled { background: rgba(248, 250, 252, .82); box-shadow: 0 10px 30px -18px rgba(20, 43, 59, .35); }

/* ====================================================================
   Ajustes (2026-10-08 noche)
   ==================================================================== */
/* 1 · Ninguna letra recortada: espacio extra abajo para descendentes (g, p, y) y la "f" */
.hero__title .line { padding-bottom: .2em; margin-bottom: -.2em; padding-right: .08em; }
.hero__title .line > span { padding-bottom: .2em; margin-bottom: -.2em; }
.js [data-split] .w { padding-bottom: .22em; margin-bottom: -.22em; padding-right: .05em; margin-right: -.05em; }
.js [data-split] .w__in { padding-bottom: .22em; margin-bottom: -.22em; }
h2:not([data-split]) { padding-bottom: .12em; }

/* 4 · Franja de categorías: sin contornos con líneas cruzadas; texto relleno en tono claro satinado */

/* 3 · Computador del inicio: arranque de Wontex (terminal → red de servicios) */
.boot { position: absolute; inset: 0; overflow: hidden; font-family: var(--font-display); color: var(--noche); background: radial-gradient(80% 95% at 50% 45%, #ffffff 0%, #EEF1F5 62%, #D9DFE8 100%); }
.boot::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(110deg, transparent 38%, rgba(255, 255, 255, .75) 50%, transparent 62%); transform: translateX(-120%); }
.boot:not(.is-term)::after { animation: boot-sheen 5s 1s ease-in-out infinite; }
@keyframes boot-sheen { 0% { transform: translateX(-120%); } 45%, 100% { transform: translateX(120%); } }
.boot__l:empty { display: none; }
.boot__l.is-typing::after, .boot__ready.is-typing::after { content: ""; display: inline-block; width: .55em; height: 1.05em; margin-left: .15em; vertical-align: -.15em; background: var(--cobre); animation: blink .7s steps(1) infinite; }
@keyframes boot-glow { 50% { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 0 0 1.2cqw rgba(199, 244, 100, .14), 0 1.6cqw 3.2cqw -1.2cqw rgba(20, 43, 59, .6); } }
.boot__ready { position: absolute; left: 5cqw; top: 12.6cqw; font: 600 1.5cqw/1.45 ui-monospace, "SF Mono", Menlo, monospace; color: var(--cobre-hondo); }
.boot.is-out .boot__ready { opacity: 0; transition: opacity .5s; }

/* 6 · Casos: la demo animada con sus tres casos */

/* 5 · Servicios: pestañas por categoría (inspirado en un catálogo simple y directo) */

.svc2__panel { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.3fr); gap: clamp(28px, 5vw, 88px); margin-top: 22px; padding: clamp(26px, 3.6vw, 52px); border-radius: 26px; background: linear-gradient(180deg, #ffffff, #F3F5F8); box-shadow: 0 0 0 1px rgba(20, 43, 59, .05), 0 40px 80px -48px rgba(20, 43, 59, .45); }
.svc2__panel[hidden] { display: none; }
.svc2__panel.is-on { animation: svc2-in .55s var(--ease) both; }
@keyframes svc2-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.svc2__item { display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; padding: 18px 4px; border-bottom: 1px solid var(--arena); transition: transform .35s var(--ease), background-color .35s var(--ease); }
.svc2__item:hover { transform: translateX(4px); }

@media (max-width: 900px) {
  
  .svc2__panel { grid-template-columns: 1fr; }
  .svc2__item { gap: 14px; }
  
}
@media (max-width: 560px) {  .svc2__item { grid-template-columns: auto 1fr; } }
.boot__ready { top: 9.9cqw; }

/* monitor */

/* tarjetas de categoría */
.svc2__cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(12px, 1.4vw, 20px); }
.svc2__card { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; min-height: 250px; padding: 26px 24px 24px; border: 0; border-radius: 24px; text-align: left; cursor: pointer; font: inherit; color: var(--noche); background: linear-gradient(180deg, #ffffff, #EFF2F6); box-shadow: inset 0 1px 0 #fff, 0 0 0 1px rgba(20, 43, 59, .06), 0 24px 48px -32px rgba(20, 43, 59, .45); transition: transform .45s var(--ease), box-shadow .45s var(--ease), color .35s var(--ease); overflow: hidden; isolation: isolate; }
.svc2__card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(120% 90% at 85% 0%, #7395EC 0%, rgba(115, 149, 236, 0) 55%), linear-gradient(150deg, #3C67D3 0%, #2A51B4 55%, #1C3D8F 100%); opacity: 0; transition: opacity .45s var(--ease); }
.svc2__card:hover, .svc2__card.is-on { transform: translateY(-6px); color: #fff; box-shadow: 0 30px 60px -28px rgba(180, 227, 74, .75), 0 8px 18px -10px rgba(20, 43, 59, .3); }
.svc2__card:hover::before, .svc2__card.is-on::before { opacity: 1; }

.svc2__card b { font-family: var(--font-display); font-size: clamp(19px, 1.6vw, 23px); font-weight: 700; letter-spacing: -.025em; line-height: 1.15; }
.svc2__card small { font-size: 15.5px; line-height: 1.45; color: var(--pizarra); transition: color .35s; }
.svc2__card:hover small, .svc2__card.is-on small { color: rgba(255, 255, 255, .88); }
.svc2__panel { margin-top: clamp(18px, 2vw, 26px); }
@media (max-width: 1100px) { .svc2__cards { grid-template-columns: repeat(2, 1fr); } .svc2__card { min-height: 0; } }
@media (max-width: 560px) { .svc2__cards { grid-template-columns: 1fr; } .svc2__card { padding: 20px; }  }
.svc2__card { white-space: normal; }
@media (min-width: 901px) {
  .hero { min-height: min(84svh, 860px); }
}

/* ====================================================================
   Servicios en una sola vista: al hacer clic en "Servicios" se ve el titular,
   el párrafo, la foto y las tarjetas sin desplazarse.
   ==================================================================== */
/* el menú se oculta al bajar: no hay que dejarle espacio (evita la franja oscura arriba) */
html { scroll-padding-top: 0; }
#servicios { padding-top: clamp(28px, 4.5vh, 52px); scroll-margin-top: 0; }

/* Tarjetas: compactas y con el estilo de la página (marfil, bordes finos, azul noche al estar activas) */
.svc2__cards { gap: clamp(10px, 1.1vw, 16px); }
.svc2__card { min-height: 0; display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "ic n go" "ic t go" "ic d go"; column-gap: 14px; row-gap: 2px; align-items: center; padding: 16px 18px; border-radius: 18px; background: linear-gradient(180deg, rgba(255, 255, 255, .78), rgba(255, 255, 255, .45)); box-shadow: inset 0 0 0 1px rgba(20, 43, 59, .08), 0 14px 30px -24px rgba(20, 43, 59, .45); transform: none; }
.svc2__card::before { background: linear-gradient(160deg, #22303D 0%, var(--noche) 70%); }
.svc2__card::after { content: ""; position: absolute; left: 18px; right: 18px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--cobre); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.svc2__card:hover { transform: translateY(-3px); color: var(--noche); box-shadow: inset 0 0 0 1px rgba(199, 244, 100, .45), 0 18px 34px -22px rgba(20, 43, 59, .45); }
.svc2__card:hover::before { opacity: 0; }
.svc2__card.is-on { transform: none; color: var(--marfil); box-shadow: 0 20px 40px -24px rgba(20, 43, 59, .7); }
.svc2__card.is-on::before { opacity: 1; }
.svc2__card.is-on::after { transform: scaleX(1); }

.svc2__card b { grid-area: t; font-size: clamp(15.5px, 1.15vw, 17.5px); letter-spacing: -.015em; line-height: 1.2; }
.svc2__card small { grid-area: d; font-size: 13.5px; line-height: 1.4; color: var(--pizarra); }
.svc2__card:hover small { color: var(--pizarra); }
.svc2__card.is-on small { color: rgba(255, 255, 255, .72); }
@media (max-width: 1100px) { .svc2__card small { display: none; } }
@media (max-width: 560px) { .svc2__card small { display: block; } }
@media (max-width: 1100px) { .svc2__cards { grid-template-columns: repeat(4, 1fr); } .svc2__card { grid-template-columns: auto 1fr; grid-template-areas: "ic n" "ic t"; padding: 14px; column-gap: 10px; }  }
@media (max-width: 760px) { .svc2__cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .svc2__cards { grid-template-columns: 1fr; } .svc2__card { grid-template-columns: auto 1fr auto; grid-template-areas: "ic n go" "ic t go" "ic d go"; } }

/* ====================================================================
   Servicios v3 (como la referencia): tarjetas solo con el nombre que se
   encienden en cobre al pasar el cursor y llevan al detalle de cada área.
   ==================================================================== */
.svc2__cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 1.4vw, 20px); }
.svc2__cards .svc2__card { position: relative; isolation: isolate; overflow: hidden; display: grid; place-items: center; grid-template-columns: none; grid-template-areas: none; min-height: clamp(96px, 12vh, 124px); padding: 20px 18px; border-radius: 20px; text-align: center; text-decoration: none; color: var(--noche); background: linear-gradient(180deg, #ffffff 0%, #ECEEE8 100%); box-shadow: inset 0 0 0 1px rgba(20, 43, 59, .07), inset 0 1px 0 #fff, 0 18px 36px -26px rgba(20, 43, 59, .5); transform: none; transition: transform .45s var(--ease), box-shadow .45s var(--ease), color .3s var(--ease); }
.svc2__cards .svc2__card::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .45s var(--ease);
  background: radial-gradient(120% 90% at 18% 0%, #7C9DF2 0%, rgba(124, 157, 242, 0) 55%), linear-gradient(135deg, #C7F464 0%, #C7F464 45%, #20439C 100%); }
.svc2__cards .svc2__card::after { content: ""; position: absolute; inset: 0; z-index: -1; height: auto; left: 0; right: 0; bottom: auto; border-radius: 0; transform: translateX(-130%); background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .45) 48%, transparent 66%); }
.svc2__cards .svc2__card b { position: relative; font-family: var(--font-display); font-size: clamp(16px, 1.35vw, 20px); font-weight: 700; letter-spacing: -.02em; line-height: 1.2; transition: transform .45s var(--ease); }
/* encendida: al pasar el cursor, con el teclado, o la destacada mientras no se señale otra */
.svc2__cards .svc2__card:is(:hover, :focus-visible),
.svc2__cards:not(:hover) .svc2__card.is-featured { color: #fff; transform: translateY(-4px); box-shadow: 0 0 0 1px rgba(255, 255, 255, .18) inset, 0 22px 44px -18px rgba(199, 244, 100, .8), 0 0 36px -6px rgba(199, 244, 100, .55); }
.svc2__cards .svc2__card:is(:hover, :focus-visible)::before,
.svc2__cards:not(:hover) .svc2__card.is-featured::before { opacity: 1; }
.svc2__cards .svc2__card:is(:hover, :focus-visible)::after { animation: svc2-shine 1s .05s var(--ease) both; }
.svc2__cards:not(:hover) .svc2__card.is-featured::after { animation: svc2-shine 1.2s 1s var(--ease) both, svc2-shine-loop 4.5s 2.4s ease-in-out infinite; }
@keyframes svc2-shine { to { transform: translateX(130%); } }
@keyframes svc2-shine-loop { 0%, 70% { transform: translateX(-130%); } 100% { transform: translateX(130%); } }
.svc2__cards .svc2__card:is(:hover, :focus-visible) b,
.svc2__cards:not(:hover) .svc2__card.is-featured b { transform: translateY(-10px); }

/* detalle de cada área, uno debajo del otro (como la referencia) */
.svc2__panel { display: grid; margin-top: clamp(20px, 3vw, 36px); scroll-margin-top: 24px; animation: none; }
.svc2__panel + .svc2__panel { margin-top: clamp(16px, 2vw, 24px); }
.svc2__panel:nth-of-type(even) { background: linear-gradient(180deg, #F3F5F8, #ffffff); }
.svc2__item { grid-template-columns: 1fr auto; padding: 16px 4px; }
.svc2__item:hover { transform: none; }

@media (max-width: 900px) { .svc2__cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .svc2__cards .svc2__card { min-height: 84px; } .svc2__cards .svc2__card b { font-size: 15.5px; } }
@media (prefers-reduced-motion: reduce) { .svc2__cards .svc2__card::after { animation: none !important; } }
.svc2__cards .svc2__card b { grid-area: auto; }
.svc2__cards .svc2__card { min-height: clamp(108px, 13vh, 132px); padding-bottom: 26px; }
.svc2__cards .svc2__card:is(:hover, :focus-visible) b,
.svc2__cards:not(:hover) .svc2__card.is-featured b { transform: translateY(-12px); }
/* detalle de cada área: cerrado hasta que se elige su tarjeta */
.js .svc2__panel { display: none; }
.js .svc2__panel.is-open { display: grid; margin-top: clamp(16px, 2vw, 24px); animation: svc2-open .55s var(--ease) both; }
@keyframes svc2-open { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* Tarjetas de servicios: color cobre plano del logo (#C7F464), sin brillo ni resplandor */
.svc2__cards .svc2__card::before { background: var(--cobre); }
.svc2__cards .svc2__card::after { display: none; animation: none !important; }
.svc2__cards .svc2__card:is(:hover, :focus-visible),
.svc2__cards:not(:hover) .svc2__card.is-featured { box-shadow: 0 14px 28px -20px rgba(20, 43, 59, .45); }
/* Servicios ocupa la pantalla completa con el contenido centrado (sin hueco grande abajo) */
#servicios { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding-block: clamp(28px, 4.5vh, 52px); }
#servicios > .container { width: 100%; }

.svc2__item { align-items: start; padding: 18px 4px; }

/* ---------- Servicios · descripción desplegable al hacer clic en el nombre ---------- */
.svc2__item { display: block; padding: 0; }
.svc2__q { display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: center; width: 100%; padding: 18px 4px; margin: 0; border: 0; background: none; color: var(--noche); font: inherit; text-align: left; cursor: pointer; }
.svc2__q b { font-family: var(--font-display); font-size: 18.5px; font-weight: 650; letter-spacing: -.015em; transition: color .25s var(--ease); }
.svc2__q:hover b, .svc2__item.is-open .svc2__q b { color: var(--cobre); }
.svc2__q:focus-visible { outline: 2px solid var(--cobre); outline-offset: 2px; border-radius: 6px; }
@media (max-width: 560px) {
  .svc2__q b { font-size: 17px; }
}

/* =========================================================================
   CASOS a pantalla completa: título arriba, celular al centro sobre una forma
   de color y tres puntos clave a cada lado. Se desliza a los lados.
   ========================================================================= */
.cx { position: relative; min-height: 100svh; display: flex; flex-direction: column; padding: clamp(76px, 10vh, 104px) 0 clamp(18px, 3vh, 32px); overflow: hidden; background: var(--marfil); }
.cx__track { flex: 1; display: flex; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; outline: none; cursor: grab; }
.cx__track::-webkit-scrollbar { display: none; }
.cx__track.is-dragging { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.cx__track.is-dragging * { pointer-events: none; }
.cx__slide { flex: 0 0 100%; min-width: 0; scroll-snap-align: start; display: flex; }
.cx__in { width: 100%; display: flex; flex-direction: column; justify-content: center; gap: clamp(18px, 3.5vh, 44px); }
.cx__head { text-align: center; }
.cx__eyebrow { margin: 0 0 12px; }
.cx__title { font-size: clamp(30px, 3.4vw, 54px); line-height: 1.05; letter-spacing: -.03em; color: var(--noche); }
.cx__body { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: clamp(24px, 4vw, 72px); }

/* Celular sobre la forma de color */
.cx__stage { position: relative; display: grid; place-items: center; }
.cx__blob { position: absolute; width: 150%; height: auto; left: 50%; top: 50%; translate: -50% -50%; rotate: -8deg; fill: var(--cobre); transition: rotate 1.2s var(--ease); }
.cx__slide:nth-child(2) .cx__blob { rotate: 76deg; }
.cx__slide:nth-child(3) .cx__blob { rotate: 164deg; }
.cx__slide:nth-child(4) .cx__blob { rotate: 250deg; }
.cx__phone { position: relative; height: min(60svh, 620px); aspect-ratio: 9 / 19.3; padding: 3.4%; border-radius: 15% / 7%; background: #0E2130; box-shadow: inset 0 0 0 1.5px #2B313A, 0 0 0 1px rgba(0, 0, 0, .35), 0 50px 80px -36px rgba(20, 43, 59, .7); }
.cx__screen { position: relative; height: 100%; overflow: hidden; border-radius: 12% / 5.6%; background: #fff; container-type: inline-size; font-family: var(--font-display); color: var(--noche); }
.cx__screen::before { content: ""; position: absolute; z-index: 9; top: 2.4%; left: 50%; width: 31%; height: 3.6%; translate: -50% 0; border-radius: 999px; background: #0E2130; }

/* Navegación */
.cx__nav { display: flex; align-items: center; justify-content: center; gap: clamp(12px, 2vw, 24px); margin-top: clamp(12px, 2.5vh, 28px); }
.cx__tabs { display: flex; gap: 6px; padding: 5px; border-radius: 999px; background: rgba(20, 43, 59, .05); }
.cx__tab { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border: 0; border-radius: 999px; background: none; font-family: var(--font-display); font-size: 14.5px; font-weight: 600; color: var(--pizarra); cursor: pointer; transition: background-color .3s var(--ease), color .3s var(--ease); }
.cx__tab span { font-size: 11.5px; letter-spacing: .06em; opacity: .6; }
.cx__tab:hover { color: var(--noche); }
.cx__tab.is-on { background: var(--cobre); color: #fff; }
.cx__tab.is-on span { opacity: .85; }

/* Entrada de cada caso */
.cx__slide .cx__head, .cx__slide .cx__phone { transition: opacity .7s var(--ease), transform .7s var(--ease); }
.cx__slide:not(.is-active) .cx__head { opacity: 0; transform: translateY(14px); }
.cx__slide:not(.is-active) .cx__phone { opacity: .4; transform: scale(.94); }

/* ---------- Pantallas (todas las medidas en relación al ancho de la pantalla) ---------- */
.ui { position: absolute; inset: 0; display: flex; flex-direction: column; font-size: 4cqw; line-height: 1.25; text-align: left; }
.ui-status { position: relative; z-index: 5; flex: none; display: flex; justify-content: space-between; align-items: center; height: 12.5cqw; padding: 1.6cqw 9cqw 0; font-size: 3.7cqw; font-weight: 650; }
.ui-sig { display: inline-flex; align-items: flex-end; gap: .6cqw; }
.ui-sig i { width: .9cqw; background: currentColor; border-radius: .3cqw; }
.ui-sig i:nth-child(1) { height: 1.4cqw; } .ui-sig i:nth-child(2) { height: 2cqw; } .ui-sig i:nth-child(3) { height: 2.6cqw; }
.ui-sig b { width: 5.6cqw; height: 2.7cqw; margin-left: 1.4cqw; border-radius: .8cqw; box-shadow: inset 0 0 0 .35cqw currentColor; background: linear-gradient(90deg, currentColor 70%, transparent 0) no-repeat .7cqw .7cqw / 3.6cqw 1.3cqw; }

 

/* CRM */
.ui--crm { background: #EEF0F4; }
.crm-top { display: flex; justify-content: space-between; align-items: center; padding: 2cqw 6cqw 4cqw; }
.crm-top small { display: block; font-size: 3.3cqw; color: var(--pizarra); }
.crm-top b { display: block; font-size: 6.6cqw; letter-spacing: -.02em; }
.crm-av { width: 10cqw; height: 10cqw; border-radius: 50%; display: grid; place-items: center; background: var(--noche); color: #fff; font-size: 3.4cqw; font-weight: 650; }
.crm-stages { display: flex; gap: 2cqw; padding: 0 6cqw 4cqw; }
.crm-stages span { padding: 1.8cqw 3cqw; border-radius: 99cqw; background: #fff; font-size: 3.2cqw; font-weight: 600; color: var(--pizarra); white-space: nowrap; }
.crm-stages em { font-style: normal; color: var(--cobre); }
.crm-stages .is-on { background: var(--noche); color: #fff; }
.crm-stages .is-on em { color: var(--cobre-claro); }
.crm-cards { display: flex; flex-direction: column; gap: 3cqw; padding: 0 5cqw; }
.crm-card { padding: 4cqw; border-radius: 4.5cqw; background: #fff; box-shadow: 0 1cqw 3cqw -1.5cqw rgba(20, 43, 59, .2); }
.crm-row { display: flex; justify-content: space-between; align-items: center; gap: 2cqw; }
.crm-card b { font-size: 4cqw; }
.crm-card small { display: block; margin: .8cqw 0 2.4cqw; font-size: 3.1cqw; color: var(--pizarra); }
.crm-pill { padding: .8cqw 2.4cqw; border-radius: 99cqw; background: rgba(199, 244, 100, .12); color: var(--cobre-hondo); font-size: 2.8cqw; font-weight: 650; }
.crm-pill--q { background: #f1e6c9; color: #8a6418; }
.crm-pill--c { background: #dcefe3; color: #2f7a4f; }
.crm-val { font-size: 3.7cqw; font-weight: 650; }
.crm-task { font-size: 2.9cqw; color: var(--pizarra); }

/* Página web: se desplaza sola */
.ui--web { background: #F7F9FB; }
.web-view { position: relative; flex: 1; overflow: hidden; }
@keyframes web-scroll { 0%, 12% { transform: none; } 88%, 100% { transform: translateY(-46%); } }
.web-nav { display: flex; justify-content: space-between; align-items: center; padding: 2cqw 6cqw 4cqw; }
.web-nav b { font-size: 5.2cqw; letter-spacing: .14em; } .web-nav b i { font-style: normal; color: var(--cobre); }
.web-burger { display: flex; flex-direction: column; gap: 1.3cqw; } .web-burger i { width: 6cqw; height: .55cqw; background: var(--noche); }
.web-hero { position: relative; margin: 0 4cqw; border-radius: 4cqw; overflow: hidden; aspect-ratio: 4 / 5; }
.web-hero img { width: 100%; height: 100%; object-fit: cover; }
.web-hero div { position: absolute; inset: auto 0 0; padding: 18cqw 5cqw 5cqw; background: linear-gradient(transparent, rgba(14, 33, 48, .82)); color: #fff; }
.web-hero small { display: block; font-size: 2.8cqw; letter-spacing: .14em; text-transform: uppercase; opacity: .8; }
.web-hero b { display: block; margin: 1.6cqw 0 3.6cqw; font-size: 6.4cqw; line-height: 1.08; letter-spacing: -.02em; }
.web-btn { display: inline-block; padding: 2.4cqw 4.6cqw; border-radius: 99cqw; background: var(--cobre); color: #fff; font-size: 3.2cqw; font-weight: 650; }
.web-h { margin: 6cqw 6cqw 3cqw; font-size: 4.6cqw; font-weight: 650; }
.web-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.4cqw; padding: 0 4cqw; }
.web-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 3cqw; }
.web-form { display: flex; flex-direction: column; gap: 2.4cqw; margin: 6cqw 4cqw 8cqw; padding: 5cqw; border-radius: 4cqw; background: #fff; box-shadow: 0 0 0 1px #DFE4EB; }
.web-form b { font-size: 4.2cqw; } .web-form i { height: 8cqw; border-radius: 2cqw; background: #E6EAF0; } .web-form .web-btn { align-self: flex-start; }
.web-wa { position: absolute; z-index: 6; right: 5cqw; bottom: 6cqw; width: 12cqw; height: 12cqw; border-radius: 50%; display: grid; place-items: center; background: #25a35a; box-shadow: 0 2cqw 5cqw -1cqw rgba(0, 0, 0, .35); }
.web-wa svg { width: 6cqw; height: 6cqw; fill: none; stroke: #fff; stroke-width: 2; stroke-linejoin: round; }

/* Cotizador */
.ui--quote { background: #EEF0F4; }
.q-head { padding: 2cqw 6cqw 5cqw; }
.q-head small { font-size: 3.1cqw; color: var(--cobre-hondo); font-weight: 650; letter-spacing: .04em; }
.q-head b { display: block; margin: 1cqw 0 3.4cqw; font-size: 6.4cqw; letter-spacing: -.02em; }
.q-steps { display: flex; gap: 1.6cqw; } .q-steps i { flex: 1; height: 1cqw; border-radius: 1cqw; background: #C8D1DD; }
.q-steps .is-done { background: var(--noche); } .q-steps .is-on { background: var(--cobre); }
.q-body { display: flex; flex-direction: column; gap: 3cqw; padding: 0 5cqw; }
.q-row { display: grid; grid-template-columns: 1fr 1fr; gap: 3cqw; }
.q-field { padding: 2.6cqw 3.6cqw; border-radius: 3.4cqw; background: #fff; box-shadow: 0 0 0 1px #D9DFE8; }
.q-field small { display: block; font-size: 2.7cqw; color: var(--pizarra); }
.q-field span { display: block; margin-top: .6cqw; font-size: 3.6cqw; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

 
.q-ok { margin-left: auto; width: 6.5cqw; height: 6.5cqw; border-radius: 50%; display: grid; place-items: center; background: #dcefe3; }
.q-ok svg { width: 4cqw; height: 4cqw; fill: none; stroke: #2f7a4f; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.q-btn { margin-top: 1.6cqw; padding: 3.8cqw; border-radius: 3.4cqw; background: var(--cobre); color: #fff; text-align: center; font-size: 3.8cqw; font-weight: 650; }

/* Tablet y celular: celular arriba y puntos debajo */
@media (max-width: 1100px) {
  .cx__body { grid-template-columns: 1fr 1fr; grid-template-areas: "stage stage" "l r"; row-gap: 36px; }
  .cx__stage { grid-area: stage; }
  .cx__phone { height: min(52svh, 520px); }
  .cx__blob { width: 210%; }
}
@media (max-width: 640px) {
  .cx { padding-top: 84px; }
  .cx__body { grid-template-columns: 1fr; grid-template-areas: "stage" "l" "r"; row-gap: 20px; }
  .cx__stage { margin-bottom: 14px; }
  .cx__phone { height: min(58svh, 470px); }
  .cx__blob { width: 260%; }
  .cx__nav { gap: 8px; }
  .cx__tabs { gap: 2px; padding: 4px; }
  .cx__tab { padding: 8px 10px; font-size: 13px; }
  .cx__tab span { display: none; }
  .cx__nav .circle-btn { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .cx__slide *, .cx__slide *::after { animation: none !important; transition: none !important; }
  .cx__slide:not(.is-active) .cx__head { opacity: 1; transform: none; }
}
.cx__eyebrow { justify-content: center; text-align: center; }
.cx__blob { width: 190%; }
.cx__eyebrow { text-align: center !important; }
.cx__blob { width: 220%; }
.cx__slide:not(.is-active) .cx__phone { opacity: 1; transform: scale(.94); }
.cx__phone { z-index: 1; }
.cx__blob { width: 165%; }
@media (max-width: 1100px) { .cx__blob { width: 200%; } }
@media (max-width: 640px) { .cx__blob { width: 220%; } }
/* La forma se mide por la altura del celular, no por el ancho de la columna */
.cx__blob { width: calc(min(60svh, 620px) * .8); }
@media (max-width: 1100px) { .cx__blob { width: calc(min(52svh, 520px) * .85); } }
@media (max-width: 640px) { .cx__blob { width: calc(min(58svh, 470px) * .85); } }
.cx__slide { overflow: hidden; }
@media (max-width: 640px) { .cx__blob { width: calc(min(58svh, 470px) * .66); } }

/* ---------- Contacto: texto a la izquierda y formulario arriba a la derecha ---------- */
@media (min-width: 901px) {
  .contact .form { grid-column: 8 / -1; grid-row: 1 / span 3; align-self: start; }
}

/* =========================================================================
   CASOS · flujos paso a paso dentro del celular (los controla main.js)
   ========================================================================= */
.sc { position: absolute; inset: 12.5cqw 0 0; display: flex; flex-direction: column; opacity: 0; transform: translateX(10cqw); transition: opacity .5s var(--ease), transform .6s var(--ease); pointer-events: none; }
.sc.on { opacity: 1; transform: none; }
.sc.on.gone { opacity: 0; transform: translateX(-10cqw); }
.pop { opacity: 0; transform: translateY(3cqw); transition: opacity .45s var(--ease), transform .5s var(--ease); }
.pop.on { opacity: 1; transform: none; }
.tap-dot { position: absolute; right: 8cqw; top: 50%; width: 9cqw; height: 9cqw; margin-top: -4.5cqw; border-radius: 50%; background: rgba(199, 244, 100, .4); opacity: 0; pointer-events: none; }
.tap .tap-dot { animation: fl-tap .8s ease-out; }
@keyframes fl-tap { 0% { opacity: 0; transform: scale(.4); } 30% { opacity: 1; } 100% { opacity: 0; transform: scale(1.7); } }
.ui-note { position: absolute; z-index: 6; left: 5cqw; right: 5cqw; bottom: 6cqw; display: flex; align-items: center; gap: 3cqw; padding: 3.4cqw 4cqw; border-radius: 4.5cqw; background: rgba(20, 43, 59, .94); color: #fff; box-shadow: 0 4cqw 8cqw -4cqw rgba(0, 0, 0, .5); }
.ui-note b { display: block; font-size: 3.5cqw; } .ui-note small { display: block; font-size: 2.9cqw; opacity: .75; }
.ui-note__dot { flex: none; width: 2.6cqw; height: 2.6cqw; border-radius: 50%; background: #5fbf8a; box-shadow: 0 0 0 1.2cqw rgba(95, 191, 138, .25); }

/* Etiqueta del paso, bajo el celular */
.cx__step { position: absolute; z-index: 3; left: 50%; bottom: -18px; translate: -50% 0; display: flex; align-items: center; gap: 10px; margin: 0; padding: 9px 16px; border-radius: 999px; background: var(--noche); color: #fff; font-family: var(--font-display); font-size: 14px; font-weight: 600; white-space: nowrap; box-shadow: 0 12px 28px -14px rgba(20, 43, 59, .6); }
.cx__step b { color: var(--cobre-claro); font-size: 12.5px; font-weight: 700; letter-spacing: .04em; }
.cx__step-t, .cx__step b { transition: opacity .25s var(--ease); }
.cx__step.swap .cx__step-t, .cx__step.swap b { opacity: 0; }
.cx__nav { margin-top: clamp(30px, 4vh, 44px); }

/* CRM · chat de WhatsApp */
.sc-chat { background: #DFE4EC; }
.wa-top { display: flex; align-items: center; gap: 3cqw; padding: 2cqw 5cqw 3cqw; background: #fff; border-bottom: 1px solid #C7D3F1; }
.wa-av { flex: none; width: 9cqw; height: 9cqw; border-radius: 50%; display: grid; place-items: center; background: var(--cobre); color: #fff; font-size: 3.1cqw; font-weight: 650; }
.wa-top b { display: block; font-size: 3.8cqw; } .wa-top small { display: block; font-size: 2.8cqw; color: #2f9e5a; }
.wa-body { position: relative; flex: 1; display: flex; flex-direction: column; gap: 2.6cqw; padding: 4cqw; }
.wa-day { align-self: center; padding: .8cqw 2.6cqw; border-radius: 2cqw; background: #fff; font-size: 2.6cqw; color: var(--pizarra); }
.bub { max-width: 82%; padding: 2.6cqw 3.4cqw 2cqw; border-radius: 3.6cqw; font-size: 3.3cqw; line-height: 1.35; box-shadow: 0 .4cqw 1cqw rgba(0, 0, 0, .08); }
.bub i { display: block; margin-top: .8cqw; text-align: right; font-style: normal; font-size: 2.4cqw; color: #8A8F95; }
.bub--in { align-self: flex-start; background: #fff; border-top-left-radius: 1cqw; }
.bub--out { align-self: flex-end; background: #dcf3d6; border-top-right-radius: 1cqw; }
.bub-tag { display: inline-block; margin-bottom: 1.4cqw; padding: .5cqw 2cqw; border-radius: 99cqw; background: var(--cobre); color: #fff; font-size: 2.4cqw; font-weight: 650; }
.wa-typing { position: absolute; left: 4cqw; top: 12cqw; display: flex; gap: 1cqw; padding: 3cqw 3.6cqw; border-radius: 3.6cqw; background: #fff; }
.wa-typing i { width: 1.6cqw; height: 1.6cqw; border-radius: 50%; background: #A8AFB8; animation: wa-dot 1s infinite; }
.wa-typing i:nth-child(2) { animation-delay: .15s; } .wa-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes wa-dot { 0%, 60%, 100% { transform: none; opacity: .5; } 30% { transform: translateY(-1cqw); opacity: 1; } }
.wa-input { display: flex; align-items: center; gap: 2.4cqw; padding: 2.4cqw 4cqw 6cqw; }
.wa-input span { flex: 1; padding: 2.6cqw 4cqw; border-radius: 99cqw; background: #fff; font-size: 3.1cqw; color: #8B919A; }
.wa-input b { flex: none; width: 9cqw; height: 9cqw; border-radius: 50%; display: grid; place-items: center; background: #25a35a; }
.wa-input svg { width: 4.4cqw; height: 4.4cqw; fill: #fff; }

/* CRM · ficha y embudo */
.sc-new, .sc-pipe { background: #EEF0F4; }
.sc-new { padding: 2cqw 5cqw; }
.crm-h small, .mk-h small { display: block; font-size: 3cqw; font-weight: 650; letter-spacing: .05em; color: var(--cobre-hondo); }
.crm-h b, .mk-h b { display: block; margin: .6cqw 0 2.4cqw; font-size: 6.4cqw; letter-spacing: -.02em; }
.crm-src { display: inline-flex; padding: 1cqw 3cqw; border-radius: 99cqw; background: #dcf3d6; color: #1f7a45; font-size: 2.9cqw; font-weight: 650; }
.crm-form { display: flex; flex-direction: column; gap: 2.6cqw; margin-top: 3cqw; }
.crm-f { padding: 2.6cqw 3.6cqw; border-radius: 3.4cqw; background: #fff; box-shadow: 0 0 0 1px #D9DFE8; }
.crm-f small { display: block; font-size: 2.7cqw; color: var(--pizarra); }
.crm-f span { display: block; margin-top: .6cqw; font-size: 3.7cqw; font-weight: 600; }
.crm-saved { display: flex; align-items: center; gap: 2.4cqw; margin-top: 4cqw; font-size: 3.5cqw; font-weight: 650; color: #2f7a4f; }
.crm-card--new { box-shadow: 0 0 0 .5cqw var(--cobre-claro), 0 2cqw 5cqw -2cqw rgba(199, 244, 100, .5); }
.mk-h { padding: 2cqw 6cqw 1cqw; }
@keyframes mk-scan { 0% { top: -20%; opacity: 1; } 90% { opacity: 1; } 100% { top: 100%; opacity: 0; } }
.mk-bar { height: 1.4cqw; margin: 4cqw 6cqw 0; overflow: hidden; border-radius: 2cqw; background: #CED6E1; }
.mk-bar i { display: block; width: 0; height: 100%; background: var(--cobre); transition: width 2.2s ease; }
.sc-make.run .mk-bar i { width: 100%; }
.sc-post { inset: 0; background: #111; color: #fff; }
.sc-post::after { content: ""; position: absolute; z-index: 1; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .4), transparent 22%, transparent 55%, rgba(0, 0, 0, .7)); pointer-events: none; }

/* Página web */
.sc-search { background: #fff; gap: 3cqw; padding: 2cqw 5cqw; }
.se-bar { display: flex; align-items: center; gap: 2.4cqw; padding: 3cqw 4cqw; border-radius: 99cqw; box-shadow: 0 0 0 1px #D2D9E3, 0 1cqw 3cqw -1.5cqw rgba(0, 0, 0, .2); font-size: 3.3cqw; }
.se-bar svg { flex: none; width: 4.4cqw; height: 4.4cqw; fill: none; stroke: var(--pizarra); stroke-width: 2; stroke-linecap: round; }
.se-res { position: relative; padding: 3cqw 1cqw; border-bottom: 1px solid #E4E9EF; }
.se-res small { display: block; font-size: 2.7cqw; color: #3b7a57; }
.se-res b { display: block; margin: .6cqw 0; font-size: 3.8cqw; color: #1d4ea8; }
.se-res > span { display: block; font-size: 3cqw; line-height: 1.35; color: var(--pizarra); }
.se-res--top { padding: 3.4cqw; border: 0; border-radius: 3.4cqw; background: #F2F5F7; box-shadow: 0 0 0 1px #CDD7F2; }
.se-ph { display: block; width: 80%; height: 2.6cqw; margin-top: 1.6cqw; border-radius: 1cqw; background: #DDE3EB; }
.se-ph--s { width: 60%; height: 2cqw; }
.sc-site { background: #F7F9FB; }
.web-scroll { transition: transform 1.8s cubic-bezier(.5, 0, .2, 1); }
.web-scroll.s1 { transform: translateY(-30%); }
.web-scroll.s2 { transform: translateY(-50%); }
.web-in { display: block; height: 8cqw; padding: 0 3cqw; overflow: hidden; border-radius: 2cqw; background: #E6EAF0; font-size: 3.1cqw; line-height: 8cqw; white-space: nowrap; }
.web-in--tall { height: 12cqw; }
.web-in em { font-style: normal; }
.web-send.tap { animation: fl-press .5s ease; }
@keyframes fl-press { 50% { transform: scale(.9); } }
.sc-lead { background: #EEF0F4; }
.ld-item { display: flex; gap: 3cqw; margin: 0 5cqw 2.6cqw; padding: 3.4cqw; border-radius: 3.6cqw; background: #fff; }
.ld-av { flex: none; width: 9cqw; height: 9cqw; border-radius: 50%; display: grid; place-items: center; background: var(--noche); color: #fff; font-size: 3cqw; font-weight: 650; }
.ld-item b { display: block; font-size: 3.6cqw; } .ld-item small { display: block; font-size: 3cqw; color: var(--pizarra); }
.ld-item em { display: block; margin-top: 1cqw; font-style: normal; font-size: 2.6cqw; color: var(--cobre-hondo); }
.ld-item--new { box-shadow: 0 0 0 .5cqw var(--cobre-claro); }

/* Cotizador */
.ui--quote .sc { background: #EEF0F4; }
.q-auto { display: flex; align-items: center; gap: 2.4cqw; font-size: 3.2cqw; font-weight: 600; color: #2f7a4f; }
.q-item { padding: 3cqw 3.6cqw; border-radius: 3.4cqw; background: #fff; box-shadow: 0 0 0 1px #D9DFE8; }
.q-item b { display: block; font-size: 3.4cqw; }
.q-item span, .q-tot span, .pdf-rows span { display: flex; justify-content: space-between; }
.q-item span { margin-top: 1.2cqw; font-size: 3cqw; }
.q-item em, .q-tot em, .pdf-rows em { font-style: normal; color: var(--pizarra); }
.q-item strong { font-weight: 650; }
.q-tot { display: flex; flex-direction: column; gap: 1.4cqw; padding: 3.4cqw 3.6cqw; border-radius: 3.4cqw; background: var(--noche); color: #fff; font-size: 3.1cqw; }
.q-tot em { color: rgba(255, 255, 255, .7); }
.q-tot__t { margin-top: 1cqw; padding-top: 1.8cqw; border-top: 1px solid rgba(255, 255, 255, .15); font-size: 3.8cqw; }
.q-tot__t strong { color: var(--cobre-claro); }
.q-chk { display: flex; align-items: center; gap: 3cqw; padding: 3cqw 3.6cqw; border-radius: 3.4cqw; background: #fff; font-size: 3.3cqw; font-weight: 600; }
.q-box { flex: none; width: 5.6cqw; height: 5.6cqw; border-radius: 1.4cqw; display: grid; place-items: center; background: var(--cobre); }
.q-box svg { width: 3.6cqw; height: 3.6cqw; fill: none; stroke: #fff; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
.q-btn { position: relative; overflow: hidden; }
.sc-q4 { padding: 3cqw 5cqw; background: #DCE1E9 !important; }
.pdf { padding: 5cqw; border-top: 1.4cqw solid var(--cobre); border-radius: 1.6cqw; background: #fff; box-shadow: 0 2cqw 6cqw -2cqw rgba(0, 0, 0, .25); font-size: 2.8cqw; }
.sc-q4.on .pdf { animation: pdf-in .8s var(--ease) both; }
@keyframes pdf-in { from { opacity: 0; transform: translateY(10cqw) scale(.94); } to { opacity: 1; transform: none; } }
.pdf-top { display: flex; justify-content: space-between; align-items: flex-start; }
.pdf-logo { padding: 1.4cqw 2.4cqw; border: 1px dashed #AEB9C9; border-radius: 1cqw; font-size: 2.4cqw; font-weight: 700; letter-spacing: .1em; color: #8A96A6; }
.pdf-no { text-align: right; }
.pdf-no small, .pdf-meta small { display: block; font-size: 2.1cqw; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--pizarra); }
.pdf-no b { font-size: 3.6cqw; }
.pdf-k { display: block; margin-top: 5cqw; font-size: 2.3cqw; font-weight: 650; letter-spacing: .12em; text-transform: uppercase; color: var(--cobre-hondo); }
.pdf-t { display: block; margin: 1cqw 0 3cqw; font-size: 4.6cqw; line-height: 1.15; }
.pdf-meta { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2cqw; padding: 2.4cqw 0; border-block: 1px solid #DFE4EB; font-size: 2.7cqw; font-weight: 600; }
.pdf-rows { display: flex; flex-direction: column; gap: 1.4cqw; margin-top: 3cqw; }
.pdf-rows__t { margin-top: .8cqw; padding-top: 1.6cqw; border-top: 1px solid #DFE4EB; font-size: 3.4cqw; font-weight: 700; }
.pdf-rows__t strong { color: var(--cobre-hondo); }
.pdf-sign { margin-top: 5cqw; }
.pdf-sign i { display: block; width: 30cqw; height: 5cqw; border-bottom: 1px solid #A2ACB9; }
.pdf-sign small { font-size: 2.3cqw; color: var(--pizarra); }
.pdf-actions { display: flex; gap: 2.4cqw; margin-top: 4cqw; }
.pdf-btn { flex: 1; padding: 3cqw; border-radius: 3cqw; background: var(--cobre); color: #fff; text-align: center; font-size: 3.3cqw; font-weight: 650; }
.pdf-btn--alt { background: var(--noche); }
@media (max-width: 640px) { .cx__step { font-size: 13px; padding: 8px 14px; } }
@media (prefers-reduced-motion: reduce) { .sc, .pop { transition: none !important; } }
.bub-tag { display: table; }
.web-foot { margin: 0 4cqw 8cqw; padding-top: 4cqw; border-top: 1px solid #DFE4EB; text-align: center; font-size: 2.8cqw; color: var(--pizarra); }
.web-foot b { color: var(--noche); }
.sc-brand { align-items: center; justify-content: center; gap: 5cqw; padding: 0 8cqw 12cqw; background: var(--marfil); text-align: center; }
.fw-logo { width: 62cqw; height: auto; }
.fw-made { margin: 0; font-size: 4.2cqw; line-height: 1.35; color: var(--pizarra); }
.fw-made b { font-size: 6.4cqw; letter-spacing: -.02em; color: var(--noche); }
.fw-tag { padding: 1.6cqw 4cqw; border-radius: 99cqw; background: var(--cobre); color: #fff; font-size: 3cqw; font-weight: 650; }
.sc-brand.on .fw-logo { animation: pdf-in .8s var(--ease) both; }
.cx__step.is-brand b { display: none; }
.cx__step.is-brand { background: var(--cobre); }
.cx__nav { margin-top: clamp(14px, 2.5vh, 28px); }

/* ---------- Barra final de derechos ---------- */
.legal-bar { background: #0E2130; border-top: 1px solid rgba(255, 255, 255, .14); }
.legal-bar p { margin: 0; padding-block: 18px 20px; font-family: var(--font-display); font-size: 15px; color: rgba(255, 255, 255, .85); }
.legal-bar { background: #000; }
.legal-bar p { text-align: center; font-size: 14px; padding-block: 14px 16px; }
.legal-bar a { color: var(--cobre-claro); }
.legal-bar a:hover { text-decoration: underline; }

/* ---------- Final de la página todo oscuro (contacto, logo y barra de derechos) ---------- */
.footer { background: var(--noche); color: var(--marfil); }
.footer__mark { color: var(--marfil); -webkit-text-fill-color: currentColor; background: none; }
.footer__row { border-top-color: rgba(255, 255, 255, .18); color: rgba(255, 255, 255, .62); }
.footer__row a { color: inherit; }
.footer__links a:hover, .footer__row .link-plain:hover { color: var(--marfil); }
.legal-bar { background: var(--noche); border-top: 1px solid rgba(255, 255, 255, .1); }
.cx__tab.is-on { background: var(--cobre-hondo); }
.header .lang button { color: var(--pizarra); }
.header .lang button[aria-pressed="true"] { color: var(--noche); }
/* Área táctil mínima de 24 px en los enlaces del pie */
.footer__links { flex-wrap: wrap; row-gap: 4px; }
.footer__links a, .footer__row .link-plain { display: inline-flex; align-items: center; min-height: 32px; }
.legal-bar a { display: inline-block; padding-block: 4px; }

/* Autorización de datos en el formulario */
.field--consent { margin-top: -6px; }
.consent-check { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; font-family: var(--font-display); font-size: 14px; line-height: 1.45; color: var(--arena); }
.field .consent-check input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; padding: 0; border: 1px solid var(--piedra); border-radius: 5px; accent-color: var(--cobre-claro); cursor: pointer; }
.consent-check a { color: var(--marfil); text-decoration: underline; text-underline-offset: 3px; }
.consent-check a:hover { color: var(--cobre-claro); }
.field--consent.is-invalid .consent-check { color: var(--marfil); }

/* Aviso de cookies (solo aparece si se configura analítica en js/config.js) */
.consent { position: fixed; z-index: 60; left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); max-width: 560px; margin-inline: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; padding: 18px 20px; border-radius: 18px; background: var(--noche); color: var(--marfil); box-shadow: 0 24px 60px -24px rgba(0, 0, 0, .6); font-family: var(--font-display); font-size: 14.5px; line-height: 1.45; }
.consent[hidden] { display: none; }
.consent p { flex: 1 1 260px; margin: 0; }
.consent a { color: var(--cobre-claro); text-decoration: underline; text-underline-offset: 3px; }
.consent__btns { display: flex; gap: 8px; }
.consent__btn { min-height: 40px; padding: 0 18px; border: 1px solid rgba(255, 255, 255, .35); border-radius: 999px; background: none; color: var(--marfil); font: inherit; font-weight: 600; cursor: pointer; }
.consent__btn--ok { border-color: var(--cobre); background: var(--cobre-hondo); }
.consent__btn:focus-visible { outline: 2px solid var(--cobre-claro); outline-offset: 2px; }
/* Contraste AA en botones cobre: texto blanco puro (≥ 4,5:1 sobre el degradado) */
.btn--pill { color: #fff; }
/* Lo oculto con el atributo hidden nunca se muestra (p. ej. "Preferencias de cookies" sin analítica) */
[hidden] { display: none !important; }

/* =========================================================================
   WONTEX · logotipo tipográfico (Unbounded Bold + cursor) y animación de entrada
   ========================================================================= */
:root { --lime: #C7F464; --wontex: #142B3B; --font-logo: "Unbounded", "Helvetica Neue", Arial, sans-serif; }
.wm { display: inline-flex; align-items: flex-end; font-family: var(--font-logo); font-weight: 700; letter-spacing: -.01em; line-height: 1; white-space: nowrap; }
.wm-cursor { display: inline-block; flex: none; width: .52em; height: .13em; margin: 0 0 .02em .1em; background: currentColor; }
/* Sobre fondo oscuro el cursor va en lima y parpadea */
.wm--live .wm-cursor, .intro .wm-cursor { background: var(--lime); animation: wm-blink 1.1s steps(1) infinite; }
@keyframes wm-blink { 50% { opacity: 0; } }

/* Encabezado: cursor fijo; parpadea al pasar el cursor */
.logo .wm { font-size: 21px; color: var(--noche); }
.logo:hover .wm-cursor { animation: wm-blink 1.1s steps(1) infinite; }
@media (max-width: 1180px) { .logo .wm { font-size: 19px; } }
@media (max-width: 900px) { .logo .wm { font-size: 17px; } }

/* Entrada: se escribe el nombre con un error, se borra y se corrige */
.intro { background: var(--wontex); color: #F7F8F4; }
.intro__lockup { display: flex; flex-direction: column; align-items: center; gap: clamp(14px, 2.2vw, 26px); padding: 0 16px; }
.intro__type { position: relative; font-size: clamp(44px, 10vw, 132px); }
.intro__ghost { visibility: hidden; }
.intro__live { position: absolute; left: 0; bottom: 0; }
.intro__live.is-typing .wm-cursor { animation: none; opacity: 1; }
.intro__tag { margin: 0; font-family: var(--font-logo); font-weight: 300; font-size: clamp(11px, 1.45vw, 18px); letter-spacing: .22em; text-transform: uppercase; color: rgba(247, 248, 244, .78); text-align: center; opacity: 0; transform: translateY(8px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.intro.show-tag .intro__tag { opacity: 1; transform: none; }
.fw-logo { font-size: 9cqw; color: var(--noche); }

/* Pie: logotipo grande con la frase descriptiva */
.footer__mark { display: flex; flex-direction: column; align-items: flex-start; gap: clamp(10px, 1.4vw, 20px); font-size: clamp(46px, 11vw, 168px); letter-spacing: 0; line-height: 1; }
.footer__mark .wm { color: var(--marfil); }
.footer__tag { font-family: var(--font-logo); font-weight: 300; font-size: clamp(11px, .105em, 19px); letter-spacing: .22em; text-transform: uppercase; color: var(--piedra); padding-left: .2em; }

/* =========================================================================
   WONTEX · regla del lima: sobre fondos claros el lima es relleno, nunca texto
   ========================================================================= */
/* Botones: lima con texto Midnight; al pasar el cursor, Midnight con texto claro */
.btn--pill { color: var(--noche); }
.btn--pill:hover { color: var(--marfil); }
/* Punto final de titulares: color del texto en claro; lima solo en secciones oscuras */
.dot { -webkit-text-fill-color: inherit; color: inherit; text-shadow: none; }
.contact .dot, .footer .dot { -webkit-text-fill-color: var(--lime); color: var(--lime); }
/* Tarjetas de servicios: al activarse se llenan de lima con texto Midnight */
.svc2__cards .svc2__card:is(:hover, :focus-visible),
.svc2__cards:not(:hover) .svc2__card.is-featured { color: var(--noche); }
/* Pestaña activa de Casos */
.cx__tab.is-on { background: var(--lime); color: var(--noche); }
.cx__title { font-size: clamp(24px, 2.7vw, 42px); letter-spacing: -.02em; }
.hero__title { font-weight: 600; letter-spacing: -.03em; line-height: 1.02; }
h1, h2, h3, h4 { font-weight: 600; }
/* Celular: el titular del inicio cabe sin cortar palabras largas ("Construyendo") */
@media (max-width: 560px) {
  .hero__title { font-size: min(8.4vw, 44px) !important; }
}
@media (max-width: 400px) {
  .contact__mail a { font-size: min(4.9vw, 19px); overflow-wrap: anywhere; }
  .cx__tabs { flex-wrap: wrap; justify-content: center; border-radius: 22px; }
  .cx__tab { padding: 7px 9px; font-size: 12px; }
}
