/* Fondo azul del menú */
.hero {
  background-color: #f8f0eb;
  /* azuro institucional aproximado */
}

/* Ajustes rápidos para móviles */
@media (max-width: 576px) {
  .hero h1 {
    font-size: 1.6rem;
  }

  .hero .btn {
    font-size: 1rem;
  }
}

/* ======  FUENTES  ====== */
body,
.navbar-nav .nav-link,
p,
li,
td,
th,
small {
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  /* Regular */
}

h1,
h2,
h3,
h4,
h5,
h6,
.fw-bold,
.card-header,
.btn {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  /* Bold */
}

/* ======  OTROS AJUSTES RÁPIDOS  ====== */
.hero {
  background-color: #f8f0eb;
}

/* Justificar todo el texto de párrafo */
p {
  text-align: justify;
  text-justify: inter-word;
  /* mejor separación de palabras */
}

/* Hero imagen full-width */
.hero-image {
  line-height: 0;
  /* elimina pequeño espacio inferior */
}

.hero-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* Sección Presentación – fondo azul + texto blanco */
#presentacion {
  background-color: #f8f0eb;
  color: #fff;
}

/* Justificar solo los párrafos de esta sección */
#presentacion p {
  text-align: justify;
  text-justify: inter-word;
}

/* Fondo imagen completa */
#concurso .bg-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
}

/* Fondo imagen completa */
section.py-5.position-relative .bg-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
}

/* Icono hamburguesa blanco */
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255,255,255,1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.hero-image img,
.hero-image .d-lg-none img {
  display: block;
  line-height: 0;
}

#agenda img {
  display: block;
  line-height: 0;
}

/* Contenedor del dropdown */
.dropdown-menu-dark {
  background-color: #b4b5a0;
  border: none;
  border-top: 2px solid rgb(0, 0, 0);
  /* línea de separación */
  border-radius: 0 0 6px 6px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
  margin-top: 0;
  animation: fadeIn 0.2s ease-in-out;
}

/* Animación suave al aparecer */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Elementos del dropdown */
.dropdown-item {
  color: #0c0c0c;
  font-weight: 500;
  padding: 10px 20px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

/* Hover más claro */
.dropdown-item:hover,
.dropdown-item:focus {
  background-color: #9c9c98;
  color: #0c0c0c;
}

/* Flecha del dropdown (más visible) */
.dropdown-toggle::after {
  border-top-color: #0c0c0c;
  transition: transform 0.2s ease;
}

.dropdown-item {
  white-space: normal;
  /* permite salto de línea */
  word-break: break-word;
}

.dropdown-menu-dark {
  box-shadow: 0 4px 10px rgba(0, 0, 0, .25);
}

@media (max-width: 576px) {
  .dropdown-menu {
    min-width: 260px;
    /* ajusta el valor a tu gusto */
    width: auto;
  }
}

/* Reducir el ancho de los controles a solo el icono + un pequeño margen */
#panelistasCarousel .carousel-control-prev,
#panelistasCarousel .carousel-control-next {
  width: 50px;
  /* ancho del icono + margen */
  height: 50px;
  /* alto del icono + margen */
  top: 50%;
  /* centrado vertical */
  transform: translateY(-50%);
  margin: 0 10px;
  /* separación de los bordes */
  border-radius: 50%;
}

/* Asegurar que el icono quede centrado */
#panelistasCarousel .carousel-control-prev-icon,
#panelistasCarousel .carousel-control-next-icon {
  width: 55px;
  height: 55px;
}

@media (max-width: 576px) {

  #panelistasCarousel .carousel-control-prev,
  #panelistasCarousel .carousel-control-next {
    display: none;
  }
}

/*ESTILOS POP-UP*/
.popup-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.7);
  justify-content: center;
  align-items: center;
  z-index: 1050;
}

.popup-overlay.active {
  display: flex;
}

.popup-content {
  position: relative;
  max-width: 1000px;
  width: 90%;
}

.popup-image {
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
}

.popup-close {
  position: absolute;
  top: -10px;
  right: -10px;
  background: #fff;
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.3);
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

#panel a {
    color: #1a1a1a;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    padding-bottom: 3px;
    transition: all 0.3s ease;
    cursor: pointer;
}

#panel a:hover {
    color: #1a1a1a;
    border-bottom-color: #1a1a1a;
    transform: translateY(-2px);
}
#panel a::after {
    content: " ↗";
    font-size: 0.8em;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

#panel a:hover::after {
    opacity: 1;
}

#panel a::after {
    content: " ↗";
    font-size: 0.8em;
    opacity: 0.7;
}

@media (max-width: 768px) {
    #panel a::after {
        opacity: 1;
        color: #1a1a1a;
        font-size: 0.9em;
    }
}