/* DLX · maqueta del brief «Dirección de arte» sobre la web original (no cambia el contenido)
   Titulares: Chakra Petch SemiBold 600 (OFL 1.1) · segunda muestra: Exo 2 SemiBold 600 (OFL 1.1)
   Texto, botones y preguntas: Inter 400/500 (OFL 1.1). Todas autoalojadas, uso comercial libre.
   Colores: DLX-paleta-del-logo.md. Intro del lince y pie sobre el Mar de liquidez, como en /original/. */
@font-face { font-family: "Chakra Petch"; src: url("assets/fonts/chakra-petch-latin-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Chakra Petch"; src: url("assets/fonts/chakra-petch-latin-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Exo 2"; src: url("assets/fonts/exo2-latin-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Exo 2"; src: url("assets/fonts/exo2-latin-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Inter"; src: url("assets/fonts/inter-latin-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("assets/fonts/inter-latin-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter"; src: url("assets/fonts/inter-latin-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }

/* ---------- paleta del logo, puesta sobre las variables de la web ---------- */
:root {
  --dlx-bg: #010820; --dlx-panel: #08142C; --dlx-panel-raised: #10203C;
  --dlx-text: #EDF7FF; --dlx-text-muted: #A8BEDA; --dlx-highlight: #6099E8; --dlx-focus: #42FBFE;
  --dlx-action: #03CAE0; --dlx-action-text: #010820; --dlx-blue: #0187F8; --dlx-gradient-blue: #009EFB; --dlx-control-border: #5E789C;

  --bg: var(--dlx-bg); --bg-deep: #000616;
  --panel: var(--dlx-panel); --panel-2: var(--dlx-panel-raised); --panel-3: #18305A;
  --line: #1B2E50; --line-soft: #102140;
  --text: var(--dlx-text); --muted: var(--dlx-text-muted); --muted-2: #8EA6C6;
  --accent: var(--dlx-action); --accent-2: var(--dlx-focus);

  --titular: "Chakra Petch", "Segoe UI", system-ui, sans-serif;
  --font: "Inter", "Segoe UI", system-ui, sans-serif;
}
.t-exo { --titular: "Exo 2", "Segoe UI", system-ui, sans-serif; }

::selection { background: rgba(3, 202, 224, .35); color: #fff; }
:focus-visible { outline-color: var(--dlx-focus); }

/* ---------- titulares: caja de frase, mismo tamaño que hoy ---------- */
h1, h2, h3, .hl-rotulo, .pilares dt, .modal h2 { font-family: var(--titular); font-stretch: normal; }
.portada h1 { font-weight: 600; letter-spacing: -.01em; line-height: 1; color: var(--dlx-text); }
.seccion-cab h2, .contacto h2, .faq h2, .cuanti h2, .modal h2 { font-weight: 600; letter-spacing: -.01em; }
.panel-mercado h2, .tour-texto h3, .pasos h3, .pilares dt, .hl-rotulo { font-weight: 600; letter-spacing: 0; }
.t-exo .portada h1 { letter-spacing: -.015em; }

/* texto, botones y preguntas en Inter 400/500 */
.btn, .faq-lista summary, .tg b { font-weight: 500; }
.faq-lista summary { font-family: var(--font); }
.btn-primary { background: var(--dlx-action); color: var(--dlx-action-text); }
.btn-primary:hover { background: var(--dlx-focus); }
.btn-ghost:hover { border-color: var(--dlx-action); background: rgba(3, 202, 224, .07); }
.btn-ghost { border-color: var(--dlx-control-border); }
.contacto { background: linear-gradient(180deg, var(--bg) 0%, #061733 100%); }
.tour-marco { background: #000a1c; }
.panel-mercado.dlx { border-color: rgba(3, 202, 224, .5); }

/* ---------- portada: «De traders,» blanco hielo y «para traders.» cian claro ---------- */
.pal { display: inline-block; opacity: 0; filter: blur(14px); transform: translateY(.08em);
  transition: opacity .75s var(--ease-out), filter .75s var(--ease-out), transform .75s var(--ease-out); transition-delay: calc(var(--i, 0) * 130ms); }
.ver .pal { opacity: 1; filter: none; transform: none; }
 .portada h1 > span { color: var(--dlx-highlight); }
/* opción ?puntos: relleno de matriz de puntos en vez de color liso */
.puntos .pal { -webkit-text-fill-color: transparent; color: transparent;
  background-image: radial-gradient(circle at 50% 50%, var(--dlx-text) 0 42%, transparent 48%);
  background-size: var(--paso, 4px) var(--paso, 4px); -webkit-background-clip: text; background-clip: text; }

.portada { background: radial-gradient(ellipse at 80% 45%, rgba(40,86,148,.15), transparent 58%), var(--dlx-bg); }
.portada-video { position: relative; isolation: isolate; }
.portada-video::before {
  content: "";
  position: absolute;
  inset: -30px -22px;
  pointer-events: none;
  z-index: -1;
  background-image: linear-gradient(90deg, rgba(96,153,232,.09) 1px, transparent 1px),
                    linear-gradient(rgba(96,153,232,.09) 1px, transparent 1px);
  background-size: 6px 6px;
  mask-image: linear-gradient(to right, transparent, black 22px, black calc(100% - 22px), transparent),
              linear-gradient(to bottom, transparent, black 30px, black calc(100% - 30px), transparent);
  mask-composite: intersect;
}

/* ---------- marca: el lince del logo nuevo + sus letras «DLX» (imágenes del logo, no una fuente) ---------- */
.brand { gap: 9px; }
.brand-logo { width: auto; height: 40px; }
.brand-letras { display: block; width: auto; height: 21px; margin-top: 1px; }
.brand:hover .brand-logo { transform: rotate(-6deg) scale(1.06); }
.brand-name { font-family: var(--titular); font-size: 22px; font-weight: 700; font-stretch: normal; letter-spacing: .02em; color: var(--dlx-text); display: inline-flex; align-items: baseline; }
.x-letra, .brand-dot { display: none; }
.x-punta { display: inline-block; height: .7em; width: calc(.7em * 64 / 70); margin-left: .02em; overflow: visible; }
.x-punta .trazo { fill: var(--dlx-gradient-blue); }
.x-punta .punta { fill: var(--dlx-gradient-blue); }
/* versión de comparación: X normal y punto azul, como la web de hoy */
.x-punto .x-letra { display: inline; }
.x-punto .brand-dot { display: inline; color: var(--dlx-gradient-blue); }
.x-punto .x-punta { display: none; }

/* ---------- intro: el logo nuevo con su barra de carga; se abre sola ---------- */
.intro { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; }
.intro-hoja { position: absolute; top: 0; bottom: 0; width: 50.5%; background: var(--dlx-bg); transition: transform .7s cubic-bezier(.7,0,.2,1); }
.intro-hoja.izq { left: 0; } .intro-hoja.der { right: 0; }
.intro.abre { pointer-events: none; }
.intro.abre .intro-hoja.izq { transform: translateX(-100%); }
.intro.abre .intro-hoja.der { transform: translateX(100%); }
.intro-marca { position: relative; z-index: 1; display: grid; justify-items: center; gap: 18px; transition: opacity .45s, transform .7s cubic-bezier(.7,0,.2,1), filter .45s; }
.intro.abre .intro-marca { opacity: 0; transform: scale(1.08); filter: blur(6px); }
.intro-logo { width: min(44vmin, 360px); height: auto; display: block; opacity: 0; transform: scale(.94); filter: blur(8px) drop-shadow(0 0 0 rgba(3,202,224,0));
  transition: opacity .45s ease-out, transform .9s cubic-bezier(.2,.8,.2,1), filter .6s ease-out; }
.intro.lista .intro-logo { opacity: 1; transform: none; filter: blur(0) drop-shadow(0 0 28px rgba(3,202,224,.28)); }
.intro-carga { opacity: 0; transition: opacity .3s ease-out .1s; }
.intro.lista .intro-carga { opacity: 1; }
.intro-carga { width: min(78vw, 240px); white-space: nowrap; display: grid; gap: 8px; font: 500 11px/1 var(--mono); letter-spacing: .14em; color: #5f7ea6; text-transform: uppercase; }
.intro-carga i { display: block; height: 1px; background: #0f2148; overflow: hidden; }
.intro-carga i { height: 2px; border-radius: 2px; }
.intro-carga i::after { content: ""; display: block; height: 100%; width: var(--p, 0%); background: linear-gradient(90deg, var(--dlx-blue), var(--dlx-focus)); box-shadow: 0 0 8px var(--dlx-focus); }
.intro-carga span { display: flex; justify-content: space-between; }
.intro.fuera { display: none; }
/* movimiento reducido: la marca completa, sin armado ni telón; se va con un fundido */
.intro.quieta { transition: opacity .3s linear; }
.intro.quieta .intro-hoja { width: 100%; left: 0; right: auto; transition: none; }
.intro.quieta.abre { opacity: 0; }
.intro.quieta.abre .intro-hoja, .intro.quieta.abre .intro-marca { transform: none; filter: none; }
.intro.quieta .intro-carga { visibility: hidden; }

/* ---------- pie sobre el Mar de liquidez (aprobado), con el contenido de siempre ---------- */
.site-footer.escena { position: relative; border-top: 0; padding: 0; margin-top: 40px; min-height: clamp(520px, 48vw, 920px); display: flex; flex-direction: column; isolation: isolate; }
.escena-media { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.escena-media video, .escena-media img, .escena-media canvas { position: absolute; left: 0; bottom: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 100%;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 34%); mask-image: linear-gradient(to bottom, transparent 0%, #000 34%); }
/* el vídeo se ve tal cual (sin el dither de antes) */
.vineta { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(120% 90% at 50% 40%, transparent 45%, rgba(1,8,32,.85) 100%), linear-gradient(to top, rgba(1,8,32,.9), transparent 30%); }
/* sin logo en el pie (ya está en la cabecera fija): la escena respira y el texto va en una sola franja abajo */
.pie-aviso { margin-top: auto; padding: 16px 0 22px; display: flex; align-items: center; justify-content: space-between; gap: 18px 40px;
  border-top: 1px solid rgba(237,247,255,.08); }
.pie-aviso nav { order: 2; display: flex; gap: 22px; font-size: 14px; flex: none; }
.pie-aviso nav a { color: var(--dlx-text-muted); text-shadow: 0 1px 8px rgba(1,8,32,.95); transition: color .2s; }
.pie-aviso nav a:hover { color: var(--dlx-text); }
.pie-aviso p { color: rgba(237,247,255,.75); font-size: 12.5px; max-width: 60ch; text-shadow: 0 1px 8px rgba(1,8,32,.95); }

/* ---------- sello de la maqueta con los conmutadores de la prueba ---------- */
.sello-maqueta { position: fixed; right: 14px; bottom: 14px; z-index: 250; display: flex; align-items: center; gap: 10px; font: 500 12px/1 var(--mono); color: var(--muted);
  background: rgba(8,20,44,.92); border: 1px solid var(--line); border-radius: 999px; padding: 6px 8px 6px 12px; }
.sello-maqueta a { padding: 5px 9px; border-radius: 999px; color: var(--muted); }
.sello-maqueta a[aria-current="true"] { background: var(--panel-3); color: var(--dlx-text); }
.sello-maqueta a:hover { color: var(--dlx-text); }
.sello-maqueta .elegida { padding: 5px 9px; border-radius: 999px; background: var(--panel-3); color: var(--dlx-text); }

@media (max-width: 900px) {
  .site-footer.escena { min-height: 820px; }
  .escena-media video, .escena-media img, .escena-media canvas { object-position: 33% 100%; height: 62%; top: auto; }
}
@media (max-width: 640px) { .sello-maqueta { display: none; } .pie-aviso { flex-direction: column; align-items: flex-start; } .pie-aviso nav { order: 0; } }
@media (prefers-reduced-motion: reduce) {
  .pal { opacity: 1; filter: none; transform: none; transition: none; }
  
  .escena-media video { display: none; }
}

/* Escala de lectura de la portada */
.portada h1 { font-size: clamp(2.875rem, 6vw, 5.75rem); }
.portada .portada-lead { font-size: clamp(1.125rem, 1.55vw, 1.375rem); line-height: 1.5; }
.portada .pilares dt { font-size: 1.125rem; }
.portada .pilares dd { font-size: 1rem; line-height: 1.5; }
/* Escala de lectura para módulos, acceso y preguntas */
.portada h1 { font-size: clamp(2.875rem, 6.5vw, 6rem); }
.portada .pilares dd, .tour-partes span, .faq-lista p { font-size: 1.0625rem; }
.seccion-cab p, .contacto p, .tour-texto > p, .faq-lista summary { font-size: clamp(1.125rem, 1.6vw, 1.375rem); }
.nav-actions .btn-lanzar span { display: inline; }
@media (max-width: 520px) {
  .nav-inner { flex-wrap: wrap; gap: 6px; }
  .nav-actions { flex-wrap: wrap; gap: 5px; }
}
@media (prefers-reduced-motion: reduce) {
  .btn-lanzar::before { animation: none; opacity: 0; }
}

/* Escala de escritorio basada en las medidas de acceso, contacto y cabecera. */
/* (antes: html { zoom: 1.31 } desde 1450 px, que en 1920 dejaba ~1466 px útiles y lo llenaba todo de borde a borde;
   ahora la escala es continua y sólo por encima de 1954 px: lo pone el script de <head>) */
@media (min-width: 1450px) {
  .container { width: min(92%, 1400px); }
  .nav-inner { height: 64px; }
  .portada h1 { font-size: clamp(58px, 5.2vw, 80px); }
  .portada .portada-lead { font-size: 18px; }
  .portada .pilares dd { font-size: 15px; }
  .portada .pilares dt { font-size: 17px; }
  .contacto h2 { max-width: 18ch; }
  .contacto p, .seccion-cab p { font-size: 17px; }
  .contacto p { max-width: 57ch; }
}
.nav-inner > .btn-lanzar { flex: none; background: linear-gradient(105deg,#35a7ff,#21cee4); }
@media (max-width: 520px) {
  .nav-inner { height: auto; min-height: 64px; padding-block: 6px; }
}

/* Luz baja en la columna del título, que se pierde al llegar al acordeón. */
.faq {
  background-image: radial-gradient(ellipse at 14% 75%, rgba(55,111,197,.16), transparent 51%);
}
.faq-grid > :first-child {
  background-image: linear-gradient(90deg, transparent, rgba(96,153,232,.4) 25%, transparent 85%);
  background-size: min(15rem,80%) 1px;
  background-position: left bottom;
  background-repeat: no-repeat;
  padding-bottom: 1.1rem;
}
/* ---------- 27-nov: hueco del vídeo de presentación (16:9), vacío hasta que llegue el vídeo ---------- */
.video-marco { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden;
  border: 1px solid var(--line); background: radial-gradient(120% 90% at 70% 20%, rgba(40,86,148,.16), transparent 60%), #030c22;
  box-shadow: var(--shadow, 0 24px 60px -30px rgba(0,0,0,.8)), 0 40px 90px -50px rgba(0, 0, 0, .9); }
.video-marco > video, .video-marco > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---------- 27-nov: textos del recorrido alineados con su titular ---------- */
@media (min-width: 1101px) { .recorrido .tour-escena { grid-template-columns: minmax(0, 1fr) 340px; } }
.tour-texto h3 { text-wrap: balance; }
.tour-texto > p, .tour-partes span { text-wrap: pretty; }
.tour-partes { margin-left: -10px; margin-right: -10px; }       /* el número cae justo bajo el titular */
.tour-partes li { column-gap: 12px; row-gap: 3px; align-items: center; }
.tour-partes li::before { align-self: start; margin-top: 1px; }
/* 27-nov: los vídeos nuevos son anchos (≈1,93:1) y sólo el módulo; el marco pasa de 1416/842 a 16:9 */
.tour-lienzo { aspect-ratio: 16 / 9; }
