/**
 * MORA - DESIGN SYSTEM PARA WEB DE RESULTADOS
 * ================================================
 * Monitor de Reputacion Algoritmica
 * Fork del barometro-design-system.css con paleta MORA
 *
 * 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="mora-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
 */


/* =============================================
   1. DESIGN TOKENS
   ============================================= */
:root {
  /* === PALETA MORA === */
  --navy: #402D9B;
  --blue-bright: #5E8FD8;
  --turquesa: #60A8E9;
  --violet-blue: #5E45C9;
  --primary: #6B4ED8;
  --primary-light: #8B72E8;
  --primary-dark: #4A2DA0;
  --magenta: #F966BE;
  --purple-deep: #402D9B;
  --rosa: #E8547A;
  --secondary: #60A8E9;
  --secondary-light: #8BC4F0;
  --orange-warm: #F966BE;
  --accent: #1a1a2e;
  --accent-light: #6B4ED8;

  /* === TEXTOS === */
  --text: #1a1a2e;
  --text-sec: #3a3a4a;
  --text-light: #6b7280;

  /* === FONDOS === */
  --bg: #ffffff;
  --bg-alt: #f8f8fc;
  --bg-alt2: #f3f0fa;

  /* === GRADIENTES === */
  --grad-cover: linear-gradient(135deg, #402D9B 0%, #F966BE 50%, #60A8E9 100%);
  --grad-content: linear-gradient(145deg, #F0EDFA 0%, #F5F3FF 100%);
  --grad-logo: linear-gradient(135deg, #402D9B 0%, #6B4ED8 25%, #F966BE 50%, #E8547A 75%, #60A8E9 100%);
  --grad-spectrum: linear-gradient(90deg, #402D9B, #6B4ED8, #F966BE, #E8547A, #60A8E9);
  --grad-magenta: linear-gradient(135deg, #F966BE, #402D9B);
  --grad-warm: linear-gradient(135deg, #F966BE, #60A8E9);

  /* === SOMBRAS === */
  --shadow-sm: 0 1px 3px rgba(26,26,46,.04), 0 1px 2px rgba(26,26,46,.06);
  --shadow-md: 0 4px 16px rgba(26,26,46,.06), 0 2px 4px rgba(26,26,46,.04);
  --shadow-lg: 0 8px 32px rgba(26,26,46,.08), 0 4px 8px rgba(26,26,46,.04);
  --shadow-xl: 0 16px 48px rgba(26,26,46,.1), 0 8px 16px rgba(26,26,46,.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 === */
  --chart-1: #402D9B;
  --chart-2: #F966BE;
  --chart-3: #60A8E9;
  --chart-4: #6B4ED8;
  --chart-5: #E8547A;
  --chart-6: #8BC4F0;
  --chart-7: #5E45C9;
  --chart-8: #F9A3D7;
  --chart-9: #3D7BBF;
  --chart-10: #C084FC;

  /* === TEXTOS SOBRE FONDO OSCURO === */
  --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; scroll-padding-top: 88px }
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
   ============================================= */


/* =============================================
   4. LAYOUT (sidebar + main + context)
   ============================================= */

/* --- Layout index.html --- */
.toc-sidebar {
  position: fixed; left: 0; top: 0; width: 280px; height: 100vh;
  background: var(--bg); border-right: 1px solid rgba(107,78,216,.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%, #f8f8fc 100%);
  border-right: 1px solid rgba(107,78,216,.08);
  overflow-y: auto; z-index: 100;
  display: flex; flex-direction: column; padding: 0;
  scrollbar-width: thin; scrollbar-color: rgba(107,78,216,.25) transparent;
}
.filter-sidebar::-webkit-scrollbar { width: 4px }
.filter-sidebar::-webkit-scrollbar-track { background: transparent }
.filter-sidebar::-webkit-scrollbar-thumb { background: rgba(107,78,216,.15); border-radius: 4px }
.main-area { margin-left: 272px; min-height: 100vh; background: #fff }


/* =============================================
   5. COMPONENTES DE NAVEGACION
   ============================================= */

/* --- 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(249,102,190,.12), rgba(26,26,46,.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(107,78,216,.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, #402D9B 0%, #6B4ED8 30%, #F966BE 55%, #E8547A 80%, #60A8E9 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(26,26,46,.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(96,168,233,.4) }
.toc-explorer-icon {
  width: 40px; height: 40px; background: rgba(96,168,233,.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(107,78,216,.12); box-shadow: 0 2px 12px rgba(26,26,46,.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(107,78,216,.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(107,78,216,.12) }
.dest-search-dropdown {
  position: absolute; top: 100%; left: 0; right: 0;
  background: #fff; border: 1.5px solid rgba(107,78,216,.15); border-radius: 10px;
  margin-top: 4px; max-height: 200px; overflow-y: auto;
  display: none; z-index: 200; box-shadow: 0 8px 24px rgba(26,26,46,.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(107,78,216,.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, #402D9B 0%, #6B4ED8 35%, #F966BE 65%, #E8547A 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(96,168,233,.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(249,102,190,.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(96,168,233,.15); border: 1px solid rgba(96,168,233,.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 }
.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-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 }
.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(96,168,233,.2); border-radius: var(--r-pill);
  transition: all .2s; position: relative; z-index: 1;
}
.dest-result-link:hover { background: rgba(96,168,233,.1); border-color: rgba(96,168,233,.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(107,78,216,.08);
  border-radius: var(--r-pill); display: inline-block; align-self: flex-start; margin-bottom: .15rem;
}
.ctx-hero {
  background: linear-gradient(135deg, #402D9B 0%, #6B4ED8 50%, #5E45C9 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(96,168,233,.15) 0%, transparent 70%); border-radius: 50%;
}
.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 }
.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 }
.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(107,78,216,.08);
  background: linear-gradient(180deg, rgba(107,78,216,.03) 0%, rgba(107,78,216,.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, #F966BE, #E8547A, #60A8E9);
  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(26,26,46,.2);
}
.sidebar-cta-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(26,26,46,.3) }

/* --- Sidebar Header & Back (resultados) --- */
.sidebar-header {
  padding: 2.25rem 1.25rem 2.25rem;
  background: linear-gradient(135deg, #402D9B 0%, #6B4ED8 50%, #F966BE 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(96,168,233,.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(107,78,216,.1) 0%, transparent 70%); border-radius: 50%;
}
.sidebar-header img { height: 70px; position: relative; z-index: 1 }
.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(107,78,216,.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(107,78,216,.04); color: var(--accent) }
.filter-check input[type="checkbox"] {
  appearance: none; -webkit-appearance: none; width: 16px; height: 16px;
  border: 2px solid rgba(107,78,216,.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(249,102,190,.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(107,78,216,.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(107,78,216,.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(107,78,216,.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(107,78,216,.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(107,78,216,.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(107,78,216,.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(107,78,216,.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(107,78,216,.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(107,78,216,.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(107,78,216,.03) }
.tab-main.active { color: var(--accent); border-bottom-color: var(--magenta); background: rgba(249,102,190,.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(107,78,216,.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(107,78,216,.06); color: var(--accent) }
.cat-tab.active { background: linear-gradient(135deg, var(--magenta), var(--violet-blue)); color: #fff; box-shadow: 0 2px 8px rgba(249,102,190,.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(107,78,216,.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(107,78,216,.04) }
.folder-tab.active { color: var(--accent); background: #fff; border-color: rgba(107,78,216,.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(107,78,216,.1);
  background: #fff; transition: all .25s; font-family: var(--font);
}
.nav-tab:hover { border-color: rgba(107,78,216,.25); box-shadow: 0 4px 16px rgba(26,26,46,.06) }
.nav-tab.active { border-color: var(--turquesa); background: rgba(96,168,233,.04); box-shadow: 0 4px 20px rgba(96,168,233,.1) }
.nav-tab-icon {
  width: 42px; height: 42px; border-radius: 12px; background: rgba(107,78,216,.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(107,78,216,.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(107,78,216,.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 (index) --- */
.hero {
  position: relative; background: linear-gradient(135deg, #1a1a2e 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(64,45,155,.9) 0%, rgba(249,102,190,.75) 40%, rgba(232,84,122,.7) 70%, rgba(96,168,233,.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(232,84,122,.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);
}
.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(4, 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 */
.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 }

/* --- Shared Site Navbar --- */
.site-navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2.5rem; height: 80px;
  background: rgba(255,255,255,.97); backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(107,78,216,.06);
  transition: box-shadow .3s;
}
.site-navbar.scrolled { box-shadow: 0 2px 20px rgba(26,26,46,.08) }
.site-navbar-logo { display: flex; flex-direction: column; text-decoration: none; line-height: 1 }
.site-navbar-logo-text {
  font-size: 2.8rem; font-weight: 900; letter-spacing: -.03em; line-height: .85;
  background: linear-gradient(135deg, #F966BE 0%, #9B59B6 50%, #402D9B 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.site-navbar-logo-sub {
  font-size: .72rem; font-weight: 600; color: var(--text-sec);
  letter-spacing: .06em; text-transform: uppercase; margin-top: .15rem;
}
.site-navbar-nav { display: flex; gap: 1.75rem; align-items: center }
.site-navbar-nav a {
  font-size: .88rem; font-weight: 600; color: var(--text-sec);
  text-decoration: none; transition: color .2s; position: relative;
  padding: .25rem 0;
}
.site-navbar-nav a:hover { color: var(--primary) }
.site-navbar-nav a.active {
  color: var(--primary);
}
.site-navbar-nav a.active::after {
  content: ''; position: absolute; bottom: -2px; left: 0; right: 0;
  height: 2.5px; background: var(--primary); border-radius: 2px;
}
.site-navbar-mobile { display: none; background: none; border: none; cursor: pointer; color: var(--text) }
.site-navbar-mobile i { width: 24px; height: 24px }
@media (max-width: 768px) {
  .site-navbar { padding: 0 1rem; height: 68px }
  .site-navbar-logo-text { font-size: 2rem }
  .site-navbar-logo-sub { font-size: .6rem }
  .site-navbar-nav { display: none }
  .site-navbar-mobile { display: block }
  .site-navbar-nav.mobile-open {
    display: flex; flex-direction: column; position: absolute;
    top: 64px; left: 0; right: 0; background: #fff; padding: 1rem 1.5rem;
    box-shadow: 0 8px 24px rgba(26,26,46,.1); gap: .75rem; z-index: 999;
  }
}

/* --- Page Header (resultados) --- */
.page-header {
  background: linear-gradient(135deg, #402D9B 0%, #6B4ED8 25%, #F966BE 50%, #E8547A 75%, #60A8E9 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(96,168,233,.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(107,78,216,.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 }
.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);
}
.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 { padding: 3rem 0 2rem; position: relative }
.section + .section { border-top: 1px solid rgba(107,78,216,.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 */
.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, #402D9B 0%, #6B4ED8 50%, #5E45C9 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 }
.highlight-box strong,
.highlight-box p strong { color: #fff; font-weight: 800 }
.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(107,78,216,.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(249,102,190,.06), rgba(26,26,46,.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 }

/* 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(107,78,216,.12);
}
.versus-col { padding: 2.5rem 2rem }
.versus-col.old { background: rgba(26,26,46,.03) }
.versus-col.new { background: rgba(96,168,233,.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(26,26,46,.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(26,26,46,.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 }

/* 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, #402D9B 0%, #6B4ED8 35%, #F966BE 70%, #5E45C9 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(96,168,233,.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 }
.method-dash-eq span { font-size: 1.1rem; font-weight: 700; color: #fff }

/* 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
   ============================================= */
.card {
  background: #fff; border-radius: var(--r-lg); padding: 1.75rem;
  border: 1px solid rgba(107,78,216,.1); transition: all .3s;
  position: relative; overflow: hidden;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 8px 28px rgba(26,26,46,.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-grid-4 { display: grid; grid-template-columns: repeat(4, 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(--magenta), 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(107,78,216,.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, #402D9B 0%, #6B4ED8 50%, #5E45C9 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(249,102,190,.15);
  line-height: 1; font-family: var(--font); pointer-events: none;
}
.conclusion-tile.featured {
  grid-column: 1/-1;
  background: linear-gradient(135deg, #402D9B 0%, #6B4ED8 25%, #F966BE 50%, #E8547A 75%, #60A8E9 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(249,102,190,.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 }
.conclusion-tile p { font-size: .88rem; color: var(--text-on-dark); margin: 0; line-height: 1.5 }
.conclusion-tile.featured p { font-size: .94rem }


/* =============================================
   9. TABLAS DE DATOS
   ============================================= */

/* --- 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(26,26,46,.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(107,78,216,.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(96,168,233,.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, #402D9B 0%, #6B4ED8 50%, #F966BE 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(107,78,216,.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: #fafafc }
.data-table tbody tr:hover { background: rgba(96,168,233,.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(107,78,216,.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(107,78,216,.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(249,102,190,.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(107,78,216,.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(107,78,216,.08) }
.lock-pwd-field .eye-btn {
  background: none; border: 1.5px solid rgba(107,78,216,.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(249,102,190,.25);
}
.lock-unlock-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 24px rgba(107,78,216,.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 }

/* Fuentes tab layout */
.fuentes-table-wrap { position: relative }
.fuentes-table-wrap .table-lock-wrap { position: relative }

/* 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(107,78,216,.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 {
  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;
}
.badge-versatil { background: linear-gradient(135deg, rgba(94,143,216,.1), rgba(94,143,216,.05)); color: #5E8FD8; border: 1px solid rgba(94,143,216,.15) }
.badge-diversificado { background: linear-gradient(135deg, rgba(249,102,190,.1), rgba(249,102,190,.05)); color: #F966BE; border: 1px solid rgba(249,102,190,.15) }
.badge-especializado { background: linear-gradient(135deg, rgba(232,84,122,.12), rgba(232,84,122,.05)); color: #E8547A; border: 1px solid rgba(232,84,122,.18) }
.badge-nicho { background: linear-gradient(135deg, rgba(64,45,155,.08), rgba(64,45,155,.04)); color: #402D9B; border: 1px solid rgba(64,45,155,.12) }

.data-pill {
  display: inline-flex; align-items: center; gap: .3rem;
  background: rgba(107,78,216,.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(249,102,190,.08), rgba(232,84,122,.04));
  border: 1px solid rgba(249,102,190,.12); border-radius: var(--r-pill);
  font-size: .72rem; font-weight: 500; color: var(--accent); transition: all .15s;
}
.tag:hover { background: rgba(249,102,190,.12); border-color: rgba(249,102,190,.2) }


/* =============================================
   11. BOTONES & CTAs
   ============================================= */

/* Final Statement */
.final-statement {
  background: linear-gradient(135deg, #402D9B 0%, #6B4ED8 25%, #F966BE 50%, #E8547A 75%, #60A8E9 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(96,168,233,.1) 0%, transparent 50%),
              radial-gradient(ellipse at 70% 80%, rgba(96,168,233,.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 }
.final-statement-big span { color: #fff; text-shadow: 0 0 30px rgba(96,168,233,.4) }
.final-statement-sub { font-size: 1rem; color: var(--text-on-dark-secondary); max-width: 550px; margin: 0 auto }

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, #5E8FD8 0%, #6B4ED8 35%, #F966BE 65%, #E8547A 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(26,26,46,.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: #60A8E9; 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: #6B4ED8; 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(26,26,46,.12);
  border: 1px solid rgba(107,78,216,.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
   ============================================= */
.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 { background: #fff; border-radius: var(--r-lg); padding: 1.5rem; margin-bottom: 1.5rem; border: 1px solid rgba(107,78,216,.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(107,78,216,.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(107,78,216,.1); transition: all .2s;
}
.platform-card:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(26,26,46,.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 {
  position: fixed; inset: 0; background: rgba(0,10,22,.5); z-index: 1100;
  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: 0 auto; overflow: hidden; flex-shrink: 0;
  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, #402D9B 0%, #6B4ED8 40%, #F966BE 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(96,168,233,.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(96,168,233,.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; font-weight: 800; color: #fff;
  border: 2px solid rgba(96,168,233,.2); backdrop-filter: blur(10px);
}
.modal-dest-name { font-size: 1.6rem; font-weight: 700; letter-spacing: -.02em }
.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 }
.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(107,78,216,.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(107,78,216,.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(107,78,216,.08);
}
.modal-mini-table td { padding: .4rem .5rem; color: var(--text-sec); border-bottom: 1px solid rgba(107,78,216,.04) }
.modal-mini-table tbody tr:hover { background: rgba(107,78,216,.02) }
.modal-mini-table tr:last-child td { border-bottom: none }


/* =============================================
   14. TIMELINE, FLOW & PROGRESS
   ============================================= */
.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(249,102,190,.3);
}
.timeline-item:nth-child(even) .timeline-dot { background: var(--rosa); box-shadow: 0 0 0 3px rgba(232,84,122,.3) }
.timeline-item:nth-child(3n) .timeline-dot { background: var(--violet-blue); box-shadow: 0 0 0 3px rgba(94,69,201,.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(107,78,216,.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(--turquesa) }
.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(107,78,216,.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) */

/* Mention cards (resultados) */
.mention-card {
  background: #fff; border-radius: var(--r-md); padding: 1rem 1.25rem;
  border: 1px solid rgba(107,78,216,.08); margin-bottom: .75rem;
  transition: all .2s; cursor: pointer;
}
.mention-card:hover { border-color: rgba(107,78,216,.2); box-shadow: var(--shadow-sm) }
.mention-card-header { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap }
.mention-card-entity { font-weight: 700; color: var(--accent); font-size: .95rem }
.mention-card-platform { display: flex; align-items: center; gap: .3rem; font-size: .75rem; color: var(--text-light) }
.mention-card-platform img { width: 16px; height: 16px }
.mention-card-cat { font-size: .72rem; color: var(--primary); font-weight: 600 }
.mention-card-question { font-size: .85rem; color: var(--text-sec); margin-top: .5rem; line-height: 1.5 }
.mention-card-pos {
  display: inline-flex; align-items: center; gap: .25rem;
  font-size: .68rem; font-weight: 700; padding: .15rem .5rem;
  border-radius: var(--r-pill); margin-top: .5rem;
}
.mention-card-pos.top1 { background: rgba(249,102,190,.12); color: var(--magenta) }
.mention-card-pos.top3 { background: rgba(107,78,216,.1); color: var(--primary) }
.mention-card-pos.top5 { background: rgba(96,168,233,.1); color: var(--turquesa) }
.mention-card-pos.other { background: var(--bg-alt); color: var(--text-light) }
.mention-card-body {
  display: none; margin-top: .75rem; padding-top: .75rem;
  border-top: 1px solid rgba(107,78,216,.06);
  font-size: .88rem; color: var(--text-sec); line-height: 1.7;
}
.mention-card.expanded .mention-card-body { display: block }

/* Pagination */
.pagination {
  display: flex; align-items: center; justify-content: center; gap: .35rem;
  margin-top: 1.5rem; padding: 1rem 0;
}
.pagination button {
  padding: .4rem .75rem; border: 1px solid rgba(107,78,216,.12);
  background: #fff; border-radius: var(--r-sm); font-family: var(--font);
  font-size: .82rem; font-weight: 600; color: var(--text-sec);
  cursor: pointer; transition: all .2s;
}
.pagination button:hover { border-color: var(--primary); color: var(--primary) }
.pagination button.active { background: var(--primary); color: #fff; border-color: var(--primary) }
.pagination button:disabled { opacity: .4; cursor: not-allowed }


/* =============================================
   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 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(107,78,216,.1); box-shadow: none } 50% { border-color: rgba(249,102,190,.35); box-shadow: 0 0 12px rgba(249,102,190,.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 }
}
@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 }
  .section { padding: 1.75rem 0 1rem }
  .card-grid-2, .card-grid-3, .card-grid-4, .info-box-2col, .chart-row,
  .conclusion-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) }
  .nav-tabs { grid-template-columns: repeat(2, 1fr) !important }
  .nav-tab-desc { 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
   ============================================= */

/* Lock gate form styles */
.lock-form-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: .5rem;
  margin: .75rem 0;
}
.lock-form-grid input {
  padding: .55rem .75rem; border: 1.5px solid rgba(107,78,216,.12);
  border-radius: var(--r-sm); font-family: var(--font); font-size: .82rem;
  outline: none; transition: border-color .2s;
}
.lock-form-grid input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(107,78,216,.08) }
.lock-form-grid input.full-width { grid-column: 1/-1 }
.lock-form-submit {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .55rem 1.25rem; background: var(--grad-warm); color: #fff;
  border: none; border-radius: var(--r-pill); font-size: .82rem; font-weight: 700;
  cursor: pointer; font-family: var(--font); transition: all .2s; margin-top: .5rem;
}
.lock-form-submit:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(249,102,190,.25) }
.lock-form-success { color: #38a169; font-size: .82rem; font-weight: 600; display: none }
.lock-form-success.visible { display: block }

/* Sector selector (resultados) */
.sector-selector {
  display: flex; align-items: center; gap: .75rem; margin-bottom: 1.25rem;
  padding: .75rem 1rem; background: #fff; border-radius: var(--r-md);
  border: 1px solid rgba(107,78,216,.1); box-shadow: var(--shadow-sm);
}
.sector-selector label {
  font-size: .78rem; font-weight: 700; color: var(--accent);
  text-transform: uppercase; letter-spacing: .06em; white-space: nowrap;
}
.sector-selector select {
  flex: 1; padding: .45rem .75rem; border: 1.5px solid rgba(107,78,216,.15);
  border-radius: var(--r-sm); font-family: var(--font); font-size: .88rem;
  font-weight: 600; color: var(--accent); background: var(--bg-alt);
  cursor: pointer; outline: none; transition: border-color .2s;
}
.sector-selector select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(107,78,216,.08) }
