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

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

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

  .dropdown-menu {
    background-color: #000;
    border: none;
    border-radius: 0;
    padding: 0;
  }

  .dropdown-item {
    color: #c9d1d9 !important;
    padding: 6px 12px;
    font-size: 0.75rem;
    border-radius: 4px;
  }

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


/* ===== CONTENEDOR DE CANALES ===== */
.card {
  --bs-card-border-width: 0.0625rem;
  --bs-card-border-color: hsla(0,0%,100%,.1);
  --bs-card-border-radius: 0.75rem;
  --bs-card-box-shadow: 0rem 0.375rem 0.75rem rgba(30,32,34,.2);
  background-color: #141d26;
  border: var(--bs-card-border-width) solid var(--bs-card-border-color);
  border-radius: var(--bs-card-border-radius);
  box-shadow: var(--bs-card-box-shadow);
  height: 260px;
  display: flex;
  flex-direction: column;
}

.card-body {
  padding: 1.3rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}

.card-title {
  margin-bottom: 0.5rem;
  font-weight: bold;
  font-size: 1rem;
  color: #fff;
  text-align: center;
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-wrap: balance;
}

.logoContenedor {
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.logoCanal {
  border: 1px solid #353b47;
  border-radius: 10px;
  padding: 5px;
  height: 65px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.img2 {
  height: 60px;
  width: 120px;
  object-fit: contain;
}

.card .btn {
  border-radius: 6px;
  font-weight: bold;
  text-transform: uppercase;
  margin-top: auto;
}

/* ===== FOOTER ===== */
footer {
  background: #000;
  color: #fff;
  text-align: center;
  padding: 20px 10px;
  font-size: 14px;
  min-height: 120px;
}

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

/* ===== RESPONSIVE CELULARES ===== */
@media (max-width: 576px) {
  main {
    justify-content: flex-start !important;
  }

  .card {
    height: auto;
  }

  .card-body {
    padding: 1rem;
  }

  .card-title {
    font-size: 0.9rem;
  }

  .logoContenedor,
  .logoCanal {
    height: 50px;
  }

  .img2 {
    height: 50px;
    width: 100px;
  }
    /* Ajuste de logos de canales solo en móvil */
  .logoContenedor {
    height: 48px; /* un poco más pequeño */
  }

  .logoCanal {
    height: 50px; /* reducido */
    padding: 3px; /* menos padding */
  }

  .img2 {
    height: 48px; /* ajusta para que no se salga */
    width: 95px;  /* proporcional al nuevo height */
  }

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