/* T.T AI Firm · propuesta 3 · base: tipografía, tokens, cabecera, botones, apariciones.
   Lenguaje visual: oscuro cálido, titulares en minúscula con punto final, ceja numerada,
   un solo acento (arena) y luces ámbar/turquesa solo en la portada. */

@font-face { font-family: "Inter"; font-style: normal; font-weight: 300 800; font-display: swap; src: url("../fuentes/inter-v20-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --negro: #0c0b0a;
  --carbon: #141210;
  --panel: #1c1916;
  --panel-2: #25211e;
  --panel-3: #302b27;
  --linea: rgba(240, 232, 222, .10);
  --linea-2: rgba(240, 232, 222, .18);
  --crema: #f3ede5;
  --suave: #b4aca2;
  --tenue: #857d74;
  --arena: #dcbfa3;
  --arena-2: #b98f6e;
  --ambar: #ff9b52;
  --turquesa: #3fd3c3;

  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --suelta: cubic-bezier(.16, 1, .3, 1);
  --ancho: 1240px;
  --margen: clamp(20px, 5vw, 64px);
  --cabecera: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--cabecera) + 12px); -webkit-text-size-adjust: 100%; }
body {
  background: var(--negro); color: var(--crema);
  font: 400 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "cv11";
  overflow-x: hidden;
}
img, svg, canvas, video { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ol, ul { list-style: none; }
b, strong { font-weight: 600; color: var(--crema); }
em { font-style: normal; }
::selection { background: var(--arena); color: var(--negro); }
html.trabado { overflow: hidden; }   /* la ventana del cuestionario abierta */
:focus-visible { outline: 2px solid var(--arena); outline-offset: 3px; border-radius: 6px; }

/* el humo café de la referencia: fijo, abajo, detrás de todo */
.humo {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(110% 70% at 78% 115%, rgba(128, 98, 74, .30), transparent 62%),
    radial-gradient(70% 55% at -5% 105%, rgba(96, 74, 58, .20), transparent 60%),
    linear-gradient(180deg, #0c0b0a 0%, #0f0d0c 55%, #15120f 100%);
}
.humo::after {
  content: ""; position: absolute; inset: 0; opacity: .05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

.envoltura { width: 100%; max-width: calc(var(--ancho) + var(--margen) * 2); margin-inline: auto; padding-inline: var(--margen); }

/* ── tipografía ── */
h1, h2, h3 { font-weight: 600; color: var(--crema); text-wrap: balance; }
h2 { font-size: clamp(36px, 4.8vw, 66px); line-height: 1.02; letter-spacing: -.045em; max-width: 18ch; }
h3 { font-size: 20px; line-height: 1.2; letter-spacing: -.02em; }
.ceja { font-size: 11.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--suave); margin-bottom: 22px; }
.parrafo { color: var(--suave); font-size: clamp(16px, 1.25vw, 18px); line-height: 1.6; max-width: 58ch; margin-top: 22px; text-wrap: pretty; }
.parrafo b { color: var(--crema); }
.lead { font-size: clamp(20px, 2vw, 26px); line-height: 1.35; letter-spacing: -.02em; color: var(--crema); max-width: 34ch; margin-top: 20px; font-weight: 500; text-wrap: balance; }
.nota { margin-top: 26px; font-size: 13.5px; color: var(--tenue); }
.nota a { color: var(--suave); text-underline-offset: 3px; }

/* ── botones ── */
.pastilla {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 22px;
  border-radius: 999px; background: var(--crema); color: var(--negro);
  font-weight: 600; font-size: 15px; letter-spacing: -.01em; text-decoration: none; white-space: nowrap;
  transition: transform .25s var(--suelta), background-color .25s;
}
.pastilla span { transition: transform .25s var(--suelta); }
.pastilla:hover { background: #fff; }
.pastilla:hover span { transform: translateX(3px); }
.pastilla:active { transform: scale(.98); }
.pastilla.linea { background: transparent; color: var(--crema); box-shadow: inset 0 0 0 1px var(--linea-2); }
.pastilla.linea:hover { background: rgba(243, 237, 229, .08); box-shadow: inset 0 0 0 1px var(--crema); }
.enlace {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  font-weight: 600; font-size: 15px; color: var(--crema); text-decoration: underline;
  text-decoration-color: var(--linea-2); text-underline-offset: 6px; text-decoration-thickness: 1px;
  transition: text-decoration-color .2s;
}
.enlace:hover { text-decoration-color: var(--crema); }

/* ── cabecera ── */
.cabecera {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--cabecera);
  display: flex; align-items: center; gap: 28px; padding-inline: var(--margen);
  transition: background-color .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.cabecera.bajo { background: rgba(12, 11, 10, .72); -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2); border-color: var(--linea); }
.marca { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.marca svg { width: 30px; height: 30px; }
.marca span { display: flex; flex-direction: column; line-height: 1.1; }
.marca b { font-size: 14.5px; letter-spacing: -.01em; }
.marca small { font-size: 10.5px; color: var(--tenue); letter-spacing: .1em; text-transform: uppercase; font-weight: 600; }
.enlaces { display: flex; gap: 26px; }
.enlaces a { font-size: 14px; color: var(--suave); text-decoration: none; transition: color .2s; }
.enlaces a:hover { color: var(--crema); }
.enlaces a.destacado { color: var(--crema); font-weight: 600; }
.cabecera-accion { display: inline-flex; gap: 8px; align-items: center; font-weight: 600; font-size: 14px; text-decoration: none; white-space: nowrap; }
.cabecera-accion span { transition: transform .25s var(--suelta); }
.cabecera-accion:hover span { transform: translateX(3px); }
.hamburguesa { display: none; width: 44px; height: 44px; position: relative; }
.hamburguesa i { position: absolute; left: 11px; right: 11px; height: 1.5px; background: var(--crema); transition: transform .3s var(--suelta); }
.hamburguesa i:first-child { top: 18px; } .hamburguesa i:last-child { top: 25px; }
.hamburguesa[aria-expanded="true"] i:first-child { transform: translateY(3.5px) rotate(45deg); }
.hamburguesa[aria-expanded="true"] i:last-child { transform: translateY(-3.5px) rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 45; padding: calc(var(--cabecera) + 24px) var(--margen) 32px;
  background: rgba(12, 11, 10, .97); display: flex; flex-direction: column; justify-content: space-between;
}
.menu[hidden] { display: none; }
.menu nav { display: flex; flex-direction: column; }
.menu nav a { font-size: 34px; font-weight: 600; letter-spacing: -.04em; text-decoration: none; padding: 10px 0; border-bottom: 1px solid var(--linea); }
.menu .pastilla { justify-content: center; white-space: normal; text-align: center; }

@media (max-width: 1080px) { .enlaces { display: none; } }
@media (max-width: 760px) {
  :root { --cabecera: 64px; }
  .cabecera-accion { display: none; }
  .hamburguesa { display: block; }
}

/* ── apariciones ── */
.ap { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--suelta), transform .9s var(--suelta); transition-delay: var(--dl, 0ms); }
.ap.visto { opacity: 1; transform: none; }

/* palabras que se encienden con el scroll */
.enciende span { opacity: .16; transition: opacity .35s ease; }
.enciende span.on { opacity: 1; }

/* ── zócalo del teléfono ── */
.zocalo {
  position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 40;
  display: none; transform: translateY(140%); transition: transform .45s var(--suelta);
}
.zocalo .pastilla { width: 100%; justify-content: center; box-shadow: 0 14px 40px rgba(0, 0, 0, .45); }
.zocalo.ver { transform: none; }
@media (max-width: 760px) { .zocalo { display: block; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ap { opacity: 1; transform: none; transition: none; }
  .enciende span { opacity: 1; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
