* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body,
html {
  height: 100%;
  overflow-x: hidden;
}

/* CONTENEDOR */
.page {
  position: relative;
  min-height: 100vh;
}

/* FONDO (MISMO QUE INFO) */
.bg {
  position: fixed;
  inset: 0;
  background: url("../img/index2.jpg") center/cover no-repeat;
  z-index: -2;
  opacity: 0;
  animation: fadeInBg 1.5s ease forwards;
}

@keyframes fadeInBg {
  to {
    opacity: 1;
  }
}

/* OVERLAY OSCURO */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: -1;
}

/* HEADER */
.header {
  position: relative;
  height: 170px;
}

/* LOGO */
.logo {
  position: absolute;
  top: 35px;
  left: 50%;
  transform: translateX(-50%);
  width: clamp(180px, 30vw, 320px);
  z-index: 5;
  opacity: 0;
  animation: fadeInLogo 1.5s ease forwards;
}

@keyframes fadeInLogo {
  to {
    opacity: 1;
  }
}

/* CONTENIDO */
.content {
  max-width: 1000px;
  margin: 0 auto 60px auto;
  padding: 50px 30px;
  border-radius: 24px;
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.08);
  color: white;
  text-align: center;
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 1s ease,
    transform 1s ease;
}

.content.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1024px) {
  .content {
    margin: 0 20px 60px 20px;
    padding: 40px 20px;
  }
}

.intro {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 400;
  line-height: 1.4;
  margin-bottom: 40px;
  letter-spacing: 0.5px;
}

.carousel-container {
  width: 100%;
  max-width: 1100px;
  margin: 80px auto 40px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 25px;
  position: relative;
}

.carousel {
  position: relative;
  width: 600px;
  height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

.card-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
}

.gallery-card {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 300px;
  height: 500px;
  transform: translate(-50%, -50%) scale(0.5);
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 22px;
  overflow: hidden;
}

.gallery-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.pos0::after {
  opacity: 0;
}

.pos-1::after,
.pos1::after,
.pos-2::after,
.pos2::after {
  opacity: 1;
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
}
.btn-fechas {
  display: inline-block;
  margin: 30px auto 0 auto;
  padding: 15px 40px;
  background: #0f305b;
  border: .5px solid #807f7f;
  color: white;
  text-decoration: none;
  border-radius: 15px;
  font-weight: 500;
  transition: 0.3s ease;
}

.btn-fechas:hover {
  background: #164a87;
  transform: translateY(-3px);
}

/* CONTENEDOR DE BOTONES */
.btn-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

/* BOTÓN SECUNDARIO */
.secondary-btn {
  background: #0f305b;
}

.footer {
  text-align: center;
  padding: 30px 20px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

.footer a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 500;
}

.footer a:hover {
  text-decoration: underline;
}

.page {
  display: flex;
  flex-direction: column;
}

.content {
  flex: 1;
}

/* DESKTOP – 5 POSICIONES */
@media (min-width: 769px) {
  .pos-2 {
    transform: translate(calc(-50% - 380px), -50%) scale(0.55);
    z-index: 1;
  }

  .pos-1 {
    transform: translate(calc(-50% - 210px), -50%) scale(0.75);
    z-index: 2;
  }

  .pos0 {
    transform: translate(-50%, -50%) scale(1);
    z-index: 3;
  }

  .pos1 {
    transform: translate(calc(-50% + 210px), -50%) scale(0.75);
    z-index: 2;
  }

  .pos2 {
    transform: translate(calc(-50% + 380px), -50%) scale(0.55);
    z-index: 1;
  }
}

/* MOBILE – 3 POSICIONES */
@media (max-width: 768px) {
  .carousel {
    width: 100%;
    height: 380px;
  }

  .gallery-card {
    width: 240px;
    height: 400px;
  }

  .pos-1 {
    transform: translate(calc(-50% - 180px), -50%) scale(0.85);
    z-index: 1;
  }

  .pos0 {
    transform: translate(-50%, -50%) scale(1);
    z-index: 2;
  }

  .pos1 {
    transform: translate(calc(-50% + 180px), -50%) scale(0.85);
    z-index: 1;
  }
  .nav-btn {
    display: none;
  }
}

/* BOTONES */
.nav-btn {
  background: rgba(255, 255, 255, 0.8);
  border: none;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  z-index: 9999;
}

.carousel-description {
  text-align: center;
  margin-top: 25px;
  font-size: 1.2rem;
  font-weight: 500;
  color: white;
}
