/* RESET BÁSICO */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* VIDEO DE FONDO */
#video-fondo {
  position: fixed;
  top: 0;
  left: 0;
  min-width: 100%;
  min-height: 100%;
  object-fit: cover;
  z-index: -1;
  filter: blur(10px) brightness(0.7);
}

html, body {
  height: 100%;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #0d1117;
  color: #ffffff;
  padding-bottom: 60px;
  display: flex;
  flex-direction: column;
}

/* ENCABEZADO */
header {
  position: relative;
  background-color: rgba(0, 0, 0, 0.95);
  padding: 10px 0 5px;
  text-align: center;
  border-bottom: 2px solid #1f6feb;
}

header h1 {
  font-size: 2.2rem;
  color: #eb1f1f;
  margin-bottom: 5px;
}

header p,
.eslogan {
  font-size: 0.85rem;
  color: #c9d1d9;
  margin-bottom: 0px;
  font-weight: 400;
  letter-spacing: 0.5px;
}

/* LOGO */
.logo {
  width: 120px;
  height: auto;
  transition: transform 0.3s ease-in-out;
}

.logo:hover {
  transform: scale(1.08);
}

/* MAIN */
main {
  flex: 1;
  padding: 20px;
}

section h1 {
  color: #f0f6fc;
  margin-bottom: 30px;
  text-shadow: 1px 1px 4px #000;
}

/* CARDS */
.card {
  background-color: rgba(255, 255, 255, 0.05);
  border: none;
  border-radius: 12px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
}

.card-title {
  color: #ffffff;
}

.card-text {
  color: #c9d1d9;
}

.card-uniforme {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.card-uniforme .card-img-top {
  height: 200px;
  object-fit: cover;
}

.card-uniforme .card-body {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-destacada {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  margin-bottom: 40px;
  height: 400px;
}

.card-destacada img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 12px;
}

.card-destacada .overlay {
  position: absolute;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  width: 100%;
  padding: 20px;
  transition: background 0.3s ease;
}

.card-destacada .overlay h2 {
  margin: 0;
  font-size: 1.6rem;
  color: #ffffff;
}

.card-destacada .overlay p {
  margin: 5px 0 0;
  color: #dddddd;
  font-size: 1rem;
}

.card-destacada:hover .overlay {
  background: rgba(0, 0, 0, 0.8);
}

/* TRANSMISIÓN */
.card-transmision .preframe {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background-color: #000;
  border-radius: 12px;
}

.card-transmision iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* FOOTER */
footer {
  background-color: #1f1f1f;
  color: #c9d1d9;
  text-align: center;
  padding: 10px 0;
  font-size: 1rem;
}

.paypal-donacion {
  margin-top: 20px;
}

.paypal-enlace {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.paypal-logo {
  height: 30px;
  margin-right: 10px;
}

.paypal-boton {
  background-color: #0070ba;
  color: white;
  font-weight: bold;
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.paypal-boton:hover {
  transform: scale(1.05);
  background-color: #005c9c;
}

/* SIDEBAR SCROLL */
#sidebar-scroll {
  overflow-y: auto;
  max-height: 360px;
}

#sidebar-scroll::-webkit-scrollbar {
  width: 6px;
}

#sidebar-scroll::-webkit-scrollbar-thumb {
  background-color: #666;
  border-radius: 3px;
}

/* EVENTOS */
#proximo-evento {
  background: #242834;
  padding: 12px 20px;
  border-radius: 10px;
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.1rem;
}

.evento-en-vivo {
  background: linear-gradient(to right, #0d2c36, #2a5063);
  padding: 12px 20px;
  border-radius: 10px;
  width: 90%;
  color: white;
  font-weight: bold;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 600px;
}

/* BOTÓN DE PROGRAMACIÓN */
.btn-programacion {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(90deg, #0f2027, #203a43, #2c5364);
  color: white;
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: bold;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.btn-programacion:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.6);
}

.icono-btn {
  width: 24px;
  height: 24px;
}

.navbar-nav .nav-link:hover,
.nav-item .nav-link:hover,
header nav ul.nav li a:hover {
  color: #eb1f1f !important;
}


/* NAVBAR MODERNA */
.custom-navbar {
  background: rgba(10, 15, 30, 0.75);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid #1f6feb;
  padding: 10px 0x;
  z-index: 999;
}

.custom-navbar .nav-link {
  color: #ffffff !important;
  font-weight: 600;
  font-size: 1rem;
  padding: 10px 20px;
  border-radius: 8px;
  transition: all 0.3s ease-in-out;
}

.custom-navbar .nav-link:hover {
  background-color: rgba(255, 255, 255, 0.05);
  color: #eb1f1f !important;
  transform: scale(1.05);
}

/* BOTÓN HAMBURGUESA */
.navbar-toggler {
  border: none;
}
.navbar-toggler:focus {
  box-shadow: none;
}

/* RESPONSIVE NAVBAR */
@media (max-width: 991.98px) {
  .custom-navbar .nav-link {
    width: 100%;
    margin: 4px 0;
    font-size: 1rem;
    border-radius: 12px;
  }
}
/* NAVBAR MEJORADO Y ESTILO COMPATIBLE CON TU TEMA */
.custom-navbar {
  background-color: rgba(0, 0, 0, 0.9);
  border-bottom: none; /* Quita la línea azul extra */
  padding: 12px 0;
  z-index: 999;
}

.custom-navbar .nav-link {
  color: #ffffff !important;
  font-weight: bold;
  padding: 8px 16px;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.custom-navbar .nav-link:hover {
  color: #eb1f1f !important;
  background-color: rgba(255, 255, 255, 0.05);
  transform: scale(1.05);
}

.custom-navbar .nav-link:hover {
  color: #eb1f1f !important;
  background-color: rgba(255, 255, 255, 0.05);
  transform: scale(1.05);
}

/* Cambia el color del icono hamburguesa */
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='white' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}
/* === EVENTOS DE HOY - ESTILO FUTBOLPLAY === */

.contenedor-eventos-hoy {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.cuadro-eventos-hoy {
  background-color: #161b22;
  color: #ffffff;
  border: 2px solid #1f6feb;
  border-radius: 16px;
  padding: 25px 30px;
  max-width: 750px;
  width: 95%;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.titulo-eventos-hoy {
  font-size: 1.6rem;
  font-weight: bold;
  margin-bottom: 20px;
  border-bottom: 2px solid #30363d;
  padding-bottom: 10px;
  color: #ffffff;
  text-align: center;
  text-shadow: 1px 1px 2px #000;
}

.lista-eventos-hoy {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.evento-hoy-item {
  background: linear-gradient(90deg, #0d1117, #1c2733);
  border: 1px solid #30363d;
  border-radius: 10px;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  font-size: 1rem;
  font-weight: 500;
  color: #f0f6fc;
  transition: background 0.3s ease;
  cursor: pointer;
  gap: 12px;
  flex-wrap: nowrap;
}

.evento-hoy-item:hover {
  background: linear-gradient(90deg, #1c2733, #223544);
}

.grupo-hora-icono {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.evento-hoy-hora {
  background-color: #1f6feb;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: bold;
  color: #ffffff;
  min-width: 90px;
  text-align: center;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  white-space: nowrap;
}

.en-vivo-parpadeo {
  background-color: #eb1f1f !important;
  animation: parpadeo 1s infinite;
}

.icono-evento-img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  vertical-align: middle;
  filter: drop-shadow(1px 1px 2px rgba(0, 0, 0, 0.6));
}

.evento-hoy-nombre {
  flex: 1;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.4;
  white-space: normal;
}

@keyframes parpadeo {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* === RESPONSIVE MÓVIL AJUSTADO PARA MANTENER ESTRUCTURA === */
@media (max-width: 576px) {
  .cuadro-eventos-hoy {
    padding: 16px 12px;
    border-radius: 10px;
    max-width: 100%;
    width: 100%;
  }

  .titulo-eventos-hoy {
    font-size: 1.2rem;
    margin-bottom: 14px;
  }

  .evento-hoy-item {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    padding: 8px 10px;
    gap: 10px;
    border-radius: 8px;
    min-height: auto;
  }

  .grupo-hora-icono {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    max-width: fit-content;
  }

  .evento-hoy-hora,
  .en-vivo-parpadeo {
    font-size: 0.78rem;
    padding: 4px 10px;
    border-radius: 6px;
    min-width: 72px;
    text-align: center;
    display: inline-flex;
    justify-content: center;
  }

  .icono-evento-img {
    width: 17px;
    height: 17px;
    object-fit: contain;
    filter: drop-shadow(1px 1px 1px rgba(0, 0, 0, 0.5));
  }

  .evento-hoy-nombre {
    font-size: 0.88rem;
    line-height: 1.3;
    flex: 1;
    white-space: normal;
    margin-left: 6px;
  }

  .cuadro-eventos-hoy .btn-programacion {
    width: 100%;
    font-size: 0.9rem;
    padding: 10px 0;
    margin-top: 12px;
  }

  .cuadro-eventos-hoy .btn-programacion .icono-btn {
    display: none;
  }

  .text-center.mb-4 {
    margin-top: 14px;
  }
}


/* === BOTÓN VOLVER ARRIBA === */
#btnVolverArriba {
  position: fixed;
  bottom: 24px;
  right: 20px;
  z-index: 999;
  background: rgba(2, 23, 42, 0.7);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  font-size: 18px;
  display: none;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(6px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

#btnVolverArriba i {
  pointer-events: none;
}

#btnVolverArriba:hover {
  transform: translateY(-4px) scale(1.05);
}
.lista-opciones .evento-hoy-item {
  font-size: 0.95rem;
  padding-left: 40px;
  border-left: 2px solid #1f6feb;
  margin-top: 5px;
}
.opcion-desplegable {
  margin-left: 15px;
  padding: 6px 12px;
  background-color: #1c2733;
  border-radius: 6px;
  font-size: 14px;
  color: #fff;
  cursor: pointer;
  margin-bottom: 4px;
  transition: background-color 0.2s ease;
}

.opcion-desplegable {
  text-decoration: none;
}

.opcion-desplegable:hover {
  background-color: #263645;
}
@media (max-width: 576px) {
  .lista-opciones .evento-hoy-item {
    font-size: 0.85rem;
    padding-left: 20px;
    border-left: 2px solid #1f6feb;
    margin-top: 4px;
    gap: 8px;
  }

  .opcion-desplegable {
    font-size: 0.82rem;
    padding: 6px 10px;
    margin-left: 10px;
    border-radius: 5px;
    line-height: 1.3;
  }
}

/* ========== DROPDOWN GENERAL ========== */
.navbar-nav .dropdown {
  position: relative;
}

/* Ítems del menú */
.dropdown-item {
  color: white;
  padding: 12px 20px;
  border-radius: 0.5rem;
  transition: background-color 0.3s ease;
}

.dropdown-item:hover {
  background-color: #eb1f1f;
  color: white;
}

/* ========== ESTILOS PARA ESCRITORIO (HOVER) ========== */
@media (min-width: 992px) {
  .navbar-nav .dropdown-menu {
    display: block;
    visibility: hidden;
    opacity: 0;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    z-index: 1000;
    border-radius: 0.5rem;
    background-color: #000;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
    padding: 0.3rem 0;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    transform: translateY(10px);
  }

  .navbar-nav .dropdown:hover .dropdown-menu {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========== ESTILOS PARA MÓVILES (CLICK) ========== */
@media (max-width: 991px) {
  .dropdown-menu {
    display: none;
    position: static;
    float: none;
    transform: none;
    box-shadow: none;
    background-color: #000;
    opacity: 1;
    visibility: visible;
    padding: 0.3rem 0;
    border-radius: 0.5rem;
  }

  .dropdown.show .dropdown-menu {
    display: block;
  }
}

#eventos-hoy-titulo {
  text-align: center;
  font-size: 20px;
  font-weight: bold;
}

/* Ajuste para móviles */
@media (max-width: 576px) {
  #eventos-hoy-titulo {
    font-size: 12px;    /* Un poco más pequeño en móvil */
  }
}
