/* Make Your Deal · estilos globales.
   Los estilos de cada bloque van en línea (fieles al diseño de Claude Design);
   aquí van fuentes, base, cabecera, texturas, animaciones y estados. */

@font-face { font-family: "Archivo Black"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/archivo-black-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/archivo-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/archivo-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/archivo-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/archivo-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/jetbrains-mono-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/jetbrains-mono-latin-700-normal.woff2") format("woff2"); }

:root {
  --black: #0D0D0D;
  --orange: #FF5C00;
  --orange-hover: #FF7A00;
  --white: #FFFFFF;
  --text-2: #C9C9C9;
  --text-4: #8A8A8A;
  --border: #222222;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; background: var(--black); }
html { scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body { color: var(--white); font-family: Archivo, Helvetica, Arial, sans-serif; }
a { color: var(--orange); text-decoration: none; }
a:hover { color: var(--orange-hover); }
input, select, textarea, button { font: inherit; }
img, svg { max-width: 100%; }
::selection { background: var(--orange); color: var(--black); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

.root { background: var(--black); color: var(--white); min-height: 100vh; overflow-x: clip; }

/* Grano */
body::after { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 80; opacity: 0.07; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }

@keyframes mydMarquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes mydWave { 0%, 100% { transform: scaleY(0.3); } 50% { transform: scaleY(1); } }
@keyframes mydDot { 0%, 80%, 100% { opacity: 0.25; } 40% { opacity: 1; } }
@keyframes mydPulse { 0% { box-shadow: 0 0 0 0 rgba(255,92,0,0.55); } 100% { box-shadow: 0 0 0 20px rgba(255,92,0,0); } }
@keyframes mydMsg { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Accesibilidad */
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--orange); color: var(--black); padding: 12px 16px; font-weight: 700; }
.skip:focus { top: 12px; color: var(--black); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* Cabecera */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: rgba(13,13,13,0.88); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.hd { max-width: 1320px; margin: 0 auto; padding: 14px clamp(20px,4vw,48px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; }
.hd-logo { display: flex; align-items: center; gap: 8px; font-family: "Archivo Black", sans-serif; font-size: 19px; line-height: 1; letter-spacing: -0.02em; text-transform: uppercase; color: var(--white); white-space: nowrap; }
.hd-logo:hover { color: var(--white); }
.hd-deal { background: var(--orange); color: var(--black); padding: 5px 8px 4px; border-radius: 3px; }
.hd-nav { order: 1; display: flex; gap: 4px; padding: 4px; border: 1px solid #2A2A2A; border-radius: 6px; font-size: 14px; font-weight: 700; }
.hd-nav a { padding: 12px 16px; border-radius: 4px; text-align: center; color: var(--white); transition: background .2s, color .2s; }
.hd-nav a:hover { color: var(--orange); }
.hd-nav a[aria-current="page"] { background: var(--orange); color: var(--black); }
.hd-cta { order: 2; background: var(--orange); color: var(--black); padding: 12px 18px; font-family: "Archivo Black", sans-serif; font-size: 13px; line-height: 1; text-transform: uppercase; box-shadow: 4px 4px 0 var(--white); transition: transform .15s, box-shadow .15s; }
.hd-cta:hover, .hd-cta:focus-visible { color: var(--black); transform: translate(4px,4px); box-shadow: 0 0 0 var(--white); }
.cta-short { display: none; }
@media (max-width: 759.98px) {
  .hd { padding-block: 10px; gap: 10px 16px; }
  .hd-logo { font-size: 17px; }
  .hd-nav { order: 3; flex-basis: 100%; padding: 3px; }
  .hd-nav a { flex: 1 1 0; padding: 9px 8px; font-size: 13px; }
  .hd-cta { padding: 10px 14px; font-size: 12px; }
  .hide-m { display: none !important; }
  [style*="min-height:520px"], [style*="min-height:460px"], [style*="min-height:440px"] { min-height: 0 !important; }
}
@media (max-width: 419.98px) {
  .cta-long { display: none; }
  .cta-short { display: inline; }
}

/* Formulario */
.field { width: 100%; background: var(--black); color: var(--white); border: 2px solid var(--black); border-radius: 0; padding: 18px; font-size: 17px; outline: none; }
.field::placeholder { color: #9A9A9A; }
.field:focus { border-color: var(--white); }
.btn-submit:hover, .btn-submit:focus-visible { transform: translate(6px,6px); box-shadow: 0 0 0 var(--black) !important; }
.btn-submit[disabled] { opacity: .7; cursor: progress; }
.apply-form :focus-visible { outline-color: var(--black); }

/* Etiqueta de dato ilustrativo */
.ex-tag { font-family: "JetBrains Mono", monospace; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: #9A9A9A; border: 1px solid #3A3A3A; border-radius: 3px; padding: 3px 7px; line-height: 1.2; white-space: nowrap; }

/* Legales: índice fijo solo en pantallas anchas */
@media (min-width: 760px) { .legal-aside { position: sticky; top: 100px; } }

/* Burbujas de chat (las pinta main.js) */
.msg { max-width: 88%; padding: 11px 14px; font-size: 15px; line-height: 1.4; animation: mydMsg .35s cubic-bezier(.2,.7,.2,1) both; }
.msg.them { align-self: flex-start; background: #222; border-radius: 14px 14px 14px 4px; }
.msg.us { align-self: flex-end; background: var(--orange); color: var(--black); border-radius: 14px 14px 4px 14px; font-weight: 600; }
.typing { padding: 14px 16px; border-radius: 14px; display: flex; gap: 5px; animation: mydMsg .25s both; }
.typing.them { align-self: flex-start; background: #222; }
.typing.us { align-self: flex-end; background: var(--orange); }
.typing span { width: 7px; height: 7px; border-radius: 50%; animation: mydDot 1.2s infinite; }
.typing.them span { background: var(--white); }
.typing.us span { background: var(--black); }
.typing span:nth-child(2) { animation-delay: .2s; }
.typing span:nth-child(3) { animation-delay: .4s; }

/* Aparición al hacer scroll (solo con JS) */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
.js [data-reveal].in { opacity: 1; transform: none; }

/* Botón flotante de WhatsApp */
.wa-fab { transition: transform .15s, box-shadow .15s, opacity .25s, visibility .25s !important; }
.wa-fab.fab-off { opacity: 0; visibility: hidden; pointer-events: none; }
@media (max-width: 759.98px) {
  .wa-fab { width: 52px !important; height: 52px !important; right: 14px !important; bottom: calc(14px + env(safe-area-inset-bottom, 0px)) !important; box-shadow: 4px 4px 0 #FFFFFF !important; }
  .wa-fab svg { width: 26px; height: 26px; }
}

/* Botones (nuevos bloques) */
.btn { display: inline-block; font-family: "Archivo Black", sans-serif; text-transform: uppercase; line-height: 1; font-size: 15px; padding: 18px 24px; transition: transform .15s, box-shadow .15s; }
.btn-orange { background: var(--orange); color: var(--black); box-shadow: 5px 5px 0 var(--white); }
.btn-orange:hover, .btn-orange:focus-visible { color: var(--black); transform: translate(5px,5px); box-shadow: 0 0 0 var(--white); }
.btn-ghost { background: var(--black); color: var(--white); border: 2px solid var(--white); padding: 16px 22px; box-shadow: 5px 5px 0 var(--orange); }
.btn-ghost:hover, .btn-ghost:focus-visible { color: var(--white); transform: translate(5px,5px); box-shadow: 0 0 0 var(--orange); }
.btn-black { background: var(--black); color: var(--white); box-shadow: 5px 5px 0 var(--white); }
.btn-black:hover, .btn-black:focus-visible { color: var(--white); transform: translate(5px,5px); box-shadow: 0 0 0 var(--white); }
.link-u { color: var(--white); font-weight: 700; font-size: 15px; border-bottom: 2px solid var(--orange); padding-bottom: 3px; }
.link-u:hover { color: var(--orange); }

/* Preguntas frecuentes */
.faq { border-top: 1px solid #2A2A2A; }
.faq details { border-bottom: 1px solid #2A2A2A; }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 24px 0; font-family: "Archivo Black", sans-serif; font-size: clamp(18px, 1.8vw, 22px); line-height: 1.2; text-transform: uppercase; letter-spacing: -0.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: "JetBrains Mono", monospace; color: var(--orange); font-size: 24px; flex: none; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--orange); }
.faq p { margin: 0 0 24px; max-width: 760px; font-size: 17px; line-height: 1.6; color: var(--text-2); }

textarea.field { min-height: 110px; resize: vertical; }

/* Cortinilla entre páginas (desactivada) */
.curtain { position: fixed; inset: 0; z-index: 95; background: var(--orange); display: flex; align-items: center; justify-content: center; pointer-events: none; transform: translateY(100%); }
.curtain .c-logo { display: flex; align-items: center; gap: 12px; font-family: "Archivo Black", sans-serif; font-size: clamp(28px,4vw,48px); line-height: 1; letter-spacing: -0.02em; text-transform: uppercase; color: var(--black); }
.curtain .c-deal { background: var(--black); color: var(--orange); padding: 8px 12px 6px; border-radius: 4px; }
.curtain.cover { transform: none; }
.curtain.enter { transition: transform .43s cubic-bezier(.7,0,.3,1); transform: none; }
.curtain.leave { transition: transform .47s cubic-bezier(.7,0,.3,1); transform: translateY(-100%); }

/* Movimiento reducido: todo estático */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .curtain { display: none; }
}

/* ===== Efectos de scroll (escenas) ===== */
.progress { position: fixed; top: 0; left: 0; height: 3px; width: 100%; background: var(--orange); transform-origin: 0 50%; transform: scaleX(0); z-index: 70; pointer-events: none; }
.scene { position: relative; height: 240vh; border-top: 1px solid var(--border); }
.scene.take { height: 200vh; border-top: 0; }
.scene .stage { position: sticky; top: 0; height: 100vh; height: 100dvh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; padding-inline: clamp(20px,4vw,48px); padding-block: 96px 40px; }
.scene .s-inner { max-width: 1100px; width: 100%; margin: 0 auto; }
.s-kicker { font-family: "JetBrains Mono", monospace; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--orange); margin: 0 0 22px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.s-kicker span:last-child { color: var(--text-4); }

/* 1 · Llamada */
.s-call { display: flex; flex-direction: column; gap: 12px; max-width: 640px; margin: 0 auto; }
.s-line { max-width: 86%; padding: 12px 16px; font-size: clamp(15px,1.5vw,18px); line-height: 1.4; opacity: 0; transform: translateY(14px); transition: opacity .35s, transform .35s; }
.s-line.on { opacity: 1; transform: none; }
.s-line.them { align-self: flex-start; background: #222; border-radius: 14px 14px 14px 4px; }
.s-line.us { align-self: flex-end; background: var(--orange); color: var(--black); font-weight: 600; border-radius: 14px 14px 4px 14px; }
.s-stamp { align-self: center; margin-top: 18px; font-family: "Archivo Black", sans-serif; font-size: clamp(28px,5vw,56px); line-height: 1; text-transform: uppercase; color: var(--orange); border: 5px solid var(--orange); padding: 12px 22px 8px; transform: rotate(-6deg) scale(2.4); opacity: 0; transition: transform .35s cubic-bezier(.2,1.6,.4,1), opacity .2s; }
.s-stamp.on { transform: rotate(-6deg) scale(1); opacity: 1; }

/* 2 · Palabra que se llena */
.s-fill { font-family: "Archivo Black", sans-serif; font-size: clamp(64px,19vw,260px); line-height: .9; letter-spacing: -0.03em; text-transform: uppercase; text-align: center; -webkit-text-stroke: 2px var(--orange); color: transparent; background: linear-gradient(to top, var(--orange) 0%, var(--orange) var(--p,0%), transparent var(--p,0%)); -webkit-background-clip: text; background-clip: text; }
.s-cap { text-align: center; font-family: "JetBrains Mono", monospace; font-size: 14px; color: var(--text-4); margin-top: 20px; font-variant-numeric: tabular-nums; }
.s-sub { text-align: center; font-size: clamp(17px,1.8vw,21px); line-height: 1.5; color: var(--text-2); max-width: 46ch; margin: 18px auto 0; }

/* 3 · Tachado */
.s-words { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.s-w { position: relative; font-family: "Archivo Black", sans-serif; font-size: clamp(34px,8vw,96px); line-height: 1.02; letter-spacing: -0.02em; text-transform: uppercase; color: #5C5C5C; }
.s-w::after { content: ""; position: absolute; left: -2%; top: 50%; height: .12em; width: var(--s,0%); background: var(--orange); }
.s-truth { font-family: "Archivo Black", sans-serif; font-size: clamp(34px,8vw,96px); line-height: 1; letter-spacing: -0.02em; text-transform: uppercase; background: var(--orange); color: var(--black); padding: .1em .16em .04em; margin-top: 16px; opacity: 0; transform: translateX(-30px); transition: opacity .35s, transform .35s; }
.s-truth.on { opacity: 1; transform: none; }

/* 4 · Contador */
.s-count { text-align: center; }
.s-num { font-family: "Archivo Black", sans-serif; font-size: clamp(100px,26vw,320px); line-height: .85; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.s-num small { font-size: .32em; color: var(--text-4); margin-left: .08em; letter-spacing: 0; }
.s-yes { display: none; font-family: "Archivo Black", sans-serif; font-size: clamp(100px,26vw,320px); line-height: .85; color: var(--orange); }
.s-count.done .s-num { display: none; }
.s-count.done .s-yes { display: block; animation: sPop .4s cubic-bezier(.2,1.6,.4,1); }
@keyframes sPop { from { transform: scale(.4); } to { transform: scale(1); } }

/* 5 · Toma de color */
.take .stage { background: var(--black); color: var(--white); }
.s-big { font-family: "Archivo Black", sans-serif; font-size: clamp(40px,8.4vw,120px); line-height: 1; letter-spacing: -0.03em; text-transform: uppercase; margin: 0; text-wrap: balance; }
.s-big span { display: block; }
.s-ctas { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 44px; }
.take .s-kicker span:last-child { color: inherit; opacity: .7; }
.take .lit .s-kicker { color: var(--black); }
.take .lit .btn-orange { background: var(--black); color: var(--white); box-shadow: 5px 5px 0 var(--white); }
.take .lit .btn-orange:hover { color: var(--white); }
.take .lit .btn-ghost { background: transparent; color: var(--black); border-color: var(--black); box-shadow: 5px 5px 0 var(--black); }
.take .lit .btn-ghost:hover { color: var(--black); box-shadow: 0 0 0 var(--black); }

@media (max-width: 759.98px) {
  .scene { height: 220vh; }
  .scene .stage { padding-block: 140px 32px; }
}
@media (prefers-reduced-motion: reduce) {
  .scene, .scene.take { height: auto; }
  .scene .stage { position: relative; height: auto; min-height: 0; padding-block: 96px; }
  .s-line, .s-stamp, .s-truth { opacity: 1 !important; transform: none !important; }
  .s-stamp { transform: rotate(-6deg) !important; }
  .progress { display: none; }
}
.s-w s { text-decoration: none; }
