/* ══════════════════════════════════════════════════════════════
   ARPADA TRADING — CSS DE LA WEB PÚBLICA
   Se carga DESPUÉS de arpada-tokens.css y arpada.css y solo lleva lo que es de la web:
   el reset, la tipografía base, el navbar fijo sobre el vídeo, el hero, la barra de tickers,
   las tarjetas de estadísticas, el selector de idioma y los retoques del banner de cookies.
   Todo cuelga de body.web-page: el dashboard, el backoffice y api_console no lo cargan.
   Los valores de escritorio son los de arpada-base/components/hero/ticker.css, literales.
   ══════════════════════════════════════════════════════════════ */

/* Alias de los nombres que usan las plantillas de la web (se irán con los style="" de las fases 2 y 3). */
:root {
  --arpada-font: var(--font-sans);
  --arpada-mono: var(--font-mono);
}

/* ── Reset y tipografía base ──────────────────────────────────────
   :where() deja la especificidad en 0, como el `*` y los `h1…` originales: cualquier clase gana. */
:where(.web-page, .web-page *) { margin: 0; padding: 0; }
:where(.web-page) :where(h1, h2, h3, h4, h5, h6) { font-weight: 600; line-height: 1.2; color: var(--arpada-text); }
:where(.web-page) h1 { font-size: 3.5rem; letter-spacing: -2px; }
:where(.web-page) h2 { font-size: 2.5rem; letter-spacing: -1px; }
:where(.web-page) h3 { font-size: 1.75rem; }
:where(.web-page) h4 { font-size: 1.25rem; }
:where(.web-page) p { color: var(--arpada-muted); line-height: 1.6; }
.web-page .section-padding { padding: 100px 0; }
.web-page .text-accent { color: var(--arpada-cyan-bright); }
.web-page .text-muted { color: var(--arpada-muted); }
/* arpada.css da 32px de relleno a .glass-card; en la web cada uso lo fija con su style="" (hasta la fase 3). */
.web-page .glass-card { padding: 0; }
html:has(.web-page) { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html:has(.web-page) { scroll-behavior: auto; } }

@media (max-width: 768px) {
  :where(.web-page) h1 { font-size: 2.5rem; }
  :where(.web-page) h2 { font-size: 2rem; }
  .web-page .section-padding { padding: 60px 0; }
}

/* ── Navbar: fijo y transparente sobre el vídeo (en la app es sticky) ─────── */
.web-page .navbar-arpada { position: fixed; left: 0; right: 0; }
@media (max-width: 768px) { .web-page .navbar-arpada { padding: 14px 18px; } }
.web-page .navbar-arpada .pill-link.outline:hover { background: var(--arpada-cyan); color: var(--arpada-ink); }
.web-page .pill-link { text-decoration: none; }

/* Selector de idioma: un <details class="menu"> (sin JS). Valores del original. */
.web-page .language-selector > summary.lang-current {
  min-height: 0; display: flex; align-items: center; gap: 6px;
  background: transparent; border: 1px solid var(--arpada-line); color: var(--arpada-muted);
  font-family: var(--arpada-mono); font-size: 12px; letter-spacing: 0.5px; position: relative;
}
.web-page .language-selector > summary.lang-current:hover { background: var(--arpada-cyan); color: var(--arpada-ink); }
.web-page .language-selector > summary .lang-chevron { margin-left: 4px; }
.web-page .lang-dropdown {
  min-width: 140px; background: rgba(8, 20, 38, 0.95);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  box-shadow: none;
}
.web-page .lang-dropdown form { margin: 0; }
.web-page .lang-option { min-height: 0; font-family: var(--arpada-font); transition: background 0.2s ease; }
.web-page .lang-option:hover { background: rgba(31, 191, 212, 0.1); }
.web-page .lang-option[aria-current="true"] { color: var(--arpada-cyan-bright); }
.web-page .lang-code { font-family: var(--arpada-mono); font-size: 12px; letter-spacing: 0.5px; min-width: 22px; color: var(--arpada-muted); }

/* Hoja móvil: etiqueta «Idioma» y botones de idioma de la hoja. */
.web-page .nav-sheet .nav-sheet-label { padding: 6px 12px 2px; font-family: var(--arpada-mono); font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--arpada-dim); }
.web-page .nav-sheet button[aria-current="true"] { background: var(--arpada-cyan-soft); color: var(--arpada-cyan-bright); }

/* ── Etiqueta del hero ──────────────────────────────────────────── */
.web-page .eyebrow-badge { backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }

/* ══════════════════════════════════════════════════════════════
   HERO (arpada-hero.css)
   ══════════════════════════════════════════════════════════════ */
.hero-section {
  position: relative;
  height: 100vh;
  min-height: 720px;
  overflow: hidden;
  color: var(--arpada-text);
  display: flex;
  align-items: center;
  justify-content: center;
  /* Fondo propio: lo ve quien no carga el vídeo (movimiento reducido o ahorro de datos). */
  background: linear-gradient(135deg, #0a1628 0%, #1a2642 100%);
}
.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  z-index: 0;
  transform: translate(-50%, -50%) scale(1.08);
  object-fit: cover;
}
.video-off video { display: none; }
@media (prefers-reduced-motion: reduce) { .web-page video { display: none; } }

.video-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(8, 20, 38, 0.55) 0%, rgba(8, 20, 38, 0.35) 50%, rgba(8, 20, 38, 0.95) 100%);
}
.video-overlay-radial {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(ellipse at 50% 45%, transparent 0%, rgba(8, 20, 38, 0.55) 100%);
}
.grid-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.25;
  background-image:
    linear-gradient(var(--arpada-line2) 1px, transparent 1px),
    linear-gradient(90deg, var(--arpada-line2) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
}
.hero-content {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 72px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
}
.hero-text { max-width: 600px; }
.hero-title {
  margin: 0 0 28px 0;
  font-size: 88px;
  line-height: 0.92;
  letter-spacing: -3.5px;
  font-weight: 600;
  color: var(--arpada-text);
  text-shadow: 0 4px 40px rgba(0, 0, 0, 0.35);
}
.hero-italic { font-family: Georgia, serif; font-style: italic; font-weight: 400; color: var(--arpada-cyan-bright); letter-spacing: -4px; }
.hero-description { margin: 28px 0 0; font-size: 18px; line-height: 1.5; color: var(--arpada-muted); max-width: 480px; font-weight: 400; }
.hero-ctas { display: flex; gap: 12px; margin-top: 40px; }
.hero-aside { justify-self: end; }
.hero-ticker-wrapper { position: absolute; left: 0; right: 0; bottom: 70px; z-index: 3; }
@media (max-height: 700px) { .hero-ticker-wrapper { bottom: 60px; } }
@media (max-height: 600px) { .hero-ticker-wrapper { bottom: 50px; } }

.scroll-cue {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  color: var(--arpada-muted);
  font-size: 10px;
  font-family: var(--arpada-mono);
  letter-spacing: 2px;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.scroll-line { width: 1px; height: 32px; background: linear-gradient(var(--arpada-muted), transparent); }

.hero-text .eyebrow-badge { margin-bottom: 28px; }

/* Tablet y móvil: el hero crece con su contenido (tarjeta de mercados bajo los CTA, ticker en el flujo). */
@media (max-width: 1024px) {
  .hero-section { height: auto; min-height: 100vh; min-height: 100svh; flex-direction: column; justify-content: center; padding: 104px 0 28px; }
  .hero-content { grid-template-columns: 1fr; padding: 0 40px; gap: 40px; }
  .hero-aside { justify-self: start; width: 100%; max-width: 560px; }
  .hero-title { font-size: 64px; letter-spacing: -2.5px; }
  .hero-ticker-wrapper { position: relative; bottom: auto; margin-top: 32px; width: 100%; min-width: 0; max-width: 100%; }
  .scroll-cue { display: none; }
}
@media (max-width: 768px) {
  .hero-section { min-height: 100vh; min-height: 100svh; padding-top: 88px; }
  .hero-content { padding: 0 20px; gap: 32px; }
  .hero-title { font-size: 48px; letter-spacing: -2px; }
  .hero-italic { letter-spacing: -2px; }
  .hero-description { font-size: 16px; }
  .hero-ctas { flex-direction: column; }
  .hero-ctas > a { width: 100%; justify-content: center; }
  .hero-aside { max-width: none; }
}

/* ══════════════════════════════════════════════════════════════
   BARRA DE TICKERS (arpada-ticker.css): lo que arpada.css no trae
   ══════════════════════════════════════════════════════════════ */
.web-page .ticker-bar { -webkit-backdrop-filter: blur(14px); position: relative; width: 100%; max-width: 100%; min-width: 0; }
.ticker-label { color: var(--arpada-dim); letter-spacing: 0.5px; font-weight: 500; margin-right: 10px; }
.ticker-separator { color: rgba(31, 191, 212, 0.2); margin: 0 12px; }
.ticker-loading, .ticker-empty { color: var(--arpada-muted); font-style: italic; padding: 0 20px; }
.ticker-upside, .ticker-downside { letter-spacing: 0.3px; }
.ticker-item:hover .ticker-symbol { color: var(--arpada-cyan-bright); }
.ticker-item:hover .ticker-upside { text-shadow: 0 0 8px rgba(61, 220, 151, 0.5); }
.ticker-item:hover .ticker-downside { text-shadow: 0 0 8px rgba(255, 107, 107, 0.5); }
@media (max-width: 768px) { .web-page .ticker-bar { font-size: 11px; } }
/* La cinta mide lo que mide su contenido: el -50% de la animación es entonces una pasada completa. */
.web-page .ticker-scroll { width: max-content; min-width: 100%; }
/* Toque en móvil: pausa/reanuda (la clase la pone arpada-main.js). El :hover «pegado» de los táctiles no cuenta. */
@media (hover: none) { .web-page .ticker-bar:hover .ticker-scroll { animation-play-state: running; } }
.web-page .ticker-bar .ticker-scroll.pausada { animation-play-state: paused; }

/* ── Tarjetas de estadísticas de la portada (icono + contenido) ──────── */
.web-page .stats-grid { margin: 40px 0; }
.web-page .stat-card { -webkit-backdrop-filter: blur(10px); transition: transform 0.2s ease, border-color 0.2s ease; }
.web-page .stat-card:hover { transform: translateY(-2px); border-color: rgba(31, 191, 212, 0.3); }
.stat-icon { font-size: 32px; opacity: 0.8; color: var(--arpada-cyan); display: inline-flex; align-items: center; }
.stat-content { flex: 1; }
@media (max-width: 768px) {
  .web-page .stats-grid { grid-template-columns: 1fr; gap: 12px; }
  .web-page .stat-card { padding: 18px; }
}

/* ── Banner de cookies y enlace del pie: lo que arpada.css no trae ─────── */
.web-page .cookie-banner { color: var(--arpada-text); }
.cookie-banner[hidden] { display: none; }
.web-page .cookie-banner__btn { font-family: var(--arpada-font); font-size: 14px; font-weight: 600; transition: background 0.2s ease; }
.web-page .cookie-banner__btn:hover, .web-page .cookie-banner__btn:focus-visible { background: var(--arpada-cyan-soft); }
.footer-cookie-link { background: none; border: none; padding: 0; font: inherit; font-size: 13px; font-family: var(--arpada-mono); color: var(--arpada-dim); cursor: pointer; text-decoration: underline; }
.footer-cookie-link:hover { color: var(--arpada-cyan-bright); }

/* ══════════════════════════════════════════════════════════════
   CUENTA (login, registro, recuperación y páginas de allauth)
   Base: templates/account/base_cuenta.html. Sin style="" en las plantillas.
   ══════════════════════════════════════════════════════════════ */
/* Vídeo de fondo a pantalla completa; sin vídeo se ve el degradado con la trama. */
.video-fondo {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: linear-gradient(135deg, #0a1628 0%, #1a2642 100%);
}
.video-fondo video { width: 100%; height: 100%; object-fit: cover; }
.video-fondo-velo {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(8, 20, 38, 0.7) 0%, rgba(8, 20, 38, 0.85) 100%);
}

.web-page .cuenta {
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 96px 24px 40px; /* el navbar es fijo */
}
.web-page .cuenta-col { width: 100%; max-width: 460px; display: flex; flex-direction: column; gap: 16px; }
.web-page .cuenta-col.ancha { max-width: 720px; }
.web-page .cuenta .glass-card { padding: 48px; }
.web-page .cuenta .glass-card > * + * { margin-top: 20px; }
.web-page .cuenta .glass-card > .stack > * + * { margin-top: 0; }

.web-page .cuenta-cabecera { text-align: center; }
.web-page .cuenta-cabecera h1,
.web-page .cuenta-titulo { font-size: 26px; font-weight: 700; letter-spacing: 0; line-height: 1.2; }
.web-page .cuenta-cabecera h1 { margin-bottom: 8px; }
.web-page .cuenta-sub,
.web-page .cuenta-texto { font-size: 14px; color: var(--arpada-muted); }
.web-page .cuenta-subtitulo { font-size: 18px; font-weight: 600; letter-spacing: 0; }
.web-page .cuenta-texto a { font-weight: 500; }
.web-page .cuenta-aviso-titulo { font-size: 15px; font-weight: 600; margin-bottom: 4px; }

.web-page .cuenta-icono {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--arpada-cyan);
  background: rgba(31, 191, 212, 0.1);
  border: 2px solid currentColor;
}
.web-page .cuenta-icono.grande { width: 80px; height: 80px; margin-bottom: 28px; background: rgba(31, 191, 212, 0.15); }
.web-page .cuenta-icono.ok { color: var(--arpada-green); background: var(--arpada-green-soft); }
.web-page .cuenta-icono.error { color: var(--arpada-red); background: var(--arpada-red-soft); }

.web-page .cuenta-separador { display: flex; align-items: center; gap: 16px; font-family: var(--arpada-mono); font-size: 13px; color: var(--arpada-dim); }
.web-page .cuenta-separador::before,
.web-page .cuenta-separador::after { content: ""; flex: 1; height: 1px; background: var(--arpada-line2); }
.web-page .cuenta-hr { border: 0; height: 1px; background: var(--arpada-line2); margin: 24px 0 !important; }

.web-page .cuenta-pie { text-align: center; font-size: 14px; color: var(--arpada-muted); }
.web-page .cuenta-pie a { font-weight: 500; }
.web-page .cuenta-pie svg { vertical-align: -2px; margin-right: 4px; }
.web-page .cuenta-nota { text-align: center; font-size: 13px; color: var(--arpada-muted); }
.web-page .cuenta-nota svg { vertical-align: -2px; margin-right: 6px; }
.web-page .cuenta-dato { text-align: center; font-family: var(--arpada-mono); font-size: 15px; color: var(--arpada-cyan-bright); word-break: break-all; }

/* Botones de la tarjeta: a todo el ancho */
.web-page .cuenta .btn-primary-arpada,
.web-page .cuenta .btn-glass-arpada { width: 100%; text-decoration: none; }
.web-page .cuenta .link-list .btn-glass-arpada { width: auto; }
.web-page .cuenta .btn-compact { width: auto; }
.web-page .cuenta .field .help ul { padding-left: 18px; list-style: disc; }
.web-page .cuenta .field .help li { margin-top: 2px; }
.web-page .cuenta .opcion {
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; width: 100%;
  min-height: var(--touch-min); padding: 8px 12px; box-sizing: border-box;
  font-size: 14px; text-transform: none; letter-spacing: 0; color: var(--arpada-text);
  overflow-wrap: anywhere; cursor: pointer;
  border: 1px solid var(--arpada-line2); border-radius: var(--radius-10); background: rgba(255, 255, 255, 0.03);
}
.web-page .cuenta .opcion:hover { border-color: var(--arpada-cyan-line); }
.web-page .cuenta .opcion:has(input:checked) { border-color: var(--arpada-cyan); background: var(--arpada-cyan-soft); }
.web-page .cuenta .opcion input { flex: none; width: 18px; height: 18px; margin: 0; accent-color: var(--arpada-cyan); }

/* Botones de los formularios y grupos de allauth: en fila que se parte; a todo el ancho solo en móvil. */
.web-page .cuenta-botones { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.web-page .cuenta-botones.vertical { flex-direction: column; align-items: stretch; }
.web-page .cuenta .cuenta-botones .btn-primary-arpada,
.web-page .cuenta .cuenta-botones .btn-glass-arpada { width: auto; }
.web-page .cuenta-botones > a:not([class]) { font-size: 14px; }
.web-page .btn-glass-arpada.danger { color: var(--arpada-red); border-color: rgba(255, 107, 107, 0.4); }
.web-page .btn-glass-arpada.danger:hover { background: var(--arpada-red-soft); border-color: var(--arpada-red); }

/* Menú entre secciones de la gestión de cuenta: la actual, marcada. */
.web-page .cuenta-menu { gap: 8px; }
.web-page .cuenta .cuenta-menu .btn-glass-arpada { padding: 0 12px; white-space: nowrap; }
.web-page .cuenta .cuenta-menu a[aria-current="page"] { border-color: var(--arpada-cyan); background: var(--arpada-cyan-soft); color: var(--arpada-cyan-bright); }
.web-page .honeypot { display: none; }

@media (max-width: 480px) {
  .web-page .cuenta .cuenta-botones:not(.vertical) .btn-primary-arpada,
  .web-page .cuenta .cuenta-botones:not(.vertical) .btn-glass-arpada { flex: 1 1 100%; }
}
@media (max-width: 768px) {
  .web-page .cuenta { min-height: auto; padding: 88px 16px 32px; }
  .web-page .cuenta .glass-card { padding: 28px 20px; }
}


/* ══════════════════════════════════════════════════════════════
   SECCIONES DE LA PORTADA, PRECIOS Y PIE (fase 3: sin style="" en las plantillas)
   Los valores de escritorio son los de los style="" que había; lo móvil va en los @media del final.
   ══════════════════════════════════════════════════════════════ */
.web-page .web-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #0a1628 0%, #1a2642 100%);
}
.web-page .web-section.fondo-sistemas { background: linear-gradient(135deg, #0d1e36 0%, #0a1628 100%); }
.web-page .web-section.fondo-analisis { background: linear-gradient(135deg, #0a1628 0%, #162844 100%); }
.web-grid-fondo {
  position: absolute;
  inset: 0;
  opacity: 0.03;
  background-image: linear-gradient(rgba(31, 191, 212, 0.3) 1px, transparent 1px), linear-gradient(90deg, rgba(31, 191, 212, 0.3) 1px, transparent 1px);
  background-size: 40px 40px;
}
.web-page .web-container { position: relative; z-index: 1; padding: 100px 24px; min-width: 0; }
.web-page .web-container.precios { padding: 140px 24px 100px; }

.web-section-head { text-align: center; margin-bottom: 80px; }
.web-section-num { font-family: var(--arpada-mono); font-size: 11px; color: rgba(31, 191, 212, 0.6); letter-spacing: 3px; margin-bottom: 16px; }
.web-page .web-section-title { font-size: 56px; font-weight: 700; line-height: 1.1; letter-spacing: -2px; margin-bottom: 24px; color: var(--arpada-text); overflow-wrap: anywhere; }
.web-page .web-section-title em, .web-page .cta-titulo em { font-family: Georgia, serif; font-style: italic; }
.web-page .web-section-title em { color: var(--arpada-cyan-bright); }
.web-page .web-section-lead { font-size: 18px; line-height: 1.6; color: var(--arpada-muted); overflow-wrap: anywhere; }
.web-page .web-section-head .web-section-lead { max-width: 680px; margin: 0 auto; }
.web-page .web-section-lead.espaciado { margin-bottom: 40px; }
.acento { color: var(--arpada-cyan-bright); }
.web-page .sub-titulo { font-size: 13px; font-family: var(--arpada-mono); letter-spacing: 2px; color: rgba(232, 238, 246, 0.5); text-transform: uppercase; }
.web-page .sub-titulo.izq { margin-bottom: 24px; }
.web-page .sub-titulo.centrado { text-align: center; margin-bottom: 40px; }
.pilares-intro { text-align: center; margin-bottom: 40px; }
.pilares-intro .sub-titulo { margin: 0; }
.pilares-num { font-size: 11px; color: var(--arpada-dim); margin-top: 8px; }

/* Ventajas: tres pilares */
.pilares-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 24px; margin-bottom: 80px; }
.web-page .glass-card.pilar { padding: 32px; border: 1px solid rgba(31, 191, 212, 0.2); position: relative; min-width: 0; }
.pilar-icono { position: absolute; top: 24px; right: 24px; width: 32px; height: 32px; border-radius: 50%; background: rgba(31, 191, 212, 0.1); display: flex; align-items: center; justify-content: center; }
.pilar-eyebrow { font-family: var(--arpada-mono); font-size: 10px; color: rgba(31, 191, 212, 0.7); letter-spacing: 2px; margin-bottom: 16px; }
.web-page .pilar-titulo { font-size: 24px; font-weight: 700; margin-bottom: 16px; color: var(--arpada-text); }
.web-page .pilar-texto { color: var(--arpada-muted); line-height: 1.6; margin-bottom: 24px; }
.pilar-dato { display: flex; align-items: center; gap: 12px; padding: 16px; background: rgba(31, 191, 212, 0.05); border-radius: 8px; border-left: 3px solid var(--arpada-cyan); }
.pilar-dato-valor { font-size: 32px; font-family: var(--arpada-mono); font-weight: 700; color: var(--arpada-cyan-bright); }
.pilar-dato-valor small { font-size: 18px; color: var(--arpada-muted); }
.pilar-dato-label { font-size: 11px; color: var(--arpada-muted); text-transform: uppercase; letter-spacing: 0.5px; }

/* Sistemas y Análisis: dos columnas, lista de rasgos y bloque de tres beneficios */
.dos-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 80px; align-items: center; }
.dos-col > .col-orden-1 { order: 1; }
.dos-col > .col-orden-2 { order: 2; }
.feature-lista { display: flex; flex-direction: column; gap: 20px; }
.feature-fila { display: flex; gap: 16px; align-items: start; }
.feature-icono { flex-shrink: 0; width: 40px; height: 40px; border-radius: 8px; background: rgba(31, 191, 212, 0.1); display: flex; align-items: center; justify-content: center; border: 1px solid rgba(31, 191, 212, 0.3); }
.feature-icono.numero { font-family: var(--arpada-mono); font-size: 14px; font-weight: 700; color: var(--arpada-cyan); }
.feature-fila > div:last-child { min-width: 0; }
.web-page .feature-titulo { font-size: 16px; font-weight: 700; color: var(--arpada-text); margin-bottom: 6px; overflow-wrap: anywhere; }
.web-page .feature-texto { font-size: 14px; color: var(--arpada-muted); line-height: 1.5; overflow-wrap: anywhere; }

.bloque-extra { margin-top: 80px; }
.bloque-extra .sub-titulo { margin: 0 0 40px; }
.beneficios-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 24px; }
.web-page .glass-card.beneficio { padding: 32px; text-align: center; border: 1px solid rgba(31, 191, 212, 0.15); min-width: 0; }
.beneficio-icono { width: 56px; height: 56px; margin: 0 auto 20px; border-radius: 12px; background: rgba(31, 191, 212, 0.1); display: flex; align-items: center; justify-content: center; border: 1px solid rgba(31, 191, 212, 0.3); }
.web-page .beneficio-titulo { font-size: 20px; font-weight: 700; margin-bottom: 12px; color: var(--arpada-text); }
.web-page .beneficio-texto { color: var(--arpada-muted); line-height: 1.6; }

/* Sistemas: tarjeta de código */
.web-page .glass-card.code-card { padding: 0; overflow: hidden; border: 1px solid rgba(31, 191, 212, 0.3); min-width: 0; }
.code-barra { padding: 12px 20px; background: rgba(8, 20, 38, 0.8); border-bottom: 1px solid rgba(31, 191, 212, 0.2); display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.code-puntos { display: flex; gap: 8px; }
.code-punto { width: 12px; height: 12px; border-radius: 50%; }
.code-punto.rojo { background: #FF5F57; }
.code-punto.amarillo { background: #FFBD2E; }
.code-punto.verde { background: #28C840; }
.code-nombre { font-family: var(--arpada-mono); font-size: 11px; color: var(--arpada-dim); }
.code-run { font-family: var(--arpada-mono); font-size: 11px; color: var(--arpada-cyan); background: rgba(31, 191, 212, 0.1); padding: 4px 8px; border-radius: 4px; display: inline-flex; align-items: center; gap: 6px; }
.code-cuerpo { padding: 24px; background: rgba(11, 27, 47, 0.6); font-family: var(--arpada-mono); font-size: 13px; line-height: 1.8; overflow-x: auto; }
.code-linea { color: #E8EEF6; }
.code-linea.nlinea { color: #666; }
.code-linea.nota { color: #6272A4; }
.tk-kw { color: #FF79C6; }
.tk-fn { color: #8BE9FD; }
.tk-str { color: #F1FA8C; }
.tk-num { color: #BD93F9; }
.tk-ok { color: #50FA7B; }
.tk-mal { color: #FF5555; }

/* Análisis: terminal simulado */
.web-page .glass-card.term-card { padding: 0; overflow: hidden; border: 1px solid rgba(31, 191, 212, 0.3); min-width: 0; }
.term-barra { padding: 16px 24px; background: rgba(8, 20, 38, 0.9); border-bottom: 1px solid rgba(31, 191, 212, 0.2); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.term-izq { display: flex; align-items: center; gap: 16px; }
.term-titulo { font-family: var(--arpada-mono); font-size: 13px; font-weight: 600; color: var(--arpada-text); }
.term-tags { display: flex; gap: 8px; }
.term-tag { font-family: var(--arpada-mono); font-size: 11px; color: var(--arpada-dim); padding: 4px 8px; background: rgba(255, 255, 255, 0.05); border-radius: 4px; }
.term-rangos { display: flex; gap: 12px; font-family: var(--arpada-mono); font-size: 11px; color: var(--arpada-dim); }
.term-rangos .activo { color: var(--arpada-cyan); border-bottom: 2px solid var(--arpada-cyan); }
.term-precio { padding: 24px; background: rgba(11, 27, 47, 0.6); }
.term-precio-valor { font-size: 48px; font-family: var(--arpada-mono); font-weight: 700; color: var(--arpada-text); line-height: 1; }
.term-precio-cambio { font-size: 18px; color: var(--arpada-green); margin-left: 12px; }
.term-chart { padding: 24px; background: rgba(11, 27, 47, 0.4); height: 280px; position: relative; }
.term-chart svg { display: block; width: 100%; height: 100%; max-width: 100%; }
.term-senal { position: absolute; bottom: 80px; right: 40px; padding: 6px 12px; background: rgba(61, 220, 151, 0.2); border: 1px solid var(--arpada-green); border-radius: 6px; font-family: var(--arpada-mono); font-size: 10px; color: var(--arpada-green); font-weight: 600; }
.term-stats { padding: 20px 24px; background: rgba(8, 20, 38, 0.6); border-top: 1px solid rgba(31, 191, 212, 0.2); display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.term-stat-label { font-family: var(--arpada-mono); font-size: 10px; color: var(--arpada-dim); text-transform: uppercase; margin-bottom: 4px; }
.term-stat-valor { font-family: var(--arpada-mono); font-size: 14px; font-weight: 600; color: var(--arpada-text); }
.term-stat-valor.ok { color: var(--arpada-green); }

/* CTA final */
.web-page .cta-final { background: linear-gradient(135deg, var(--arpada-cyan) 0%, #22D3EE 100%); padding: 120px 24px; text-align: center; position: relative; overflow: hidden; }
.cta-blob { position: absolute; border-radius: 50%; }
.cta-blob.uno { top: -50px; right: -50px; width: 300px; height: 300px; background: rgba(255, 255, 255, 0.1); filter: blur(60px); }
.cta-blob.dos { bottom: -80px; left: -80px; width: 400px; height: 400px; background: rgba(11, 27, 47, 0.15); filter: blur(80px); }
.web-page .cta-contenedor { max-width: 680px; position: relative; z-index: 1; }
.cta-badge { display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; background: rgba(11, 27, 47, 0.12); border-radius: 100px; font-family: var(--arpada-mono); font-size: 11px; letter-spacing: 2.5px; color: var(--arpada-ink); margin-bottom: 32px; font-weight: 600; border: 1px solid rgba(11, 27, 47, 0.15); }
.web-page .cta-titulo { font-size: 56px; font-weight: 700; line-height: 1.15; letter-spacing: -2px; color: var(--arpada-ink); margin-bottom: 24px; overflow-wrap: anywhere; }
.web-page .cta-titulo em { font-weight: 400; }
.web-page .cta-lead { font-size: 18px; line-height: 1.6; color: rgba(11, 27, 47, 0.85); margin-bottom: 40px; }
.waitlist-form { max-width: 560px; margin: 0 auto 28px; }
.waitlist-campo { position: relative; }
.waitlist-campo:focus-within { box-shadow: 0 8px 24px rgba(11, 27, 47, 0.15); }
.waitlist-input { width: 100%; height: 62px; padding: 0 160px 0 24px; border-radius: 14px; border: 2px solid rgba(11, 27, 47, 0.25); background: transparent; font-size: 16px; color: var(--arpada-ink); font-family: var(--arpada-font); transition: all 0.2s ease; font-weight: 500; }
.waitlist-input:focus { border-color: var(--arpada-ink); background: rgba(255, 255, 255, 0.15); }
.waitlist-boton { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); height: 50px; padding: 0 28px; border-radius: 10px; border: none; background: var(--arpada-ink); color: white; font-weight: 700; font-size: 14px; cursor: pointer; font-family: var(--arpada-font); transition: all 0.2s ease; display: flex; align-items: center; gap: 8px; box-shadow: 0 4px 12px rgba(11, 27, 47, 0.2); }
.waitlist-boton:hover { background: #0a1628; transform: translateY(-50%) translateY(-2px); box-shadow: 0 6px 16px rgba(11, 27, 47, 0.3); }
.cta-login { font-size: 14px; color: rgba(11, 27, 47, 0.7); font-weight: 500; }
.cta-login a { color: var(--arpada-ink); font-weight: 700; text-decoration: underline; }

/* Precios */
.pricing-aviso { max-width: 920px; margin: 0 auto 40px; padding: 14px 20px; text-align: center; font-size: 14px; color: var(--arpada-text); background: var(--arpada-cyan-soft); border: 1px solid var(--arpada-line2); border-radius: 12px; }
.pricing-cabecera { text-align: center; max-width: 720px; margin: 0 auto 64px; }
.web-page .pricing-titulo { font-size: clamp(2.25rem, 6vw, 3.5rem); font-weight: 700; line-height: 1.1; letter-spacing: -2px; margin-bottom: 24px; color: var(--arpada-text); }
.pricing-col { max-width: 420px; margin: 0 auto; }
.web-page .glass-card.pricing-card { padding: 40px 32px; text-align: center; display: flex; flex-direction: column; border: 1px solid rgba(31, 191, 212, 0.5); }
.pricing-card .badge-fila { margin-bottom: 20px; }
.web-page .pricing-nombre { font-size: 24px; font-weight: 700; color: var(--arpada-text); margin-bottom: 8px; }
.pricing-precio { margin-bottom: 28px; }
.pricing-cifra { font-size: 56px; font-weight: 700; letter-spacing: -2px; color: var(--arpada-text); }
.pricing-unidad { color: var(--arpada-muted); }
.pricing-lista { list-style: none; display: flex; flex-direction: column; gap: 14px; margin: 0 auto 32px; max-width: 300px; text-align: left; color: var(--arpada-muted); }
.pricing-lista li { display: flex; align-items: center; gap: 12px; }
.pricing-lista svg { flex-shrink: 0; }
.pricing-accion { margin-top: auto; }
.pricing-accion .btn-primary-arpada { width: 100%; justify-content: center; }
.web-page .pricing-nota { font-size: 13px; color: var(--arpada-dim); margin-top: 16px; line-height: 1.5; }

/* Pie */
.web-page .pie { background: linear-gradient(180deg, #0a1628 0%, #050d18 100%); border-top: 1px solid rgba(31, 191, 212, 0.15); padding: 80px 24px 32px; }
.web-page .pie .container { max-width: 1320px; }
.pie-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 60px; margin-bottom: 60px; }
.pie-grid > * { min-width: 0; }
.pie-marca { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-bottom: 20px; }
.pie-nombre { font-weight: 700; font-size: 18px; color: var(--arpada-text); }
.pie-nombre span { font-weight: 400; opacity: 0.7; }
.web-page .pie-texto { font-size: 14px; line-height: 1.6; color: var(--arpada-muted); max-width: 320px; margin-bottom: 24px; }
.web-page .pie-titulo { font-size: 13px; font-family: var(--arpada-mono); letter-spacing: 1.5px; color: var(--arpada-text); text-transform: uppercase; margin-bottom: 20px; font-weight: 600; }
.pie-lista { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.pie-enlace { font-size: 14px; color: var(--arpada-muted); text-decoration: none; transition: color 0.2s; }
.pie-enlace:hover { color: var(--arpada-cyan-bright); }
.pie-direccion { font-style: normal; font-size: 14px; color: var(--arpada-muted); }
.pie-separador { height: 1px; background: rgba(31, 191, 212, 0.1); margin-bottom: 32px; }
.pie-fila { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; }
.web-page .pie-nota { font-size: 13px; color: var(--arpada-dim); margin: 0; font-family: var(--arpada-mono); }

/* Tarjeta de mercados mundiales (la pinta static/web/js/market-card.js) */
.lmc-card {
  width: 460px; border-radius: 18px; overflow: hidden;
  background: linear-gradient(180deg, rgba(13, 30, 54, 0.60) 0%, rgba(10, 23, 41, 0.88) 100%);
  backdrop-filter: blur(20px) saturate(140%); -webkit-backdrop-filter: blur(20px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.lmc-cabecera { padding: 14px 18px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); display: flex; align-items: center; justify-content: space-between; gap: 8px 12px; }
.lmc-titulo-fila { display: flex; align-items: center; gap: 10px; }
.lmc-pulso { width: 8px; height: 8px; border-radius: 50%; background: #3DDC97; box-shadow: 0 0 8px #3DDC97; display: inline-block; animation: lmc-pulse 2s ease-in-out infinite; }
.lmc-titulo { font-size: 13px; font-weight: 600; letter-spacing: -0.1px; }
.lmc-abiertos { font-size: 10.5px; white-space: nowrap; }
.lmc-relojes { display: flex; flex-direction: column; align-items: flex-end; gap: 1px; }
.lmc-reloj { font-size: 11px; }
.lmc-reloj small { color: rgba(232, 238, 246, 0.42); font-size: inherit; }
.lmc-fecha { font-size: 9.5px; }
.lmc-fila { display: grid; grid-template-columns: 24px 92px 1fr 84px 64px; gap: 12px; align-items: center; padding: 13px 18px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.lmc-fila:last-child { border-bottom: none; }
.lmc-fila > * { min-width: 0; }
.lmc-pais { font-family: var(--arpada-mono); font-size: 11px; font-weight: 500; line-height: 1; color: rgba(232, 238, 246, 0.65); white-space: nowrap; }
.lmc-nombre { font-size: 13px; font-weight: 600; letter-spacing: -0.1px; color: #E8EEF6; }
.lmc-ciudad { font-size: 10.5px; color: rgba(232, 238, 246, 0.42); }
.lmc-estado-fila { display: flex; align-items: center; gap: 7px; margin-bottom: 6px; }
.lmc-punto { width: 6px; height: 6px; border-radius: 50%; display: inline-block; flex: none; }
.lmc-estado { font-size: 10.5px; }
.lmc-indice { font-size: 10.5px; color: rgba(232, 238, 246, 0.42); }
.lmc-barra { height: 3px; border-radius: 2px; overflow: hidden; background: rgba(255, 255, 255, 0.06); }
.lmc-barra > div { height: 100%; transition: width 600ms ease; opacity: 0.3; }
.lmc-hora, .lmc-proximo { text-align: right; }
.lmc-hora-valor { font-size: 14px; font-weight: 600; letter-spacing: 0.5px; color: #E8EEF6; }
.lmc-hora-etq { font-size: 9.5px; color: rgba(232, 238, 246, 0.42); letter-spacing: 0.6px; margin-top: 1px; }
.lmc-proximo-valor { font-size: 13px; font-weight: 600; letter-spacing: 0.3px; }
.lmc-proximo-etq { font-size: 9px; color: rgba(232, 238, 246, 0.42); letter-spacing: 0.6px; margin-top: 1px; text-transform: uppercase; }
/* Estado de cada mercado: abierto (verde), pre-apertura (ámbar), cerrado (apagado) */
.lmc-fila.open .lmc-punto { background: #3DDC97; box-shadow: 0 0 6px #3DDC97; }
.lmc-fila.open .lmc-estado { color: #3DDC97; }
.lmc-fila.open .lmc-barra > div { background: linear-gradient(90deg, #22D3EE, #3DDC97); opacity: 1; }
.lmc-fila.open .lmc-proximo-valor { color: #22D3EE; }
.lmc-fila.pre .lmc-punto { background: #FFB547; }
.lmc-fila.pre .lmc-estado, .lmc-fila.pre .lmc-proximo-valor { color: #FFB547; }
.lmc-fila.pre .lmc-barra > div { background: #FFB547; }
.lmc-fila.closed .lmc-punto { background: rgba(232, 238, 246, 0.42); }
.lmc-fila.closed .lmc-estado, .lmc-fila.closed .lmc-proximo-valor { color: rgba(232, 238, 246, 0.42); }
.lmc-fila.closed .lmc-barra > div { background: rgba(232, 238, 246, 0.42); }
.lmc-fila.closed .lmc-pais { opacity: 0.6; }
.lmc-fila.closed .lmc-nombre, .lmc-fila.closed .lmc-hora-valor { color: rgba(232, 238, 246, 0.65); }
.lmc-pie { padding: 12px 18px; border-top: 1px solid rgba(255, 255, 255, 0.08); display: flex; align-items: center; justify-content: space-between; gap: 8px 12px; background: rgba(255, 255, 255, 0.02); }
.lmc-aviso { display: flex; align-items: center; gap: 6px; font-size: 11px; color: rgba(232, 238, 246, 0.65); }
.lmc-todos { font-size: 11px; color: #22D3EE; font-weight: 500; display: flex; align-items: center; gap: 4px; cursor: pointer; white-space: nowrap; }
@keyframes lmc-pulse { 0%, 100% { opacity: 0.5; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .lmc-pulso { animation: none; } }

/* ── Tablet y móvil: una columna, sin alturas de pantalla completa, nada más ancho que la pantalla ── */
@media (max-width: 900px) {
  .dos-col { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .dos-col > .col-orden-1, .dos-col > .col-orden-2 { order: 0; }
  .pie-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .pie-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 768px) {
  .web-page .web-section { min-height: auto; }
  .web-page .web-container { padding: 72px 20px; }
  .web-page .web-container.precios { padding: 112px 20px 64px; }
  .web-section-head { margin-bottom: 48px; }
  .web-page .web-section-title { font-size: clamp(2rem, 9vw, 3.5rem); letter-spacing: -1px; }
  .web-page .web-section-lead { font-size: 16px; }
  .pilares-grid { margin-bottom: 48px; }
  .bloque-extra { margin-top: 56px; }
  .web-page .glass-card.pilar, .web-page .glass-card.beneficio { padding: 24px; }
  .term-barra { flex-wrap: wrap; padding: 14px 16px; }
  .term-izq { flex-wrap: wrap; gap: 8px 12px; }
  .term-precio { padding: 20px 16px; }
  .term-precio-valor { font-size: clamp(2rem, 11vw, 3rem); }
  .term-precio-cambio { display: inline-block; margin-left: 0; font-size: 16px; }
  .term-chart { padding: 16px; height: 220px; }
  .term-senal { right: 20px; bottom: 44px; }
  .term-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 16px; }
  .code-barra { flex-wrap: wrap; padding: 12px 16px; }
  .code-cuerpo { padding: 16px; font-size: 12px; }
  .web-page .cta-final { padding: 72px 20px; }
  .web-page .cta-titulo { font-size: clamp(2rem, 9vw, 3.5rem); letter-spacing: -1px; }
  .web-page .cta-lead { font-size: 16px; margin-bottom: 32px; }
  .cta-blob.uno, .cta-blob.dos { max-width: 60vw; max-height: 60vw; }
  .waitlist-input { padding-right: 150px; }
  .pricing-cabecera { margin-bottom: 40px; }
  .web-page .glass-card.pricing-card { padding: 32px 24px; }
  .web-page .pie { padding: 56px 20px 28px; }
  .pie-grid { gap: 32px; margin-bottom: 40px; }
  .pie-fila { flex-direction: column; align-items: flex-start; gap: 12px; }
  .lmc-card { width: 100%; }
  .lmc-fila { grid-template-columns: 78px minmax(0, 1fr) 62px; gap: 10px; padding: 12px 14px; }
  .lmc-pais, .lmc-hora, .lmc-indice { display: none; }
  .lmc-cabecera, .lmc-pie { padding-left: 14px; padding-right: 14px; flex-wrap: wrap; }
}
@media (max-width: 480px) {
  .waitlist-campo { display: flex; flex-direction: column; gap: 10px; }
  .waitlist-campo:focus-within { box-shadow: none; }
  .waitlist-input { padding: 0 20px; }
  .waitlist-boton { position: static; transform: none; width: 100%; height: 54px; display: flex; align-items: center; justify-content: center; text-align: center; }
  .waitlist-boton:hover { transform: translateY(-2px); }
}

@media (max-width: 640px) {
  .pie-grid { grid-template-columns: 1fr; }
}
