/* ============================================================
   INDEX.CSS — Página de inicio (ULTRA-LIGERO)
   ============================================================ */

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 10px;
  position: relative;
  z-index: 2;
}

main {
  position: relative;
  z-index: 2;
}

/* ==================== INFO BANNER ==================== */
.info-banner {
  background-color: #2c3e50;
  border: 2px solid #34495e;
  padding: 15px;
  border-radius: 15px;
  /* box-shadow eliminada: reemplazada por borde */
  font-family: Arial, sans-serif;
  color: #ecf0f1;
  margin: 15px auto;
  max-width: 800px;
  width: 90%;
  font-size: 16px;
  text-align: center;
  position: relative;
}

.info-banner a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid transparent;
}

@media (hover: hover) {
  .info-banner a:hover {
    color: var(--accent-2);
    border-bottom-color: currentColor;
  }
}

/* ==================== CHANNELS SECTION ==================== */


.section-title {
  font-size: 1.8em;
  text-align: center;
  color: #ddd;
  position: relative;
    padding: 1em;
    text-align: center;
}

/* ==================== GRID DE CANALES ==================== */
.channels-grid {
    display: flex;
    gap: 0em;
    flex-wrap: wrap;
    justify-content: center;
    
}

.loading {
  grid-column: 1 / -1;
  text-align: center;
  padding: 2.5rem 1rem;
  color: var(--text-secondary);
}

/* ==================== CARD DE CANAL ==================== */
.channel-card {
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
  /* sin transition */
}

.channel-card img {
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    object-fit: contain;
  }

.channel-card .name {
  display: block;
  font-weight: 700;
  color: var(--text-primary);
  font-size: 0.92rem;
  line-height: 1.35;
  text-align: center;
  pointer-events: none;
      display: none;
}

@media (max-width: 768px) {
    .channel-card {
        width: 48%;
    }
}
@media (max-width: 480px) {
    .channel-card {
        width: 48%;
    }
}
@media (hover: hover) and (pointer: fine) {
  .channel-card:hover {
    /* 🔥 Colores sólidos premezclados */
    transform: scale(1.1);
  }

  .channel-card:hover img { border-color: var(--accent-2); }
  .channel-card:hover .name { color: var(--accent-2); }
}

@media (hover: none) and (pointer: coarse) {
  .channel-card:active {
    background-color: #1a3a4a;
    border-color: #3fe2ff;
  }
}

.channel-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ==================== RESPONSIVE ==================== */


/* ==================== PREFERENCIAS DE MOVIMIENTO ==================== */

.highlight {
    color: #2980b9;
    font-weight: bold;
}

/* ==================== INFO CLOUD ==================== */

.info-cloud {
    background-color: #2c3e50;
    border: 2px solid #34495e;
    padding: 15px;
    border-radius: 15px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    font-family: Arial, sans-serif;
    color: #ecf0f1;
    margin: 15px auto;
    max-width: 800px;
    width: 90%;
    font-size: 16px;
    text-align: center;
    position: relative;
}

/* Botón cerrar */
.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    color: #ecf0f1;
    font-size: 18px;
    cursor: pointer;
}

.close-btn:hover {
    color: #e74c3c;
}

/* Texto resaltado */
.highlight {
    color: #2980b9;
    font-weight: bold;
}

/* Enlace */
.link {
    color: #3498db;
    text-decoration: none;
    font-weight: bold;
}

.link:hover {
    text-decoration: underline;
}

/* Responsividad */
@media (max-width: 768px) {
    .info-cloud {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .info-cloud {
        font-size: 12px;
    }
}