/* 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 {
  background-color: #0f0f0f;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ENCABEZADO */

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

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

header p {
  font-size: 1rem;
  color: #c9d1d9;
  margin-bottom: 5px;
}

.logo {
  width: 150px;
  height: auto;
  transition: transform 0.3s ease-in-out;
}

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

/* NAVBAR */
nav ul,
.navbar-nav,
header nav ul.nav {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  padding-left: 0;
  margin: 10px 0;
}

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

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

/* CARD GENERICA */
.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 */
.card-uniforme {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.card-uniforme .card-img-top {
  height: 200px;
  width: 100%;
  object-fit: cover;
  background-color: #000;
}

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

/* EVENTOS */
.evento-card {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 15px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.evento-card img {
  height: 100px;
  width: 100px;
  object-fit: cover;
  border-radius: 8px;
  background-color: #000;
}

.evento-info h5 {
  margin: 0;
  color: #ffffff;
}

.evento-info p {
  margin: 5px 0 0;
  color: #c9d1d9;
  font-size: 0.9rem;
}

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

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

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

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

/* Cada evento en vivo en línea */
.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;
}

.evento-en-vivo .btn {
  font-size: 0.9rem;
}

/* NAVBAR colapsado en móviles */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background-color: transparent !important;
    padding: 0;
    margin: 0;
    border: none;
  }

  .navbar-nav .nav-link {
    display: block;
    padding: 12px;
    margin: 2px auto;
    width: 100%;
    max-width: 300px;
    border-radius: 8px;
  }

  .navbar-nav .nav-link:hover {
    background-color: #1c1f25;
    color: #eb1f1f !important;
  }
}

/* NAVBAR destacada heredada */
.nav-destacada {
  display: flex;
  justify-content: center;
  gap: 20px;
  list-style: none;
  padding-left: 0;
  margin-top: 15px;
}

.nav-destacada li a {
  color: #58a6ff;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s;
}

.nav-destacada li a:hover {
  color: #f0f6fc;
}

/* 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 MEJORADO Y ESTILO COMPATIBLE CON TU TEMA */
.custom-navbar {
  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;
  background-color: transparent;
  text-decoration: none;
}

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

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

@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);
  }
}

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