/* ============================================================
   styles.css - Compatible IE11/Windows 8.1
   Sin CSS variables, sin Grid, sin gap, sin clamp
   ============================================================ */

/* ---- RESET ---- */
* {
  margin: 0;
  padding: 0;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", Arial, Helvetica, sans-serif;
  background: #0a0a1a;
  color: #e0e0e0;
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: #00d4ff;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
}

/* ---- UTILIDADES ---- */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

.text-center {
  text-align: center;
}

.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }
.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }

/* ---- HEADER / HERO ---- */
.hero {
  background: linear-gradient(135deg, #0a0a1a 0%, #1a1a3e 50%, #0a0a1a 100%);
  padding: 80px 20px;
  text-align: center;
  border-bottom: 1px solid rgba(0, 212, 255, 0.2);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 50%, rgba(0, 212, 255, 0.05) 0%, transparent 50%),
              radial-gradient(circle at 70% 50%, rgba(124, 58, 237, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

.hero-titulo {
  font-size: 2.5rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}

.hero-subtitulo {
  font-size: 1.1rem;
  color: #a0a0b0;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.hero-contador {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-pack: center;
  justify-content: center;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.contador-item {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 12px;
  padding: 20px 30px;
  min-width: 150px;
  margin: 10px;
  -webkit-transition: transform 0.3s ease, border-color 0.3s ease;
  -moz-transition: transform 0.3s ease, border-color 0.3s ease;
  -ms-transition: transform 0.3s ease, border-color 0.3s ease;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.contador-item:hover {
  -webkit-transform: translateY(-3px);
  -moz-transform: translateY(-3px);
  -ms-transform: translateY(-3px);
  transform: translateY(-3px);
  border-color: rgba(0, 212, 255, 0.5);
}

.contador-numero {
  font-size: 2rem;
  font-weight: 700;
  color: #00d4ff;
  display: block;
}

.contador-label {
  font-size: 0.85rem;
  color: #a0a0b0;
  display: block;
  margin-top: 4px;
}

/* ---- FILTROS ---- */
.filtros-seccion {
  background: #0f0f2a;
  padding: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  position: sticky;
  top: 0;
  z-index: 100;
}

/* Solo la barra de filtros se anima/se oculta; el nav de tabs
   (el otro elemento sticky) se mantiene intacto. */
#filtros-barra {
  -webkit-transition: -webkit-transform 0.3s ease, margin-top 0.3s ease;
  -moz-transition: -moz-transform 0.3s ease, margin-top 0.3s ease;
  -o-transition: -o-transform 0.3s ease, margin-top 0.3s ease;
  transition: transform 0.3s ease, margin-top 0.3s ease;
  will-change: transform;
}

/* Cuando el JS agrega .filtros-ocultos al <body>:
   - la barra de filtros sube fuera de la pantalla
   - el margen negativo en las secciones colapsa el espacio
     que dejo la barra, para que el contenido suba y no quede hueco */
body.filtros-ocultos #filtros-barra {
  -webkit-transform: translateY(-100%);
  -moz-transform: translateY(-100%);
  -ms-transform: translateY(-100%);
  transform: translateY(-100%);
}

body.filtros-ocultos .seccion-contenido {
  margin-top: calc(-1 * var(--filtros-barra-altura, 0px));
  -webkit-transition: margin-top 0.3s ease;
  -moz-transition: margin-top 0.3s ease;
  -o-transition: margin-top 0.3s ease;
  transition: margin-top 0.3s ease;
}

.filtros-grid {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  -ms-flex-align: center;
  align-items: center;
}

.filtro-grupo {
  -ms-flex: 1 1 200px;
  flex: 1 1 200px;
  margin: 4px 6px;
}

.filtro-grupo label {
  display: block;
  font-size: 0.75rem;
  color: #a0a0b0;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.filtro-grupo input,
.filtro-grupo select {
  width: 100%;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  color: #e0e0e0;
  font-size: 0.9rem;
  font-family: inherit;
  outline: none;
}

.filtro-grupo input:focus,
.filtro-grupo select:focus {
  border-color: #00d4ff;
}

.filtro-grupo select option {
  background: #1a1a3e;
  color: #e0e0e0;
}

.buscar-btn {
  padding: 8px 20px;
  background: #7c3aed;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
  font-family: inherit;
  -webkit-transition: background 0.3s ease;
  -moz-transition: background 0.3s ease;
  -ms-transition: background 0.3s ease;
  transition: background 0.3s ease;
}

.buscar-btn:hover {
  background: #6d28d9;
}

.resultados-info {
  font-size: 0.85rem;
  color: #a0a0b0;
  padding: 10px 0;
  text-align: center;
}

/* ---- SECCIONES ---- */
.seccion {
  padding: 60px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.seccion-titulo {
  font-size: 1.8rem;
  font-weight: 700;
  color: #ffffff;
  text-align: center;
  margin-bottom: 30px;
  position: relative;
}

.seccion-titulo::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #00d4ff, #7c3aed);
  margin: 10px auto 0;
  border-radius: 2px;
}

.seccion-subtitulo {
  font-size: 1rem;
  color: #a0a0b0;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* ---- TABLA DE EFICIENCIA ---- */
.tabla-eficiencia {
  width: 100%;
  border-collapse: collapse;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 12px;
  overflow: hidden;
}

.tabla-eficiencia th {
  background: rgba(0, 212, 255, 0.1);
  padding: 12px 16px;
  text-align: left;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #00d4ff;
  border-bottom: 2px solid rgba(0, 212, 255, 0.2);
  cursor: pointer;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.tabla-eficiencia th:hover {
  background: rgba(0, 212, 255, 0.15);
}

.tabla-eficiencia td {
  padding: 10px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.85rem;
}

.tabla-eficiencia tr:hover {
  background: rgba(0, 212, 255, 0.03);
}

/* ---- TARJETAS DE MODELO ---- */
.catalogo-grid {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  justify-content: center;
  margin: 0 -8px;
}

.modelo-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 20px;
  width: calc(33.333% - 16px);
  min-width: 280px;
  margin: 8px;
  -ms-flex: 0 0 auto;
  flex: 0 0 auto;
  -webkit-transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  -moz-transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  -ms-transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.modelo-card:hover {
  -webkit-transform: translateY(-4px);
  -moz-transform: translateY(-4px);
  -ms-transform: translateY(-4px);
  transform: translateY(-4px);
  border-color: rgba(0, 212, 255, 0.3);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.modelo-header {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-align: start;
  align-items: flex-start;
  -ms-flex-pack: justify;
  justify-content: space-between;
  margin-bottom: 12px;
}

.modelo-nombre {
  font-size: 1.1rem;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.3;
}

.modelo-version {
  font-size: 0.8rem;
  color: #a0a0b0;
  margin-top: 2px;
}

.modelo-empresa {
  font-size: 0.8rem;
  color: #7c3aed;
  font-weight: 500;
}

.modelo-meta {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.modelo-tag {
  font-size: 0.7rem;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
  color: #a0a0b0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin: 2px 4px 2px 0;
}

.modelo-tag.cat-llm {
  border-color: rgba(0, 212, 255, 0.3);
  color: #00d4ff;
}

.modelo-tag.cat-imagen {
  border-color: rgba(124, 58, 237, 0.3);
  color: #a78bfa;
}

.modelo-tag.cat-video {
  border-color: rgba(239, 68, 68, 0.3);
  color: #fca5a5;
}

.modelo-tag.cat-audio {
  border-color: rgba(16, 185, 129, 0.3);
  color: #6ee7b7;
}

.modelo-tag.cat-multimodal {
  border-color: rgba(245, 158, 11, 0.3);
  color: #fcd34d;
}

.modelo-tag.cat-embeddings {
  border-color: rgba(99, 102, 241, 0.3);
  color: #a5b4fc;
}

.modelo-stats {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.modelo-stat {
  font-size: 0.75rem;
  color: #a0a0b0;
  margin-right: 12px;
  margin-bottom: 4px;
}

.modelo-stat strong {
  color: #e0e0e0;
}

.modelo-eficiencia {
  margin-top: 12px;
}

.eficiencia-barra {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 4px;
}

.eficiencia-barra-fill {
  height: 100%;
  border-radius: 3px;
  -webkit-transition: width 1s ease;
  -moz-transition: width 1s ease;
  -ms-transition: width 1s ease;
  transition: width 1s ease;
}

.eficiencia-barra-fill.alta {
  background: #10b981;
}

.eficiencia-barra-fill.media {
  background: #f59e0b;
}

.eficiencia-barra-fill.baja {
  background: #f97316;
}

.eficiencia-barra-fill.ineficiente {
  background: #ef4444;
}

.eficiencia-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.eficiencia-label.alta {
  color: #10b981;
}

.eficiencia-label.media {
  color: #f59e0b;
}

.eficiencia-label.baja {
  color: #f97316;
}

.eficiencia-label.ineficiente {
  color: #ef4444;
}

.modelo-descripcion {
  font-size: 0.8rem;
  color: #a0a0b0;
  margin-top: 10px;
  line-height: 1.5;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-align: start;
  align-items: flex-start;
}

/* ---- IMPACTO AMBIENTAL ---- */
.impacto-grid {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  justify-content: center;
}

.impacto-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 30px;
  -ms-flex: 1 1 300px;
  flex: 1 1 300px;
  max-width: 400px;
  text-align: center;
  margin: 12px;
  -webkit-transition: transform 0.3s ease;
  -moz-transition: transform 0.3s ease;
  -ms-transition: transform 0.3s ease;
  transition: transform 0.3s ease;
}

.impacto-card:hover {
  -webkit-transform: translateY(-3px);
  -moz-transform: translateY(-3px);
  -ms-transform: translateY(-3px);
  transform: translateY(-3px);
}

.impacto-icono {
  font-size: 2.5rem;
  margin-bottom: 15px;
  display: block;
}

.impacto-valor {
  font-size: 1.8rem;
  font-weight: 700;
  color: #ffffff;
  display: block;
  margin-bottom: 8px;
}

.impacto-label {
  font-size: 0.85rem;
  color: #a0a0b0;
  display: block;
}

.impacto-detalle {
  font-size: 0.75rem;
  color: #7c3aed;
  margin-top: 10px;
  display: block;
}

.impacto-detalle a {
  color: #a78bfa;
  text-decoration: underline;
  -webkit-transition: color 0.3s ease;
  -moz-transition: color 0.3s ease;
  -ms-transition: color 0.3s ease;
  transition: color 0.3s ease;
}

.impacto-detalle a:hover {
  color: #c4b5fd;
}

/* ---- COMPARATIVA ---- */
.comparativa-grid {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  justify-content: center;
}

.comparativa-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 24px;
  -ms-flex: 1 1 280px;
  flex: 1 1 280px;
  max-width: 350px;
  margin: 12px;
}

.comparativa-titulo {
  font-size: 1rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 16px;
  text-align: center;
}

.comparativa-item {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-pack: justify;
  justify-content: space-between;
  -ms-flex-align: center;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.85rem;
}

.comparativa-item:last-child {
  border-bottom: none;
}

.comparativa-label {
  color: #a0a0b0;
}

.comparativa-valor {
  color: #ffffff;
  font-weight: 600;
}

/* ---- PAGINACION ---- */
.paginacion {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-pack: center;
  justify-content: center;
  -ms-flex-align: center;
  align-items: center;
  padding: 20px 0;
  flex-wrap: wrap;
}

.paginacion-btn {
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  color: #e0e0e0;
  cursor: pointer;
  font-size: 0.85rem;
  font-family: inherit;
  margin: 0 3px;
  -webkit-transition: background 0.3s ease;
  -moz-transition: background 0.3s ease;
  -ms-transition: background 0.3s ease;
  transition: background 0.3s ease;
}

.paginacion-btn:hover {
  background: rgba(0, 212, 255, 0.1);
  border-color: rgba(0, 212, 255, 0.3);
}

.paginacion-btn.active {
  background: #7c3aed;
  border-color: #7c3aed;
  color: #ffffff;
}

.paginacion-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.paginacion-info {
  font-size: 0.85rem;
  color: #a0a0b0;
  margin: 0 10px;
}

/* ---- FOOTER ---- */
.footer {
  background: #050510;
  padding: 40px 20px;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-texto {
  font-size: 0.8rem;
  color: #a0a0b0;
  margin-bottom: 10px;
}

.footer-fuentes {
  font-size: 0.7rem;
  color: #666;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ---- ANIMACIONES ---- */
.fade-in {
  opacity: 0;
  -webkit-transform: translateY(20px);
  -moz-transform: translateY(20px);
  -ms-transform: translateY(20px);
  transform: translateY(20px);
  -webkit-transition: opacity 0.6s ease, transform 0.6s ease;
  -moz-transition: opacity 0.6s ease, transform 0.6s ease;
  -ms-transition: opacity 0.6s ease, transform 0.6s ease;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  -webkit-transform: translateY(0);
  -moz-transform: translateY(0);
  -ms-transform: translateY(0);
  transform: translateY(0);
}

/* ---- DEFAULT TABLE HEADER ---- */
.td-num {
  display: inline;
  color: #00d4ff;
}

.td-header-name,
.td-header-version {
  display: none;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
  .modelo-card {
    width: calc(50% - 8px);
  }
}

@media (max-width: 768px) {
  .hero-titulo {
    font-size: 1.8rem;
  }

  .hero-contador {
    margin: 0 -5px;
  }

  .contador-item {
    padding: 15px 20px;
    min-width: 120px;
  }

  .contador-numero {
    font-size: 1.5rem;
  }

  .filtros-grid {
    margin: 0;
  }

  .filtro-grupo {
    -ms-flex: 1 1 150px;
    flex: 1 1 150px;
  }

  .modelo-card {
    width: 100%;
  }

  .tabla-eficiencia {
    border: 0;
    width: 100%;
  }

  .tabla-eficiencia thead {
    display: none;
  }

  .tabla-eficiencia tr {
    display: block;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    margin-bottom: 12px;
    padding: 0;
    overflow: hidden;
  }

  .tabla-eficiencia td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    text-align: right;
  }

  .tabla-eficiencia td:last-child {
    border-bottom: none;
  }

  .tabla-eficiencia td::before {
    content: attr(data-label);
    font-weight: 600;
    color: #a0a0b0;
    text-align: left;
    flex: 0 0 40%;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }

  .tabla-eficiencia td:first-child {
    background: rgba(0, 212, 255, 0.08);
    font-weight: 700;
    font-size: 0.95rem;
    justify-content: space-between;
    padding: 12px 16px;
    text-align: left;
    border-bottom: 2px solid rgba(0, 212, 255, 0.15);
    position: relative;
  }

  .td-num {
    display: none;
  }

  .td-header-name {
    display: inline;
    color: #00d4ff;
    font-weight: 700;
  }

  .td-header-version {
    display: inline;
    color: #a0a0b0;
    font-weight: 400;
    font-size: 0.8rem;
  }

  .tabla-eficiencia td:nth-child(2) {
    display: none;
  }

  .tabla-eficiencia td:nth-child(2) {
    font-size: 0.9rem;
  }

  .tabla-eficiencia td:nth-child(2) strong {
    color: #ffffff;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 50px 15px;
  }

  .hero-titulo {
    font-size: 1.4rem;
  }

  .seccion {
    padding: 40px 15px;
  }

  .seccion-titulo {
    font-size: 1.4rem;
  }

  .contador-item {
    min-width: 100px;
    padding: 12px 15px;
  }

  .contador-numero {
    font-size: 1.3rem;
  }

  .filtro-grupo {
    -ms-flex: 1 1 100%;
    flex: 1 1 100%;
  }

  .impacto-card {
    -ms-flex: 1 1 100%;
    flex: 1 1 100%;
    max-width: 100%;
    margin: 8px 0;
  }

  .comparativa-card {
    -ms-flex: 1 1 100%;
    flex: 1 1 100%;
    max-width: 100%;
    margin: 8px 0;
  }

  .nav-tab {
    padding: 8px 14px;
    font-size: 0.75rem;
  }

  .footer-texto {
    font-size: 0.7rem;
  }
}

/* ---- TARJETAS VISIBLES ---- */
.modelo-visible {
  opacity: 1;
  -webkit-transform: translateY(0);
  -moz-transform: translateY(0);
  -ms-transform: translateY(0);
  transform: translateY(0);
}

/* ---- SCROLLBAR ---- */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #0a0a1a;
}

::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* ---- TABS NAV ---- */
.nav-tabs {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  -ms-flex-pack: center;
  justify-content: center;
  padding: 20px 0;
}

.nav-tab {
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  color: #a0a0b0;
  cursor: pointer;
  font-size: 0.85rem;
  font-family: inherit;
  margin: 4px;
  -webkit-transition: all 0.3s ease;
  -moz-transition: all 0.3s ease;
  -ms-transition: all 0.3s ease;
  transition: all 0.3s ease;
}

.nav-tab:hover {
  background: rgba(0, 212, 255, 0.05);
  border-color: rgba(0, 212, 255, 0.2);
  color: #00d4ff;
}

.nav-tab.active {
  background: rgba(0, 212, 255, 0.1);
  border-color: #00d4ff;
  color: #00d4ff;
}

/* ---- EXPORT BTN ---- */
.export-btn {
  display: inline-block;
  padding: 10px 24px;
  background: linear-gradient(135deg, #7c3aed, #00d4ff);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  font-family: inherit;
  font-weight: 600;
  -webkit-transition: opacity 0.3s ease;
  -moz-transition: opacity 0.3s ease;
  -ms-transition: opacity 0.3s ease;
  transition: opacity 0.3s ease;
}

.export-btn:hover {
  opacity: 0.85;
}

/* ---- TOOLTIP ---- */
.tooltip-container {
  position: relative;
  display: inline-block;
}

.tooltip-container .tooltip-text {
  visibility: hidden;
  background: #1a1a3e;
  color: #e0e0e0;
  text-align: center;
  border-radius: 6px;
  padding: 8px 12px;
  position: absolute;
  z-index: 200;
  bottom: 125%;
  left: 50%;
  -webkit-transform: translateX(-50%);
  -moz-transform: translateX(-50%);
  -ms-transform: translateX(-50%);
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: 0.75rem;
  border: 1px solid rgba(0, 212, 255, 0.2);
  opacity: 0;
  -webkit-transition: opacity 0.3s ease;
  -moz-transition: opacity 0.3s ease;
  -ms-transition: opacity 0.3s ease;
  transition: opacity 0.3s ease;
}

.tooltip-container:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
}

/* ---- LOADING ---- */
.loading {
  text-align: center;
  padding: 40px;
  color: #a0a0b0;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(0, 212, 255, 0.2);
  border-top-color: #00d4ff;
  border-radius: 50%;
  margin: 0 auto 10px;
  -webkit-animation: spin 1s linear infinite;
  -moz-animation: spin 1s linear infinite;
  -ms-animation: spin 1s linear infinite;
  animation: spin 1s linear infinite;
}

@-webkit-keyframes spin {
  to { -webkit-transform: rotate(360deg); }
}

@-moz-keyframes spin {
  to { -moz-transform: rotate(360deg); }
}

@-ms-keyframes spin {
  to { -ms-transform: rotate(360deg); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ---- SECCION OCULTA ---- */
.seccion-oculta {
  display: none;
}
