/*======= ROOT VARIABLES ===========*/
:root {
  --color-borde: #444;
  --color-articulo: #1f1f1f;
  --color-borde-articulo: #333;
  --sombra-suave: 0 4px 12px rgba(0, 0, 0, 0.2);
  --color-acento: crimson;
  --color-hover: darkred;
}


/*======= BODY ===========*/
body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background: linear-gradient(to bottom, #000000, #1a1a1a);
  color: white;
  overflow-x: hidden;
}



/*======= HEADER GENERAL ===========*/
header {
  background: linear-gradient(to right, #111, #1c1c1c);
  padding: 30px 20px;
  border-bottom: 2px solid var(--color-borde);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  position: relative;
  z-index: 10;
}

/*======= CONTENIDO DEL HEADER ===========*/
.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1400px;
  margin: 0 auto;
  flex-wrap: wrap;
  gap: 20px;
}

/*======= LOGO ===========*/
.header-logo {
  max-width: 200px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(255, 255, 255, 0.1);
  transition: transform 0.3s ease;
}

.header-logo:hover {
  transform: scale(1.05);
}

/*======= TEXTO DEL HEADER ===========*/
.header-text {
  flex: 1;
  color: white;
  text-align: left;
  animation: fadeInHeader 1s ease forwards;
  opacity: 0;
}

.header-text h1 {
  font-size: 2.5em;
  margin: 0;
  color: var(--color-acento);
  letter-spacing: 1px;
}

.header-text p {
  font-size: 1.2em;
  margin-top: 8px;
  color: #ccc;
}

/*======= ANIMACIÓN ===========*/
@keyframes fadeInHeader {
  to { opacity: 1; transform: translateY(0); }
}

/*======= RESPONSIVE ===========*/
@media screen and (max-width: 768px) {
  .header-content {
    flex-direction: column;
    text-align: center;
  }

  .header-text h1 {
    font-size: 2em;
  }

  .header-text p {
    font-size: 1em;
  }

  .header-logo {
    max-width: 100px;
  }
}

/*======= CONTENEDOR CENTRAL ===========*/
.contenedor-pagina {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  border-left: 2px solid var(--color-borde);
  border-right: 2px solid var(--color-borde);
  box-sizing: border-box;
}

/*======= CARRUSEL PRINCIPAL ===========*/
.carousel {
  position: relative;
  width: 100vw; /* Ocupa todo el ancho del viewport */
  height: 100vh;
  overflow: hidden;
  margin-left: calc(-50vw + 50%); /* Compensa el centrado del contenedor */
}

.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-repeat: no-repeat;
  transition: opacity 1s ease;
  opacity: 0;
  z-index: 1;
}

.slide.active {
  opacity: 1;
  z-index: 2;
}

.slide.wonder { background-position: center 35%; }
.slide.spirited { background-position: center bottom; }
.slide.encanto,
.slide.extra { background-position: center 20%; }

/*======= CARRUSEL OVERLAY ===========*/
.overlay {
  position: absolute;
  bottom: 20%;
  left: 5%;
  background: linear-gradient(to right, rgba(0,0,0,0.8), rgba(0,0,0,0));
  padding: 20px;
  border-radius: 20px;
  z-index: 3;
  max-width: 90%;
}

.overlay h2 {
  font-size: 2.5em;
  margin: 0;
}

.overlay p {
  font-size: 1.2em;
  margin: 10px 0;
}

.btn-ficha {
  display: inline-block;
  font-size: 1em;
  color: white; /* Cambia a #fff o #222 si el fondo es claro */
  text-decoration: none;
  background: var(--color-acento);
  padding: 10px 20px;
  border-radius: 50px;
  transition: transform 0.3s ease, background 0.3s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.btn-ficha:hover {
  transform: scale(1.1);
  background: var(--color-hover);
  color: #eee;
}


/*======= CARRUSEL CONTROLES ===========*/
.controls {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  padding: 0 30px;
  z-index: 5;
  pointer-events: none;
}

.btn {
  pointer-events: auto;
  background-color: rgba(255, 255, 255, 0.08);
  color: white;
  border: none;
  border-radius: 50%;
  padding: 16px;
  font-size: 1.8em;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn:hover {
  background-color: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

/*======= MAIN ===========*/
main {
  padding: 250px 20px 60px;
  position: relative;
  z-index: 1;
}

section {
  margin-bottom: 40px;
  border-bottom: 1px solid var(--color-borde);
  padding-bottom: 20px;
  animation: fadeInUp 0.8s ease;
}

/*======= ARTÍCULO ===========*/
article {
  background-color: var(--color-articulo);
  padding: 15px;
  border: 1px solid var(--color-borde-articulo);
  margin-top: 10px;
  box-shadow: var(--sombra-suave);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

article:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.eclipse-img {
  width: 100%;
  max-width: 400px;
  height: auto;
  display: block;
  margin: 15px auto;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/*======= SECCIÓN ECLIPSE EXCLUSIVA ===========*/
.seccion-eclipse {
  background-color: #fdf4e3;
  padding: 50px 25px;
  margin-bottom: 60px;
  border-top: 2px solid #a67c52;
  border-bottom: 2px solid #a67c52;
  box-shadow: inset 0 0 12px rgba(166, 124, 82, 0.15);
  animation: fadeInLeyenda 1s ease forwards;
  opacity: 0;
}

@keyframes fadeInLeyenda {
  to { opacity: 1; }
}

.seccion-eclipse .contenido {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
  transition: transform 0.3s ease;
}

.seccion-eclipse .contenido:hover {
  transform: scale(1.01);
}

.seccion-eclipse .contenido.reverso {
  flex-direction: row-reverse;
}

.seccion-eclipse .imagen {
  max-width: 280px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease;
}

.seccion-eclipse .imagen:hover {
  transform: scale(1.05);
}

.seccion-eclipse .texto {
  flex: 1;
  min-width: 260px;
}

.seccion-eclipse .texto h2 {
  font-size: 1.8em;
  color: #5a3e2b;
  margin-bottom: 15px;
}

.seccion-eclipse .texto p {
  font-size: 1.1em;
  color: #3a2a1a;
  line-height: 1.6;
  margin-bottom: 15px;
  text-align: justify;
}

/*======= CARTELERA CARRUSEL (POPULARES Y RECOMENDADAS) ===========*/
.cartelera {
  margin-top: 60px;
  padding: 0 20px;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  border-left: 2px solid var(--color-borde);
  border-right: 2px solid var(--color-borde);
  box-sizing: border-box;
}

.carousel-cartelera {
  position: relative;
  width: 100%;
  overflow: visible;
}

.fila-posters {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 10px;
  -webkit-overflow-scrolling: touch;
  padding-left: 20px;
  padding-right: 20px;

  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE 10+ */
}

.fila-posters::-webkit-scrollbar {
  display: none;
}

.poster {
  flex: 0 0 auto;
  width: 180px;
  scroll-snap-align: start;
  text-align: center;
  transition: transform 0.3s ease;
}

.poster img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.poster:hover img {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(0,0,0,0.5);
}

.poster .titulo {
  margin-top: 8px;
  font-size: 1em;
  color: #ccc;
}

/* Puntos indicadores */
.cartelera-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 20px;
  padding-bottom: 10px;
}

.cartelera-dots span {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin: 5px;
  background-color: #555;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.cartelera-dots span.active {
  background-color: white;
}

/*======= RESPONSIVE ===========*/
@media screen and (max-width: 768px) {
  .poster {
    width: 140px;
  }

  .cartelera h2 {
    font-size: 1.3em;
  }

  .cartelera-dots span {
    width: 10px;
    height: 10px;
    margin: 4px;
  }

  .cartelera {
    border-left: none;
    border-right: none;
    padding: 0 10px;
  }
}


/*======= SINOPSIS ===========*/
.seccion-eclipse {
  background-color: #fdf4e3;
  padding: 50px 25px;
  margin-bottom: 60px;
  border-top: 2px solid #a67c52;
  border-bottom: 2px solid #a67c52;
  box-shadow: inset 0 0 12px rgba(166, 124, 82, 0.15);
  animation: fadeIn 1s ease forwards;
  opacity: 0;
}

@keyframes fadeIn {
  to { opacity: 1; }
}

.seccion-eclipse .contenido {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  align-items: center;
}

.seccion-eclipse .imagen {
  max-width: 280px;
  border-radius: 10px;
  box-shadow: var(--sombra);
  transition: transform 0.3s ease;
}

.seccion-eclipse .imagen:hover {
  transform: scale(1.05);
}

.seccion-eclipse .texto {
  flex: 1;
  min-width: 260px;
}

.seccion-eclipse .texto h2 {
  font-size: 2em;
  color: #5a3e2b;
  margin-bottom: 15px;
}

.seccion-eclipse .texto p {
  font-size: 1.1em;
  color: #3a2a1a;
  line-height: 1.6;
  margin-bottom: 15px;
  text-align: justify;
}

.btn-ficha {
  display: inline-block;
  background: var(--color-acento);
  color: white;
  padding: 10px 20px;
  border-radius: 50px;
  text-decoration: none;
  transition: background 0.3s ease, transform 0.3s ease;
}

.btn-ficha:hover {
  background: var(--color-hover);
  transform: scale(1.05);
}

/*======= FICHA TÉCNICA ===========*/
.ficha-tecnica {
  padding: 60px 20px;
  background-color: var(--color-fondo);
  border-top: 1px solid #333;
}

.ficha-tecnica h2 {
  font-size: 2em;
  text-align: center;
  margin-bottom: 30px;
}

.galeria-wrapper {
  position: relative;
  overflow: hidden;
}

.galeria-equipo {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 10px;
}

.persona {
  flex: 0 0 auto;
  width: 200px;
  scroll-snap-align: start;
  text-align: center;
}

.persona img {
  width: 100%;
  border-radius: 10px;
  box-shadow: var(--sombra);
  margin-bottom: 10px;
  transition: transform 0.3s ease;
}

.persona img:hover {
  transform: scale(1.05);
}

.persona h3 {
  font-size: 1.1em;
  margin: 5px 0;
}

.persona p {
  font-size: 0.95em;
  color: var(--color-secundario);
}

/* Flechas */
.flecha {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255,255,255,0.08);
  color: white;
  border: none;
  font-size: 2em;
  padding: 10px;
  cursor: pointer;
  z-index: 5;
  border-radius: 50%;
  transition: background-color 0.3s ease;
}

.flecha:hover {
  background-color: rgba(255,255,255,0.2);
}

.flecha.izquierda {
  left: 10px;
}

.flecha.derecha {
  right: 10px;
}

/* Puntos */
.puntos-galeria {
  text-align: center;
  margin-top: 15px;
}

.puntos-galeria span {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin: 5px;
  background-color: #555;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.puntos-galeria span.active {
  background-color: white;
}

/*======= DETRÁS DE LAS CÁMARAS ===========*/
.bts-galeria {
  padding: 60px 20px;
  background-color: #0d0d0d;
  border-top: 1px solid #333;
}

.bts-galeria h2 {
  font-size: 2em;
  text-align: center;
  margin-bottom: 30px;
}

.bts-scroll {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 10px;
}

.bts-item {
  flex: 0 0 auto;
  width: 220px;
  scroll-snap-align: start;
  text-align: center;
}

.bts-item img {
  width: 100%;
  border-radius: 10px;
  box-shadow: var(--sombra);
  margin-bottom: 10px;
  transition: transform 0.3s ease;
}

.bts-item img:hover {
  transform: scale(1.05);
}

.bts-item h3 {
  font-size: 1.1em;
  margin: 5px 0;
}

.bts-item p {
  font-size: 0.95em;
  color: var(--color-secundario);
}

/*======= RESPONSIVE ===========*/
@media screen and (max-width: 768px) {
  .seccion-eclipse .contenido {
    flex-direction: column;
    text-align: center;
  }

  .seccion-eclipse .imagen {
    margin: 0 auto;
  }

  .persona,
  .bts-item {
    width: 160px;
  }

  .flecha {
    font-size: 1.5em;
    padding: 8px;
  }

  .btn-ficha {
    font-size: 0.9em;
    padding: 8px 16px;
  }
 }
