:root {
  --color-verde: #A2C523;
  --color-azul: #29B6F6;
  --color-naranja: #FF9800;
  --color-coral: #FF5252;
  --color-azul-oscuro: #004E7C;
  --color-fondo: #f4f8fb;
  --color-blanco: #ffffff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  background-color: var(--color-fondo);
  color: #333;
}

/* ================= HEADER ================= */
header {
  background-color: var(--color-blanco);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 2000; /* 🔥 CLAVE */
}

header img {
  height: 50px;
}

/* ================= HERO ================= */
.hero {
  position: relative;
  height: 100vh;
  overflow: hidden;
  margin-top: 70px;
  z-index: 1; /* 🔥 importante */
}

.hero .splide__slide img {
  width: 100%;
  height: 100vh;
  object-fit: cover;
}

.hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  text-align: center;
  z-index: 10;
  padding: 1rem;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.7);
}

.hero-content h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

/* ================= SECTIONS ================= */
.section {
  padding: 1rem;
  margin-left: 15%;
  margin-right: 15%;
}

.section h2 {
  color: var(--color-azul-oscuro);
  margin-bottom: 1rem;
  text-align: center;
}

/* ================= ATTRACTIONS ================= */
.attractions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-evenly;
}

.attraction {
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  overflow: hidden;
  flex: 1 1 100%;
  max-width: 100%;
  cursor: pointer;
}

.attraction img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.attraction h3 {
  padding: 0.5rem;
  color: var(--color-azul-oscuro);
}

/* ================= HISTORIA ================= */
.historia-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  background-color: #f3f3f3;
  padding: 2rem;
  border-radius: 20px;
}

.historia-imagenes-row {
  display: flex;
  gap: 1rem;
  flex: 1 1 48%;
}

.img-izquierda img,
.img-derecha img {
  width: 100%;
  object-fit: cover;
  border-radius: 10px;
}

.img-derecha {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.historia-texto {
  flex: 1 1 48%;
}

/* ================= EVENTOS ================= */
.whiterectangle {
  background-color: white;
  border-radius: 10px;
  padding: 1rem;
}

.evento-card {
  background: white;
  border-radius: 15px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  overflow: hidden;
}

.evento-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}
.eventos-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}
/* ================= HAMBURGUESA ================= */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 2.8rem;
  height: 2.8rem;
  z-index: 2100;
}

.menu-toggle span {
  display: block;
  width: 1.6rem;
  height: 3px;
  background-color: var(--color-azul-oscuro);
  margin: 0.3rem auto;
}

/* ================= DESKTOP ================= */
@media (min-width: 1024px) {
  .attraction {
    flex: 1 1 27%;
    max-width: 27%;
  }
}

/* ================= MOBILE ================= */
@media (max-width: 768px) {

  .hero {
    margin-top: 0;
  }

  .section {
    margin-left: 2%;
    margin-right: 2%;
  }

  .menu-toggle {
    display: block;
  }

  /* 🔥 FIX REAL AQUÍ */
  header nav {
    display: none;
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 1rem;
    right: 1rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 24px rgba(0,0,0,0.15);
    z-index: 2100;
    flex-direction: column;
  }

  header nav.active {
    display: flex;
  }

  header nav a {
    padding: 1rem;
    border-bottom: 1px solid #eee;
  }

  header nav a:last-child {
    border-bottom: none;
  }
}

/* ================= SCROLL ================= */
html {
  scroll-behavior: smooth;
}

.section[id] {
  scroll-margin-top: 130px;
}
/* ================= BOTONES ================= */


.little-blue{
    background-color: #eefafd;
}
.little-blue>form>select{
    background-color: #eefafd;
    border:none;
}
.btn-little-blue{
    background-color: #0098a7;
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  border-radius: 5px;
  cursor: pointer;
  width: 100%;
}
/* Botón naranja */
.btn-little-orange {
  background-color: var(--color-naranja);
  color: white;
  padding: 0.7rem 1.3rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  display: inline-block;
  transition: background-color 0.3s ease;
}
.btn-little-orange:hover {
  background-color: #e86e00;
}
.explorador:hover{
transition: all 0.3s; 
transform: scale(1.1) translateY(-5px);
}   

.hero button {
  background-color: var(--color-azul);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  border-radius: 5px;
  cursor: pointer;
}


/* ================= HISTORIA ================= */

.historia-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
  justify-content: space-between;
  margin-top: 3rem;
  background-color: #f3f3f3;
  padding: 2rem;
  border-radius: 20px;
}
/* Nueva disposición horizontal de imágenes */
.historia-imagenes-row {
  display: flex;
  gap: 1rem;
  flex: 1 1 48%;
}
/* Imagen grande a la izquierda */
.img-izquierda img {
  width: 100%;
  height: 100%;
  max-height: 300px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}
/* Dos imágenes apiladas a la derecha */
.img-derecha {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: space-between;
}
.img-derecha img {
  width: 100%;
  max-height: 145px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}
/* Texto a la derecha */
.historia-texto {
  flex: 1 1 48%;
}
.historia-texto h2 {
  font-size: 1.8rem;
  color: var(--color-azul-oscuro);
  margin-bottom: 1rem;
}
.historia-texto p {
  margin-bottom: 1.5rem;
  line-height: 1.6;
}
.ver-todos {
  color: var(--color-naranja);
  font-weight: bold;
  text-decoration: none;
}

.attraction-link {
  text-decoration: none;
  color: inherit;
  display: block;
}


@media (min-width: 1024px) {
  .attraction {
      flex: 1 1 27%;
      max-width: 27%;
  }
  header{
  width: 100%;
  height: 102px;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 3;
  }
  header {
  background-color: var(--color-blanco);
  transition: background-color 0.3s ease, filter 0.3s ease;
  }
  header.scrolled {
  background-color: rgba(0, 0, 0, 0.7);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  height: 13%;
  }
  header.scrolled>nav>a{
  color: white!important;
  }
  header.scrolled>nav>a:hover{
  color: rgb(255, 188, 45)!important;
  }
  header.scrolled img {
  filter: brightness(0) invert(1); /* transforma logo a blanco si es PNG con fondo transparente */
  }
}

.scale1:hover{
  transform: scale(1.03)!important;
}
.scale05:hover{
  transform: scale(1.05);
  filter: brightness(1.05);
}
.darker:hover{
filter: brightness(0.8);
}
.darker2:hover{
background-color: rgba(0, 0, 0, 0.7);
color: white;
}
.darker2:hover h3 {
color: white;
}




/* Contenedor del carrusel — altura fija cuadrada */
.atractivo-media {
  height: 380px;
  overflow: hidden;
}

.atractivo-splide,
.atractivo-splide .splide__track,
.atractivo-splide .splide__list,
.atractivo-splide .splide__slide {
  height: 100% !important;
}

.atractivo-splide .splide__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  cursor: pointer; /* o default si no quieres ningún cambio */
}

.atractivo-splide .splide__arrow {
  background: rgba(0, 0, 0, 0.45);
  opacity: 1;
}

.atractivo-splide .splide__arrow svg {
  fill: white;
}

.atractivo-splide .splide__pagination__page {
  background: rgba(255, 255, 255, 0.5);
}

.atractivo-splide .splide__pagination__page.is-active {
  background: white;
}

/* En mobile ya no necesita tanto */
@media (max-width: 768px) {
  .atractivo-media {
    height: 260px;
  }
}


.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}

.lightbox.active {
  display: flex;
}

.lightbox-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100vh;
  padding: 3rem 5rem;
}

.lightbox-inner img {
  max-width: 100%;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 8px;
  animation: lightbox-in 0.2s ease;
}

@keyframes lightbox-in {
  from { opacity: 0; transform: scale(0.92); }
  to   { opacity: 1; transform: scale(1); }
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: white;
  font-size: 2.8rem;
  cursor: pointer;
  line-height: 1;
  opacity: 0.8;
}

.lightbox-close:hover { opacity: 1; }

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: white;
  font-size: 3.5rem;
  line-height: 1;
  padding: 0.2rem 0.8rem;
  cursor: pointer;
  border-radius: 6px;
  transition: background 0.2s;
  z-index: 10;
}

.lightbox-nav:hover { background: rgba(255, 255, 255, 0.3); }

.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }