body {
  font-family: 'Segoe UI', sans-serif;
  margin: 0;
  padding: 0;
  background-color: #fafafa;
  color: #333;
}

/* Banner */
.banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 20px;           /* 🔹 menos espacio lateral */
  background-color: #3f5c2e;
  background-image: url("../imagenes");
  background-size: cover;
  background-position: center;
  position: fixed;             /* 🔹 siempre visible */
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  overflow: visible;
  box-sizing: border-box;      /* 🔹 asegura márgenes correctos */
}



/* Logo a la derecha */
.logo-banner {
  height: 50px;
  margin-right: 10px;          /* 🔹 un pequeño respiro, sin empujarlo demasiado */
}


/* Ícono del menú con cuadrado */
.menu-icon {
  position: relative; /* el menú se anclará a este contenedor */
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.menu-box {
  width: 45px;
  height: 45px;
  background-color: #b3cd52;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 2px;
  transition: background-color 0.3s ease;
}

.menu-box:hover {
  background-color: #76ad57;
}

/* Menú desplegable */
.menu {
  position: absolute;
  top: 55px;           /* justo debajo del botón */
  left: 0;             /* alineado al contenedor del icono */
  width: 250px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: rgba(111, 168, 90, 0.95);
  backdrop-filter: blur(6px);
  border-radius: 4px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  padding: 5px 0;
 

  /* oculto inicialmente con animación */
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.28s ease, transform 0.28s ease;
  pointer-events: none;
  z-index: 30;
}

/* estado activo */
.menu.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* enlaces del menú */
.menu a {
  display: block;
  width: 100%;
  color: #fff;
  text-decoration: none;
  padding: 12px 18px;
  font-size: 15px;
  font-weight: 500;
  transition: background 0.25s, padding-left 0.25s;
  box-sizing: border-box;
}

.menu a:hover {
  background: rgba(255,255,255,0.12);
  padding-left: 26px;
}

/* Debajo del banner */
.debajo-banner {
  text-align: center;
  margin-top: 0px;
  background-color: #3f5c2e;
  background-image: url("imagenes/TEXTURA.png");
  padding: 80px 10px;
}

.logo-principal {
  width: 400px;
  max-width: 90%;
}

.texto-logo {
  font-size: 1.2em;
  margin-top: 10px;
  color: #ffffff;
}



.franja-naranja {
  background-color: #e96908;
  color: white;
  padding: 20px 0;
  margin: 0;              /* elimina separación */
  width: 100%;            /* ocupa todo el ancho */
  text-align: center;
}

.franja-naranja h2 {
  margin: 0;
  font-size: 1.5em;
  letter-spacing: 2px;
}

.franja-naranja h2 {
  margin: 0;
  font-size: 1.3em;
  letter-spacing: 2px;
}

/* ===== SLIDER ===== */
.slider-container {
  position: relative;
    z-index: 2;
  overflow: visible;   /* permite mostrar flechas fuera */
  width: 90%;
  max-width: 800px;
  margin: 40px auto;
  padding: 0 90px;     /* espacio para flechas visibles a los lados */
  box-sizing: border-box;
}

.slider {
  position: relative;
  max-width: 90%;
  margin: auto;
  overflow: hidden;
  border-radius: 10px;
  height: auto; /* 🔹 permite que crezca según la imagen */
}


.slides {
  display: flex;
  width: 100%;
  transition: transform 0.8s ease-in-out;
}

.slides img {
  width: 100%;
  height: auto;       /* 🔹 altura se ajusta a proporción natural */
  display: none;
  object-fit: contain; /* 🔹 sin recorte */
  border-radius: 10px;
  background: #fff;   /* 🔹 relleno si sobra espacio */
  margin: 0 auto;
}

.slides img.active {
  display: block;
}

/* Flechas fuera del slider */
.prev, .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 42px;
  color: white;
  cursor: pointer;
  z-index: 40;
  user-select: none;
  background: rgba(63,92,46,0.9);
  border: none;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.12s;
}

.prev:hover, .next:hover {
  background: #e96908;
  transform: translateY(-50%) scale(1.03);
}

/* Mover flechas fuera (ajusta los valores si quieres más afuera) */
.prev {
  left: -90px; /* distancia desde el borde de la página */
}

.next {
  right: -90px;
}

/* Audio */
.audio-section {
  text-align: center;
  padding: 0px 0 0px 0;
  margin-top: -30px;
  
  
}

.audio-section h2 {
  margin-bottom: 25px;
  font-size: 1.6em;
  font-weight: 600;
  color: #3f5c2e;
  letter-spacing: 1px;
}

/* === CONTENEDOR DEL REPRODUCTOR === */
.audio-player {
  display: flex;
  justify-content: center;
  align-items: center;
  background: #ffffff;
  border: 2px solid #ffffff;
  border-radius: 12px;
  padding: 15px 25px;
  width: 90%;
  max-width: 650px;
  margin: 0 auto 40px auto;

  transition: transform 0.25s ease, box-shadow 0.25s ease;
}



/* === ELEMENTO DE AUDIO === */
.audio-player audio {
  width: 100%;
  height: 40px;
  outline: none;
  border-radius: 6px;
}

.slider-description {
  max-width: 700px;
  margin: -50px auto 40px auto;  /* 🔹 aumenta el espacio inferior */
  font-size: 1.1em;
  color: #333;
  background: none;
  border: none;
  border-radius: 0;
  box-shadow: none;
  line-height: 1.6;
  font-weight: 500;
  text-align: center;
}

/* Quitar borde azul de foco */
.audio-player audio:focus {
  outline: none;
  border: none;
}

/* ===== SECCIÓN CRONOGRAMA ===== */
.cronograma-section {
  background-color: #3f5c2e;
  color: #fff;
  text-align: center;
  padding: 30px 30px;
}

.cronograma-section h2 {
  font-size: 1.8em;
  margin-bottom: 30px;
  letter-spacing: 2px;
}
.cronograma-section img {
  width: 100%;
  max-width: 700px;
  display: block;
  margin: 0 auto 60px auto; /* 🔹 aumenta el espacio inferior (100px o más si deseas) */
  border-radius: 10px;
}
.cronograma-img {
  width: 100%;
  max-width: 800px;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}

/* ===== SECCIÓN MAPA ===== */
.mapa-section {
  background-color: #fff;
  text-align: center;
  padding: 20px 20px;
  color: #3f5c2e;
}

.mapa-section h2 {
  font-size: 1.8em;
  margin-bottom: 20px;
  letter-spacing: 1.5px;
}

.mapa-img {
  width: 95%;
  max-width: 800px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}


/* Responsive pequeño */
@media (max-width: 768px) {
  .slides img {
    width: 100%;
    height: auto;
    object-fit: contain; /* mantiene proporción */
  }

  .prev, .next {
    font-size: 1.5rem;
    padding: 8px;
  }
}

/* ========================= */
/* 📱 AJUSTES DEL SLIDER EN MÓVIL */
/* ========================= */
@media (max-width: 768px) {
  .slider-container {
    width: 100%;
    padding: 0;
    margin: 25px auto;       /* 🔹 separa arriba y abajo */
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;  /* 🔹 asegura espacio vertical */
  }

  .slider {
    width: 100%;
    height: auto;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
  }


  .slides {
    width: 100%;
    height: auto;
  }

  .slides img {
    width: 100%;
    height: auto;            /* 🔹 mantiene proporción original */
    object-fit: contain;     /* 🔹 muestra toda la imagen */
    display: none;
    border-radius: 10px;
    margin: 0 auto;
    background: #000;        /* 🔹 fondo negro si sobra espacio */
  }

  .slides img.active {
    display: block;
  }

  /* 🔸 Flechas adaptadas */
  .prev, .next {
    width: 42px;
    height: 42px;
    font-size: 26px;
    background: rgba(63, 92, 46, 0.9);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    border: none;
    color: #fff;
  }

  .prev {
    left: 12px;
  }

  .next {
    right: 12px;
  }

  .prev:hover, .next:hover {
    background: #e96908;
  }
}

/* ========================= */
/* 📱 SLIDER EXTRA PEQUEÑO (CELULARES) */
/* ========================= */
@media (max-width: 480px) {

  .slider {
    width: 95%;
    height: auto;            /* 🔹 importante: no limitar la altura */
  }

  .slides img {
    width: 100%;
    height: auto;            /* 🔹 evita deformación */
    object-fit: contain;
  }

  .prev, .next {
    width: 34px;
    height: 34px;
    font-size: 20px;
  }
}

html {
  scroll-behavior: smooth;
}
html, body {
  width: 100%;
  overflow-x: hidden;
}

/* ===== MAPA BASE ===== */
.mapa-interactivo {
  position: relative;
  display: inline-block;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
}

.mapa-base {
  width: 100%;
  display: block;
  border-radius: 0px;
 
}

/* ===== PUNTOS ===== */
.punto {
  position: absolute;
  transform: translate(-50%, -50%);
  cursor: pointer;
  z-index: 5;
  transition: transform 0.2s ease;
}

.punto img {
  width: 35px;
  transition: transform 0.2s ease;
}

.punto:hover img {
  transform: scale(1.15);
}

/* ===== POPUP MINI (IMAGEN LATERAL ENCIMA DEL MAPA) ===== */
.popup-mini {
  position: absolute;
  display: none;
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
  transform: scale(0.98);
  z-index: 10;
}



.popup-mini.active {
  display: block;
  opacity: 1;
  transform: scale(1);
}

.popup-mini img {
  width: 250px;
  max-height: 200px;
  border-radius: 17px;
  box-shadow: 0 4px 18px rgba(0,0,0,0.35);
  background: white;
  object-fit: cover;
}
/* ===== PUNTOS ===== */
.punto {
  position: absolute;
  transform: translate(-50%, -50%);
  cursor: pointer;
  z-index: 5;
  transition: transform 0.2s ease;
}

/* Tamaño normal en escritorio */
.punto img {
  width: 35px;
  transition: transform 0.2s ease;
}

.punto:hover img {
  transform: scale(1.15);
}

/* ===== POPUP MINI ===== */
.popup-mini {
  position: absolute;
  display: none;
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
  transform: scale(0.98);
  z-index: 10;
  pointer-events: none;
  max-width: 330px;
}

/* Estado activo */
.popup-mini.active {
  display: block;
  opacity: 1;
  transform: scale(1);
}

/* Imagen del popup */
.popup-mini img {
  width: 400px;
  max-height: 200px;
  border-radius: 25px;
  box-shadow: 0 4px 18px rgba(0,0,0,0.35);
  background: white;
  object-fit: cover;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .punto img {
    width: 28px; /* 🔹 un poco más pequeño pero legible */
  }

  .popup-mini img {
    width: 200px;
    max-height: 160px;
  }
}

@media (max-width: 600px) {
  .punto img {
    width: 22px; /* 🔹 más pequeño en móvil */
  }

  .popup-mini img {
    width: 200px;
    max-height: 120px;
  }

  /* 🔹 Evita que el popup se salga del contenedor del mapa */
  .popup-mini {
    max-width: 90vw;
    transform-origin: center center;
  }
}


@media (max-width: 768px) {
  .mapa-base {
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    object-fit: contain; /* mantiene proporción */
  }

  .mapa-interactivo {
    width: 100%;
    max-width: 100%;
    overflow: visible;
  }

  .punto img {
    width: 28px; /* 🔹 ajusta el tamaño de los íconos */
  }
}

@media (max-width: 480px) {
  .mapa-base {
    width: 110%;          /* 🔹 un poco más grande en celulares pequeños */
    margin-left: -5%;     /* 🔹 centrado visualmente */
  }

  .punto img {
    width: 24px;          /* 🔹 puntos más pequeños */
  }
}

/* ===== SECCIÓN CRÉDITOS ===== */
.creditos-section {
  background-color: #3f5c2e;
  text-align: center;
  padding: 40px 20px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
}

.logo-aliado {
  height: 80px;
  width: auto;
  filter: brightness(0.95);
  transition: transform 0.2s ease, filter 0.2s ease;
}

.logo-aliado:hover {
  transform: scale(1.05);
  filter: brightness(1.1);
}
