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

html, body {
  height: 100%;
  margin: 0;
}

/* Estructura general */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh; /* ocupa toda la altura */
  background: linear-gradient(180deg, #0d1117 0%, #161b22 40%, #0d1117 100%);
  color: #f0f6fc;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Contenedor principal */
main {
  flex: 1; /* que crezca */
  display: flex;
  flex-direction: column;
  align-items: flex-start;   /* 👈 arranca desde arriba */
  justify-content: flex-start; /* 👈 evita centrado vertical */
  padding: 20px;
}


footer {
  background: #000;          /* color de fondo */
  color: #fff;               /* color del texto */
  text-align: center;        /* centrar texto y botones */
  padding: 20px 10px;        /* espacio interno arriba/abajo - izquierda/derecha */
  font-size: 14px;           /* tamaño del texto */
  min-height: 120px;          /* altura mínima del footer */
}

/* ===== 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 {
  font-size: 0.85rem;
  color: #c9d1d9;
  margin-bottom: 0;
  font-weight: 400;
  letter-spacing: 0.5px;
}

/* ===== NAVBAR ===== */
.custom-navbar {
  background-color: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: none;
  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);
}

/* HAMBURGUESA */
.navbar-toggler {
  border: none;
}
.navbar-toggler:focus {
  box-shadow: none;
}
.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");
}

/* DROPDOWN */
.navbar-nav .dropdown {
  position: relative;
}
.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;
}

/* DESKTOP HOVER DROPDOWN */
@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);
  }
}

/* MOBILE NAVBAR */
@media (max-width: 991px) {
  .navbar-collapse {
    background-color: #000 !important;
    padding: 15px 0;
    border-top: 1px solid #1f6feb;
  }

  .navbar-nav .nav-link {
    color: #f0f6fc !important;
    font-weight: 500 !important;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    padding: 14px 22px;
    margin: 2px 0;
    width: 100%;
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
    text-align: left;
  }

  .navbar-nav .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: #eb1f1f !important;
    border-left: 3px solid #eb1f1f;
  }

  /* 🔹 Menú desplegable en móvil más compacto */
  .dropdown-menu {
    background-color: #000;
    border: none;
    border-radius: 0;
    padding: 0;
  }

  .dropdown-item {
    color: #c9d1d9 !important;
    padding: 6px 12px;    /* 🔹 menos alto y ancho */
    font-size: 0.75rem;   /* 🔹 letra más pequeña */
    border-radius: 4px;   /* esquinas más compactas */
  }

  .dropdown-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: #eb1f1f !important;
    padding-left: 16px;   /* ajuste menor al hover */
  }
}

/* ===== CONTENEDOR DE EVENTOS HOY ===== */
.contenedor-eventos-hoy {
  display: flex;
  justify-content: center;
  width: 100%;
  padding: 10px 0;
}

.cuadro-eventos-hoy {
  background-color: #161b22;
  color: #ffffff;
  border: 2px solid #1f6feb;
  border-radius: 16px;
  padding: 25px 30px;
  width: 70%;   /* ocupa el 95% del ancho de la pantalla */
  margin: 0 auto; /* centrado */
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

#eventos-hoy-titulo {
  font-size: 1.2rem;
  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: 0; /* 🔹 ahora los cuadros están pegados uno con otro */
}

.evento-hoy-item {
  background: linear-gradient(90deg, #0d1117, #1c2733);
  border: 1px solid #30363d;
  border-radius: 10px;
  padding: 8px 18px;
  display: flex;
  justify-content: space-between; /* 🔹 separa título/izq y temporizador/der */
  align-items: center;
  font-size: 1rem;
  font-weight: 500;
  color: #f0f6fc;
  transition: background 0.3s ease;
  cursor: pointer;
  gap: 12px;
  flex-wrap: nowrap;
  margin-bottom: 4px; /* para dar respiro entre items */
  text-decoration: none !important;
}

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

/* contenedor izquierdo: hora + icono + título */
.evento-hoy-izq {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1; /* ocupa todo el espacio disponible */
}

/* contenedor derecho: temporizador */
.evento-hoy-der .temporizador {
  font-weight: bold;
  color: #1f6feb;
  white-space: nowrap; /* evita que se corte en varias líneas */
  font-size: 0.95rem;
}

.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;
}

.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; }
}

/* ===== 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);
}

/* ===== 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);
}

.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, background-color 0.2s ease;
}

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

/* ✅ Temporizador con el mismo estilo que los nombres de los eventos */
.evento-hoy-der .temporizador {
  font-weight: 500;          /* mismo grosor que el nombre */
  font-size: 1rem;           /* mismo tamaño */
  color: #f0f6fc;            /* mismo color */
  text-shadow: 1px 1px 2px #000; /* mismo sombreado para resaltar */
}
/* ===== RESPONSIVE CELULARES (compacto tipo marcador) ===== */
@media (max-width: 576px) {

  /* 🔹 Main desde arriba */
  main {
    justify-content: flex-start !important; /* el contenido arranca arriba */
  }

  /* Contenedor de eventos */
  .contenedor-eventos-hoy {
    justify-content: flex-start; /* no centrado */
    padding-top: 10px;           /* espacio pequeño arriba */
  }

  .cuadro-eventos-hoy {
    width: 100%;
    max-width: 100%;
    padding: 10px 8px;
    border-radius: 8px;
    margin: 0;                  /* elimina margen vertical */
  }

  #eventos-hoy-titulo {
    font-size: 0.95rem;
    margin-bottom: 10px;
  }

  /* Item de evento compacto */
  .evento-hoy-item {
    min-height: 30px;        /* 🔹 altura mínima reducida */
    padding: 6px 8px;       /* menos espacio interno */
    font-size: 0.7rem;      /* letra más pequeña */
    border-radius: 6px;     /* esquinas más compactas */
    max-width: 100%;        /* no excede el ancho del item */
    margin-top: 0px;        /* separación del evento principal */
  }

  /* Lado izquierdo */
  .grupo-hora-icono {
    gap: 6px;
  }

  .evento-hoy-hora,
  .en-vivo-parpadeo {
    font-size: 0.68rem;
    padding: 2px 6px;
    border-radius: 4px;
    min-width: 55px;        /* cajita angosta */
  }

  .icono-evento-img {
    width: 14px;
    height: 14px;
  }

  .evento-hoy-nombre {
    font-size: 0.75rem;
    line-height: 1.2;
    margin-left: 2px;
    flex: 1;
  }

  /* Lado derecho (temporizador compacto) */
  .evento-hoy-der {
    flex-shrink: 0;
    text-align: right;
  }

  .evento-hoy-der .temporizador {
    font-size: 0.7rem;
    font-weight: 500;
    color: #f0f6fc;
  }

  /* Botón de programación */
  .cuadro-eventos-hoy .btn-programacion {
    width: 100%;
    font-size: 0.78rem;
    padding: 7px 0;
    margin-top: 8px;
  }

  /* Footer */
  footer {
    font-size: 0.78rem;
    padding: 10px 8px;
  }

  .paypal-boton {
    padding: 7px 14px;
    font-size: 0.78rem;
  }
}