/* 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; }
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-nav { order: 3; flex-basis: 100%; }
  .hd-nav a { flex: 1 1 0; }
}
@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; }

/* Cortinilla entre páginas */
.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; }
}
