/* -------------------------
   RESET GLOBAL
------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', Arial, sans-serif;
    color: #333;
    background: #111 url('../img/texturas/ladron-background.jpg') repeat fixed center;
    background-size: cover;
    line-height: 1.6;
    overflow-x: hidden;
}
body::before {
    content: "";
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.4); /* Ajusta la opacidad aquí */
    z-index: -1;
}

/* -------------------------
   RESET SOLO DENTRO DE LADRON
------------------------- */
.ladron-page * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* -------------------------
   HERO CON SLIDESHOW
------------------------- */
/* -------------------------
   RESET GLOBAL
------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', Arial, sans-serif;
    color: #333;
    background: #11111167 url('../img/texturas/ladron-background.jpg') repeat fixed center;
    background-size: cover;
    line-height: 1.6;
    overflow-x: hidden;
}

/* -------------------------
   HERO CON SLIDESHOW
------------------------- */
.ladron-hero {
    position: relative;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
    overflow: hidden;
    margin-bottom: 20px;
}

.hero-video {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.ladron-hero .overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
}

.ladron-hero .hero-content {
    position: relative;
    z-index: 3;
    max-width: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: translateY(20%);
}

.ladron-hero p {
    font-size: 1.8rem;
    margin-bottom: 30px;
    text-shadow: 0 0 10px rgba(0,0,0,0.7);
}

.btn-primary {
    background: linear-gradient(45deg, #0e0bb9, #021959);
    color: #fff;
    padding: 16px 50px;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.3rem;
    text-transform: uppercase;
    text-decoration: none;
    box-shadow: 0 5px 20px rgba(0,0,0,0.5);
    transition: 0.3s;
    margin-top: 150px; /* <-- AQUÍ ESTÁ EL CAMBIO */
}

.btn-primary:hover {
    transform: scale(1.05);
    background: #021040;
}


/* -------------------------
   SECCIONES GLASS
------------------------- */
.section-glass {
    border-radius: 20px;
    padding: 80px 40px;
    max-width: 100%;
    margin: 0 auto 80px auto;
    text-align: center;
    color: #fff;
}

.section-glass h2 {
    color: #ffe27a;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.9);
    font-size: 3rem;
    margin-bottom: 30px;
}

.section-glass p {
    font-size: 1.4rem;
    max-width: 900px;
    margin: auto;
    line-height: 1.8;
}

/* Ajuste para la primera sección (quita margen superior) */
.section-glass:first-of-type {
    margin-top: 0;
}

/* -------------------------
   SECCIONES BLANCAS
------------------------- */
.section-white {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.3);
    padding: 80px 40px;
    max-width: 100%;
    margin: 80px auto;
    text-align: center;
    color: #222;
}

.section-white h2 {
    font-size: 3rem;
    margin-bottom: 30px;
    color: #222;
}

/* -------------------------
   SINOPSIS
------------------------- */
.ladron-sinopsis {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    justify-content: center;
    align-items: center;
}

.ladron-sinopsis .text {
    flex: 1 1 500px;
    text-align: left;
    font-size: 1.3rem;
}

.ladron-sinopsis .image img {
    width: 400px;
    border-radius: 20px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

/* -------------------------
   FICHA TÉCNICA
------------------------- */
.ladron-ficha ul {
    text-align: left;
    max-width: 700px;
    margin: auto;
    font-size: 1.3rem;
    line-height: 1.8;
}

.ladron-ficha strong {
    color: #0e0bb9;
}

/* -------------------------
   RECURSOS
------------------------- */
.ladron-recursos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    margin-top: 50px;
    padding: 20px 0;
}

.ladron-recursos a {
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    padding: 40px 30px;
    border-radius: 20px;
    text-decoration: none;
    color: #000000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.ladron-recursos a::before {
    content: "";
    position: absolute;
    top: -60%;
    left: -60%;
    width: 220%;
    height: 220%;
    background: radial-gradient(circle, rgba(255,255,255,0.1), transparent 70%);
    z-index: 0;
    transition: opacity 0.5s;
}

.ladron-recursos a:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
}

.ladron-recursos h3 {
    font-size: 1.6rem;
    font-weight: 600;
    text-align: center;
    z-index: 1;
    margin: 0;
}

/* -------------------------
   Propuesta
------------------------- */
.educativa-section {
    padding: 80px 40px;
    max-width: 1200px;
    margin: 80px auto;
    text-align: center;
    color: #fff;
}

.educativa-section h2 {
    color: #ffe27a;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.9);
    font-size: 3rem;
    margin-bottom: 50px;
}

.educativa-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
}

.educativa-card {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.4);
    width: 100%;
    max-width: 500px;
    text-align: left;
    backdrop-filter: blur(8px);
}

.educativa-card h3 {
    color: #ffcc33;
    font-size: 2rem;
    margin-bottom: 20px;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.6);
}

.educativa-card ul {
    padding-left: 20px;
    font-size: 1.3rem;
    line-height: 1.8;
}

.educativa-card ul li {
    margin-bottom: 12px;
}

/* -------------------------
   GALERÍA
------------------------- */
.ladron-galeria-container {
    position: relative;
    max-width: 90%;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

.ladron-galeria-track {
    display: flex;
    transition: transform 0.5s ease;
}

.ladron-galeria-track img {
    flex: 0 0 33.333%;
    height: 400px;

    object-fit: cover;
    padding: 10px;
    box-sizing: border-box;
    cursor: pointer;
}

.carrusel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0,0,0,0.5);
    border: none;
    color: white;
    font-size: 2rem;
    padding: 10px 20px;
    cursor: pointer;
    z-index: 10;
    border-radius: 50px;
    transition: background-color 0.3s;
}

.carrusel-btn:hover {
    background-color: rgba(0,0,0,0.8);
}

.carrusel-btn.prev { left: 20px; }
.carrusel-btn.next { right: 20px; }

@media (max-width: 1024px) {
    .ladron-galeria-track img { flex: 0 0 50%; }
}
@media (max-width: 600px) {
    .ladron-galeria-track img { flex: 0 0 100%; }
}

/* Popup */
.popup {
    display: none;
    position: fixed;
    top: 80px; /* altura del header */
    left: 0;
    width: 100%;
    height: calc(100% - 80px); /* resta el alto del header */
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 999; /* ya no necesitamos un z-index absurdamente alto */
    overflow: auto;
    padding: 20px;
    box-sizing: border-box;
}

.popup-content {
    margin: auto;
    display: block;
    max-width: 80%;
    max-height: 80vh;
    border-radius: 10px;
    box-shadow: 0 0 20px black;
}

.close {
    position: absolute;
    top: 20px;
    right: 40px;
    font-size: 50px;
    color: white;
    cursor: pointer;
}

/* -------------------------
   TRAILER VIDEO
------------------------- */
/* -------------------------
   TRAILER VIDEO (ACTUALIZADO)
------------------------- */
.ladron-video-wrapper {
    position: relative;
    width: 100%;
    max-width: auto;  /* <-- Limita el ancho máximo */
    margin: 0 auto; /* <-- CENTRADO */
    padding-bottom: 56.25%; /* proporción 16:9 */
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.4);
    background: #000;
}

.ladron-video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* -------------------------
   ELENCO
------------------------- */
.ladron-elenco {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    margin-top: 50px;
}

.elenco-card {
  background: linear-gradient(135deg, rgba(0, 46, 139, 0.85), rgba(0,25,50,0.85));
    backdrop-filter: blur(15px);
    padding: 30px 20px;
    border-radius: 20px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
    text-align: center;
    width: 220px;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.elenco-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.6);
}

.actor-img {
    width: 150px;
    height: 150px;
    margin: 0 auto 20px auto;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
}

.actor-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.elenco-card h3 {
    font-size: 1.4rem;
    color: #ffe86b;
    margin-bottom: 8px;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.8);
}

.elenco-card .personaje {
    font-size: 1.1rem;
    color: #ffffff;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.6);
}

/* -------------------------
   LIBRO
------------------------- */
.ladron-libro {
    background: linear-gradient(to right, #fff3f3, #ffe2e2);
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    padding: 60px 30px;
    margin: 60px auto;
    text-align: center;
    max-width: 1200px;
    color: #333;
}

.ladron-libro p {
    font-size: 1.3rem;
    margin: 20px 0;
    line-height: 1.8;
}

.botones-libro {
    margin-top: 40px;
}

.btn-secundario {
    background: #ffffff;
    color: #0b0eb9;
    padding: 16px 50px;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.2rem;
    text-decoration: none;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    margin-left: 20px;
    transition: 0.3s;
}

.btn-secundario:hover {
    transform: scale(1.05);
    background: #f9f9f9;
}

.autora {
    margin-top: 50px;
    text-align: left;
    background: rgba(255,255,255,0.5);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 0 15px rgba(0,0,0,0.2);
}
.autora h3 {
    color: #0066ff;
    font-size: 2rem;
    margin-bottom: 20px;
}

/* -------------------------
   RESERVA FINAL
------------------------- */
.ladron-reserva {
    background: linear-gradient(135deg, #b90b36, #7d0625);
    color: #fff;
    padding: 100px 30px;
    text-align: center;
}

.reserva-contenido {
    max-width: 900px;
    margin: 0 auto;
}

.ladron-reserva h2 {
    font-size: 3rem;
    margin-bottom: 30px;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
}

.ladron-reserva p {
    font-size: 1.5rem;
    margin-bottom: 40px;
    line-height: 1.8;
}

.reserva-beneficios ul {
    list-style: none;
    padding: 0;
    margin-bottom: 50px;
}

.reserva-beneficios li {
    font-size: 1.3rem;
    margin: 10px 0;
    text-align: left;
    padding-left: 30px;
    background: url('../img/icono-tick.png') no-repeat left center;
    background-size: 20px 20px;
}

/* Botón reserva */
.btn-reserva {
    background: #fff;
    color: #b90b36;
    padding: 20px 60px;
    font-size: 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    transition: 0.3s;
}

.btn-reserva:hover {
    transform: scale(1.05);
    background: #f9f9f9;
}

/* -------------------------
   RESPONSIVE
------------------------- */
@media (max-width: 768px) {
    .ladron-sinopsis {
        flex-direction: column;
    }

    .ladron-sinopsis .image img {
        width: 100%;
    }
}
