@import url('https://fonts.googleapis.com/css2?family=Montserrat+Alternates:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
/*HOME*/

#h-scroll {
    display: flex;
    height: 100vh;
    overflow-x: scroll;
    overflow-y: hidden;
    scroll-behavior: smooth;
}
/* CANVAS SUPER ANCHO */
#big-canvas {
    position: relative;
    width: 100%; /* suficiente para cubrir hasta left 4600 */
    height: 100vh;
}

/* FONDO GENERAL */
.bg {
    position: absolute;
    width: 100%;
    height: 100vh;
    background-image: url("assets/FONDO HOME.png");
    background-size: cover;
    background-repeat: no-repeat;
}

/* HEADER */
.header-bg {
    width: 1300px;
    height: 100px;
    left: 0px;
    top: 0px;
    position: absolute;
    background: linear-gradient(90deg, #A3B675 0%, #485033 100%);
}

/* TÍTULO */
.titulo {
    left: 57px;
    top: 16px;
    position: absolute;
    color: #664C43;
    font-size: 61px;
    font-weight: 700;
    line-height: 73.20px;
}

/* BOTONES PERSONAJES / CAPÍTULOS */
.btn {
    width: 264px;
    height: 150px;
    padding: 10px;
    position: absolute;
    background: #84994F;
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
}
.btn:hover {
  background-color: #997266; /* Verde más oscuro */
  transform: scale(1.1);
}

.btn div {
    text-align: center;
    color: #664C43;
    font-size: 31px;
    font-weight: 600;
}

.personajes { left: 57px; top: 140px; }
.capitulos  { left: 57px; top: 350px; }

/* TEXTOS */
.texto {
    position: absolute;
    color: white;
    display: flex;
    flex-direction: column;
}

.t1 {
    width: 951px;
    height: 209px;
    left: 1300px;
    top: 250px;
    font-size: 25px;
    line-height: 30px;
}

.t2 {
    width: 914px;
    height: 367px;
    left: 2200px;
    top: 39px;
    font-size: 25px;
    line-height: 30px;
}

.t3 {
    width: 964px;
    height: 367px;
    left: 3137px;
    top: 200px;
    font-size: 25px;
    line-height: 30px;
}

/* BOTONES FINALES */
.opcion {
    width: 351px;
    height: 134px;
    padding: 10px;
    position: absolute;
    background: #A3B675;
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
}
.opcion:hover {
  background-color: #84994F; /* Verde más oscuro */
  transform: scale(1.1);
}

.opcion div {
    text-align: center;
    color: #664C43;
    font-size: 20px;
    font-weight: 500;
}

.ignorar   { left: 4244px; top: 100px; }
.investigar{ left: 4244px; top: 300px; }

/* IMÁGENES */
.oso1 {
    width: 450px;
    height: 450px;
    left: 400px;
    top: 120px;
    position: absolute;
}

.oso2 {
    width: 445px;
    height: 445px;
    left: 2349px;
    top: 150px;
    position: absolute;
}
/*HOME*/

/*CAPÍTULOS A*/
.container {
  display: flex;
  width:100%;
  background-image: url('assets/Fondo A.jpg');
  background-repeat:round;
}

/* --- SECCIÓN DE LA IMAGEN --- */
.image-section {
  width: 55%;
  height: 100%;
  overflow:visible;
}
.image-section img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- SECCIÓN DEL TEXTO --- */
.text-section {
  width: 45%;
  height: 100%;
  overflow-y: auto;
  padding: 60px 50px;
  color: #ffe7c9;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

/* --- CAJA DEL TÍTULO --- */
.title-boxA {
  width: 60%;
  background-color: #84994F;
  padding: 15px 20px;
  text-align: center;
  margin-bottom: 30px;
  border-radius: 5px;
}

.title-boxA h1 {
  color: #ffe7c9;
  font-size: 28px;
  margin: 0;
  font-weight: bold;
}

/* --- PÁRRAFOS --- */
.text-section p {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 18px;
}

/* --- BOTÓN --- */
.button {
  font-family: 'Montserrat Alternates';
  display: inline-block;
  text-decoration: none;
  background-color: #8aba6b; /* Verde suave */
  color: #ffe7c9;
  padding: 12px 22px;
  border-radius: 12px;
  margin-top: 20px;
  font-size: 16px;
  text-align: center;
  transition: background-color 0.3s ease;
}

/* --- HOVER BOTÓN --- */
.button:hover {
  background-color: #6e9d55; /* Verde más oscuro */
  transform: scale(1.1);
}
/*CAPÍTULOS A*/
/*CAPÍTULOS B*/

/* --- CONTENEDOR PRINCIPAL --- */
.containerB {
  display: flex;
  height: 100%;
  background-image: url('assets/Fondo B.jpg');
}

/* --- SECCIÓN DE IMAGEN --- */
.image-sectionB {
  width: 55%;
  height: 100%;
  overflow: visible;
}
.image-sectionB img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- SECCIÓN DE TEXTO --- */
.text-sectionB {
  width: 45%;
  padding: 60px 50px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  color: #9f8f7c;
}

/* --- CAJA DEL TÍTULO (ROJA) --- */
.title-boxB {
  width: 60%;
  background-color: #603734; /* rojo del título */
  padding: 18px 20px;
  text-align: center;
  margin-bottom: 35px;
  border-radius: 6px;
}

.title-boxB h1 {
  margin: 0;
  color: #ffe7c9; /* texto amarillo pastel */
  font-size: 28px;
  font-weight: bold;
}

/* --- PÁRRAFOS --- */
.text-sectionB p {
  margin-bottom: 20px;
  font-size: 16px;
  line-height: 1.6;
}

/* --- BOTÓN NARANJA --- */
.buttonB {
  font-family: 'Montserrat Alternates';
  display: inline-block;
  background-color: #915d44; /* naranja claro */
  color: #ffffff;
  text-decoration: none;
  padding: 15px 26px;
  font-size: 16px;
  border-radius: 14px;
  margin-top: 25px;
  text-align: center;
  transition: background-color 0.3s ease;
}

/* --- HOVER (NARANJA MÁS OSCURO) --- */
.buttonB:hover {
  background-color: #e08f68; /* tono más oscuro */
  transform: scale(1.1);
}
.container {
    width: 100%;
    height: 100%;
    position: relative;
    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
    overflow: hidden;
}

/*CAPÍTULOS B*/
/*SELECCIÓN DE CAPÍTULOS*/

/*HEADER*/
.header-gradient {
   display: flex;
   justify-content:center;
   align-items:center;
   padding: 25px 40px;
   height: 120px;
   width: 500px;
   left: 50px;
   top: 30px;
   border-radius:20px;
   position: relative;
   background: linear-gradient(90deg, #84994F 62%, #A3B675 88%);
}


.title-box {
   width: 880px;
   left: 2308px;
   top: 45px;
   position: absolute;
   display: inline-flex;
   align-items: center;
   gap: 32px;
   overflow: hidden;
}

.title-text {
   color: #664C43;
   font-size: 61px;
   font-family: "Montserrat Alternates";
   font-weight: 700;
   line-height: 73.2px;
}

/* HOME */
.home-btn {
   width: 366px;
   height: 90px;
   padding: 10px;
   left: 1400px;
   top: 47px;
   position: absolute;
   background: #664C43;
   border-radius: 20px;
   display: flex;
   justify-content: center;
   align-items: center;
   text-decoration: none;
}

.home-text {
   color: #997266;
   font-size: 31px;
   font-family: "Montserrat Alternates";
   font-weight: 600;
}

/* CÍRCULOS */
.circle-btn {
   width: 160px;
   height: 160px;
   padding: 10px;
   position: absolute;
   background: #997266;
   border-radius: 360px;
   display: flex;
   justify-content: center;
   align-items: center;
   text-align: center;
   color: #A3B675;
   font-size: 15px;
   font-family: "Montserrat Alternates";
   font-weight: 600;
   line-height: 20px;
   text-decoration: none;
}

/* POSICIONES */
.btn-sonido { left: 50px; top: 330px; }
.btn-encuentro { left: 250px; top: 580px; }
.btn-ataque { left: 650px; top: 500px; }
.btn-frailejon { left: 400px; top: 220px; }
.btn-decision { left: 1050px; top: 600px; }
.btn-final-2 { left: 1100px; top: 100px; }
.btn-activista { left: 800px; top: 250px; }
.btn-final { left: 1240px; top: 400px; }

/* FONDO GENERAL */
.contenedor {
   width: 2000px;
   height: 850px;
   position: relative;
   overflow: hidden;
   background-image: url('assets/SELECCIÓN DE CAPÍTULOS.png');
   background-size: cover;
   background-position: center;
}

/*SELECCIÓN DE CAPÍTULOS*/
/*PERSONAJES*/

/* ======== GENERALES ======== */

body {
    margin: 0;
    padding: 0;
    background-size: cover;
    background-repeat: no-repeat;
    font-family: "Montserrat Alternates", sans-serif;
}

/* ======== HEADER ======== */

.personajes-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items:center;
    padding: 25px 40px;
    position: relative;
}

.personajes-home {
    background: #664C43;
    padding: 20px 40px;
    border-radius: 20px;
    color: #CCA988;
    font-size: 28px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
}

.personajes-barra {
    width: 600px;
    height: 100px;
    background: linear-gradient(90deg, #CCA988 17%, #A3866B 78%, #72492E 99%);
    border-radius: 20px;
}

.personajes-titulo {
    color: #664C43;
    font-size: 50px;
    font-weight: 100px;
    padding: 20px;
    margin: 0;
    text-align: center;
}

/* ======== GRID DE PERSONAJES ======== */

.personajes-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 60px;
    padding: 40px;
    margin-top: 40px;
}

.personaje-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.personaje-img {
    width: 260px;
    height: auto;
}

.personaje-text {
    margin-top: 20px;
    width: 100%;
    max-width: 260px;
    color: #FDB98C;
    font-size: 16px;
    line-height: 20px;
}

.personaje-text strong {
    font-size: 20px;
    font-weight: 700;
    color: #FFD1A9;
}

/* ======== RESPONSIVE (opcional para mejor visualización) ======== */

@media (max-width: 1200px) {
    .personajes-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .personajes-barra {
        width: 400px;
        height: 140px;
    }
}

@media (max-width: 768px) {
    .personajes-header {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .personajes-barra {
        width: 90%;
        height: 120px;
    }

    .personajes-container {
        grid-template-columns: 1fr;
        padding: 20px 40px;
    }
}

/*PERSONAJES*/
/*FINAL BUENO*/

.final-bueno {
  width: 100%;
  height: 850px;
  position: relative;
  overflow-x: auto;
  background-image: url('assets/FINAL A.png'); 
  background-size: cover;
  background-repeat: no-repeat;
  background-position: top;
  text-align: left;
  font-size: 31px;
  color: #664c43;
  font-family: 'Montserrat Alternates', sans-serif;
}

.aprend-que-existen {
  position: left;
  overflow: auto;
  top: 180px;
  margin: 20px;
  text-align: center;
  width: 40%;
  font-weight: 500;
  font-size: 24px;
  line-height: 1.3;
  color: #1a1a1a; 
  background-color: rgba(240, 255, 255, 0.4);
  padding: 20px;
  border-radius: 50px;
}

.banner-final-bueno {
  position: absolute;
  top: 40px;
  right: 0;
  background-color: #8da36d; /* Verde oliva */
  padding: 20px 60px 20px 40px;
  color: #483C32;
  font-weight: 700;
  font-size: 28px;
  text-transform: uppercase;
}

.btn-regresar {
  position: absolute;
  bottom: 60px;
  right: 60px;
  background-color: #8da36d; /* Verde oliva */
  padding: 15px 30px;
  border-radius: 10px;
  color: #483C32;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  text-align: center;
}
.btn-regresar:hover{
  background-color:#6e9d55;
  transform: scale(1.1);
}
/*FINAL BUENO*/
/*FINAL MALO*/

.final-malo {
  width: 100%;
  height: 850px;
  position: relative;
  overflow: hidden;
  background-image: url('assets/FINAL B.png'); 
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
  text-align: left;
  font-size: 31px;
  color: #664c43;
  font-family: 'Montserrat Alternates', sans-serif;
}

.al-final-nada {
  position: auto;
  overflow: auto;
  top: 180px;
  margin: 60px;
  text-align: center;
  width: 45%;
  font-weight: 3mm;
  font-size: 24px;
  line-height: 1.3;
  color: #1a1a1a; 
  background-color: rgba(240, 255, 255, 0.4);
  border-radius: 50px;
  padding: 20px;
}

.banner-final-malo {
  position: absolute;
  top: 40px;
  right: 0;
  background-color: rgba(163, 110, 110, 0.7); /* Fondo semi-transparente rojo */
  padding: 20px 60px 20px 40px;
  color: #FFFFFF;
  font-weight: 700;
  font-size: 28px;
  text-transform: uppercase;
}

.btn-regresar-malo {
  position: absolute;
  bottom: 60px;
  right: 60px;
  background-color: rgba(163, 110, 110, 0.7); /* Fondo semi-transparente rojo */
  padding: 15px 30px;
  border-radius: 10px;
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  text-align: center;
}
.btn-regresar-malo:hover{
  background-color:#72492E;
  transform: scale(1.1);
}
/*FINAL MALO*/

/* BLOQUE DE IMAGEN AL LADO DERECHO DE LOS BOTONES */
.intro-side-box {
    position: absolute;
    left: 1000px;  
    top: 200px;   
    width: 150px;  
    text-align: center;
    color: black;
}

.intro-side-box img {
    width: 100%;
    border-radius: 8px;
}

.intro-side-box p {
    margin-top: 10px;
    font-size: 16px;
    line-height: 16px;
    
}