/* ==========================================================================
   INVESTLAB DESIGN SYSTEM — OBSIDIAN KINETIC & WARM SANS (INTER)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  /* Paleta Obsidian Kinetic */
  --bg-obsidian: #070B0E;
  --bg-card: #0D1318;
  --bg-card-hover: #121A22;
  --bg-surface-glass: rgba(13, 19, 24, 0.85);

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-card: rgba(255, 255, 255, 0.12);
  --border-highlight: rgba(0, 229, 153, 0.3);

  --accent-mint: #00E599;
  --accent-mint-deep: #00D09C;
  --accent-cyan: #38BDF8;
  --accent-loss: #F43F5E;

  --text-primary: #F8FAFC;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;

  --glow-accent: 0 0 35px -5px rgba(0, 229, 157, 0.35);
  --glow-subtle: 0 0 20px -3px rgba(0, 229, 157, 0.2);

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --transition-smooth: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset y base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-sans);
  background-color: var(--bg-obsidian);
  color: var(--text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-obsidian);
  overflow-x: hidden;
}

/* Contenedor central */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   1. CINTILLO CONTINUO DE MERCADO (TICKER TAPE)
   ========================================================================== */
.ticker-tape-wrapper {
  background-color: #05080A;
  border-bottom: 1px solid var(--border-subtle);
  overflow: hidden;
  height: 38px;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 50;
}

.ticker-tape-track {
  display: flex;
  white-space: nowrap;
  animation: ticker-scroll 32s linear infinite;
  will-change: transform;
}

.ticker-tape-track:hover {
  animation-play-state: paused;
}

@keyframes ticker-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 20px;
  font-size: 12px;
  color: var(--text-secondary);
  border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.ticker-symbol {
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0.02em;
}

.ticker-price {
  font-weight: 500;
  color: #E2E8F0;
}

.ticker-change {
  font-weight: 600;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 4px;
}

.ticker-change.up {
  color: #00E599;
  background: rgba(0, 229, 153, 0.1);
}

.ticker-change.down {
  color: #F43F5E;
  background: rgba(244, 63, 94, 0.1);
}

.ticker-change.neutral {
  color: #38BDF8;
  background: rgba(56, 189, 248, 0.1);
}

/* ==========================================================================
   2. NAVEGACIÓN INSTITUCIONAL (HEADER)
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  background-color: var(--bg-surface-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 40;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-logo-icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: #0B1015;
  border: 1px solid rgba(0, 229, 153, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 16px -2px rgba(0, 229, 157, 0.35);
  transition: var(--transition-smooth);
}

.brand-link:hover .brand-logo-icon {
  transform: scale(1.05);
  border-color: var(--accent-mint);
  box-shadow: 0 0 22px rgba(0, 229, 157, 0.5);
}

.brand-name {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.brand-highlight {
  color: var(--accent-mint);
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #00FF9D 0%, #38BDF8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-badge {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-mint);
  background: rgba(0, 229, 153, 0.12);
  padding: 2px 7px;
  border-radius: 20px;
  border: 1px solid rgba(0, 229, 153, 0.25);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent-mint);
  box-shadow: 0 0 8px var(--accent-mint);
  animation: pulse-dot 2.5s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

.btn-header-pro {
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-card);
  padding: 8px 16px;
  border-radius: 8px;
  transition: var(--transition-smooth);
}

.btn-header-pro:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

/* ==========================================================================
   3. HERO SECTION (TEMA 1: CERO-PRESIÓN & PROMESA DE VALOR)
   ========================================================================== */
.hero-section {
  padding: 72px 0 64px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Luz de fondo sutil cinético */
.hero-ambient-glow {
  position: absolute;
  top: 15%;
  left: 50%;
  transform: translateX(-50%);
  width: 550px;
  height: 280px;
  background: radial-gradient(circle, rgba(0, 229, 157, 0.12) 0%, rgba(56, 189, 248, 0.04) 50%, transparent 70%);
  pointer-events: none;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 860px;
  margin: 0 auto;
}

/* Trust badge superior */
.hero-trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 28px;
}

.trust-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--accent-mint);
  box-shadow: 0 0 6px var(--accent-mint);
}

/* H1 Principal */
.hero-title {
  font-size: clamp(34px, 5vw, 52px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.hero-title-gradient {
  display: block;
  background: linear-gradient(135deg, #00FF9D 0%, #00D09C 40%, #38BDF8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Bajada / Descripción cálida */
.hero-description {
  font-size: clamp(14px, 1.8vw, 16px);
  font-weight: 400;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 680px;
  margin: 0 auto 36px auto;
}

/* CTAs de Cero Fricción */
.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-primary-kinetic {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--accent-mint);
  color: #070B0E;
  font-size: 14px;
  font-weight: 600;
  padding: 13px 28px;
  border-radius: 999px;
  text-decoration: none;
  transition: var(--transition-smooth);
  box-shadow: 0 0 25px -4px rgba(0, 229, 157, 0.4);
  cursor: pointer;
}

.btn-primary-kinetic:hover {
  background: #00FFAC;
  transform: translateY(-2px);
  box-shadow: var(--glow-accent);
}

.btn-secondary-glass {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 500;
  padding: 13px 26px;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: var(--transition-smooth);
  cursor: pointer;
}

.btn-secondary-glass:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

/* ==========================================================================
   4. BLOQUE 2: DEL AHORRO A LA INVERSIÓN (CONTRASTE TIPOGRÁFICO & FUNDAMENTOS)
   ========================================================================== */
.power-section {
  padding: 40px 0 80px 0;
  position: relative;
  z-index: 10;
}

/* Cabecera de Sección */
.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-title {
  font-size: clamp(26px, 3.5vw, 36px);
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.section-subtitle {
  font-size: 15px;
  color: var(--text-secondary);
  max-width: 620px;
  margin: 10px auto 0 auto;
  line-height: 1.5;
}

/* Contenedor Unificado de Contraste Numérico */
.contrast-container {
  background: linear-gradient(180deg, rgba(16, 24, 32, 0.6) 0%, rgba(11, 16, 21, 0.85) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 32px 36px;
  margin-bottom: 48px;
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.5);
}

.contrast-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 32px;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.contrast-chips-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.contrast-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
}

.chips-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.chip-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.chip-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
}

.chip-btn.active {
  background: rgba(0, 229, 153, 0.12);
  border-color: var(--accent-mint);
  color: var(--accent-mint);
  box-shadow: 0 0 12px rgba(0, 229, 153, 0.25);
}

.contrast-inflation-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  color: #FDA4AF;
  background: rgba(244, 63, 94, 0.1);
  border: 1px solid rgba(244, 63, 94, 0.2);
  padding: 4px 12px;
  border-radius: 999px;
}

.inflation-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #F43F5E;
}

/* Grid Lado a Lado de Gran Tipografía */
.contrast-display-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 32px;
}

.contrast-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
}

.contrast-col-header {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.01em;
}

.contrast-number-val {
  font-size: clamp(30px, 3.6vw, 46px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  font-feature-settings: 'tnum' on, 'lnum' on;
}

.bank-loss-color {
  color: #F87171;
}

.cetes-gain-color {
  color: var(--accent-mint);
  text-shadow: 0 0 24px rgba(0, 229, 153, 0.25);
}

.contrast-number-sub {
  font-size: 12.5px;
  font-weight: 400;
  color: var(--text-muted);
}

.contrast-delta-pill {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 999px;
  margin-top: 4px;
}

.delta-loss {
  background: rgba(244, 63, 94, 0.12);
  color: #FDA4AF;
  border: 1px solid rgba(244, 63, 94, 0.22);
}

.delta-gain {
  background: rgba(0, 229, 153, 0.12);
  color: #6EE7B7;
  border: 1px solid rgba(0, 229, 153, 0.25);
}

/* Divisor Tipográfico Central */
.contrast-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  height: 90px;
  width: 1px;
  background: rgba(255, 255, 255, 0.08);
}

.contrast-vs {
  background: #0B1015;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
}

/* Fila Limpia de Fundamentos (Cero Cajas Anidadas) */
.foundations-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
  padding-top: 8px;
}

.foundation-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.foundation-header {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.foundation-index {
  font-size: 12px;
  font-weight: 800;
  color: var(--accent-mint);
  font-family: monospace;
  letter-spacing: 0.05em;
}

.foundation-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.foundation-desc {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.6;
  font-weight: 400;
}

/* ==========================================================================
   5. BLOQUE 3: OPORTUNIDADES DE LA SEMANA & PROYECCIÓN PROBABILÍSTICA
   ========================================================================== */
.picks-section {
  padding: 50px 0 90px 0;
  position: relative;
  z-index: 10;
}

.picks-workspace {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 28px;
  align-items: stretch;
}

/* Panel Izquierdo: Lista Top 5 */
.picks-list-panel {
  background: linear-gradient(180deg, rgba(16, 24, 32, 0.7) 0%, rgba(11, 16, 21, 0.9) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.5);
}

.picks-list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.picks-list-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.picks-list-badge {
  font-size: 11px;
  font-weight: 500;
  color: var(--accent-mint);
  background: rgba(0, 229, 153, 0.1);
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(0, 229, 153, 0.2);
}

.picks-cards-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pick-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 13px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
}

.pick-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: transparent;
  transition: var(--transition-smooth);
}

.pick-item:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateX(2px);
}

.pick-item.active {
  background: rgba(0, 229, 153, 0.08);
  border-color: rgba(0, 229, 153, 0.35);
  box-shadow: 0 0 20px -5px rgba(0, 229, 153, 0.2);
}

.pick-item.active::before {
  background: var(--accent-mint);
  box-shadow: 0 0 10px var(--accent-mint);
}

.pick-meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.pick-role {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.pick-ticker {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
}

.pick-numbers {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.pick-price {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-primary);
  font-feature-settings: 'tnum' on;
}

.pick-return {
  font-size: 11.5px;
  font-weight: 600;
}

.pick-return.up {
  color: var(--accent-mint);
}

.pick-return.neutral {
  color: #38BDF8;
}

/* Estados de Candado Freemium / Pro en Lista Top 5 */
.pick-item.is-locked {
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(255, 255, 255, 0.05);
}

.pick-item.is-locked:hover {
  background: rgba(56, 189, 248, 0.05);
  border-color: rgba(56, 189, 248, 0.25);
}

.pick-item.is-locked.active {
  background: rgba(56, 189, 248, 0.08);
  border-color: rgba(56, 189, 248, 0.4);
  box-shadow: 0 0 20px -5px rgba(56, 189, 248, 0.22);
}

.pick-item.is-locked.active::before {
  background: var(--accent-cyan);
  box-shadow: 0 0 10px var(--accent-cyan);
}

.pick-locked-title {
  display: flex;
  align-items: center;
  gap: 6px;
}

.lock-icon-inline {
  color: var(--accent-cyan);
  flex-shrink: 0;
  opacity: 0.9;
}

.pick-ticker-masked {
  color: #CBD5E1;
  font-weight: 600;
}

.pick-pro-pill {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #38BDF8;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 1px 6px;
  border-radius: 999px;
}

.pick-price-masked {
  color: var(--text-muted);
  letter-spacing: 0.04em;
  filter: blur(0.4px);
}

/* --- Estado de Candado de Cortesía Diaria (#3 Interactiva) --- */
.pick-item.is-courtesy-locked {
  background: linear-gradient(135deg, rgba(0, 229, 153, 0.07) 0%, rgba(56, 189, 248, 0.04) 100%);
  border-color: rgba(0, 229, 153, 0.32);
  position: relative;
  overflow: hidden;
}

.pick-item.is-courtesy-locked:hover {
  background: linear-gradient(135deg, rgba(0, 229, 153, 0.13) 0%, rgba(56, 189, 248, 0.08) 100%);
  border-color: rgba(0, 229, 153, 0.55);
  box-shadow: 0 0 22px -4px rgba(0, 229, 153, 0.28);
}

.pick-role-courtesy {
  color: var(--accent-mint) !important;
}

.courtesy-lock-svg {
  color: var(--accent-mint);
  flex-shrink: 0;
  overflow: visible;
  filter: drop-shadow(0 0 5px rgba(0, 229, 153, 0.5));
}

.courtesy-lock-svg .lock-shackle,
.overlay-lock-svg .lock-shackle {
  transform-origin: 17px 11px;
  transition: transform 0.42s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.pick-item.is-courtesy-unlocked .courtesy-lock-svg .lock-shackle,
.pick-item.is-unlocking-courtesy .courtesy-lock-svg .lock-shackle,
.lock-overlay-card.is-unlocking-courtesy .overlay-lock-svg .lock-shackle {
  transform: translateY(-2.5px) rotate(28deg);
}

.pick-item.is-unlocking-courtesy {
  animation: courtesyCardFlash 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes courtesyCardFlash {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 229, 153, 0.7);
  }
  50% {
    background: rgba(0, 229, 153, 0.22);
    border-color: #00E599;
    box-shadow: 0 0 32px 4px rgba(0, 229, 153, 0.45);
  }
  100% {
    box-shadow: 0 0 20px -5px rgba(0, 229, 153, 0.2);
  }
}

.pick-courtesy-pill {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #070B0E;
  background: linear-gradient(135deg, #00E599 0%, #38BDF8 100%);
  padding: 1.5px 6px;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 0 10px rgba(0, 229, 153, 0.35);
}

.pick-courtesy-pill.is-opened {
  color: var(--accent-mint);
  background: rgba(0, 229, 153, 0.12);
  border: 1px solid rgba(0, 229, 153, 0.35);
  box-shadow: none;
}

/* Buscador Libre de Emisoras Integrado en Panel Izquierdo */
.custom-search-box {
  margin-top: 6px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.custom-search-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.custom-search-label {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.custom-search-quota {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--accent-mint);
  background: rgba(0, 229, 153, 0.1);
  border: 1px solid rgba(0, 229, 153, 0.25);
  padding: 2px 8px;
  border-radius: 999px;
  transition: var(--transition-smooth);
}

.custom-search-quota.quota-exhausted {
  color: var(--accent-cyan);
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.3);
}

.search-input-wrapper {
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 11px;
  padding: 4px 5px 4px 11px;
  gap: 8px;
  transition: var(--transition-smooth);
}

.search-input-wrapper:focus-within {
  border-color: var(--accent-mint);
  box-shadow: 0 0 14px -3px rgba(0, 229, 153, 0.28);
}

.search-input-icon {
  color: var(--text-muted);
  flex-shrink: 0;
}

.search-input-field {
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 12.5px;
  width: 100%;
}

.search-input-field::placeholder {
  color: var(--text-muted);
}

.search-submit-btn {
  background: rgba(0, 229, 153, 0.14);
  border: 1px solid rgba(0, 229, 153, 0.35);
  color: var(--accent-mint);
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition-smooth);
  flex-shrink: 0;
}

.search-submit-btn:hover {
  background: var(--accent-mint);
  color: #070B0E;
}

.quick-search-chips {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.quick-chip {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  padding: 3px 9px;
  border-radius: 999px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.quick-chip:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.18);
}

.quick-chip.active {
  background: rgba(0, 229, 153, 0.12);
  color: var(--accent-mint);
  border-color: rgba(0, 229, 153, 0.35);
}

/* Panel Derecho: Lienzo Dinámico de Gráfica */
.chart-canvas-panel {
  background: linear-gradient(180deg, rgba(16, 24, 32, 0.7) 0%, rgba(11, 16, 21, 0.9) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 20px 26px;
  display: flex;
  flex-direction: column;
  gap: 13px;
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.5);
}

.chart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  user-select: none;
  -webkit-user-select: none;
}

.chart-asset-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 16px;
  flex-wrap: wrap;
}

.chart-asset-main {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.chart-title-inline {
  display: flex;
  align-items: center;
  gap: 10px;
}

.chart-active-ticker {
  font-size: clamp(22px, 2.3vw, 26px);
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.chart-active-name {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-secondary);
}

.chart-active-price-block {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
}

.chart-active-price {
  font-size: 21px;
  font-weight: 800;
  color: var(--text-primary);
  font-feature-settings: 'tnum' on;
  line-height: 1.1;
}

.chart-active-tag {
  font-size: 11.5px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
}

.tag-success {
  background: rgba(0, 229, 153, 0.12);
  color: var(--accent-mint);
  border: 1px solid rgba(0, 229, 153, 0.25);
}

.tag-neutral {
  background: rgba(56, 189, 248, 0.12);
  color: #38BDF8;
  border: 1px solid rgba(56, 189, 248, 0.28);
}

.tag-caution {
  background: rgba(245, 158, 11, 0.14);
  color: #FBBF24;
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.diag-help-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  font-style: normal;
  font-size: 9px;
  font-weight: 700;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  margin-left: 3px;
  transition: var(--transition-smooth);
}

.consensus-key-row[data-tip],
.action-plan-row[data-tip] {
  position: relative;
  cursor: help;
}

.consensus-key-row[data-tip]:hover .diag-help-icon,
.action-plan-row[data-tip]:hover .diag-help-icon {
  color: var(--accent-mint);
  border-color: rgba(0, 229, 153, 0.4);
  background: rgba(0, 229, 153, 0.12);
}

.consensus-key-row[data-tip]::after,
.action-plan-row[data-tip]::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 6px);
  left: 0;
  width: 225px;
  padding: 8px 10px;
  border-radius: 9px;
  background: rgba(10, 15, 20, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.65);
  color: #E2E8F0;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.4;
  white-space: normal;
  pointer-events: none;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 60;
}

.consensus-key-row[data-tip]:hover::after,
.action-plan-row[data-tip]:hover::after {
  opacity: 1;
  transform: translateY(0);
}

/* Stage del Canvas */
.chart-stage-wrapper {
  position: relative;
  width: 100%;
  height: 340px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 14px;
  overflow: hidden;
}

#forecast-canvas {
  width: 100%;
  height: 100%;
  display: block;
  transition: filter 0.3s ease, opacity 0.3s ease;
}

.chart-stage-wrapper.is-locked-view #forecast-canvas {
  filter: blur(7px) saturate(0.75);
  opacity: 0.45;
  pointer-events: none;
}

/* Overlay Institucional de Desbloqueo Pro sobre el Canvas */
.chart-lock-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: radial-gradient(circle at center, rgba(7, 11, 14, 0.55) 0%, rgba(7, 11, 14, 0.82) 100%);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 45;
}

.lock-overlay-card {
  max-width: 440px;
  text-align: center;
  background: rgba(13, 19, 24, 0.92);
  border: 1px solid rgba(56, 189, 248, 0.28);
  border-radius: 18px;
  padding: 28px 30px;
  box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.75), 0 0 30px -8px rgba(56, 189, 248, 0.25);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.lock-badge-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 18px -2px rgba(56, 189, 248, 0.3);
  margin-bottom: 2px;
}

.lock-overlay-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.015em;
  line-height: 1.25;
}

.lock-overlay-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 6px;
}

.lock-overlay-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.btn-unlock-pro {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #00E599 0%, #38BDF8 100%);
  color: #070B0E;
  font-size: 13.5px;
  font-weight: 700;
  padding: 11px 22px;
  border-radius: 999px;
  text-decoration: none;
  transition: var(--transition-smooth);
  box-shadow: 0 0 22px -4px rgba(56, 189, 248, 0.45);
}

.btn-unlock-pro:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 28px -2px rgba(0, 229, 153, 0.6);
}

.lock-overlay-card.is-courtesy-mode {
  border-color: rgba(0, 229, 153, 0.45);
  box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.78), 0 0 34px -6px rgba(0, 229, 153, 0.3);
}

.lock-overlay-card.is-courtesy-mode .lock-badge-icon {
  background: rgba(0, 229, 153, 0.14);
  border-color: rgba(0, 229, 153, 0.45);
  color: var(--accent-mint);
  box-shadow: 0 0 22px -2px rgba(0, 229, 153, 0.42);
}

.lock-overlay-card.is-unlocking-courtesy {
  transform: scale(1.03);
  opacity: 0;
  transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.38s ease;
}

.btn-unlock-courtesy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #00E599 0%, #38BDF8 100%);
  color: #070B0E;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 800;
  padding: 11px 24px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: var(--transition-smooth);
  box-shadow: 0 0 24px -3px rgba(0, 229, 153, 0.55);
}

.btn-unlock-courtesy:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 0 32px 0px rgba(0, 229, 153, 0.75);
}

.chart-tooltip {
  position: absolute;
  pointer-events: none;
  background: rgba(11, 16, 21, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 229, 153, 0.4);
  border-radius: 10px;
  padding: 10px 14px;
  box-shadow: 0 12px 28px -5px rgba(0, 0, 0, 0.7), 0 0 16px rgba(0, 229, 153, 0.2);
  font-size: 12px;
  color: var(--text-primary);
  z-index: 50;
  white-space: nowrap;
  transform: translate(-50%, -120%);
  transition: opacity 0.12s ease;
}

.chart-tooltip-header {
  font-size: 11px;
  font-weight: 700;
  color: #38BDF8;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.chart-tooltip-price {
  font-size: 14px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 3px;
  font-feature-settings: 'tnum' on;
}

.chart-tooltip-range {
  font-size: 11px;
  color: var(--text-secondary);
  font-feature-settings: 'tnum' on;
}

.chart-legend-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  flex-wrap: wrap;
  padding: 2px 4px;
}

.legend-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-secondary);
}

.legend-color-p50 {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #38BDF8;
  box-shadow: 0 0 6px #38BDF8;
}

.legend-color-cone {
  width: 12px;
  height: 8px;
  border-radius: 2px;
  background: rgba(0, 229, 153, 0.3);
  border: 1px solid rgba(0, 229, 153, 0.7);
}

.legend-color-stop {
  width: 10px;
  height: 2px;
  background: #F43F5E;
}

/* ==========================================================================
   TABLERO DE PERSPECTIVAS CUANTITATIVAS (3 TARJETAS DE DECISIÓN)
   ========================================================================== */
.decision-perspectives-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 4px;
  transition: filter 0.25s ease, opacity 0.25s ease;
}

.decision-perspectives-grid.is-locked-deck {
  filter: blur(8px);
  opacity: 0.45;
  pointer-events: none;
  user-select: none;
}

.perspective-card {
  background: rgba(255, 255, 255, 0.022);
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 14px;
  padding: 13px 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.perspective-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.perspective-card-title {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  margin: 0;
  white-space: nowrap;
}

.perspective-unit-tag,
.perspective-subtag {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 2px 8px;
  border-radius: 999px;
  white-space: nowrap;
}

/* --- Tarjeta 1: Termómetro horizontal de precios proyectados --- */
.price-thermometer-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 44px 4px 38px;
  margin-top: 2px;
}

.thermo-Marker-top,
.thermo-marker-bottom {
  position: absolute;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: left 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 4;
}

.thermo-Marker-top {
  top: 0px;
}

.thermo-marker-bottom {
  top: 50px;
}

.thermo-callout {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 3px 8px;
  border-radius: 7px;
  line-height: 1.15;
  white-space: nowrap;
}

.thermo-callout-target,
.thermo-callout-p50 {
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.45);
}

.thermo-callout-actual {
  background: rgba(13, 17, 26, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.thermo-callout-num,
.thermo-callout-val {
  font-size: 11px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--text-primary);
}

.thermo-callout-target .thermo-callout-num,
.thermo-callout-p50 .thermo-callout-val {
  color: #38BDF8;
}

.thermo-callout-lbl {
  font-size: 9.5px;
  font-weight: 500;
  color: var(--text-secondary);
}

.thermo-stem-top,
.thermo-stem {
  width: 1.5px;
  height: 10px;
  background: rgba(56, 189, 248, 0.55);
}

.thermo-stem-bottom {
  width: 1.5px;
  height: 34px;
  background: rgba(255, 255, 255, 0.38);
}

.thermo-track {
  position: relative;
  height: 6px;
  width: 100%;
  background: rgba(255, 255, 255, 0.09);
  border-radius: 999px;
  margin: 2px 0;
}

.thermo-track-fill {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.3) 0%, rgba(56, 189, 248, 0.45) 55%, rgba(0, 229, 153, 0.55) 100%);
}

.thermo-dot {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  transition: left 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.thermo-dot-low,
.thermo-dot-min {
  left: 0%;
  width: 7px;
  height: 7px;
  background: rgba(255, 255, 255, 0.35);
}

.thermo-dot-high,
.thermo-dot-max {
  left: 100%;
  width: 7px;
  height: 7px;
  background: rgba(0, 229, 153, 0.7);
}

.thermo-dot-p50 {
  background: #38BDF8;
  border: 2px solid #090C12;
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.8);
  z-index: 3;
}

.thermo-dot-actual {
  background: #FFFFFF;
  border: 2px solid #090C12;
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.7);
  z-index: 2;
}

.thermo-endpoints,
.thermo-bounds-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-top: 6px;
}

.thermo-end-item,
.thermo-bound {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.thermo-end-right,
.thermo-bound-right {
  text-align: right;
  align-items: flex-end;
}

.thermo-end-num,
.thermo-bound-val {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}

.thermo-end-lbl,
.thermo-bound-lbl {
  font-size: 10px;
  color: var(--text-muted);
}

/* --- Tarjeta 2: Evaluación de las 4 llaves --- */
.perspective-score-pill,
.consensus-score-pill {
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 999px;
  white-space: nowrap;
  background: rgba(0, 229, 153, 0.12);
  color: var(--accent-mint);
  border: 1px solid rgba(0, 229, 153, 0.3);
}

.perspective-score-pill.score-mixed,
.consensus-score-pill.score-mixed {
  background: rgba(56, 189, 248, 0.12);
  color: #38BDF8;
  border-color: rgba(56, 189, 248, 0.3);
}

.perspective-score-pill.score-caution,
.consensus-score-pill.score-caution {
  background: rgba(245, 158, 11, 0.14);
  color: #FBBF24;
  border-color: rgba(245, 158, 11, 0.35);
}

.consensus-keys-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.consensus-key-row,
.consensus-key-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.045);
  min-width: 0;
}

.consensus-key-row:last-child,
.consensus-key-item:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.key-indicator-left,
.consensus-key-left {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  flex-shrink: 0;
}

.key-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.key-dot.dot-positive {
  background: var(--accent-mint);
  box-shadow: 0 0 6px rgba(0, 229, 153, 0.6);
}

.key-dot.dot-neutral {
  background: #38BDF8;
  box-shadow: 0 0 6px rgba(56, 189, 248, 0.45);
}

.key-dot.dot-caution {
  background: #F59E0B;
  box-shadow: 0 0 6px rgba(245, 158, 11, 0.45);
}

.key-name,
.consensus-key-name {
  font-size: 11px;
  color: var(--text-secondary);
  white-space: nowrap;
}

.key-status-val,
.consensus-key-status {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  text-align: right;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* --- Tarjeta 3: Guía de decisión hoy --- */
.perspective-action-badge,
.action-badge {
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 999px;
  white-space: nowrap;
}

.perspective-action-badge.action-buy,
.action-badge.action-buy {
  background: rgba(0, 229, 153, 0.14);
  color: var(--accent-mint);
  border: 1px solid rgba(0, 229, 153, 0.35);
}

.perspective-action-badge.action-wait,
.action-badge.action-wait {
  background: rgba(245, 158, 11, 0.14);
  color: #FBBF24;
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.perspective-action-badge.action-avoid,
.action-badge.action-avoid {
  background: rgba(244, 63, 94, 0.14);
  color: #FB7185;
  border: 1px solid rgba(244, 63, 94, 0.35);
}

.action-plan-table {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.action-plan-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.045);
  min-width: 0;
}

.action-plan-row:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.plan-row-label,
.action-plan-lbl {
  font-size: 11px;
  color: var(--text-secondary);
  white-space: nowrap;
  flex-shrink: 0;
}

.plan-row-val,
.action-plan-val {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.plan-val-highlight,
.action-val-positive {
  color: var(--accent-mint);
}

.plan-val-up {
  color: #38BDF8;
}

.action-val-wait {
  color: #FBBF24;
}

.plan-val-stop,
.action-val-stop {
  color: #FB7185;
}

.chart-footer-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
  padding-top: 6px;
}

.chart-footer-note svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--text-secondary);
}

/* ==========================================================================
   BLOQUE 4: ASIGNADOR PATRIMONIAL EN TÍTULOS ENTEROS
   ========================================================================== */
.allocator-section {
  padding: 50px 0 80px 0;
  border-top: 1px solid var(--border-subtle);
  position: relative;
  z-index: 10;
}

.allocator-grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 28px;
  align-items: start;
}

.allocator-config-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 18px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  box-shadow: 0 16px 32px -10px rgba(0, 0, 0, 0.5);
}

.allocator-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.allocator-group-header {
  display: flex;
  align-items: center;
  gap: 8px;
}

.allocator-step-badge {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(0, 229, 153, 0.15);
  color: var(--accent-mint);
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.allocator-group-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.allocator-capital-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 0 14px;
  height: 46px;
  transition: var(--transition-smooth);
}

.allocator-capital-input-wrap:focus-within {
  border-color: rgba(0, 229, 153, 0.45);
  box-shadow: 0 0 14px -2px rgba(0, 229, 153, 0.25);
}

.allocator-capital-input-wrap .currency-symbol {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-muted);
  margin-right: 6px;
}

.allocator-capital-input-wrap .currency-code {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  margin-left: 6px;
}

.allocator-capital-field {
  background: transparent;
  border: none;
  outline: none;
  font-family: inherit;
  font-size: 18px;
  font-weight: 800;
  color: var(--text-primary);
  width: 100%;
  font-variant-numeric: tabular-nums;
}

.allocator-capital-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 2px;
}

.allocator-pills-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.allocator-pills-cetes {
  grid-template-columns: repeat(2, 1fr);
}

.allocator-pill-btn {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2px;
  cursor: pointer;
  transition: var(--transition-smooth);
  font-family: inherit;
  color: inherit;
}

.allocator-pill-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.18);
}

.allocator-pill-btn.active {
  background: rgba(0, 229, 153, 0.08);
  border-color: rgba(0, 229, 153, 0.45);
  box-shadow: 0 0 16px -4px rgba(0, 229, 153, 0.25);
}

.allocator-pill-btn .pill-title {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-primary);
}

.allocator-pill-btn.active .pill-title {
  color: var(--accent-mint);
}

.allocator-pill-btn .pill-desc {
  font-size: 9.5px;
  color: var(--text-muted);
  line-height: 1.2;
}

.allocator-asset-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.asset-toggle-chip {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  padding: 5px 11px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition-smooth);
  font-family: inherit;
}

.asset-toggle-chip:hover {
  background: rgba(255, 255, 255, 0.07);
  color: var(--text-primary);
}

.asset-toggle-chip.active {
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.45);
  color: #38BDF8;
}

.btn-calculate-portfolio {
  width: 100%;
  padding: 12px;
  margin-top: 4px;
  justify-content: center;
  font-size: 13.5px;
  cursor: pointer;
  border: none;
}

/* Columna 2: Resultados Cuantitativos */
.allocator-results-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 18px;
  padding: 26px 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: 0 16px 32px -10px rgba(0, 0, 0, 0.5);
}

.allocator-results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  padding-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
}

.results-badge {
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 999px;
  background: rgba(0, 229, 153, 0.12);
  color: var(--accent-mint);
  border: 1px solid rgba(0, 229, 153, 0.3);
  display: inline-block;
  margin-bottom: 4px;
}

.results-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.015em;
  margin: 0;
}

.results-capital-label {
  font-size: 11px;
  color: var(--text-muted);
  display: block;
  text-align: right;
}

.results-capital-val {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
  display: block;
}

.allocator-metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.allocator-metric-box {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.metric-box-label {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
}

.metric-box-val {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}

.metric-box-val.up {
  color: var(--accent-mint);
}

.metric-box-sub {
  font-size: 10px;
  color: var(--text-secondary);
}

.allocator-bar-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 2px 0;
}

.allocator-bar-track {
  display: flex;
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
}

.allocator-bar-segment {
  height: 100%;
  transition: width 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.allocator-bar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 11px;
  color: var(--text-secondary);
}

.legend-item-dot {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.legend-dot-sq {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  flex-shrink: 0;
}

.allocator-table-wrapper {
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.18);
}

.allocator-orders-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}

.allocator-orders-table th {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  text-align: left;
}

.allocator-orders-table td {
  padding: 11px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.045);
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}

.allocator-orders-table tr:last-child td {
  border-bottom: none;
}

.allocator-orders-table .row-cetes {
  background: rgba(0, 229, 153, 0.035);
}

.allocator-orders-table .row-cash {
  background: rgba(56, 189, 248, 0.035);
}

.allocator-orders-table .instrument-name {
  font-weight: 700;
  color: var(--text-primary);
  display: block;
}

.allocator-orders-table .instrument-ticker {
  font-size: 10.5px;
  color: var(--text-muted);
}

.allocator-orders-table .col-center {
  text-align: center;
}

.allocator-orders-table .col-right {
  text-align: right;
}

.allocator-verdict-box {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.55;
  background: rgba(56, 189, 248, 0.05);
  border: 1px solid rgba(56, 189, 248, 0.22);
  border-radius: 12px;
  padding: 13px 16px;
}

.allocator-verdict-box svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: #38BDF8;
}

.allocator-actions-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.btn-copy-orders {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-size: 12px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition-smooth);
  font-family: inherit;
}

.btn-copy-orders:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.22);
  color: var(--accent-mint);
}

.btn-copy-orders.copied {
  background: rgba(0, 229, 153, 0.15);
  border-color: rgba(0, 229, 153, 0.45);
  color: var(--accent-mint);
}

/* --------------------------------------------------------------------------
   Diagnosticador de Perfil (Micro-Quiz 30s)
   -------------------------------------------------------------------------- */
.quiz-trigger-banner {
  background: linear-gradient(135deg, rgba(0, 229, 153, 0.06), rgba(56, 189, 248, 0.06));
  border: 1px solid rgba(0, 229, 153, 0.22);
  border-radius: 14px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 30px;
}

.quiz-trigger-text {
  display: flex;
  align-items: center;
  gap: 14px;
}

.quiz-sparkle-icon {
  font-size: 24px;
  filter: drop-shadow(0 0 8px rgba(0, 229, 153, 0.5));
}

.quiz-trigger-copy strong {
  display: block;
  font-size: 14px;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.quiz-trigger-copy p {
  font-size: 12px;
  color: var(--text-secondary);
  margin: 0;
}

.btn-launch-quiz {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 229, 153, 0.12);
  border: 1px solid rgba(0, 229, 153, 0.4);
  color: var(--accent-mint);
  font-size: 12.5px;
  font-weight: 700;
  padding: 9px 18px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition-smooth);
  font-family: inherit;
}

.btn-launch-quiz:hover {
  background: var(--accent-mint);
  color: #000;
  box-shadow: 0 0 20px rgba(0, 229, 153, 0.35);
  transform: translateY(-1px);
}

.quiz-interactive-card {
  background: var(--bg-card);
  border: 1px solid rgba(0, 229, 153, 0.35);
  border-radius: 18px;
  padding: 24px 28px;
  margin-bottom: 30px;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.6);
  animation: fadeInDown 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.quiz-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.quiz-step-indicator {
  display: flex;
  align-items: center;
  gap: 14px;
}

#quiz-step-badge {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-mint);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.quiz-progress-bar {
  width: 120px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.quiz-progress-fill {
  height: 100%;
  background: var(--accent-mint);
  transition: width 0.3s ease;
}

.quiz-btn-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 18px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: var(--transition-smooth);
}

.quiz-btn-close:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.08);
}

.quiz-question-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 16px;
  line-height: 1.4;
}

.quiz-options-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.quiz-option-btn {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 14px 18px;
  text-align: left;
  cursor: pointer;
  transition: var(--transition-smooth);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: inherit;
  font-family: inherit;
}

.quiz-option-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(0, 229, 153, 0.4);
  transform: translateX(3px);
}

.quiz-option-letter {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.quiz-option-btn:hover .quiz-option-letter {
  background: var(--accent-mint);
  color: #000;
}

.quiz-option-text strong {
  display: block;
  font-size: 13px;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.quiz-option-text span {
  font-size: 11.5px;
  color: var(--text-secondary);
  line-height: 1.35;
}

.quiz-result-banner {
  background: rgba(0, 229, 153, 0.09);
  border: 1px solid rgba(0, 229, 153, 0.4);
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 26px;
  display: flex;
  align-items: center;
  gap: 14px;
  animation: fadeIn 0.4s ease;
}

.quiz-result-badge {
  background: var(--accent-mint);
  color: #000;
  font-size: 10.5px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.quiz-result-banner p {
  margin: 0;
  font-size: 13px;
  color: var(--text-primary);
}

/* --------------------------------------------------------------------------
   Nivel Abierto: Estructura Estratégica por Clases de Activo
   -------------------------------------------------------------------------- */
.strategic-alloc-container {
  margin-bottom: 50px;
}

.strategic-tabs-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 18px;
  flex-wrap: wrap;
  gap: 16px;
}

.badge-free-level {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #38BDF8;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 2px 9px;
  border-radius: 999px;
  display: inline-block;
  margin-bottom: 4px;
}

.strategic-title {
  font-size: 19px;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0;
  letter-spacing: -0.015em;
}

.strategic-results-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 18px;
  padding: 26px 28px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  box-shadow: 0 16px 32px -10px rgba(0, 0, 0, 0.5);
}

.strategic-asset-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.strategic-asset-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 3px solid transparent;
  transition: var(--transition-smooth);
}

.strategic-asset-card:hover {
  background: rgba(255, 255, 255, 0.04);
  transform: translateY(-2px);
}

.asset-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.asset-card-pct {
  font-size: 20px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.asset-card-tag {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.asset-card-name {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.asset-card-role {
  font-size: 11.5px;
  color: var(--text-secondary);
  line-height: 1.45;
  margin: 0;
}

/* --------------------------------------------------------------------------
   Nivel Pro: Constructor & Auditor de Cartera Propia
   -------------------------------------------------------------------------- */
.custom-builder-container {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 40px;
}

.custom-builder-header {
  margin-bottom: 24px;
}

.badge-pro-exclusive {
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-mint);
  background: rgba(0, 229, 153, 0.12);
  border: 1px solid rgba(0, 229, 153, 0.35);
  padding: 3px 11px;
  border-radius: 999px;
  display: inline-block;
  margin-bottom: 8px;
}

.custom-builder-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.015em;
  margin: 0 0 6px 0;
}

.custom-builder-subtitle {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
  max-width: 820px;
}

.allocator-group-hint {
  font-size: 11.5px;
  color: var(--text-muted);
  margin: -4px 0 4px 0;
}

.custom-ticker-search-wrap {
  display: flex;
  gap: 8px;
  margin-top: 6px;
}

.custom-ticker-search-input {
  flex: 1;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 12px;
  color: var(--text-primary);
  outline: none;
  font-family: inherit;
  transition: var(--transition-smooth);
}

.custom-ticker-search-input:focus {
  border-color: rgba(56, 189, 248, 0.5);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.2);
}

.btn-add-custom-ticker {
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #38BDF8;
  font-size: 11.5px;
  font-weight: 700;
  padding: 0 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition-smooth);
  font-family: inherit;
}

.btn-add-custom-ticker:hover {
  background: #38BDF8;
  color: #000;
}

/* Tarjeta de Auditoría Cuantitativa */
.portfolio-audit-card {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(0, 229, 153, 0.25);
  border-radius: 14px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.audit-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.audit-header-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-primary);
}

.audit-icon {
  font-size: 15px;
}

.audit-rating-badge {
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.audit-rating-badge.optimal {
  background: rgba(0, 229, 153, 0.12);
  color: var(--accent-mint);
  border: 1px solid rgba(0, 229, 153, 0.35);
}

.audit-rating-badge.caution {
  background: rgba(245, 158, 11, 0.12);
  color: #F59E0B;
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.audit-summary-text {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
}

.audit-bullets-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 2px;
}

.audit-bullet-item {
  font-size: 11.5px;
  color: var(--text-secondary);
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.45;
}

.audit-bullet-dot {
  color: var(--accent-mint);
  font-size: 13px;
  line-height: 1;
}

.audit-alerts-box {
  background: rgba(245, 158, 11, 0.06);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 11px;
  color: #FBBF24;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 960px) {
  .allocator-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .allocator-metrics-grid {
    grid-template-columns: 1fr;
  }
  .strategic-asset-cards-grid {
    grid-template-columns: 1fr;
  }
  .quiz-trigger-banner {
    flex-direction: column;
    align-items: flex-start;
  }
  .picks-workspace {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .decision-perspectives-grid {
    grid-template-columns: 1fr;
  }
  .contrast-display-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .contrast-divider {
    width: 100%;
    height: 1px;
    margin: 8px 0;
  }
  .foundations-row {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

@media (max-width: 640px) {
  .hero-section {
    padding: 48px 0;
  }
  .contrast-container {
    padding: 24px 20px;
  }
  .contrast-top-bar {
    flex-direction: column;
    align-items: flex-start;
  }
  .hero-cta-group {
    flex-direction: column;
    width: 100%;
  }
  .btn-primary-kinetic,
  .btn-secondary-glass {
    width: 100%;
    justify-content: center;
  }
  .status-indicator {
    display: none;
  }
}

/* ==========================================================================
   INSTITUTIONAL POLISH LAYER — STRIPE / APPLE / ROBINHOOD ELEVATION
   ========================================================================== */

/* Selección y Scrollbar Institucional */
::selection {
  background: rgba(0, 229, 153, 0.22);
  color: #F8FAFC;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #070B0E;
}
::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.22);
  border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 229, 153, 0.45);
}

/* Tipografía Tabular en todas las cifras financieras (cero saltos visuales) */
.ticker-price,
.ticker-change,
.contrast-number-val,
.pick-price,
.pick-return,
.chart-active-price,
.thermo-callout-num,
.thermo-end-num,
.metric-box-val,
.results-capital-val,
.allocator-orders-table td,
.allocator-capital-field,
.proof-val {
  font-variant-numeric: tabular-nums;
}

/* Navegación Central en Header */
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link-item {
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: 6px 0;
  transition: color 0.2s ease;
}

.nav-link-item::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1.5px;
  background: linear-gradient(90deg, var(--accent-mint), var(--accent-cyan));
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-link-item:hover {
  color: var(--text-primary);
}

.nav-link-item:hover::after {
  transform: scaleX(1);
}

/* Fondo Arquitectónico Sutil en Hero */
.hero-section {
  padding: 88px 0 76px 0;
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(rgba(255, 255, 255, 0.065) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 65% 60% at 50% 35%, #000 15%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 65% 60% at 50% 35%, #000 15%, transparent 80%);
  pointer-events: none;
  z-index: 0;
}

.hero-ambient-glow {
  width: 720px;
  height: 360px;
  top: 6%;
  background: radial-gradient(ellipse at center, rgba(0, 229, 157, 0.14) 0%, rgba(56, 189, 248, 0.06) 45%, transparent 72%);
  filter: blur(8px);
}

/* Franja de Credenciales Institucionales bajo CTAs */
.hero-proof-strip {
  margin: 48px auto 0 auto;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

.hero-proof-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.proof-val {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

.proof-lbl {
  font-size: 12px;
  font-weight: 400;
  color: var(--text-muted);
}

.hero-proof-sep {
  width: 1px;
  height: 28px;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.14), transparent);
}

/* Separadores Sutiles entre Secciones */
.power-section,
.picks-section,
.allocator-section {
  position: relative;
}

.power-section::before,
.picks-section::before,
.allocator-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(100% - 48px, 1152px);
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.09) 50%, transparent 100%);
}

/* Elevación Especular y Sombras de Profundidad en Tarjetas */
.contrast-container,
.picks-list-panel,
.chart-canvas-panel,
.strategic-results-card,
.allocator-config-card,
.allocator-results-panel {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 24px 48px -20px rgba(0, 0, 0, 0.65);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.perspective-card,
.portfolio-audit-card,
.quiz-trigger-banner {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.quiz-sparkle-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(0, 229, 153, 0.1);
  border: 1px solid rgba(0, 229, 153, 0.24);
  color: var(--accent-mint);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.audit-icon {
  color: var(--accent-mint);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Respuesta Táctil en Botones */
.btn-primary-kinetic:active,
.btn-secondary-glass:active,
.btn-launch-quiz:active,
.chip-btn:active,
.allocator-pill-btn:active {
  transform: scale(0.985);
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 2px solid rgba(0, 229, 153, 0.6);
  outline-offset: 2px;
}

/* Footer Institucional */
.site-footer {
  margin-top: 84px;
  background: linear-gradient(180deg, rgba(13, 19, 24, 0.35) 0%, #05080A 100%);
  border-top: 1px solid var(--border-subtle);
  padding: 56px 0 36px 0;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-brand {
  margin-bottom: 12px;
}

.footer-tagline {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 360px;
}

.footer-nav-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.footer-link {
  text-decoration: none;
  font-size: 13px;
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: var(--accent-mint);
}

.footer-meta-item {
  font-size: 13px;
  color: var(--text-muted);
}

.footer-legal-bar {
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-disclaimer {
  font-size: 11.5px;
  line-height: 1.65;
  color: var(--text-muted);
}

.footer-bottom-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: var(--text-secondary);
}

@media (max-width: 960px) {
  .nav-links {
    display: none;
  }
  .footer-top {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

@media (max-width: 640px) {
  .hero-proof-strip {
    gap: 18px;
  }
  .hero-proof-sep {
    display: none;
  }
}

/* ==========================================================================
   CLARIDAD ESTRATÉGICA, ESTADO EN BLANCO & SEMÁFORO POR ACTIVO
   ========================================================================== */
.asset-card-examples {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.examples-label {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.examples-text {
  font-size: 12.5px;
  color: #CBD5E1;
  line-height: 1.45;
}

.asset-card-meta-row {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.asset-meta-pill {
  font-size: 11px;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 3px 8px;
}

.asset-meta-pill strong {
  color: var(--text-primary);
  font-weight: 600;
}

.btn-clear-tickers {
  background: transparent;
  border: none;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  transition: color 0.2s ease;
}

.btn-clear-tickers:hover {
  color: #FDA4AF;
}

.allocator-chips-empty-hint {
  font-size: 12px;
  color: var(--text-muted);
  padding: 10px 12px;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.015);
  margin-top: 8px;
}

.chip-remove-x {
  margin-left: 6px;
  opacity: 0.65;
  font-weight: 700;
  font-size: 13px;
}

.asset-toggle-chip:hover .chip-remove-x {
  opacity: 1;
  color: #FDA4AF;
}

.allocator-empty-state {
  min-height: 360px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 28px;
  gap: 14px;
}

.empty-state-icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: rgba(0, 229, 153, 0.08);
  border: 1px solid rgba(0, 229, 153, 0.22);
  color: var(--accent-mint);
  display: flex;
  align-items: center;
  justify-content: center;
}

.empty-state-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
}

.empty-state-desc {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 440px;
}

.empty-state-desc strong {
  color: var(--text-primary);
}

/* Semáforo Individual por Activo */
.audit-assets-verdict-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 12px 0;
}

.verdict-asset-row {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 3px solid var(--accent-mint);
  border-radius: 10px;
  padding: 10px 12px;
}

.verdict-asset-row.verdict-tone-caution {
  border-left-color: #F59E0B;
}

.verdict-asset-row.verdict-tone-avoid {
  border-left-color: #F43F5E;
}

.verdict-asset-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 4px;
}

.verdict-asset-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.verdict-asset-name small {
  color: var(--text-muted);
  font-weight: 500;
}

.verdict-pill {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 3px 8px;
  border-radius: 999px;
  text-transform: uppercase;
}

.verdict-pill.pill-keep {
  background: rgba(0, 229, 153, 0.14);
  color: #00E599;
  border: 1px solid rgba(0, 229, 153, 0.3);
}

.verdict-pill.pill-caution {
  background: rgba(245, 158, 11, 0.14);
  color: #FBBF24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.verdict-pill.pill-avoid {
  background: rgba(244, 63, 94, 0.14);
  color: #FDA4AF;
  border: 1px solid rgba(244, 63, 94, 0.3);
}

.verdict-asset-reason {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.45;
  margin: 0;
}

/* Autocompletado en Vivo de Emisoras (Typeahead Dropdown) */
.custom-ticker-search-wrap {
  position: relative;
}

.ticker-autocomplete-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 60;
  background: #0D141B;
  border: 1px solid rgba(0, 229, 153, 0.28);
  border-radius: 12px;
  box-shadow: 0 20px 44px -10px rgba(0, 0, 0, 0.85);
  max-height: 260px;
  overflow-y: auto;
  padding: 6px;
}

.ac-item {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 11px;
  border: none;
  background: transparent;
  border-radius: 8px;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s ease;
}

.ac-item:hover {
  background: rgba(0, 229, 153, 0.1);
}

.ac-item-left {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.ac-ticker {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
}

.ac-name {
  font-size: 11.5px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ac-meta-badge {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--accent-mint);
  background: rgba(0, 229, 153, 0.08);
  border: 1px solid rgba(0, 229, 153, 0.2);
  border-radius: 6px;
  padding: 2px 7px;
  flex-shrink: 0;
}

.ac-empty {
  padding: 12px;
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
}

/* Alerta en línea de Poder de Compra / Validación de Ticker */
.allocator-input-feedback {
  margin-top: 10px;
  padding: 11px 13px;
  border-radius: 10px;
  font-size: 12px;
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.allocator-input-feedback.feedback-warning {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.32);
  color: #FDE68A;
}

.allocator-input-feedback.feedback-error {
  background: rgba(244, 63, 94, 0.08);
  border: 1px solid rgba(244, 63, 94, 0.32);
  color: #FDA4AF;
}

.feedback-text-block {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.feedback-text-block strong {
  font-size: 12.5px;
  color: #FFFFFF;
}

.btn-bump-capital {
  align-self: flex-start;
  background: rgba(0, 229, 153, 0.14);
  border: 1px solid rgba(0, 229, 153, 0.35);
  color: #00E599;
  font-size: 11.5px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}

.btn-bump-capital:hover {
  background: rgba(0, 229, 153, 0.24);
}

.verdict-top-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.verdict-alloc-tag {
  font-size: 11.5px;
  font-weight: 600;
  color: #CBD5E1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 2px 8px;
  border-radius: 6px;
  font-variant-numeric: tabular-nums;
}

.custom-alloc-bar-wrap {
  margin: 16px 0 14px 0;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
}

/* ============================================================================
   SUB-FASE 6.3: PULSO INFORMATIVO NLP & BITÁCORA AUDITADA
   ============================================================================ */
.transparency-section {
  padding: 64px 0 72px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.transparency-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 24px;
  margin-top: 28px;
}

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

.transparency-card {
  background: linear-gradient(180deg, rgba(16, 23, 30, 0.92) 0%, rgba(10, 15, 20, 0.96) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-top-color: rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.transparency-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.transparency-card-title {
  font-size: 17px;
  font-weight: 700;
  color: #F8FAFC;
  margin: 0 0 4px 0;
}

.transparency-card-sub {
  font-size: 13px;
  color: #94A3B8;
  margin: 0;
}

.news-tone-summary-pill,
.paper-live-pill {
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
  background: rgba(0, 229, 153, 0.12);
  color: #00E599;
  border: 1px solid rgba(0, 229, 153, 0.28);
}

.news-tone-summary-pill.tone-caution {
  background: rgba(245, 158, 11, 0.14);
  color: #FBBF24;
  border-color: rgba(245, 158, 11, 0.3);
}

.news-tone-summary-pill.tone-neutral {
  background: rgba(148, 163, 184, 0.14);
  color: #CBD5E1;
  border-color: rgba(148, 163, 184, 0.25);
}

.news-feed-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 410px;
  overflow-y: auto;
  padding-right: 4px;
}

.news-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 11px 13px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  text-decoration: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.news-item:hover {
  border-color: rgba(0, 229, 153, 0.32);
  background: rgba(255, 255, 255, 0.045);
}

.news-item-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.news-meta-left {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: #94A3B8;
}

.news-ticker-tag {
  font-weight: 700;
  color: #E2E8F0;
  background: rgba(255, 255, 255, 0.07);
  padding: 2px 7px;
  border-radius: 5px;
  font-size: 11px;
}

.news-score-pill {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  font-variant-numeric: tabular-nums;
}

.news-score-pill.tone-positive {
  background: rgba(0, 229, 153, 0.14);
  color: #00E599;
}

.news-score-pill.tone-caution {
  background: rgba(239, 68, 68, 0.14);
  color: #F87171;
}

.news-score-pill.tone-neutral {
  background: rgba(148, 163, 184, 0.12);
  color: #CBD5E1;
}

.news-item-title {
  font-size: 13.5px;
  line-height: 1.4;
  color: #E2E8F0;
  font-weight: 500;
}

.paper-kpis-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

@media (max-width: 600px) {
  .paper-kpis-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

.paper-kpi-box {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.paper-kpi-lbl {
  font-size: 11px;
  color: #94A3B8;
}

.paper-kpi-val {
  font-size: 14.5px;
  font-weight: 700;
  color: #F8FAFC;
  font-variant-numeric: tabular-nums;
}

.paper-chart-wrap {
  background: rgba(7, 11, 14, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 12px;
}

.paper-chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 8px;
  font-size: 11.5px;
  color: #CBD5E1;
}

.legend-dot-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.legend-dot-item i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
}

.dot-investlab { background: #00E599; }
.dot-naftrac { background: #60A5FA; }
.dot-sp500 { background: #A855F7; }
.dot-cetes { background: #F59E0B; }

#paper-equity-canvas {
  width: 100%;
  height: 170px;
  display: block;
}

.paper-trades-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.paper-trades-title {
  font-size: 12px;
  font-weight: 600;
  color: #94A3B8;
}

.paper-trades-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.paper-trade-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 11px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  font-size: 12.5px;
  font-variant-numeric: tabular-nums;
}

.paper-trade-left {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #E2E8F0;
}

.paper-trade-pnl.pnl-pos { color: #00E599; font-weight: 700; }
.paper-trade-pnl.pnl-neg { color: #F87171; font-weight: 700; }

.transparency-loading {
  font-size: 13px;
  color: #64748B;
  padding: 16px 0;
  text-align: center;
}

/* Dropdown de Autocompletado en Buscador Bloque 3 */
.custom-search-form {
  position: relative;
}

.asset-search-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: #0D1318;
  border: 1px solid rgba(0, 229, 153, 0.28);
  border-radius: 12px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.55);
  max-height: 260px;
  overflow-y: auto;
  z-index: 60;
  padding: 6px;
}

.asset-search-option {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  background: transparent;
  border: none;
  border-radius: 8px;
  color: #E2E8F0;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: background 0.15s ease;
}

.asset-search-option:hover {
  background: rgba(0, 229, 153, 0.12);
}

.asset-opt-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.asset-opt-sym {
  font-size: 13px;
  font-weight: 700;
  color: #F8FAFC;
}

.asset-opt-name {
  font-size: 11.5px;
  color: #94A3B8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.asset-opt-meta {
  font-size: 10.5px;
  font-weight: 600;
  color: #00E599;
  background: rgba(0, 229, 153, 0.1);
  border: 1px solid rgba(0, 229, 153, 0.22);
  padding: 2px 7px;
  border-radius: 6px;
  flex-shrink: 0;
}

/* Sub-Fase 6.4: Controles Touch y Experiencia PWA Móvil */
* {
  -webkit-tap-highlight-color: transparent;
}

@media (pointer: coarse) {
  .quick-chip,
  .capital-chip,
  .risk-pill,
  .search-submit-btn,
  .btn-copy-orders,
  .asset-search-option,
  .pick-item {
    min-height: 44px;
  }
  #forecast-canvas {
    touch-action: pan-y;
  }
}

/* Modal de Autenticación Firebase */
.auth-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(5, 8, 11, 0.78);
  backdrop-filter: blur(8px);
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.auth-modal-card {
  position: relative;
  width: 100%;
  max-width: 400px;
  background: #0D1318;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 28px 24px 24px 24px;
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.65);
}

.auth-modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: transparent;
  border: none;
  color: #94A3B8;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.auth-modal-title {
  margin: 0 0 6px 0;
  font-size: 20px;
  font-weight: 700;
  color: #F8FAFC;
}

.auth-modal-sub {
  margin: 0 0 18px 0;
  font-size: 13.5px;
  color: #94A3B8;
  line-height: 1.45;
}

.auth-google-btn {
  width: 100%;
  padding: 11px 16px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #FFFFFF;
  color: #0F172A;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 0;
  color: #64748B;
  font-size: 12px;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
}

.auth-email-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.auth-input {
  width: 100%;
  padding: 11px 13px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #F8FAFC;
  font-size: 14px;
}

.auth-submit-btn {
  width: 100%;
  padding: 11px 16px;
  border-radius: 10px;
  border: none;
  background: #00E599;
  color: #070B0E;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  margin-top: 4px;
}

.auth-toggle-btn {
  width: 100%;
  margin-top: 14px;
  background: transparent;
  border: none;
  color: #38BDF8;
  font-size: 13px;
  cursor: pointer;
}

.auth-error-msg {
  font-size: 12.5px;
  color: #F87171;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.25);
  padding: 8px 10px;
  border-radius: 8px;
}

.auth-plan-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  margin-bottom: 16px;
  font-size: 13.5px;
  color: #CBD5E1;
}

.auth-plan-badge.is-pro {
  color: #00E599;
  font-weight: 700;
}

.auth-plan-badge.is-free {
  color: #94A3B8;
  font-weight: 600;
}

.auth-logout-btn {
  width: 100%;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid rgba(244, 63, 94, 0.35);
  background: rgba(244, 63, 94, 0.12);
  color: #FDA4AF;
  font-weight: 600;
  cursor: pointer;
}

/* Candado Pro en Cartera a la Medida */
.custom-builder-container {
  position: relative;
}

.custom-pro-lock-overlay {
  position: absolute;
  inset: 96px 0 0 0;
  background: rgba(7, 11, 14, 0.78);
  backdrop-filter: blur(8px);
  z-index: 40;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.btn-save-cloud {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 15px;
  border-radius: 10px;
  border: 1px solid rgba(0, 229, 153, 0.35);
  background: rgba(0, 229, 153, 0.12);
  color: #00E599;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}

.btn-save-cloud:hover {
  background: rgba(0, 229, 153, 0.22);
}

.cloud-save-status {
  font-size: 12.5px;
  color: #94A3B8;
  margin-left: 6px;
}

.auth-promo-box {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 14px;
}

.auth-promo-label {
  display: block;
  font-size: 12px;
  color: #CBD5E1;
  margin-bottom: 8px;
}

.auth-promo-row {
  display: flex;
  gap: 8px;
}

.btn-redeem-promo {
  padding: 0 14px;
  border-radius: 10px;
  border: none;
  background: #00E599;
  color: #070B0E;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  flex-shrink: 0;
}

.auth-promo-msg {
  margin-top: 8px;
  margin-bottom: 12px;
  font-size: 12px;
  line-height: 1.4;
}

.auth-invite-banner {
  background: rgba(0, 229, 153, 0.1);
  border: 1px solid rgba(0, 229, 153, 0.35);
  color: #00E599;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 14px;
}

/* ==========================================================================
   MOBILE APP SHELL & TYPOGRAPHY (<= 768px) — ROBINHOOD / GBM+ NATIVE UX
   ========================================================================== */
.mobile-bottom-nav {
  display: none;
}

@media (max-width: 768px) {
  body {
    padding-bottom: calc(74px + env(safe-area-inset-bottom));
    font-size: 15px;
  }

  .container {
    padding-left: 14px;
    padding-right: 14px;
  }

  /* Barra Superior Compacta de App */
  .nav-anchors {
    display: none !important;
  }

  .header-inner {
    height: 54px;
  }

  .brand-tag {
    display: none;
  }

  .btn-pro-access {
    padding: 8px 13px;
    font-size: 13px;
  }

  /* Barra Inferior Fija de 4 Pestañas */
  .mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1100;
    height: calc(64px + env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom);
    background: rgba(8, 12, 16, 0.96);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    box-shadow: 0 -8px 28px rgba(0, 0, 0, 0.55);
  }

  .mobile-nav-btn {
    background: transparent;
    border: none;
    color: #64748B;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    padding: 6px 4px;
    transition: color 0.15s ease;
  }

  .mobile-nav-btn svg {
    width: 21px;
    height: 21px;
  }

  .mobile-nav-btn.active {
    color: #00E599;
  }

  /* Aislamiento de Pantallas por Pestaña (Cero Pergamino Largo) */
  body[data-mobile-tab] #hero-section,
  body[data-mobile-tab] #site-footer,
  body[data-mobile-tab] #picks-section,
  body[data-mobile-tab] #allocator-section,
  body[data-mobile-tab] #transparency-section,
  body[data-mobile-tab] #power-section {
    display: none !important;
  }

  body[data-mobile-tab="picks"] #picks-section {
    display: block !important;
  }

  body[data-mobile-tab="portfolio"] #allocator-section {
    display: block !important;
  }

  body[data-mobile-tab="bitacora"] #transparency-section {
    display: block !important;
  }

  body[data-mobile-tab="power"] #power-section {
    display: block !important;
  }

  /* Eliminación de párrafos largos y muros de texto en celular */
  .section-subtitle,
  .section-lead,
  .custom-builder-subtitle,
  .allocator-group-hint,
  .picks-list-header,
  .foundations-row,
  .quiz-trigger-copy p,
  .strategic-asset-cards-grid,
  .chart-footer-note {
    display: none !important;
  }

  .picks-section,
  .allocator-section,
  .transparency-section,
  .power-section {
    padding: 16px 0 24px 0 !important;
  }

  .section-header,
  .section-header-block,
  .custom-builder-header {
    margin-bottom: 12px !important;
    text-align: left !important;
  }

  .section-title,
  .custom-builder-title,
  .power-main-title {
    font-size: 21px !important;
    line-height: 1.25 !important;
    letter-spacing: -0.02em;
  }

  /* Carrusel Horizontal de las 5 Oportunidades (Todo en 1 pantalla) */
  .picks-workspace {
    display: flex !important;
    flex-direction: column !important;
    gap: 14px !important;
  }

  .picks-cards-container {
    display: flex !important;
    flex-direction: row !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory;
    gap: 10px !important;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
  }

  .picks-cards-container::-webkit-scrollbar {
    height: 3px;
  }

  .picks-cards-container .pick-item {
    flex: 0 0 215px !important;
    scroll-snap-align: start;
    padding: 12px 14px !important;
  }

  /* Tipografía Grande y Clara en Móvil */
  .pick-role {
    font-size: 11.5px !important;
  }

  .pick-ticker {
    font-size: 15.5px !important;
  }

  .pick-price {
    font-size: 14px !important;
  }

  .pick-return {
    font-size: 14px !important;
    padding: 4px 9px !important;
  }

  /* Inputs a 16px (legibles y evitan el auto-zoom en iOS Safari) */
  .custom-search-input,
  .custom-ticker-search-input,
  .allocator-capital-field,
  .auth-input {
    font-size: 16px !important;
  }

  /* Gráfico y Tarjetas de Decisión (Plan de hoy) */
  .chart-panel {
    padding: 16px 14px !important;
  }

  .chart-active-ticker {
    font-size: 19px !important;
  }

  .chart-active-price {
    font-size: 21px !important;
  }

  .chart-active-name {
    font-size: 13.5px !important;
  }

  .pcard {
    padding: 14px !important;
  }

  .pcard-title {
    font-size: 14.5px !important;
  }

  .pcard-lbl {
    font-size: 13.5px !important;
  }

  .pcard-val {
    font-size: 15px !important;
  }

  .thermo-callout-num,
  .thermo-end-num {
    font-size: 14.5px !important;
  }

  /* Pestaña Mi Cartera: Constructor a la Medida ARRIBA */
  #allocator-section .container {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  #allocator-section .section-header {
    order: 0;
  }

  #custom-builder-container {
    order: 1;
    margin-top: 0 !important;
    padding: 16px 14px !important;
  }

  #quiz-trigger-banner {
    order: 2;
    padding: 14px !important;
  }

  .strategic-alloc-container {
    order: 3;
  }

  .allocator-config-card,
  .allocator-results-card {
    padding: 16px 14px !important;
  }

  .allocator-group-label {
    font-size: 14.5px !important;
  }

  .pill-title {
    font-size: 14px !important;
  }

  .pill-desc {
    font-size: 12px !important;
  }

  /* Tabla de Plan de Compra limpia en móvil (sin columna unitaria intermedia) */
  .allocator-orders-table th:nth-child(3),
  .allocator-orders-table td:nth-child(3) {
    display: none;
  }

  .allocator-orders-table th {
    font-size: 11.5px !important;
    padding: 8px 6px !important;
  }

  .allocator-orders-table td {
    font-size: 13.5px !important;
    padding: 11px 6px !important;
  }

  /* Pestaña Bitácora: Bitácora de Laboratorio ARRIBA y Radar de Noticias abajo */
  .transparency-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
  }

  #paper-audit-card {
    order: -1;
  }

  .transparency-card {
    padding: 16px 14px !important;
  }

  .transparency-card-title {
    font-size: 18px !important;
  }

  .paper-kpi-lbl {
    font-size: 12.5px !important;
  }

  .paper-kpi-val {
    font-size: 19px !important;
  }

  .paper-trade-row {
    font-size: 14px !important;
    padding: 10px 12px !important;
  }

  .news-feed-list {
    max-height: 340px !important;
    overflow-y: auto !important;
  }

  .news-item-title {
    font-size: 14.5px !important;
    line-height: 1.4 !important;
  }
}
