/**
 * IA LISTENING - DESIGN SYSTEM PARA INFORMES WEB
 * ================================================
 * Archivo unico de estilos para barometros e informes.
 *
 * COMO USAR:
 *   1. Cargar Google Fonts Outfit (pesos 300-700):
 *      <link href="https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap" rel="stylesheet">
 *   2. Enlazar este CSS despues:
 *      <link rel="stylesheet" href="barometro-design-system.css">
 *   3. (Opcional) Cargar Lucide Icons y ApexCharts segun necesidad.
 *
 * SECCIONES:
 *  0. Instrucciones de uso (este bloque)
 *  1. Design Tokens (variables CSS)
 *  2. Reset & Base
 *  3. Tipografia
 *  4. Layout (sidebar + main + context)
 *  5. Componentes de navegacion (TOC, tabs, filtros)
 *  6. Hero & Headers
 *  7. Secciones & Contenido
 *  8. Cards & Tiles
 *  9. Tablas de datos
 * 10. Badges & Tags
 * 11. Botones & CTAs
 * 12. Charts (paleta JS + contenedores)
 * 13. Modales
 * 14. Timeline, Flow & Progress
 * 15. Formularios & Filtros
 * 16. Animaciones
 * 17. Responsive
 * 18. Print
 * 19. Utilidades
 *
 * COMPONENTES DISPONIBLES:
 *   - Sidebar de navegacion (TOC) con progreso: .toc-sidebar
 *   - Sidebar contextual con stats: .context-sidebar
 *   - Sidebar de filtros (explorer): .filter-sidebar
 *   - Hero inmersivo con video/globo: .hero
 *   - Header de pagina con gradiente: .page-header
 *   - Secciones de contenido: .section
 *   - Divisores de parte: .part-divider
 *   - Cards informativas: .card, .card-grid-2, .card-grid-3
 *   - Cards de estadistica: .stat-card, .stat-row
 *   - Tiles de conclusion: .conclusion-tile
 *   - Tablas con estilo: table (index), .data-table (explorer)
 *   - Badges de perfil: .badge-versatil, .badge-diversificado, etc.
 *   - Tabs: .tabs-container, .tabs-bar, .folder-tabs, .nav-tabs
 *   - Timeline: .timeline
 *   - Diagrama de flujo: .flow-diagram
 *   - Barras de progreso: .pb-inline
 *   - Blockquotes: blockquote, .pullquote
 *   - Highlight boxes: .highlight-box
 *   - Modales de detalle: .modal-overlay
 *   - Formularios de filtro: .filter-section
 *   - CTA final: .cta-section
 *   - Contacto flotante: .contact-pill
 *
 * REGLAS DE ACCESIBILIDAD OBLIGATORIAS:
 *   - SOBRE FONDO OSCURO: texto minimo rgba(255,255,255,.7)
 *                          texto importante rgba(255,255,255,.85)
 *                          titulos: #fff
 *   - SOBRE FONDO CLARO:  texto principal #151823
 *                          texto secundario #3a4a4a
 *                          texto suave #6b7280
 *   - NUNCA texto con opacity < .65 sobre gradientes oscuros
 *   - NUNCA usar var(--turquesa) como color de TEXTO sobre fondos oscuros
 *     (solo ~3.5:1 contraste, necesita 4.5:1). Usar #fff en su lugar.
 *     Turquesa SI sirve para: bordes, SVG strokes, iconos/texto sobre fondo claro.
 *   - Usar variables --text-on-dark* para garantizar contraste
 *
 * GRADIENTES - CUANDO USAR CADA UNO:
 *   --grad-cover:    Hero principal, fondos de portada
 *   --grad-logo:     Fondos que representan la marca completa (spectrum)
 *   --grad-spectrum: Lineas decorativas, barras de progreso
 *   --grad-magenta:  Botones secundarios, acentos calidos
 *   --grad-warm:     Badges warm, oportunidades
 *   --grad-content:  Fondos de contenido suaves (lectura)
 */


/* =============================================
   1. DESIGN TOKENS
   =============================================
   Variables CSS globales. Prefijo --color-* compatible
   con design-tokens-ialistening.css.
   ============================================= */
:root {
  /* === PALETA COMPLETA (logo K-means) === */
  --navy: #143082;
  --blue-bright: #2C5CE2;
  --turquesa: #007BFF;
  --violet-blue: #623CD2;
  --primary: #7A40FF;
  --primary-light: #9066FF;
  --primary-dark: #5A20DF;
  --magenta: #9830BA;
  --purple-deep: #5B1866;
  --rosa: #D74F6A;
  --secondary: #FF6D3A;
  --secondary-light: #FF8F66;
  --orange-warm: #F88431;
  --accent: #151823;
  --accent-light: #7A40FF;

  /* === TEXTOS === */
  --text: #151823;
  --text-sec: #3a4a4a;
  --text-light: #6b7280;

  /* === FONDOS === */
  --bg: #ffffff;
  --bg-alt: #f8f9fa;
  --bg-alt2: #f0f2fa;

  /* === GRADIENTES === */
  --grad-cover: linear-gradient(135deg, #007BFF 0%, #7A40FF 35%, #151823 100%);
  --grad-content: linear-gradient(145deg, #EEF0FF 0%, #F3F5FF 100%);
  --grad-logo: linear-gradient(135deg, #143082 0%, #2C5CE2 15%, #623CD2 30%, #9830BA 50%, #D74F6A 70%, #F88431 100%);
  --grad-spectrum: linear-gradient(90deg, #143082, #2C5CE2, #623CD2, #9830BA, #D74F6A, #F88431);
  --grad-magenta: linear-gradient(135deg, #9830BA, #D74F6A);
  --grad-warm: linear-gradient(135deg, #D74F6A, #F88431);

  /* === SOMBRAS === */
  --shadow-sm: 0 1px 3px rgba(21,24,35,.04), 0 1px 2px rgba(21,24,35,.06);
  --shadow-md: 0 4px 16px rgba(21,24,35,.06), 0 2px 4px rgba(21,24,35,.04);
  --shadow-lg: 0 8px 32px rgba(21,24,35,.08), 0 4px 8px rgba(21,24,35,.04);
  --shadow-xl: 0 16px 48px rgba(21,24,35,.1), 0 8px 16px rgba(21,24,35,.06);

  /* === BORDES === */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 14px;
  --r-xl: 20px;
  --r-pill: 999px;

  /* === TIPOGRAFIA === */
  --font: 'Outfit', sans-serif;
  --ease-out-expo: cubic-bezier(.16, 1, .3, 1);

  /* === PALETA CHARTS (para JS) ===
   * Acceder desde JS:
   *   getComputedStyle(document.documentElement).getPropertyValue('--chart-1').trim()
   *
   * Uso recomendado:
   *   2-3 series: chart-1, chart-2, chart-3
   *   4-6 series: chart-1 a chart-6
   *   7-10 series: chart-1 a chart-10
   *   Donut: misma secuencia
   *   Single bar: chart-1 (navy) o chart-2 (magenta)
   *   Radar: chart-2 fill, chart-7 markers
   */
  --chart-1: #143082;   /* Navy - dato principal / top 1 */
  --chart-2: #9830BA;   /* Magenta - segundo valor */
  --chart-3: #D74F6A;   /* Rosa - tercer valor */
  --chart-4: #2C5CE2;   /* Azul brillante */
  --chart-5: #623CD2;   /* Violeta-azul */
  --chart-6: #F88431;   /* Naranja calido */
  --chart-7: #5B1866;   /* Purpura profundo */
  --chart-8: #9066FF;   /* Violeta claro */
  --chart-9: #FF6D3A;   /* Naranja */
  --chart-10: #FF6B9D;  /* Rosa claro */

  /* === TEXTOS SOBRE FONDO OSCURO (accesibilidad) ===
   * REGLA: nunca usar opacity < .65 sobre gradientes oscuros.
   * --text-on-dark:           para cuerpo de texto (.85)
   * --text-on-dark-secondary: para texto complementario (.7)
   * --text-on-dark-heading:   para titulos (#fff)
   * --text-on-dark-muted:     minimo absoluto permitido (.6)
   */
  --text-on-dark: rgba(255,255,255,.85);
  --text-on-dark-secondary: rgba(255,255,255,.7);
  --text-on-dark-heading: #ffffff;
  --text-on-dark-muted: rgba(255,255,255,.6);
}


/* =============================================
   2. RESET & BASE
   ============================================= */
* { margin: 0; padding: 0; box-sizing: border-box }
html { scroll-behavior: smooth }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg-alt);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}


/* =============================================
   3. TIPOGRAFIA
   ============================================= */
/* (tipografia de secciones definida en seccion 7) */


/* =============================================
   4. LAYOUT (sidebar + main + context)
   =============================================
   index.html usa: .toc-sidebar (280px) + .main-content + .context-sidebar (260px)
   resultados.html usa: .filter-sidebar (272px) + .main-area
   ============================================= */

/* --- Layout index.html --- */
.toc-sidebar {
  position: fixed; left: 0; top: 0; width: 280px; height: 100vh;
  background: var(--bg); border-right: 1px solid rgba(122,64,255,.1);
  overflow-y: auto; z-index: 100;
  display: flex; flex-direction: column;
}
.main-content { margin-left: 280px; margin-right: 260px; min-height: 100vh }
.main-content-inner { padding: 2rem 2.5rem 4rem; background: #fff }
.context-sidebar {
  position: fixed; right: 0; top: 0; width: 260px; height: 100vh;
  padding: 80px 1.25rem 1.5rem; overflow-y: auto; z-index: 90;
  display: flex; flex-direction: column;
}
.hero-wrapper { margin-left: 280px; margin-right: 260px }

/* --- Layout resultados.html --- */
.filter-sidebar {
  position: fixed; left: 0; top: 0; width: 272px; height: 100vh;
  background: linear-gradient(180deg, #fff 0%, #f8fbfb 100%);
  border-right: 1px solid rgba(122,64,255,.08);
  overflow-y: auto; z-index: 100;
  display: flex; flex-direction: column; padding: 0;
  scrollbar-width: thin; scrollbar-color: rgba(122,64,255,.25) transparent;
}
.filter-sidebar::-webkit-scrollbar { width: 4px }
.filter-sidebar::-webkit-scrollbar-track { background: transparent }
.filter-sidebar::-webkit-scrollbar-thumb { background: rgba(122,64,255,.15); border-radius: 4px }
.main-area { margin-left: 272px; min-height: 100vh; background: #fff }


/* =============================================
   5. COMPONENTES DE NAVEGACION
   =============================================
   .toc-* : Sidebar de navegacion (index.html)
   .filter-* : Sidebar de filtros (resultados.html)
   .tabs-*, .tab-*, .folder-*, .nav-tab-* : Sistemas de tabs
   ============================================= */

/* --- TOC Sidebar (index) --- */
.toc-logo { padding: 1.5rem 1.25rem .75rem }
.toc-logo img { height: 70px }
.toc-nav { list-style: none; padding: .5rem 0; flex: 1 }
.toc-item {
  padding: .55rem 1.25rem; display: flex; align-items: center; gap: .65rem;
  cursor: pointer; border-radius: 8px; margin: 1px .5rem;
  font-size: .88rem; font-weight: 500; color: var(--text-sec);
  transition: all .2s; text-decoration: none;
}
.toc-item:hover { background: var(--bg-alt); color: var(--accent) }
.toc-item.active {
  background: linear-gradient(135deg, rgba(152,48,186,.12), rgba(21,24,35,.08));
  color: var(--accent); font-weight: 600; border-left: 3px solid var(--magenta);
}
.toc-item i { width: 17px; height: 17px; flex-shrink: 0 }
.toc-subnav { max-height: 0; overflow: hidden; transition: max-height .4s ease; padding-left: 2.5rem; list-style: none }
.toc-subnav.expanded { max-height: 500px }
.toc-subnav-item {
  padding: .3rem 1rem; font-size: .78rem; color: var(--text-light);
  cursor: pointer; border-radius: 6px; transition: all .2s;
  display: block; text-decoration: none;
}
.toc-subnav-item:hover { color: var(--primary) }
.toc-subnav-item.active { color: var(--accent); font-weight: 600 }
.toc-progress { height: 3px; background: rgba(122,64,255,.1); margin-top: auto }
.toc-progress-bar { height: 100%; background: var(--grad-spectrum); width: 0%; transition: width .3s }

/* --- TOC Explorer Banner --- */
.toc-explorer-banner {
  display: flex; align-items: center; gap: .85rem; margin: .75rem .65rem;
  padding: 1.1rem 1rem;
  background: linear-gradient(135deg, #143082 0%, #623CD2 30%, #9830BA 55%, #D74F6A 80%, #F88431 100%);
  border-radius: 14px; text-decoration: none; color: #fff;
  transition: all .3s var(--ease-out-expo);
  position: relative; overflow: hidden;
  box-shadow: 0 4px 16px rgba(21,24,35,.3);
}
.toc-explorer-banner::before {
  content: ''; position: absolute; top: -20px; right: -20px;
  width: 80px; height: 80px;
  background: radial-gradient(circle, rgba(255,255,255,.15) 0%, transparent 70%);
  border-radius: 50%;
}
.toc-explorer-banner::after {
  content: ''; position: absolute; inset: 0; border-radius: 14px;
  border: 1.5px solid rgba(255,255,255,.2); pointer-events: none;
}
.toc-explorer-banner:hover { transform: translateY(-3px); box-shadow: 0 8px 28px rgba(0,123,255,.4) }
.toc-explorer-icon {
  width: 40px; height: 40px; background: rgba(0,123,255,.2); border-radius: 10px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.toc-explorer-icon i { width: 20px; height: 20px; color: var(--turquesa) }
.toc-explorer-text { flex: 1; min-width: 0 }
.toc-explorer-title { display: block; font-size: .95rem; font-weight: 700; line-height: 1.2 }
.toc-explorer-sub { display: block; font-size: .68rem; color: rgba(255,255,255,.8); line-height: 1.3; margin-top: .2rem }
.toc-explorer-arrow { width: 20px; height: 20px; color: #fff; flex-shrink: 0; opacity: .8; transition: all .2s }
.toc-explorer-banner:hover .toc-explorer-arrow { opacity: 1; transform: translateX(3px) }

/* --- Destination Search (sidebar index) --- */
.dest-search-wrap {
  margin: .75rem .65rem .75rem; position: relative; background: #fff;
  border-radius: 14px; padding: .85rem .85rem .75rem;
  border: 1.5px solid rgba(122,64,255,.12); box-shadow: 0 2px 12px rgba(21,24,35,.05);
}
.dest-search-header {
  display: flex; align-items: center; gap: .45rem;
  font-size: .78rem; font-weight: 700; color: var(--accent);
  text-transform: uppercase; letter-spacing: .06em; margin-bottom: .55rem; padding: 0;
}
.dest-search-header i { width: 16px; height: 16px; color: var(--turquesa) }
.dest-search-field { position: relative }
.dest-search-icon {
  position: absolute; left: .7rem; top: 50%; transform: translateY(-50%);
  width: 15px; height: 15px; color: var(--primary); pointer-events: none; z-index: 2;
}
.dest-search-input {
  width: 100%; padding: .65rem .85rem .65rem 2.2rem;
  border: 2px solid rgba(122,64,255,.15); border-radius: 10px;
  font-family: var(--font); font-size: .88rem; font-weight: 500; color: var(--text);
  background: var(--bg-alt); transition: all .25s; outline: none;
}
.dest-search-input::placeholder { color: var(--text-light); font-weight: 400; font-size: .82rem }
.dest-search-input:focus { border-color: var(--primary); background: #fff; box-shadow: 0 0 0 3px rgba(122,64,255,.12) }
.dest-search-dropdown {
  position: absolute; top: 100%; left: 0; right: 0;
  background: #fff; border: 1.5px solid rgba(122,64,255,.15); border-radius: 10px;
  margin-top: 4px; max-height: 200px; overflow-y: auto;
  display: none; z-index: 200; box-shadow: 0 8px 24px rgba(21,24,35,.12);
}
.dest-search-dropdown.open { display: block }
.dest-dd-item {
  padding: .45rem .7rem; font-size: .8rem; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: .3rem;
  transition: background .15s;
}
.dest-dd-item:hover { background: rgba(122,64,255,.06) }
.dest-dd-item .dd-rank { font-size: .65rem; color: var(--text-light); font-weight: 600; white-space: nowrap }
.dest-dd-item:first-child { border-radius: 8px 8px 0 0 }
.dest-dd-item:last-child { border-radius: 0 0 8px 8px }
.dest-result-card {
  margin-top: .6rem;
  background: linear-gradient(135deg, #143082 0%, #623CD2 35%, #9830BA 65%, #D74F6A 100%);
  border-radius: 14px; padding: .85rem; color: #fff;
  position: relative; overflow: hidden; display: none;
}
.dest-result-card.show { display: block; animation: destCardIn .45s cubic-bezier(.16,1,.3,1) both }
.dest-result-card::before {
  content: ''; position: absolute; top: -25px; right: -25px; width: 80px; height: 80px;
  background: radial-gradient(circle, rgba(0,123,255,.12) 0%, transparent 70%); border-radius: 50%;
}
.dest-result-card::after {
  content: ''; position: absolute; bottom: -15px; left: -15px; width: 50px; height: 50px;
  background: radial-gradient(circle, rgba(255,109,58,.08) 0%, transparent 70%); border-radius: 50%;
}
.dest-result-name {
  font-size: .95rem; font-weight: 700; margin-bottom: .5rem; position: relative; z-index: 1;
  display: flex; align-items: center; gap: .35rem; flex-wrap: wrap;
}
.dest-rank-badge {
  font-size: .58rem; background: rgba(0,123,255,.15); border: 1px solid rgba(0,123,255,.3);
  padding: .1rem .4rem; border-radius: var(--r-pill); color: #fff;
  font-weight: 700; white-space: nowrap;
}
.dest-score-row { display: flex; align-items: center; gap: .65rem; margin-bottom: .5rem; position: relative; z-index: 1 }
.dest-score-circle { position: relative; width: 58px; height: 58px; flex-shrink: 0 }
.dest-score-circle svg { width: 58px; height: 58px; transform: rotate(-90deg) }
.dest-score-circle .score-bg { fill: none; stroke: rgba(255,255,255,.1); stroke-width: 5 }
.dest-score-circle .score-fg { fill: none; stroke: var(--turquesa); stroke-width: 5; stroke-linecap: round; transition: stroke-dashoffset .8s cubic-bezier(.16,1,.3,1) }
.dest-score-num { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); font-size: 1.05rem; font-weight: 700; color: #fff; line-height: 1 }
.dest-score-details { flex: 1 }
/* FIX ACCESIBILIDAD: era .5, ahora .7 */
.dest-score-label { font-size: .58rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-on-dark-secondary); margin-bottom: .15rem }
.dest-profile-pill { display: inline-block; font-size: .62rem; font-weight: 700; padding: .12rem .45rem; border-radius: var(--r-pill) }
.dest-profile-pill.versatil { background: rgba(0,123,255,.15); color: #007BFF }
.dest-profile-pill.diversificado { background: rgba(122,64,255,.2); color: #9066FF }
.dest-profile-pill.especializado { background: rgba(255,109,58,.15); color: #FF6D3A }
.dest-profile-pill.nicho { background: rgba(255,255,255,.12); color: var(--text-on-dark-muted) }
.dest-stats-row { display: grid; grid-template-columns: 1fr 1fr; gap: .3rem; position: relative; z-index: 1 }
.dest-stat-mini { background: rgba(255,255,255,.07); border-radius: 8px; padding: .3rem .4rem; text-align: center }
.dest-stat-mini-num { font-size: .88rem; font-weight: 700; color: #fff; line-height: 1.2 }
/* FIX ACCESIBILIDAD: era .5, ahora .7 */
.dest-stat-mini-label { font-size: .5rem; color: var(--text-on-dark-secondary); text-transform: uppercase; letter-spacing: .03em }
.dest-result-link {
  display: flex; align-items: center; justify-content: center; gap: .3rem;
  margin-top: .5rem; font-size: .7rem; font-weight: 600; color: #fff;
  text-decoration: none; padding: .35rem .55rem;
  border: 1px solid rgba(0,123,255,.2); border-radius: var(--r-pill);
  transition: all .2s; position: relative; z-index: 1;
}
.dest-result-link:hover { background: rgba(0,123,255,.1); border-color: rgba(0,123,255,.4) }
.dest-result-link i { width: 12px; height: 12px }

/* --- Context Sidebar Stats (index) --- */
.context-stats { display: flex; flex-direction: column; gap: .65rem; flex: 1; overflow: hidden }
.ctx-section {
  font-size: .6rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em;
  color: var(--primary); padding: .2rem .65rem; background: rgba(122,64,255,.08);
  border-radius: var(--r-pill); display: inline-block; align-self: flex-start; margin-bottom: .15rem;
}
.ctx-hero {
  background: linear-gradient(135deg, #5B1866 0%, #9830BA 50%, #623CD2 100%);
  border-radius: var(--r-lg); padding: 1.25rem 1rem; text-align: center; color: #fff;
  position: relative; overflow: hidden;
}
.ctx-hero::before {
  content: ''; position: absolute; top: -30px; right: -30px; width: 100px; height: 100px;
  background: radial-gradient(circle, rgba(0,123,255,.15) 0%, transparent 70%); border-radius: 50%;
}
/* FIX ACCESIBILIDAD: turquesa (#007BFF) sobre fondo oscuro = 3.5:1 contraste.
   Se usa #fff para garantizar legibilidad (21:1). */
.ctx-hero-num { font-size: 2.4rem; font-weight: 700; color: #fff; line-height: 1; position: relative; z-index: 1 }
.ctx-hero-text { font-size: .82rem; font-weight: 600; color: #fff; margin-top: .25rem; position: relative; z-index: 1 }
/* FIX ACCESIBILIDAD: era .5, ahora .7 */
.ctx-hero-sub { font-size: .62rem; color: var(--text-on-dark-secondary); margin-top: .2rem; position: relative; z-index: 1 }
.ctx-stat { background: var(--accent); border-radius: 10px; padding: .7rem .85rem; color: #fff; display: flex; align-items: baseline; gap: .4rem }
/* FIX ACCESIBILIDAD: turquesa sobre var(--accent) = bajo contraste */
.ctx-stat-num { font-size: 1.15rem; font-weight: 700; color: #fff; white-space: nowrap }
.ctx-stat-text { font-size: .72rem; color: rgba(255,255,255,.8); line-height: 1.3 }

/* --- Sidebar CTA (index) --- */
.sidebar-cta {
  margin-top: auto; padding: 1.1rem .85rem 1rem;
  border-top: 1px solid rgba(122,64,255,.08);
  background: linear-gradient(180deg, rgba(122,64,255,.03) 0%, rgba(122,64,255,.08) 100%);
}
.sidebar-cta-title { font-size: .92rem; font-weight: 700; color: var(--accent); margin-bottom: .4rem }
.sidebar-cta-text { font-size: .78rem; color: var(--text-sec); line-height: 1.5; margin-bottom: .85rem }
.sidebar-cta-btn {
  display: flex; align-items: center; justify-content: center; gap: .4rem;
  width: 100%; background: linear-gradient(135deg, #9830BA, #D74F6A, #F88431);
  color: #fff; padding: .7rem 1rem; border-radius: var(--r-pill);
  font-size: .85rem; font-weight: 700; text-decoration: none;
  transition: all .25s var(--ease-out-expo); font-family: var(--font);
  border: none; box-shadow: 0 4px 12px rgba(21,24,35,.2);
}
.sidebar-cta-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(21,24,35,.3) }

/* --- Sidebar Header & Back (resultados) --- */
.sidebar-header {
  padding: 2.25rem 1.25rem 2.25rem;
  background: linear-gradient(135deg, #5B1866 0%, #9830BA 50%, #623CD2 100%);
  position: relative; overflow: visible;
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
}
.sidebar-header::before {
  content: ''; position: absolute; top: -30px; right: -30px; width: 100px; height: 100px;
  background: radial-gradient(circle, rgba(0,123,255,.12) 0%, transparent 70%); border-radius: 50%;
}
.sidebar-header::after {
  content: ''; position: absolute; bottom: -20px; left: -20px; width: 80px; height: 80px;
  background: radial-gradient(circle, rgba(122,64,255,.1) 0%, transparent 70%); border-radius: 50%;
}
.sidebar-header img { height: 70px; position: relative; z-index: 1 }
/* FIX ACCESIBILIDAD: era .7, ahora .85 */
.sidebar-back {
  display: none; align-items: center; gap: .35rem;
  color: var(--text-on-dark); font-size: .74rem; font-weight: 600;
  text-decoration: none; margin-top: .75rem; transition: all .2s;
  position: relative; z-index: 1; padding: .3rem .65rem;
  border-radius: var(--r-pill); background: rgba(255,255,255,.08);
}
.sidebar-back:hover { color: #fff; background: rgba(255,255,255,.15) }
.sidebar-back i { width: 13px; height: 13px }

/* --- Filter Sections (resultados) --- */
.filter-section { padding: .9rem 1.15rem; border-bottom: 1px solid rgba(122,64,255,.06) }
.filter-section:last-child { border-bottom: none }
.filter-label {
  font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em;
  color: var(--accent); margin-bottom: .55rem;
  display: flex; align-items: center; gap: .35rem; opacity: .55;
}
.filter-label i { width: 12px; height: 12px }
.filter-checks { display: flex; flex-direction: column; gap: .15rem }
.filter-check {
  display: flex; align-items: center; gap: .5rem; cursor: pointer;
  font-size: .82rem; color: var(--text-sec); padding: .3rem .45rem;
  transition: all .15s; border-radius: 6px; margin: 0 -.45rem;
}
.filter-check:hover { background: rgba(122,64,255,.04); color: var(--accent) }
.filter-check input[type="checkbox"] {
  appearance: none; -webkit-appearance: none; width: 16px; height: 16px;
  border: 2px solid rgba(122,64,255,.18); border-radius: 5px;
  cursor: pointer; position: relative; flex-shrink: 0;
  transition: all .2s var(--ease-out-expo);
}
.filter-check input[type="checkbox"]:checked {
  background: var(--magenta); border-color: var(--magenta);
  box-shadow: 0 2px 6px rgba(152,48,186,.25);
}
.filter-check input[type="checkbox"]:checked::after {
  content: ''; position: absolute; top: 2px; left: 4.5px;
  width: 4px; height: 7px; border: solid #fff; border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.filter-check:has(input:checked) { color: var(--accent); font-weight: 600; background: rgba(122,64,255,.04) }
.filter-flag { width: 20px; height: 14px; border-radius: 3px; object-fit: cover; box-shadow: 0 1px 3px rgba(0,0,0,.12) }
.filter-clear {
  display: flex; align-items: center; justify-content: center; gap: .35rem;
  width: 100%; padding: .5rem; background: transparent;
  border: 1.5px solid rgba(122,64,255,.15); color: var(--primary);
  border-radius: var(--r-sm); font-size: .78rem; font-weight: 600;
  cursor: pointer; font-family: var(--font); transition: all .2s var(--ease-out-expo);
}
.filter-clear:hover { background: var(--primary); color: #fff; border-color: var(--primary); box-shadow: 0 4px 12px rgba(122,64,255,.2) }
.filter-counter { text-align: center; font-size: .78rem; color: var(--text-light); padding: .5rem 0 0; line-height: 1.3 }
.filter-counter strong { color: var(--accent); font-size: .92rem }

/* Score slider */
.slider-wrap { display: flex; align-items: center; gap: .6rem }
.slider-wrap input[type="range"] {
  flex: 1; -webkit-appearance: none; height: 6px; border-radius: 3px;
  background: linear-gradient(to right, var(--primary) 0%, rgba(122,64,255,.1) 0%);
  outline: none; transition: background .1s;
}
.slider-wrap input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%;
  background: #fff; cursor: pointer;
  box-shadow: 0 1px 4px rgba(0,0,0,.15), 0 0 0 3px var(--primary);
  transition: box-shadow .2s;
}
.slider-wrap input[type="range"]::-webkit-slider-thumb:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,.2), 0 0 0 4px var(--primary);
}
.slider-val {
  font-size: .85rem; font-weight: 700; color: var(--accent);
  min-width: 28px; text-align: center; background: var(--bg-alt);
  padding: .15rem .35rem; border-radius: 6px;
}

/* Active filter chips */
.active-filters { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: 1.25rem; min-height: 0 }
.active-filters:empty { display: none }
.filter-chip {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .3rem .7rem; background: #fff;
  border: 1px solid rgba(122,64,255,.12); border-radius: var(--r-pill);
  font-size: .72rem; font-weight: 600; color: var(--accent);
  box-shadow: var(--shadow-sm); transition: all .15s;
}
.filter-chip:hover { box-shadow: var(--shadow-md); border-color: rgba(122,64,255,.25) }
.filter-chip .chip-remove { cursor: pointer; opacity: .35; transition: opacity .2s; width: 12px; height: 12px }
.filter-chip .chip-remove:hover { opacity: 1 }

/* --- Tabs (index.html) --- */
.tabs-container { margin: 1.5rem 0 }
.tabs-header {
  display: flex; overflow-x: auto; gap: .2rem;
  border-bottom: 2px solid rgba(122,64,255,.1);
  background: #fff; z-index: 50; padding: .6rem;
  border-radius: var(--r-lg) var(--r-lg) 0 0; scrollbar-width: none;
}
.tabs-header::-webkit-scrollbar { display: none }
.tab-btn {
  display: flex; align-items: center; gap: .35rem;
  padding: .5rem .85rem; border: none; background: transparent;
  border-radius: var(--r-pill); font-size: .78rem; font-weight: 500;
  color: var(--text-light); cursor: pointer; white-space: nowrap;
  transition: all .2s; font-family: var(--font);
}
.tab-btn:hover { background: rgba(122,64,255,.06); color: var(--primary) }
.tab-btn.active { background: linear-gradient(135deg, var(--magenta), var(--violet-blue)); color: #fff; font-weight: 600 }
.tab-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0 }
.tab-content { display: none; padding: 1.5rem 0 }
.tab-content.active { display: block }
.tab-header { display: flex; align-items: center; gap: .85rem; margin-bottom: 1.25rem }
.tab-icon { width: 44px; height: 44px; border-radius: 11px; display: flex; align-items: center; justify-content: center; color: #fff }
.tab-icon i { width: 22px; height: 22px }
.tab-btn .flag { margin-right: .35rem }

/* --- Tabs bar (resultados.html) --- */
.tabs-bar {
  display: flex; gap: .25rem; border-bottom: 1px solid rgba(122,64,255,.08);
  background: #fff; padding: .25rem 2rem 0; position: sticky; top: 0; z-index: 50;
  box-shadow: var(--shadow-sm);
}
.tab-main {
  padding: .75rem 1.35rem; font-size: .85rem; font-weight: 600;
  color: var(--text-light); cursor: pointer;
  border-bottom: 3px solid transparent; margin-bottom: -1px;
  transition: all .2s var(--ease-out-expo); font-family: var(--font);
  display: flex; align-items: center; gap: .45rem;
  background: none; border-top: none; border-left: none; border-right: none;
  border-radius: var(--r-sm) var(--r-sm) 0 0; position: relative;
}
.tab-main:hover { color: var(--primary); background: rgba(122,64,255,.03) }
.tab-main.active { color: var(--accent); border-bottom-color: var(--magenta); background: rgba(152,48,186,.03) }
.tab-main i { width: 15px; height: 15px }
.tab-panel { display: none }
.tab-panel.active { display: block }
.content-area { padding: 1.75rem 2.25rem 4rem; background: var(--bg-alt); min-height: calc(100vh - 160px) }

/* Category tabs (resultados sub-tabs) */
.cat-tabs {
  display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: 1.5rem;
  padding: .3rem; background: #fff; border-radius: var(--r-md);
  box-shadow: var(--shadow-sm); border: 1px solid rgba(122,64,255,.06);
}
.cat-tab {
  padding: .45rem .9rem; border-radius: var(--r-sm); font-size: .78rem; font-weight: 600;
  cursor: pointer; border: none; color: var(--text-light); background: transparent;
  transition: all .2s var(--ease-out-expo); font-family: var(--font);
  display: flex; align-items: center; gap: .35rem;
}
.cat-tab:hover { background: rgba(122,64,255,.06); color: var(--accent) }
.cat-tab.active { background: linear-gradient(135deg, var(--magenta), var(--violet-blue)); color: #fff; box-shadow: 0 2px 8px rgba(152,48,186,.2) }
.cat-tab .flag { width: 18px; height: 13px; border-radius: 3px }
.cat-tab i { width: 14px; height: 14px }

/* --- Folder Tabs (index) --- */
.folder-tabs { display: flex; gap: 0; border-bottom: 2px solid rgba(122,64,255,.15); margin: 1.5rem 0 0 }
.folder-tab {
  padding: .6rem 1.25rem; font-size: .85rem; font-weight: 600;
  color: var(--text-light); cursor: pointer; border: 1px solid transparent;
  border-bottom: none; border-radius: 8px 8px 0 0; transition: all .2s;
  position: relative; bottom: -2px; background: transparent; font-family: var(--font);
}
.folder-tab:hover { color: var(--primary); background: rgba(122,64,255,.04) }
.folder-tab.active { color: var(--accent); background: #fff; border-color: rgba(122,64,255,.15); border-bottom-color: #fff }
.folder-panel { display: none; padding: 1.5rem 0 }
.folder-panel.active { display: block }

/* --- Prominent Nav Tabs (index) --- */
.nav-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; margin: 1.5rem 0 0 }
.nav-tab {
  display: flex; align-items: center; gap: .85rem; padding: 1.1rem 1.25rem;
  border-radius: var(--r-lg); cursor: pointer; border: 2px solid rgba(122,64,255,.1);
  background: #fff; transition: all .25s; font-family: var(--font);
}
.nav-tab:hover { border-color: rgba(122,64,255,.25); box-shadow: 0 4px 16px rgba(21,24,35,.06) }
.nav-tab.active { border-color: var(--turquesa); background: rgba(0,123,255,.04); box-shadow: 0 4px 20px rgba(0,123,255,.1) }
.nav-tab-icon {
  width: 42px; height: 42px; border-radius: 12px; background: rgba(122,64,255,.08);
  display: flex; align-items: center; justify-content: center;
  color: var(--primary); flex-shrink: 0; transition: all .25s;
}
.nav-tab.active .nav-tab-icon { background: var(--grad-magenta); color: #fff }
.nav-tab-icon i { width: 20px; height: 20px }
.nav-tab-text { min-width: 0 }
.nav-tab-title { font-size: .95rem; font-weight: 700; color: var(--text); line-height: 1.2 }
.nav-tab.active .nav-tab-title { color: var(--accent) }
.nav-tab-desc { font-size: .78rem; color: var(--text-light); margin-top: .15rem; line-height: 1.3 }
.nav-tab:not(.active) { animation: tabGlow 3s ease-in-out infinite }
.nav-tab:nth-child(2):not(.active) { animation-delay: .6s }
.nav-tab:nth-child(3):not(.active) { animation-delay: 1.2s }
.nav-tab:nth-child(4):not(.active) { animation-delay: 1.8s }

/* Search input (resultados) */
.search-input {
  width: 100%; padding: .55rem .85rem .55rem 2.2rem;
  border: 1.5px solid rgba(122,64,255,.1); border-radius: var(--r-sm);
  font-family: var(--font); font-size: .85rem; color: var(--text);
  background: var(--bg-alt); outline: none; transition: all .25s var(--ease-out-expo);
}
.search-input:focus { border-color: var(--primary); background: #fff; box-shadow: 0 0 0 3px rgba(122,64,255,.08) }
.search-input::placeholder { color: var(--text-light); font-weight: 400 }
.search-wrap { position: relative }
.search-wrap::before {
  content: ''; position: absolute; left: .75rem; top: 50%; transform: translateY(-50%);
  width: 14px; height: 14px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'%3E%3C/circle%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'%3E%3C/line%3E%3C/svg%3E");
  background-size: contain; background-repeat: no-repeat; opacity: .5;
}


/* =============================================
   6. HERO & HEADERS
   =============================================
   .hero: Hero inmersivo con video de fondo (index.html)
   .page-header: Header con gradiente spectrum (resultados.html)
   ============================================= */

/* --- Hero (index) --- */
.hero {
  position: relative; background: linear-gradient(135deg, #151823 0%, #1a1040 100%);
  padding: 0; min-height: 92vh; display: flex; align-items: center; overflow: hidden;
}
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .18; z-index: 0 }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(20,48,130,.9) 0%, rgba(152,48,186,.75) 40%, rgba(215,79,106,.7) 70%, rgba(248,132,49,.65) 100%);
  z-index: 1;
}
.hero::before {
  content: ''; position: absolute; top: -25%; right: -10%; width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(255,255,255,.06) 0%, transparent 70%);
  border-radius: 50%; z-index: 2;
}
.hero::after {
  content: ''; position: absolute; bottom: -20%; left: -8%; width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(215,79,106,.1) 0%, transparent 70%);
  border-radius: 50%; z-index: 2;
}
.hero-inner { position: relative; z-index: 3; width: 100%; padding: 2.5rem }
.hero-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 2rem }
.hero-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--r-pill); padding: .4rem 1rem;
  font-size: .78rem; font-weight: 600; color: rgba(255,255,255,.9);
  text-transform: uppercase; letter-spacing: .05em; backdrop-filter: blur(10px);
}
.hero-content { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: center }
.hero-supra {
  display: block; font-size: clamp(1.1rem, 2vw, 1.5rem); font-weight: 700;
  color: #fff; text-transform: uppercase; letter-spacing: .18em; margin-bottom: .25rem;
}
.hero h1 {
  font-size: clamp(2.4rem, 4.5vw, 3.6rem); font-weight: 800; color: #fff;
  line-height: 1.08; margin: 0 0 1.5rem; letter-spacing: -.02em;
}
.hero-accent { display: block; color: #fff }
.hero-narrative {
  font-size: 1.15rem; color: #fff; line-height: 1.7; margin: 0 0 .85rem;
  font-style: italic; padding-left: 1.25rem; border-left: 3px solid var(--turquesa);
}
/* FIX ACCESIBILIDAD: turquesa sobre hero oscuro = bajo contraste */
.hero-narrative strong { color: #fff; font-style: normal }
.hero-tagline { font-size: 1.05rem; color: rgba(255,255,255,.9); margin: 0 0 1.75rem; line-height: 1.6; font-weight: 400 }
.hero-tagline strong { color: #fff }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin-bottom: 1.25rem }
.hero-stat {
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.1);
  border-radius: 10px; padding: .7rem .6rem; text-align: center; backdrop-filter: blur(10px);
}
.hero-stat-n {
  font-size: 1.4rem; font-weight: 700; color: #fff;
  -webkit-text-fill-color: #fff; background: none;
  -webkit-background-clip: unset; background-clip: unset; line-height: 1.2;
}
.hero-stat-l { font-size: .72rem; color: #fff; margin-top: .15rem; font-weight: 500 }
.hero-platforms { display: flex; align-items: center; gap: .75rem }
.hero-platforms span { font-size: .75rem; color: var(--text-on-dark); font-weight: 600; text-transform: uppercase; letter-spacing: .04em }
.hero-platforms img { width: 28px; height: 28px; opacity: .8; transition: opacity .2s; filter: brightness(0) invert(1) }
.hero-platforms img:hover { opacity: 1 }
/* Hero Scoreboard (sector reports) */
.hero-scoreboard {
  background: rgba(255,255,255,.08); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  border-radius: 20px; padding: 2rem; border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 24px 64px rgba(0,0,0,.2), inset 0 1px 0 rgba(255,255,255,.08);
}
.hero-scoreboard-leader {
  text-align: center; padding-bottom: 1.5rem; margin-bottom: 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,.1); position: relative;
}
.hero-scoreboard-leader-rank {
  width: 40px; height: 40px; border-radius: 12px; margin: 0 auto .75rem;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center;
}
.hero-scoreboard-leader-score {
  font-size: 3.2rem; font-weight: 800; line-height: 1;
  background: linear-gradient(135deg, #fff 0%, rgba(255,255,255,.7) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-scoreboard-leader-name {
  font-size: 1.1rem; font-weight: 700; color: #fff; margin-top: .3rem;
  text-transform: uppercase; letter-spacing: .08em;
}
.hero-scoreboard-leader-label {
  font-size: .72rem; color: var(--text-on-dark-secondary); margin-top: .2rem; font-weight: 500;
}
.hero-scoreboard-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: .5rem;
}
.hero-scoreboard-item {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px; padding: .85rem .75rem; text-align: center;
  transition: background .2s, border-color .2s;
}
.hero-scoreboard-item:hover {
  background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.15);
}
.hero-scoreboard-pos {
  font-size: .6rem; font-weight: 700; color: var(--text-on-dark-secondary);
  text-transform: uppercase; letter-spacing: .08em; margin-bottom: .2rem;
}
.hero-scoreboard-value {
  font-size: 1.5rem; font-weight: 700; color: #fff; line-height: 1.1;
}
.hero-scoreboard-name {
  font-size: .72rem; color: var(--text-on-dark); margin-top: .15rem; font-weight: 500;
}
.hero-scoreboard-tag {
  font-size: .55rem; background: rgba(255,255,255,.12); padding: .1rem .35rem;
  border-radius: 4px; margin-left: .2rem; font-weight: 600; vertical-align: middle;
  color: var(--text-on-dark-secondary);
}
.hero-scoreboard-footer {
  text-align: center; margin-top: 1rem; padding-top: .85rem;
  border-top: 1px solid rgba(255,255,255,.08);
  font-size: .68rem; color: var(--text-on-dark-secondary);
  text-transform: uppercase; letter-spacing: .1em; font-weight: 600;
}
.hero-cta { display: none }
.hero-scroll {
  position: absolute; bottom: 1.5rem; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: .25rem;
  color: rgba(255,255,255,.35); font-size: .7rem; font-weight: 600; letter-spacing: .04em; z-index: 2;
}
.hero-scroll i { animation: heroScrollBounce 2s infinite }

/* Hero Globe */
.hero-globe-col { position: relative; display: flex; flex-direction: column; gap: .75rem }
/* FIX ACCESIBILIDAD: era .45, ahora .7 */
.globe-title {
  font-size: .75rem; font-weight: 700; color: var(--text-on-dark-secondary);
  text-transform: uppercase; letter-spacing: .12em;
  display: flex; align-items: center; gap: .5rem;
}
.globe-title i { width: 15px; height: 15px; color: #fff }
.hero-globe {
  position: relative; width: 100%; aspect-ratio: 1/1; max-height: 480px;
  border-radius: 18px; overflow: hidden;
  border: 1px solid rgba(0,123,255,.12);
  box-shadow: 0 0 80px rgba(0,123,255,.1), 0 20px 60px rgba(0,0,0,.3), inset 0 0 40px rgba(0,0,0,.2);
  background: radial-gradient(ellipse at center, #0d1035 0%, #080c25 100%);
}
#globe-container { width: 100%; height: 100% }
#globe-container canvas { outline: none }
.globe-info-panel {
  position: absolute; bottom: 14px; left: 14px; right: 14px;
  background: rgba(255,255,255,.95); backdrop-filter: blur(20px);
  border-radius: 14px; padding: 14px 18px;
  display: flex; align-items: center; gap: 14px;
  box-shadow: 0 8px 32px rgba(0,0,0,.25);
  transform: translateY(80px); opacity: 0;
  transition: all .5s cubic-bezier(.4,0,.2,1);
}
.globe-info-panel.visible { transform: translateY(0); opacity: 1 }
.globe-rank {
  width: 42px; height: 42px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  font-size: 1rem; font-weight: 700; color: #fff;
  box-shadow: 0 4px 12px rgba(21,24,35,.3);
}
.globe-details { flex: 1; min-width: 0 }
.globe-dest-name { font-size: 1.1rem; font-weight: 700; color: var(--accent); line-height: 1.2 }
.globe-dest-meta { display: flex; gap: 10px; font-size: .78rem; color: var(--text-light); margin-top: 2px }
.globe-dest-meta span { display: flex; align-items: center; gap: 3px }
.globe-dest-meta i { width: 13px; height: 13px }
.globe-score-pill {
  background: var(--accent); color: #fff;
  padding: 6px 14px; border-radius: var(--r-pill);
  font-size: .82rem; font-weight: 700; flex-shrink: 0; letter-spacing: .02em;
}
.tour-progress {
  position: absolute; bottom: 76px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 6px; padding: 6px 14px;
  background: rgba(0,0,0,.35); backdrop-filter: blur(10px); border-radius: 20px; z-index: 5;
}
.tour-dot {
  width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.25);
  transition: all .3s; cursor: pointer;
}
.tour-dot:hover { background: rgba(255,255,255,.5) }
.tour-dot.active { background: var(--turquesa); box-shadow: 0 0 10px var(--turquesa); transform: scale(1.4) }
.tour-controls { position: absolute; top: 14px; right: 14px; z-index: 5 }
.tour-controls button {
  width: 36px; height: 36px; border-radius: 50%; border: none;
  background: rgba(0,0,0,.3); backdrop-filter: blur(10px);
  color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: all .3s;
}
.tour-controls button:hover { background: rgba(0,0,0,.5) }
.tour-controls button i { width: 16px; height: 16px }
.tour-controls .hidden { display: none }
.globe-marker { pointer-events: auto; cursor: pointer; transition: transform .3s }
.globe-marker:hover { transform: scale(1.2) }
.globe-marker .marker-ring {
  width: 22px; height: 22px; border-radius: 50%; border: 3px solid var(--turquesa);
  background: rgba(0,123,255,.25); position: relative; animation: markerPulse 2s ease-out infinite;
}
.globe-marker .marker-ring.top3 { width: 28px; height: 28px; border-color: var(--secondary); background: rgba(255,109,58,.25) }
.globe-marker .marker-ring::after { content: ''; position: absolute; inset: 3px; background: var(--turquesa); border-radius: 50% }
.globe-marker .marker-ring.top3::after { background: var(--secondary) }

/* --- Page Header (resultados) --- */
.page-header {
  background: linear-gradient(135deg, #143082 0%, #2C5CE2 15%, #623CD2 30%, #9830BA 50%, #D74F6A 70%, #F88431 100%);
  padding: 2.25rem 2.75rem; position: relative; overflow: hidden;
}
.page-header::before {
  content: ''; position: absolute; top: -60%; right: -8%; width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(0,123,255,.06) 0%, transparent 70%);
  border-radius: 50%; animation: headerGlow 8s ease-in-out infinite alternate;
}
.page-header::after {
  content: ''; position: absolute; bottom: -50%; left: 10%; width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(122,64,255,.08) 0%, transparent 60%); border-radius: 50%;
}
.header-inner { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 2rem }
.header-text h1 { font-size: 1.75rem; font-weight: 700; color: #fff; line-height: 1.1; margin-bottom: .5rem; letter-spacing: -.01em }
.header-stats-row { display: flex; gap: .65rem; flex-wrap: wrap }
/* FIX ACCESIBILIDAD: era .5, ahora .7 */
.header-stat-pill {
  display: inline-flex; align-items: center; gap: .3rem;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08);
  padding: .25rem .65rem; border-radius: var(--r-pill);
  font-size: .75rem; color: var(--text-on-dark-secondary); font-weight: 500;
  backdrop-filter: blur(8px);
}
/* FIX ACCESIBILIDAD: turquesa sobre header oscuro = bajo contraste */
.header-stat-pill strong { color: #fff; font-weight: 700; font-size: .85rem }
.header-btn {
  display: inline-flex; align-items: center; gap: .4rem;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12);
  color: var(--text-on-dark); padding: .55rem 1.25rem; border-radius: var(--r-pill);
  font-size: .8rem; font-weight: 600; text-decoration: none; font-family: var(--font);
  transition: all .25s var(--ease-out-expo); backdrop-filter: blur(10px);
}
.header-btn:hover { background: rgba(255,255,255,.15); color: #fff; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,.15) }
.header-btn i { width: 14px; height: 14px }


/* =============================================
   7. SECCIONES & CONTENIDO
   =============================================
   .section: Bloques de contenido con h2/h3 estilizados
   .part-divider: Separadores de parte con numero grande
   .highlight-box: Cajas destacadas con fondo gradiente
   .info-box: Cajas informativas con fondo neutro
   blockquote/.pullquote: Citas textuales
   ============================================= */
.section { padding: 3rem 0 2rem; position: relative }
.section + .section { border-top: 1px solid rgba(122,64,255,.08); margin-top: 0; padding-top: 3rem }
.section h2 {
  font-size: clamp(1.7rem, 3vw, 2.2rem); font-weight: 700; color: var(--accent);
  margin-bottom: 1.25rem; padding-bottom: .75rem; position: relative;
}
.section h2::after {
  content: ''; position: absolute; bottom: 0; left: 0; width: 60px; height: 4px;
  background: var(--grad-spectrum); border-radius: 2px;
}
.section h3 {
  font-size: 1.25rem; font-weight: 600; color: var(--primary-dark);
  margin: 1.75rem 0 .75rem; padding-left: 1.1rem; border-left: 4px solid var(--magenta);
}
.section p { font-size: 1rem; line-height: 1.7; color: var(--text-sec); margin-bottom: 1.1rem }
.section p strong { color: var(--text); font-weight: 600 }
.section ul, .section ol { margin: 1rem 0 1.25rem 1.5rem; color: var(--text-sec) }
.section li { margin-bottom: .4rem; line-height: 1.6 }

/* Part Dividers
   ACCESIBILIDAD: fondo turquesa oscuro → todo el texto en blanco */
.part-divider {
  text-align: center; padding: 5rem 2rem; margin: 3rem -2.5rem 3rem;
  background: var(--turquesa); border-radius: 0; position: relative; overflow: hidden;
}
.part-divider::before {
  content: attr(data-num); position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%); font-size: clamp(10rem, 20vw, 18rem);
  font-weight: 900; color: rgba(255,255,255,.1); line-height: 1; pointer-events: none;
  font-family: var(--font);
}
.part-divider-line { width: 0; height: 2px; background: #fff; margin: 0 auto 1.5rem; transition: none }
.part-divider.revealed .part-divider-line { width: 60px; transition: width .8s cubic-bezier(.22,1,.36,1) .2s }
.part-divider-label {
  font-size: .85rem; font-weight: 700; text-transform: uppercase; letter-spacing: .2em;
  color: rgba(255,255,255,.7); opacity: 0; transform: translateY(20px); transition: none;
}
.part-divider.revealed .part-divider-label { opacity: 1; transform: translateY(0); transition: opacity .6s ease .1s, transform .6s ease .1s }
.part-divider h2 {
  font-size: clamp(2.2rem, 5vw, 3.5rem); font-weight: 900; color: #fff;
  margin-top: .6rem; text-transform: uppercase; letter-spacing: .06em;
  opacity: 0; transform: translateY(30px) scale(.95); transition: none;
}
.part-divider.revealed h2 { opacity: 1; transform: translateY(0) scale(1); transition: opacity .7s ease .4s, transform .7s cubic-bezier(.22,1,.36,1) .4s }
.part-divider h2::after { display: none }
.part-divider-sub {
  font-size: .95rem; color: rgba(255,255,255,.85); opacity: 0; transform: translateY(15px);
  margin-top: .5rem; transition: none;
}
.part-divider.revealed .part-divider-sub { opacity: 1; transform: translateY(0); transition: opacity .6s ease .7s, transform .6s ease .7s }

/* Highlight Box */
.highlight-box {
  background: linear-gradient(135deg, #5B1866 0%, #9830BA 50%, #623CD2 100%);
  padding: 1.75rem 2.25rem; border-radius: var(--r-lg); color: #fff;
  margin: 1.75rem 0; position: relative; overflow: hidden;
}
.highlight-box::before {
  content: ''; position: absolute; top: -50%; right: -20%; width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(255,255,255,.08) 0%, transparent 70%); border-radius: 50%;
}
.highlight-box p { color: #fff; margin: 0; position: relative; z-index: 1 }
/* FIX ESPECIFICIDAD: .section p strong (0-1-2) vence a .highlight-box strong (0-1-1).
   Usamos .highlight-box p strong (0-1-2) para igualar y ganar por cascade. */
.highlight-box strong,
.highlight-box p strong { color: #fff; font-weight: 800 }
/* FIX ACCESIBILIDAD: texto oscuro (#151823) sobre turquesa (#007BFF) = ~4.5:1 pero visualmente ilegible.
   Se usa texto blanco que es mucho más legible sobre azul brillante. */
.highlight-box.turquesa { background: var(--turquesa); color: #fff }
.highlight-box.turquesa::before { background: radial-gradient(circle, rgba(255,255,255,.08) 0%, transparent 70%) }
.highlight-box.turquesa p { color: #fff }
.highlight-box.turquesa strong { color: #fff; font-weight: 800 }

/* Info Box */
.info-box { background: var(--bg-alt); border-radius: var(--r-lg); padding: 1.75rem; margin: 1.5rem 0; border: 1px solid rgba(122,64,255,.1) }
.info-box-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 1.75rem }

/* Blockquote */
blockquote, .pullquote {
  border-left: 4px solid var(--magenta); padding: 1.25rem 1.75rem; margin: 1.5rem 0;
  background: linear-gradient(135deg, rgba(215,79,106,.06), rgba(21,24,35,.04));
  border-radius: 0 12px 12px 0; font-size: 1.05rem; font-style: italic;
  color: var(--text-sec); line-height: 1.7;
}
.pullquote-large { font-size: 1.2rem; text-align: center; border-left: none; border-radius: var(--r-lg); padding: 1.75rem 2.5rem }

/* Presentation Layout */
.pres-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin: 1rem 0 }
.pres-cols p { font-size: 1.05rem; line-height: 1.7; margin: 0 0 1rem }
.pres-highlight { background: linear-gradient(135deg, #7A40FF, #007BFF); border-radius: var(--r-lg); padding: 2rem; color: #fff }
.pres-highlight h4 { color: #fff; font-size: 1.1rem; margin-bottom: .6rem }
.pres-highlight p { color: rgba(255,255,255,.8); font-size: .95rem; line-height: 1.6; margin: 0 }
.pres-highlight .card-icon { background: rgba(255,255,255,.15); color: #fff; margin-bottom: 1rem }
.pres-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; margin: 1.5rem 0 }
.pres-stat { text-align: center; padding: 1.25rem .75rem; border-radius: var(--r-lg); border: 1px solid rgba(122,64,255,.1); background: #fff }
.pres-stat-n { font-size: 1.8rem; font-weight: 700; color: var(--accent); line-height: 1 }
.pres-stat-l { font-size: .8rem; color: var(--text-light); margin-top: .3rem }

/* Versus Panel */
.versus-panel {
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 0;
  margin: 2.5rem 0; border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid rgba(122,64,255,.12);
}
.versus-col { padding: 2.5rem 2rem }
.versus-col.old { background: rgba(21,24,35,.03) }
.versus-col.new { background: rgba(0,123,255,.06) }
.versus-col-title { font-size: 1.1rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 1.5rem; padding-bottom: .75rem; border-bottom: 2px solid }
.versus-col.old .versus-col-title { color: var(--text-light); border-color: rgba(21,24,35,.12) }
.versus-col.new .versus-col-title { color: var(--accent); border-color: var(--turquesa) }
.versus-arrow { display: flex; align-items: center; justify-content: center; background: var(--accent); width: 52px; color: #fff }
.versus-arrow i { width: 24px; height: 24px }
.versus-item { display: flex; align-items: center; gap: .75rem; padding: .75rem 0; font-size: 1.05rem }
.versus-col.old .versus-item { color: var(--text-light); text-decoration: line-through; text-decoration-color: rgba(21,24,35,.2) }
.versus-col.new .versus-item { color: var(--text); font-weight: 600 }
.versus-col.old .versus-item i { color: var(--text-light); opacity: .35; width: 20px; height: 20px }
.versus-col.new .versus-item i { color: var(--accent); width: 20px; height: 20px }

/* Reddit Card */
.reddit-card {
  background: linear-gradient(135deg, var(--accent), #5B1866); border-radius: var(--r-lg);
  padding: 1.75rem; color: #fff; display: flex; align-items: center; gap: 1.25rem;
  margin: 1.5rem 0; position: relative; overflow: hidden;
}
.reddit-card::before {
  content: ''; position: absolute; top: -40px; right: -40px; width: 180px; height: 180px;
  background: radial-gradient(circle, rgba(255,69,0,.1) 0%, transparent 70%); border-radius: 50%;
}
.reddit-icon {
  width: 48px; height: 48px; background: rgba(255,255,255,.15); border-radius: 12px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.reddit-icon i { width: 24px; height: 24px }
.reddit-card h4 { font-size: 1.1rem; font-weight: 700; margin-bottom: .35rem; color: #fff }
.reddit-card p { color: var(--text-on-dark); margin: 0; font-size: .92rem }

/* Method Dashboard */
.method-dash {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: .75rem; margin: 1.5rem 0;
  padding: 1.5rem;
  background: linear-gradient(135deg, #143082 0%, #623CD2 35%, #9830BA 70%, #5B1866 100%);
  border-radius: var(--r-lg); position: relative; overflow: hidden;
}
.method-dash::before {
  content: ''; position: absolute; top: -60px; right: -60px; width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(0,123,255,.12) 0%, transparent 70%); border-radius: 50%;
}
.method-dash-item { text-align: center; position: relative; z-index: 1 }
.method-dash-icon {
  width: 36px; height: 36px; background: rgba(255,255,255,.12); border-radius: 10px;
  display: flex; align-items: center; justify-content: center; margin: 0 auto .5rem; color: #fff;
}
.method-dash-icon i { width: 18px; height: 18px }
.method-dash-val { font-size: 1.6rem; font-weight: 700; color: #fff; line-height: 1.1 }
.method-dash-lbl { font-size: .68rem; color: var(--text-on-dark-secondary); margin-top: .15rem }
.method-dash-eq { grid-column: 1/-1; text-align: center; padding: .75rem 0 0; border-top: 1px solid rgba(255,255,255,.1); margin-top: .25rem }
/* FIX ACCESIBILIDAD: turquesa sobre gradiente oscuro = bajo contraste */
.method-dash-eq span { font-size: 1.1rem; font-weight: 700; color: #fff }

/* Country Badge */
.country-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 18px; border-radius: 3px; font-size: .65rem; font-weight: 700;
  background: var(--accent); color: #fff; letter-spacing: .02em; margin-right: .35rem; vertical-align: middle;
}

/* Glossary */
.glossary-list { margin: 1.5rem 0 }
.glossary-item { padding: .85rem 1.1rem; border-left: 3px solid var(--magenta); margin-bottom: .6rem; background: var(--bg-alt); border-radius: 0 8px 8px 0 }
.glossary-item:nth-child(even) { border-left-color: var(--violet-blue) }
.glossary-item:nth-child(3n) { border-left-color: var(--rosa) }
.glossary-term { font-weight: 700; color: var(--accent); font-size: .95rem; margin-bottom: .15rem }
.glossary-def { font-size: .88rem; color: var(--text-sec); margin: 0; line-height: 1.5 }


/* =============================================
   8. CARDS & TILES
   =============================================
   Uso: .card para contenido informativo.
   Variantes:
     - .card-grid-2 / .card-grid-3  -> grid de 2 o 3 columnas
     - .card-icon                    -> icono 44px (auto-coloreado por nth-child)
     - .stat-card                    -> tarjeta de estadistica con numero grande
     - .card-full                    -> ocupa todo el ancho del grid

   Sobre fondo oscuro:
     - .conclusion-tile              -> tile con gradiente purple-deep->magenta
     - .conclusion-tile.featured     -> tile full spectrum (para conclusion principal)

   ACCESIBILIDAD: Los tiles oscuros usan --text-on-dark para todo el texto.
   ============================================= */
.card {
  background: #fff; border-radius: var(--r-lg); padding: 1.75rem;
  border: 1px solid rgba(122,64,255,.1); transition: all .3s;
  position: relative; overflow: hidden;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 8px 28px rgba(21,24,35,.08) }
.card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: var(--grad-spectrum); opacity: 0; transition: opacity .3s;
  border-radius: var(--r-lg) var(--r-lg) 0 0;
}
.card:hover::before { opacity: 1 }
.card-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.15rem }
.card-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.15rem }
.card-icon {
  width: 44px; height: 44px; background: linear-gradient(135deg, var(--magenta), var(--violet-blue));
  border-radius: 11px; display: flex; align-items: center; justify-content: center;
  color: #fff; margin-bottom: .85rem;
}
.card-grid-2 .card:nth-child(2) .card-icon { background: linear-gradient(135deg, var(--blue-bright), var(--navy)) }
.card-grid-3 .card:nth-child(1) .card-icon { background: linear-gradient(135deg, var(--rosa), var(--magenta)) }
.card-grid-3 .card:nth-child(2) .card-icon { background: linear-gradient(135deg, var(--violet-blue), var(--blue-bright)) }
.card-grid-3 .card:nth-child(3) .card-icon { background: linear-gradient(135deg, var(--orange-warm), var(--rosa)) }
.card-icon i { width: 22px; height: 22px }
.card h4 { font-size: 1.05rem; font-weight: 700; color: var(--text); margin-bottom: .4rem }
.card-full { grid-column: 1/-1 }

/* Stat Cards */
.stat-card {
  text-align: center; background: #fff; border-radius: var(--r-lg);
  padding: 1.75rem; border: 1px solid rgba(122,64,255,.1);
}
.stat-card-n {
  font-size: 2.3rem; font-weight: 700;
  background: linear-gradient(135deg, var(--turquesa), var(--magenta), var(--accent));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  line-height: 1.2;
}
.stat-card-l { font-size: .85rem; color: var(--text-light); margin-top: .2rem }
.stat-row { display: flex; gap: 1.15rem; justify-content: center; margin: 1.75rem 0; flex-wrap: wrap }

/* Conclusion Tiles */
.conclusion-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin: 1.5rem 0 }
.conclusion-tile {
  position: relative;
  background: linear-gradient(135deg, #5B1866 0%, #9830BA 50%, #623CD2 100%);
  border-radius: var(--r-lg); padding: 1.75rem 1.5rem 1.5rem; overflow: hidden;
  min-height: 160px; display: flex; flex-direction: column; justify-content: flex-end;
}
.conclusion-tile::before {
  content: attr(data-num); position: absolute; top: -10px; right: 10px;
  font-size: 5.5rem; font-weight: 900; color: rgba(215,79,106,.15);
  line-height: 1; font-family: var(--font); pointer-events: none;
}
.conclusion-tile.featured {
  grid-column: 1/-1;
  background: linear-gradient(135deg, #143082 0%, #623CD2 25%, #9830BA 50%, #D74F6A 75%, #F88431 100%);
  padding: 2rem;
}
.conclusion-tile.featured::before { font-size: 7rem; top: -15px; right: 20px }
.conclusion-tile-icon {
  width: 36px; height: 36px; border-radius: 10px; background: rgba(215,79,106,.15);
  display: flex; align-items: center; justify-content: center; color: var(--rosa); margin-bottom: .85rem;
}
.conclusion-tile h4 { font-size: 1.05rem; font-weight: 700; color: #fff; margin-bottom: .4rem }
.conclusion-tile.featured h4 { font-size: 1.2rem }
/* FIX ACCESIBILIDAD: era .75, ahora .85 */
.conclusion-tile p { font-size: .88rem; color: var(--text-on-dark); margin: 0; line-height: 1.5 }
.conclusion-tile.featured p { font-size: .94rem }

/* Opportunity Cards */
.opportunity-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1.5rem 0 }
.opportunity-card {
  background: #fff; border-radius: var(--r-lg); padding: 1.5rem;
  border: 1px solid rgba(255,109,58,.3); position: relative; overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}
.opportunity-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(21,24,35,.08) }
.opportunity-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--orange-warm), var(--rosa), var(--magenta));
}
.opportunity-icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: linear-gradient(135deg, rgba(215,79,106,.15), rgba(248,132,49,.08));
  display: flex; align-items: center; justify-content: center;
  color: var(--rosa); margin-bottom: .75rem;
}
.opportunity-card h4 { font-size: .98rem; font-weight: 700; color: var(--text); margin-bottom: .35rem }
.opportunity-card p { font-size: .88rem; margin: 0; color: var(--text-sec) }

/* GEO Roadmap */
.geo-roadmap { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin: 2.5rem 0 }
.geo-phase {
  background: #fff; border-radius: var(--r-lg); padding: 2rem;
  border: 1px solid rgba(122,64,255,.1); position: relative; overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}
.geo-phase:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(21,24,35,.08) }
.geo-phase::before {
  content: attr(data-phase); position: absolute; top: 12px; right: 16px;
  font-size: 3.5rem; font-weight: 900; color: rgba(0,123,255,.1);
  line-height: 1; font-family: var(--font);
}
.geo-phase-icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: linear-gradient(135deg, var(--turquesa), rgba(122,64,255,.6));
  display: flex; align-items: center; justify-content: center;
  color: #fff; margin-bottom: 1.25rem; box-shadow: 0 4px 16px rgba(0,123,255,.2);
}
.geo-phase-icon i { width: 24px; height: 24px }
.geo-phase h4 { font-size: 1.2rem; font-weight: 700; color: var(--accent); margin-bottom: .6rem }
.geo-phase p { font-size: 1rem; color: var(--text-sec); margin: 0; line-height: 1.6 }

/* Strategy Tiers */
.strategy-tiers { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin: 2.5rem 0 }
.strategy-tier {
  background: #fff; border-radius: var(--r-lg); padding: 2rem;
  border: 1px solid rgba(122,64,255,.1); position: relative; overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}
.strategy-tier:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(21,24,35,.08) }
.tier-badge {
  width: 60px; height: 60px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; font-weight: 800; margin-bottom: 1.25rem; line-height: 1.1; text-align: center;
}
.tier-badge.gold { background: linear-gradient(135deg, #FFD700, #FFAA00); color: #5a3e00; box-shadow: 0 6px 16px rgba(255,215,0,.3) }
.tier-badge.silver { background: linear-gradient(135deg, #C0C0C0, #8a8a8a); color: #fff; box-shadow: 0 6px 16px rgba(150,150,150,.2) }
.tier-badge.bronze { background: linear-gradient(135deg, #CD7F32, #a05a20); color: #fff; box-shadow: 0 6px 16px rgba(205,127,50,.2) }
.tier-badge.entry { background: linear-gradient(135deg, #7A40FF, #007BFF); color: #fff; box-shadow: 0 6px 16px rgba(21,24,35,.15) }
.strategy-tier h4 { font-size: 1.15rem; font-weight: 700; color: var(--text); margin-bottom: .5rem }
.strategy-tier p { font-size: 1rem; color: var(--text-sec); margin: 0; line-height: 1.6 }

/* Compare (resultados) */
.compare-btn {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .5rem 1rem; background: transparent; border: 1.5px solid var(--rosa);
  color: var(--rosa); border-radius: var(--r-pill); font-size: .8rem; font-weight: 600;
  cursor: pointer; font-family: var(--font); transition: all .2s;
}
.compare-btn:hover { background: var(--rosa); color: #fff }
.compare-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; margin-top: 1rem }
.compare-card { background: var(--bg-alt); border-radius: var(--r-md); padding: 1rem; border: 1px solid rgba(122,64,255,.1); text-align: center }
.compare-card h4 { font-size: 1rem; font-weight: 700; color: var(--accent); margin-bottom: .5rem }


/* =============================================
   9. TABLAS DE DATOS
   =============================================
   index.html: table generico con thead oscuro
   resultados.html: .data-table con thead gradiente y filas interactivas
   ============================================= */

/* --- Tabla generica (index) --- */
table {
  width: 100%; border-collapse: separate; border-spacing: 0;
  margin: 1.25rem 0; border-radius: 12px; overflow: hidden;
  box-shadow: 0 2px 12px rgba(21,24,35,.05);
}
thead { background: var(--accent) }
th {
  padding: .85rem 1rem; color: #fff; font-weight: 600;
  font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; text-align: left;
}
td {
  padding: .7rem 1rem; border-bottom: 1px solid rgba(122,64,255,.08);
  color: var(--text-sec); font-size: .92rem;
}
tbody tr { background: #fff; transition: background .2s }
tbody tr:nth-child(even) { background: var(--bg-alt) }
tbody tr:hover { background: rgba(0,123,255,.05) }
.table-top3 td { font-weight: 600 }
.table-top3:nth-child(-n+3) td:first-child { color: var(--turquesa) }
tr.table-expandable-hidden { display: none !important }
.table-expand-btn {
  display: flex; align-items: center; justify-content: center; gap: .4rem;
  margin: 1rem auto; padding: .55rem 1.25rem; background: transparent;
  border: 2px solid var(--primary); color: var(--primary);
  border-radius: var(--r-pill); cursor: pointer; font-weight: 600;
  font-size: .88rem; transition: all .2s; font-family: var(--font);
}
.table-expand-btn:hover { background: var(--primary); color: #fff }

/* Flags & Favicons in tables */
.favicon { width: 16px; height: 16px; border-radius: 3px; vertical-align: middle; margin-right: .4rem; position: relative; top: -1px }
.flag { width: 24px; height: 18px; border-radius: 3px; vertical-align: middle; object-fit: cover; box-shadow: 0 1px 3px rgba(0,0,0,.12) }
.flag-lg { width: 36px; height: 26px; border-radius: 4px }

/* --- Data Table (resultados) --- */
.data-table {
  width: 100%; border-collapse: separate; border-spacing: 0;
  border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--shadow-md); background: #fff;
}
.data-table thead { background: linear-gradient(135deg, #143082 0%, #623CD2 50%, #9830BA 100%) }
.data-table th {
  padding: .8rem 1rem; color: var(--text-on-dark); font-weight: 600;
  font-size: .7rem; text-transform: uppercase; letter-spacing: .06em;
  text-align: left; cursor: pointer; user-select: none; white-space: nowrap;
  transition: all .2s; position: relative;
}
.data-table th:hover { color: #fff; background: rgba(255,255,255,.06) }
.data-table th.sorted-asc,
.data-table th.sorted-desc { color: #fff }
.data-table th.sorted-asc::after,
.data-table th.sorted-desc::after {
  content: ''; position: absolute; right: 8px; top: 50%;
  width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent;
}
.data-table th.sorted-asc::after { border-bottom: 5px solid #fff; transform: translateY(-60%) }
.data-table th.sorted-desc::after { border-top: 5px solid #fff; transform: translateY(-40%) }
.data-table td {
  padding: .65rem 1rem; border-bottom: 1px solid rgba(122,64,255,.05);
  font-size: .88rem; color: var(--text-sec); vertical-align: middle; transition: all .15s;
}
.data-table tbody tr { background: #fff; cursor: pointer; transition: all .15s }
.data-table tbody tr:nth-child(even) { background: #fafcfc }
.data-table tbody tr:hover { background: rgba(0,123,255,.05) }
.data-table tbody tr:hover td { color: var(--text) }

.rank-cell { font-weight: 700; color: var(--accent); min-width: 36px; text-align: center; font-size: .92rem }
.rank-cell.top3 {
  background: linear-gradient(135deg, var(--turquesa), var(--magenta), var(--rosa));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  font-size: 1.05rem; font-weight: 800;
}
.dest-name { font-weight: 700; color: var(--text); letter-spacing: -.01em; max-width: 170px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.score-cell { display: flex; align-items: center; gap: .6rem; min-width: 130px }
.score-bar { flex: 1; height: 7px; background: rgba(122,64,255,.07); border-radius: 4px; overflow: hidden }
.score-fill { height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--magenta), var(--violet-blue), var(--turquesa)); transition: width .6s var(--ease-out-expo) }
.score-val { font-weight: 700; font-size: .88rem; color: var(--accent); min-width: 38px; text-align: right }

/* Table Lock (resultados - premium paywall) */
.locked-row { user-select: none; pointer-events: none; position: relative }
.locked-row.blur-1 { filter: blur(2px); opacity: .85 }
.locked-row.blur-2 { filter: blur(4px); opacity: .7 }
.locked-row.blur-3 { filter: blur(6px); opacity: .55 }
.table-lock-wrap { position: relative; overflow: hidden }
.table-lock-overlay {
  position: absolute; left: 0; right: 0; padding-top: 60px;
  background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(255,255,255,.85) 35%, #fff 55%);
  text-align: center; z-index: 10;
}
.lock-card {
  display: inline-block; background: #fff; border-radius: var(--r-xl);
  padding: 2.25rem 2.75rem; box-shadow: var(--shadow-xl);
  border: 1px solid rgba(122,64,255,.1); max-width: 420px; width: 100%; text-align: center;
  margin-bottom: 1.5rem;
}
.lock-card .lock-icon {
  width: 48px; height: 48px; margin: 0 auto .85rem;
  background: linear-gradient(135deg, var(--magenta), var(--rosa)); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; box-shadow: 0 4px 16px rgba(152,48,186,.25);
}
.lock-card .lock-icon i { width: 22px; height: 22px }
.lock-card h3 { font-size: 1.15rem; font-weight: 700; color: var(--accent); margin-bottom: .3rem }
.lock-card p { font-size: .85rem; color: var(--text-light); margin-bottom: 1.15rem; line-height: 1.4 }
.lock-pwd-field { display: flex; gap: .4rem; align-items: center; justify-content: center; margin-bottom: .65rem }
.lock-pwd-field input {
  flex: 1; max-width: 220px; padding: .6rem .85rem;
  border: 1.5px solid rgba(122,64,255,.15); border-radius: var(--r-sm);
  font-family: var(--font); font-size: .88rem; outline: none; transition: border-color .2s;
}
.lock-pwd-field input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(122,64,255,.08) }
.lock-pwd-field .eye-btn {
  background: none; border: 1.5px solid rgba(122,64,255,.12); border-radius: var(--r-sm);
  width: 38px; height: 38px; cursor: pointer; display: flex; align-items: center; justify-content: center;
  color: var(--text-light); transition: all .2s;
}
.lock-pwd-field .eye-btn:hover { border-color: var(--primary); color: var(--primary) }
.lock-pwd-field .eye-btn i { width: 16px; height: 16px }
.lock-unlock-btn {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .6rem 1.5rem; background: linear-gradient(135deg, var(--magenta), var(--navy));
  color: #fff; border: none; border-radius: var(--r-pill);
  font-size: .88rem; font-weight: 700; cursor: pointer; font-family: var(--font);
  transition: all .25s var(--ease-out-expo); box-shadow: 0 4px 16px rgba(152,48,186,.25);
}
.lock-unlock-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 24px rgba(122,64,255,.3) }
.lock-unlock-btn i { width: 16px; height: 16px }
.lock-error { color: #e53e3e; font-size: .78rem; font-weight: 600; margin-top: .45rem; display: none }
.lock-error.visible { display: block }
.lock-cta { font-size: .78rem; color: var(--text-light); margin-top: .85rem; line-height: 1.5 }
.lock-cta a { color: var(--primary); font-weight: 600; text-decoration: none; transition: color .2s }
.lock-cta a:hover { color: var(--accent); text-decoration: underline }
.table-lock-overlay.fade-out { opacity: 0; transition: opacity .4s ease; pointer-events: none }

/* No results */
.no-results { text-align: center; padding: 4rem 2rem; color: var(--text-light); background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow-sm) }
.no-results i { width: 52px; height: 52px; color: rgba(122,64,255,.15); margin-bottom: 1rem }
.no-results p { font-size: 1.05rem; font-weight: 500 }
.no-results small { display: block; margin-top: .35rem; font-size: .82rem; color: var(--text-light); opacity: .7 }


/* =============================================
   10. BADGES & TAGS
   =============================================
   .badge: Etiqueta de perfil con color de fondo tintado
   .badge-versatil / -diversificado / -especializado / -nicho
   .data-pill: Datos inline destacados
   .tag: Etiquetas para zonas/atracciones (resultados modal)
   ============================================= */

/* Badges (index version - simples) */
.badge {
  display: inline-flex; align-items: center; padding: .2rem .65rem;
  border-radius: var(--r-pill); font-size: .7rem; font-weight: 700;
  white-space: nowrap; letter-spacing: .02em;
}
/* Badges con borde (resultados version - mas elaborados) */
.badge-versatil { background: linear-gradient(135deg, rgba(44,92,226,.1), rgba(44,92,226,.05)); color: #2C5CE2; border: 1px solid rgba(44,92,226,.15) }
.badge-diversificado { background: linear-gradient(135deg, rgba(152,48,186,.1), rgba(152,48,186,.05)); color: #9830BA; border: 1px solid rgba(152,48,186,.15) }
.badge-especializado { background: linear-gradient(135deg, rgba(215,79,106,.12), rgba(215,79,106,.05)); color: #D74F6A; border: 1px solid rgba(215,79,106,.18) }
.badge-nicho { background: linear-gradient(135deg, rgba(91,24,102,.08), rgba(91,24,102,.04)); color: #5B1866; border: 1px solid rgba(91,24,102,.12) }

.data-pill {
  display: inline-flex; align-items: center; gap: .3rem;
  background: rgba(122,64,255,.08); padding: .15rem .6rem;
  border-radius: var(--r-pill); font-size: .85rem; font-weight: 600; color: var(--accent);
}

/* Tags (resultados modal) */
.tag-list { display: flex; flex-wrap: wrap; gap: .3rem }
.tag {
  display: inline-flex; padding: .22rem .6rem;
  background: linear-gradient(135deg, rgba(152,48,186,.08), rgba(215,79,106,.04));
  border: 1px solid rgba(152,48,186,.12); border-radius: var(--r-pill);
  font-size: .72rem; font-weight: 500; color: var(--accent); transition: all .15s;
}
.tag:hover { background: rgba(152,48,186,.12); border-color: rgba(152,48,186,.2) }


/* =============================================
   11. BOTONES & CTAs
   =============================================
   .cta-section: Bloque CTA con gradiente y servicios
   .cta-button: Boton principal con borde blanco
   .contact-pill: Widget flotante de contacto
   ============================================= */

/* Final Statement */
.final-statement {
  background: linear-gradient(135deg, #143082 0%, #2C5CE2 15%, #623CD2 30%, #9830BA 50%, #D74F6A 70%, #F88431 100%);
  border-radius: var(--r-lg); padding: 3.5rem 2.5rem; text-align: center;
  position: relative; overflow: hidden; margin: 2rem 0;
}
.final-statement::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse at 30% 20%, rgba(0,123,255,.1) 0%, transparent 50%),
              radial-gradient(ellipse at 70% 80%, rgba(0,123,255,.08) 0%, transparent 50%);
}
.final-statement > * { position: relative; z-index: 1 }
.final-statement-intro { font-size: 1.1rem; color: var(--text-on-dark-secondary); font-style: italic; max-width: 600px; margin: 0 auto 1.25rem }
.final-statement-big { font-size: clamp(1.5rem, 3.5vw, 2.2rem); font-weight: 700; color: #fff; margin: 0 auto .75rem; max-width: 700px; line-height: 1.3 }
/* FIX ACCESIBILIDAD: turquesa sobre gradiente spectrum = bajo contraste */
.final-statement-big span { color: #fff; text-shadow: 0 0 30px rgba(0,123,255,.4) }
/* FIX ACCESIBILIDAD: era .6, ahora .7 */
.final-statement-sub { font-size: 1rem; color: var(--text-on-dark-secondary); max-width: 550px; margin: 0 auto }

/* CTA Section
   ACCESIBILIDAD: fondo gradiente colorido → texto blanco */
.cta-section {
  background: linear-gradient(135deg, #2C5CE2 0%, #623CD2 35%, #9830BA 65%, #D74F6A 100%);
  border-radius: var(--r-lg); padding: 3rem 2.5rem; text-align: center;
  color: #fff; position: relative; overflow: hidden; margin: 2.5rem 0;
}
.cta-section::before {
  content: ''; position: absolute; top: -80px; right: -80px; width: 350px; height: 350px;
  background: radial-gradient(circle, rgba(21,24,35,.06) 0%, transparent 70%); border-radius: 50%;
}
.cta-section > * { position: relative; z-index: 1 }
.cta-section .cta-logo { height: 75px; margin-bottom: 1.25rem }
.cta-section h3 {
  font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 700; color: #fff;
  border-left: none; padding-left: 0; margin-bottom: .5rem;
  text-transform: uppercase; letter-spacing: .02em;
}
.cta-section p { color: var(--text-on-dark); opacity: 1; max-width: 550px; margin: 0 auto 1.25rem }
.cta-services { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; margin: 1.25rem auto; max-width: 480px; text-align: left }
.cta-service { display: flex; align-items: center; gap: .4rem; font-size: .88rem; color: rgba(255,255,255,.9) }
.cta-service i { width: 15px; height: 15px; color: #FF6D3A; opacity: 1 }
.cta-button {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(255,255,255,.15); color: #fff;
  padding: .75rem 1.75rem; border-radius: var(--r-pill);
  font-weight: 700; font-size: .95rem; text-decoration: none;
  transition: all .3s; border: 2px solid rgba(255,255,255,.4);
  cursor: pointer; font-family: var(--font);
}
.cta-button:hover { background: #fff; color: #7A40FF; transform: translateY(-2px) }

/* Contact Pill */
.contact-pill {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 1000;
  background: #fff; border-radius: var(--r-lg);
  padding: .85rem 1.25rem; box-shadow: 0 6px 24px rgba(21,24,35,.12);
  border: 1px solid rgba(122,64,255,.12); max-width: 260px; transition: transform .3s;
}
.contact-pill:hover { transform: translateY(-3px) }
.contact-pill-title { font-size: .78rem; font-weight: 600; color: var(--accent); margin-bottom: .15rem }
.contact-pill-text { font-size: .72rem; color: var(--text-light); margin-bottom: .6rem }
.contact-pill-btn {
  display: inline-flex; align-items: center; gap: .3rem;
  background: var(--grad-magenta); color: #fff;
  padding: .4rem .85rem; border-radius: var(--r-pill);
  font-size: .78rem; font-weight: 600; text-decoration: none;
}


/* =============================================
   12. CHARTS (paleta JS + contenedores)
   =============================================
   Paleta accesible desde JS con --chart-1 a --chart-10.
   Contenedores para ApexCharts.
   ============================================= */
.chart-container { margin: 1.5rem 0; min-height: 340px }
.chart-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin: 1.5rem 0 }

/* Chart container con borde (resultados) */
.chart-container { background: #fff; border-radius: var(--r-lg); padding: 1.5rem; margin-bottom: 1.5rem; border: 1px solid rgba(122,64,255,.06); box-shadow: var(--shadow-sm) }
.chart-title {
  font-size: .88rem; font-weight: 700; color: var(--accent); margin-bottom: .85rem;
  display: flex; align-items: center; gap: .45rem;
  padding-bottom: .65rem; border-bottom: 1px solid rgba(122,64,255,.06);
}
.chart-title i { width: 16px; height: 16px; color: var(--turquesa) }

/* Platform Grid */
.platform-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: .85rem; margin: 1.5rem 0 }
.platform-card {
  background: #fff; border-radius: 12px; padding: 1.1rem; text-align: center;
  border: 1px solid rgba(122,64,255,.1); transition: all .2s;
}
.platform-card:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(21,24,35,.06) }
.platform-card img { width: 36px; height: 36px; margin: 0 auto .4rem; display: block; object-fit: contain }
.platform-card h5 { font-size: .78rem; font-weight: 600; color: var(--text) }
.platform-card span { font-size: .68rem; color: var(--text-light) }


/* =============================================
   13. MODALES
   =============================================
   .modal-overlay: Fondo oscuro con blur
   .modal-content: Contenedor del modal
   .modal-header: Header con gradiente navy->magenta
   .modal-body: Cuerpo con panels
   ============================================= */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,20,22,.5); z-index: 200;
  display: none; align-items: flex-start; justify-content: center;
  padding: 2rem; overflow-y: auto;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.modal-overlay.open { display: flex }
.modal-content {
  background: #fff; border-radius: var(--r-xl); max-width: 900px; width: 100%;
  margin: auto; overflow: hidden;
  box-shadow: var(--shadow-xl), 0 0 0 1px rgba(255,255,255,.1);
  animation: modalIn .35s var(--ease-out-expo);
}
.modal-header {
  background: linear-gradient(135deg, #143082 0%, #623CD2 40%, #9830BA 100%);
  padding: 2rem 2.25rem; color: #fff;
  display: flex; align-items: center; justify-content: space-between;
  position: relative; overflow: hidden;
}
.modal-header::before {
  content: ''; position: absolute; top: -40px; right: -40px; width: 140px; height: 140px;
  background: radial-gradient(circle, rgba(0,123,255,.1) 0%, transparent 70%); border-radius: 50%;
}
.modal-header-left { display: flex; align-items: center; gap: 1.15rem; position: relative; z-index: 1 }
.modal-rank-big {
  width: 56px; height: 56px; border-radius: 16px; background: rgba(0,123,255,.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; font-weight: 800; color: #fff;
  border: 2px solid rgba(0,123,255,.2); backdrop-filter: blur(10px);
}
.modal-dest-name { font-size: 1.6rem; font-weight: 700; letter-spacing: -.02em }
/* FIX ACCESIBILIDAD: era .55, ahora .85 */
.modal-dest-sub {
  font-size: .8rem; color: var(--text-on-dark); display: flex; align-items: center;
  gap: .75rem; margin-top: .25rem; flex-wrap: wrap;
}
.modal-dest-sub span { display: flex; align-items: center; gap: .25rem }
.modal-score-big { text-align: center; position: relative; z-index: 1 }
.modal-score-big .score-num { font-size: 2.4rem; font-weight: 800; color: #fff; line-height: 1; letter-spacing: -.02em }
/* FIX ACCESIBILIDAD: era .4, ahora .7 */
.modal-score-big .score-label {
  font-size: .62rem; color: var(--text-on-dark-secondary); text-transform: uppercase;
  letter-spacing: .08em; font-weight: 600; margin-top: .1rem;
}
.modal-close {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
  color: var(--text-on-dark-secondary); width: 36px; height: 36px; border-radius: 10px;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: all .2s; position: absolute; top: 1.25rem; right: 1.25rem; z-index: 2;
}
.modal-close:hover { background: rgba(255,255,255,.12); color: #fff }
.modal-close i { width: 16px; height: 16px }
.modal-body { padding: 1.75rem 2.25rem 2.25rem; background: var(--bg-alt) }
.modal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem }
.modal-panel {
  background: #fff; border-radius: var(--r-md); padding: 1.25rem;
  border: 1px solid rgba(122,64,255,.06); box-shadow: var(--shadow-sm);
  transition: box-shadow .2s;
}
.modal-panel:hover { box-shadow: var(--shadow-md) }
.modal-panel-title {
  font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  color: var(--primary); margin-bottom: .85rem;
  display: flex; align-items: center; gap: .4rem;
  padding-bottom: .5rem; border-bottom: 1px solid rgba(122,64,255,.06);
}
.modal-panel-title i { width: 13px; height: 13px; color: var(--turquesa) }
.modal-panel.full { grid-column: 1/-1 }
.modal-mini-table { width: 100%; border-collapse: collapse; font-size: .82rem }
.modal-mini-table th {
  text-align: left; font-weight: 600; color: var(--text-light);
  font-size: .66rem; text-transform: uppercase; letter-spacing: .05em;
  padding: .35rem .5rem; border-bottom: 1px solid rgba(122,64,255,.08);
}
.modal-mini-table td { padding: .4rem .5rem; color: var(--text-sec); border-bottom: 1px solid rgba(122,64,255,.04) }
.modal-mini-table tbody tr:hover { background: rgba(122,64,255,.02) }
.modal-mini-table tr:last-child td { border-bottom: none }


/* =============================================
   14. TIMELINE, FLOW & PROGRESS
   =============================================
   .timeline: Linea temporal vertical con dots coloreados
   .flow-diagram: Diagrama horizontal con flechas
   .pb-inline: Barra de progreso inline
   .formula-bar: Barra de formula segmentada
   ============================================= */
.timeline { position: relative; padding-left: 2rem; margin: 1.75rem 0 }
.timeline::before {
  content: ''; position: absolute; left: .7rem; top: 0; bottom: 0; width: 2px;
  background: linear-gradient(180deg, var(--turquesa), var(--magenta), var(--accent));
}
.timeline-item { position: relative; padding: .75rem 0 .75rem 1.25rem; margin-bottom: .75rem }
.timeline-dot {
  position: absolute; left: -1.6rem; top: 1rem; width: 12px; height: 12px;
  border-radius: 50%; background: var(--magenta); border: 2px solid #fff;
  box-shadow: 0 0 0 3px rgba(152,48,186,.3);
}
.timeline-item:nth-child(even) .timeline-dot { background: var(--rosa); box-shadow: 0 0 0 3px rgba(215,79,106,.3) }
.timeline-item:nth-child(3n) .timeline-dot { background: var(--violet-blue); box-shadow: 0 0 0 3px rgba(98,60,210,.3) }
.timeline-item h4 { font-size: 1.05rem; font-weight: 700; color: var(--accent); margin-bottom: .35rem }
.timeline-item p { font-size: .92rem; margin: 0 }

/* Formula Bar */
.formula-bar { display: flex; margin: 1.5rem 0; border-radius: var(--r-pill); overflow: hidden; height: 30px }
.formula-seg { display: flex; align-items: center; justify-content: center; color: #fff; font-size: .72rem; font-weight: 700 }

/* Flow Diagram */
.flow-diagram { display: flex; align-items: center; justify-content: center; gap: 0; margin: 1.75rem 0 }
.flow-step {
  background: #fff; border: 1px solid rgba(122,64,255,.15); border-radius: 12px;
  padding: .85rem 1rem; text-align: center; flex: 1; border-top: 3px solid var(--navy);
}
.flow-step:nth-child(2) { border-top-color: var(--blue-bright) }
.flow-step:nth-child(3) { border-top-color: var(--magenta) }
.flow-step:nth-child(4) { border-top-color: var(--rosa) }
.flow-step:nth-child(5) { border-top-color: var(--orange-warm) }
.flow-step h5 { font-size: .82rem; font-weight: 700; color: var(--accent); margin-bottom: .2rem }
.flow-step p { font-size: .72rem; color: var(--text-light); margin: 0 }
.flow-arrow { color: var(--primary); font-size: 1.3rem; padding: 0 .4rem; flex-shrink: 0 }

/* Progress Bars */
.pb-inline { display: flex; align-items: center; gap: .6rem }
.pb-track { flex: 1; height: 7px; background: rgba(122,64,255,.1); border-radius: 4px; overflow: hidden }
.pb-fill { height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--violet-blue), var(--magenta), var(--rosa)); transition: width .8s ease }
.pb-val { font-weight: 700; font-size: .82rem; min-width: 35px; text-align: right; color: var(--accent) }


/* =============================================
   15. FORMULARIOS & FILTROS
   ============================================= */
/* (ya incluidos en seccion 5 - filter-* classes) */


/* =============================================
   16. ANIMACIONES
   ============================================= */
@keyframes destCardIn { from { opacity: 0; transform: translateY(12px) scale(.96) } to { opacity: 1; transform: translateY(0) scale(1) } }
@keyframes ctxFadeIn { from { opacity: 0; transform: translateY(12px) } to { opacity: 1; transform: translateY(0) } }
@keyframes heroScrollBounce { 0%, 100% { transform: translateY(0) } 50% { transform: translateY(6px) } }
@keyframes markerPulse { 0%, 100% { transform: scale(1); opacity: 1 } 50% { transform: scale(1.15); opacity: .8 } }
@keyframes headerGlow { from { transform: translate(0,0) scale(1) } to { transform: translate(-20px,10px) scale(1.1) } }
@keyframes modalIn { from { opacity: 0; transform: translateY(40px) scale(.95) } to { opacity: 1; transform: translateY(0) scale(1) } }
@keyframes tabGlow { 0%, 100% { border-color: rgba(122,64,255,.1); box-shadow: none } 50% { border-color: rgba(215,79,106,.35); box-shadow: 0 0 12px rgba(215,79,106,.1) } }

.ctx-fade-enter { animation: ctxFadeIn .4s ease both }
.fade-in { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease }
.fade-in.visible { opacity: 1; transform: translateY(0) }

/* Mobile toggle (resultados) */
.mobile-toggle {
  position: fixed; top: .75rem; left: .75rem; z-index: 110;
  background: var(--accent); color: #fff; border: none;
  width: 42px; height: 42px; border-radius: var(--r-sm);
  cursor: pointer; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md);
}
.mobile-toggle i { width: 20px; height: 20px }


/* =============================================
   17. RESPONSIVE
   ============================================= */

/* --- index.html breakpoints --- */
@media (max-width: 1400px) {
  .toc-sidebar, .context-sidebar { display: none }
  .main-content, .hero-wrapper { margin-left: 0; margin-right: 0 }
}
@media (max-width: 1100px) {
  .hero-content { grid-template-columns: 1fr }
  .hero-globe-col { max-width: 420px; margin: 0 auto }
}
@media (max-width: 768px) {
  .hero { min-height: auto; padding: 0 }
  .hero-inner { padding: 1.5rem 1.25rem 2rem }
  .hero-supra { font-size: .9rem }
  .hero h1 { font-size: 1.8rem }
  .hero-top { flex-direction: column; align-items: flex-start; gap: .75rem }
  .hero-stats { grid-template-columns: repeat(2, 1fr) }
  .hero-narrative { font-size: .95rem }
  .hero-platforms { flex-wrap: wrap; gap: .5rem }
  .hero-scroll { display: none }
  .hero-globe-col { display: none }
  .section { padding: 1.75rem 0 1rem }
  .card-grid-2, .card-grid-3, .info-box-2col, .chart-row,
  .conclusion-grid, .opportunity-grid { grid-template-columns: 1fr }
  .versus-panel { grid-template-columns: 1fr }
  .versus-arrow { width: 100%; height: 40px; flex-direction: row }
  .versus-arrow i { transform: rotate(90deg) }
  .geo-roadmap, .strategy-tiers { grid-template-columns: 1fr }
  .nav-tabs { grid-template-columns: repeat(2, 1fr) !important }
  .nav-tab-desc { display: none }
  .pres-cols { grid-template-columns: 1fr }
  .pres-stats { grid-template-columns: repeat(3, 1fr) }
  .roadmap { grid-template-columns: 1fr 1fr }
  .roadmap::before { display: none }
  .method-dash { grid-template-columns: repeat(2, 1fr); padding: 1.25rem }
  .method-dash-val { font-size: 1.3rem }
  .platform-grid { grid-template-columns: repeat(3, 1fr) }
  .flow-diagram { flex-direction: column }
  .flow-arrow { transform: rotate(90deg) }
  .stat-row { flex-direction: column }
  .cta-services { grid-template-columns: 1fr }
  table { font-size: .82rem }
  th, td { padding: .5rem .6rem }
  .main-content-inner { padding: 1.5rem 1.25rem 3rem }
  .folder-tabs { overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch }
  .folder-tabs::-webkit-scrollbar { display: none }
  .folder-tab { font-size: .78rem; padding: .5rem .85rem; white-space: nowrap }
}

/* --- resultados.html breakpoints --- */
@media (max-width: 900px) {
  .filter-sidebar { position: fixed; left: -272px; transition: left .35s var(--ease-out-expo); box-shadow: 4px 0 24px rgba(0,0,0,.15) }
  .filter-sidebar.open { left: 0 }
  .main-area { margin-left: 0 }
  .mobile-toggle { display: flex !important }
  .modal-grid { grid-template-columns: 1fr }
  .page-header { padding: 1.25rem 1.25rem }
  .content-area { padding: 1.25rem }
  .tabs-bar { padding: 0 .75rem; overflow-x: auto; gap: 0 }
  .data-table { font-size: .8rem }
  .data-table td, .data-table th { padding: .5rem .6rem }
  .header-inner { flex-direction: column; align-items: flex-start; gap: 1rem }
  .header-stats-row { flex-wrap: wrap; gap: .5rem }
  .cat-tabs { overflow-x: auto; flex-wrap: nowrap; -webkit-overflow-scrolling: touch }
}
@media (min-width: 901px) {
  .mobile-toggle { display: none !important }
}


/* =============================================
   18. PRINT
   ============================================= */
@media print {
  .toc-sidebar, .context-sidebar, .filter-sidebar { display: none }
  .main-content, .hero-wrapper, .main-area { margin: 0 }
  .fade-in { opacity: 1; transform: none }
}


/* =============================================
   19. UTILIDADES
   ============================================= */
/* (utilidades ad-hoc pueden anadirse aqui) */
