body, html {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
    font-family: 'Literata', serif;
    font-size: 18px;
    line-height: 1.6;
    color: #f5f1e8;
}
h1,h2,h3,h4,h5,h6,
.scene4-title,
.scene3-title,
.scene6-title{
    font-family: "League Gothic", sans-serif;
    font-weight: 400;
    letter-spacing: 0em;
    line-height: 1;
    text-transform: uppercase;
}

html,
body{
    scrollbar-width:none;
    -ms-overflow-style:none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar{
    display:none;
}

@font-face {
    font-family: 'Afolkalips';
    src:
        url('fonts/Afolkalips.woff') format('woff'),
        url('fonts/Afolkalips.otf') format('opentype');
    font-display: swap;
}

/* =========================
GLOBAL
========================= */

/*h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Afolkalips', serif;
}*/

a,
a:link,
a:visited,
a:hover,
a:active{

    color: inherit;

    text-decoration: none;

}

a{

    cursor: pointer;

    -webkit-tap-highlight-color: transparent;

}
/* =========================
PRELOADER
========================= */

#preloader{

    position:fixed;

    inset:0;

    background:#1B1A18;

    z-index:99999;

    pointer-events:none;
}

/* =========================
ICON
========================= */

#menuIcon{

    position:fixed;

    left:50%;

    top:50%;

    transform:translate(-50%,-50%);


    width:min(50vw,500px);

    height:auto;

    z-index:999999;

    cursor:pointer;

    pointer-events:auto;

    transition: transform 0.2s ease;
}
  

#menuIcon:hover {
  animation: flash-hover 0.25s linear;
}

@keyframes flash-hover {
  0%,100% { opacity: 1; }
  15% { opacity: 0; }
  30% { opacity: 1; }
  45% { opacity: 0; }
  60% { opacity: 1; }
}

.fullscreen-menu{

    position:fixed;

    inset:0;

    background:rgba(27, 26, 24,.95);

    backdrop-filter:blur(10px);

    z-index:1000000;

    opacity:0;

    visibility:hidden;

    pointer-events:none;

    transition:.35s;
}

.fullscreen-menu.open{

    opacity:1;

    visibility:visible;

    pointer-events:auto;
}

.fullscreen-menu nav{

    height:100%;

    display:flex;

    flex-direction:column;

    justify-content:center;
    align-items:center;

    gap:2rem;
}

.fullscreen-menu a{

    color: #E8DFC8;

    text-decoration:none;

    font-size:clamp(2rem,4vw,5rem);
}

.menu-close{

    position:absolute;

    top:30px;

    right:30px;

    width:60px;

    height:60px;

    border:none;

    background:none;

    color: #E8DFC8;

    font-size:3rem;

    cursor:pointer;
}




.viewport {
  position: relative;
}

.scene {
  height: 100vh;
  width: 100vw;
  position: relative;
  overflow: hidden;
}
.secene.hero{
    background: #E8DFC8;;
}

/* =========================
HERO BACKGROUND
========================= */
.hero .bg {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  top: 0;
  left: 0;
}

/* =========================
LOGO
========================= */
.logo-wrapper {
  position: absolute;
  top: 50%;
  right: 0%;
  transform: translate(-50%, -50%);
  width: 25vw;
  z-index: 51;
  min-width: 450px;
}

.logo {
  width: 100%;
  height: auto;
  display: block;
}

.saga-cta{
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:15px;
}

/* BOTÓN PRINCIPAL */

.btn-buy{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:220px;
    height:60px;
    background:#1B1A18;
    color:#E8DFC8 !important;
    text-decoration:none;
    font-family:inherit;
    font-size:18px;
    font-weight:700;
    border-radius:0;
    transition:all .25s ease;
    margin-top: 3rem;
}

.btn-buy:hover{
    transform:translateY(-4px);
    box-shadow:0 10px 25px rgba(27, 26, 24,.45);
    background: #E8DFC8;
    color: #1B1A18 !important;
}

/* BOTÓN SECUNDARIO */

.btn-read{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:170px;
    height:45px;
    background:#E8DFC8;
    color:#1B1A18;
    text-decoration:none;
    font-family:inherit;
    font-size:15px;
    font-weight:600;
    border:2px solid #1B1A18;
    transition:all .25s ease;
}

.btn-read:hover{
    transform:translateY(-3px);
    box-shadow:0 8px 18px rgba(27, 26, 24,.25);
    background: #E8DFC8;
}

.btn-buy{
    background:#1B1A18;
    color:#E8DFC8;
    letter-spacing:2px;
    text-transform:uppercase;
}

.btn-read{
    color:#1B1A18;
    letter-spacing:1px;
    text-transform:uppercase;
}

/* =========================
KAaury (FIX FINAL)
========================= */
.kaaury-wrapper {
  position: absolute;
  left: -5%;
  top: 50%;
  transform: translateY(-50%);
  overflow: visible;
  z-index: 50;
}

.kaaury {
  height: 120vh;     /* 👈 FIJO */
  width: auto;       /* 👈 proporcional */
  display: block;
  max-width: none;
}

/* =========================
MAPA
========================= */
/* =========================
MAP SCENE
========================= */

.map-scene{

    position:relative;

    height:100vh;

    overflow:hidden;
    background: #170408;
}

/* =========================
MAP WRAPPER
========================= */

.map-wrapper{

    position:absolute;

    inset:0;

    display:flex;

    justify-content:center;

    align-items:center;

    z-index:1;
}

.map-wrapper h2 {
    position: absolute;
    top: 15px;
    left: 100px;
    color: #1B1A18;
    font-size: 6rem;
    text-shadow:
    0 0 5px #E4BF7D,
    0 0 10px #E4BF7D,
    0 0 20px #E4BF7D;
}

.map-wrapper .youtube {
    position: absolute;
    bottom: 50px;
    right: 100px;
    width: 35vw;
    padding: 20px;
}

.map-wrapper .youtube a {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 10px;
  transition: all 0.25s ease;
  will-change: transform;
  border: 2px solid #1B1A18;
  background: rgba(228, 191, 125, 0.3);
}

.map-wrapper .youtube a:hover {
  transform: scale(1.2);
  background: rgba(228, 191, 125, 0.75);
  box-shadow: 0 0 15px rgba(228, 191, 125, 0.4);
}

.map-wrapper .youtube img {
    position: relative;
    float: left;
    margin-right: 1rem;
    width: 50px;
    height: auto;
}

.map-wrapper .youtube h3 {
    line-height: 50px;
    margin: 0;
    font-size: 2.5rem;
    color: #1B1A18;
}

.map{

    width:100%;
    height:100%;

    object-fit: fill;
}

/* =========================
CARDS OVER MAP
========================= */

.map-cards{

    position:absolute;

    top:50%;

    left:0;

    transform:translateY(-50%);

    display:flex;

    gap:12vw;

    padding-left:100vw;

    padding-right:5vw;

    width:max-content;

    z-index:10;

    will-change:transform;

}

/* =========================
CARD
========================= */

.card{

    flex:0 0 auto;

    width:20vw;

    min-width: 300px;

    height:400px;

    padding:20px;

    background: rgba(27, 26, 24, 0.45);

    border:1px solid rgba(255,255,255,.2);

    backdrop-filter:blur(10px);

    color: #E8DFC8;

    transition: transform 0.3s ease !important;

}

.card:hover {
    background: #E8DFC8;;
    transform: scale(1.1) !important;
    color: #1B1A18;
}

.card h3{

    margin:0 0 1rem;

    font-size:1.5rem;
}

.card p{

    margin:0;

    line-height:1.5;
}

.yt-thumb {
  position: relative;
  display: inline-block;
  max-width: 100%;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
}

.yt-thumb img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.3s ease;
}

.yt-thumb:hover img {
  transform: scale(1.05);
}

.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 60px;
  color: #E8DFC8;
  text-shadow: 0 0 20px rgba(27, 26, 24,0.8);
  pointer-events: none;
}



/* =====================================================
SCENE 3
===================================================== */

.scene-3{

    position:relative;

    width:100%;

    background:#170408;

    color:#E8DFC8;

    padding:6rem 2vw;

    overflow:visible;

    display:block;

    height:auto;

    min-height:unset;

}

/* =====================================================
GRID
===================================================== */

.scene3-grid{

    width:100%;

    display:grid;

    grid-template-columns:repeat(4,minmax(0,1fr));

    gap:1.5rem;

    align-items:start;

    grid-auto-rows:auto;
}

/* =====================================================
INTRO
===================================================== */

.scene3-intro{

    grid-column:span 2;

    align-self:center;

}

/* =====================================================
TITLE
===================================================== */

.scene3-title{

    display:flex;

    flex-wrap:wrap;

    margin:0 0 1.5rem;

    font-size:clamp(3rem,6vw,7rem);

    line-height:.9;

    font-weight:900;

}

.scene3-title span{

    opacity:0;

    transform:translateY(40px);

}

/* =====================================================
TEXT
===================================================== */

.scene3-text{

    max-width:650px;

    font-size:1.1rem;

    line-height:1.8;

    opacity:0;

    transform:translateY(30px);

}

/* =====================================================
ITEMS
===================================================== */

.grid-item{

    position:relative;

    overflow:hidden;

    border-radius:14px;

    background:#2A2A2A;

    aspect-ratio:4/3;

    opacity:0;

    transform:translateY(40px);

}


.scene3-grid>*{

    min-width:0;

}


/* =====================================================
VARIANTS
===================================================== */

.grid-item.big{
    grid-column:span 2;
    aspect-ratio:16/9;

}

.grid-item.tall{
    grid-column:span 1;
    grid-row:span 3;
    aspect-ratio:9/16;

}

.grid-item.wide{
    grid-column:span 2;
    aspect-ratio:21/9;
}

.grid-item.square{
    grid-column:span 1;
    aspect-ratio:1/1;
}

.grid-item.portrait-xl{
    grid-column:span 1;
    grid-row:span 1;
    aspect-ratio:2/3;
}

.grid-item.feature{
    grid-column:span 2;
    grid-row:span 2;
    aspect-ratio:1/1;
}

/* =====================================================
IMAGES
===================================================== */

.grid-item img{

    position:absolute;

    inset:0;

    width:100%;

    height:100%;

    object-fit:cover;

    object-position:center;

    display:block;

    transition:transform .5s ease;

}

.grid-item:hover img{

    transform:scale(1.05);

}

/* =====================================================
RESPONSIVE
===================================================== */

@media(max-width:1100px){

    .scene3-grid{

        grid-template-columns:repeat(2,minmax(0,1fr));

    }

    .scene3-intro{

        grid-column:span 2;

    }

}

@media(max-width:768px){

    .scene-3{

        padding:6vw;

    }

    .scene3-grid{

        grid-template-columns:1fr;

    }

    .scene3-intro{

        grid-column:auto;

    }

    .grid-item.big,
    .grid-item.tall{

        grid-column:auto;

        grid-row:auto;

        aspect-ratio:4/3;

    }

    .scene3-title{

        font-size:clamp(2.5rem,10vw,4rem);

    }

}


/* =========================
SCENE 4
========================= */

.scene-4 {
  background: #E8DFC8;
  position: relative;
  height: 100vh;
  width: 100vw;
  padding: 1em;
  box-sizing: border-box;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* =========================
FONDO
========================= */
.scene4-bg {
  position: absolute;
  inset: 1em; /* 👈 padding visual */
  background-image: url("images/bg-oldbooks.jpg");
  background-size: cover;
  background-position: center;
  border-radius: 10px;
  z-index: 0;
  filter: brightness(0.5);
}

/* =========================
CONTENIDO
========================= */
.scene4-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #E8DFC8;
}

/* estado inicial para animación */
.scene4-subtitle,
.scene4-title,
.scene4-btn {
  opacity: 0;
  transform: translateY(40px);
}

/* estilos texto */
.scene4-subtitle {
  font-size: 2rem;
  margin-bottom: 10px;
  letter-spacing: 2px;
}

.scene4-title {
  font-size: 6vw;
  margin-bottom: 20px;
}

.scene4-btn {
  font-family: "League Gothic", sans-serif;
  padding: 12px 24px;
  border: none;
  background: #1B1A18;
  color: #E8DFC8;
  font-weight: bold;
  font-size: 2em;
  cursor: pointer;
  border-radius: 6px;
}
.scene4-subtitle,
.scene4-title,
.scene4-btn {
  opacity: 0;
  transform: translateY(40px);
}

/* =========================
SCENE 5
========================= */

.scene-5{
    position: relative;
    height: 100vh;
    overflow: hidden;
}

/* =========================
FONDO
========================= */

.scene5-bg{
    position: absolute;
    inset: 0;
    background: url("images/bg-04.jpg") center center;
    background-size: cover;
    z-index: 1;
}

/* =========================
STICKY LAYER (BASE DE ESCENA)
========================= */

.scene5-sticky{
    position: relative;
    height: 100vh;
    overflow: hidden;
    z-index: 2;
}

/* =========================
TEXTO GRANDE (TRACK HORIZONTAL)
========================= */

.scene5-text-track{
    position: absolute;
    top: 0;
    left: 0;

    width: max-content;

    z-index: 2;

    pointer-events: none;
}

.scene5-text-track h2{
    margin: 0;
    font-size: 20vw;
    font-weight: 900;
    #E8DFC8;-space: nowrap;
    color: #E8DFC8;
    line-height: 1;
}

/* =========================
KAaury (IMAGEN VERTICAL 200vh)
========================= */

.scene5-character{
    position:absolute;
    top:0;
    left:50%;
    z-index: 900;
    transform:translateX(-50%);
}

.scene5-character img{
    height: 200auto;
    width: 100vw;
    display: block;
}

/* =========================
COPY CENTRADO (FIX PRO)
========================= */


.scene5-copy-wrapper{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    text-align: center;
    z-index: 10;
    pointer-events: none;
}

.scene5-copy{
    display: inline-block;
    font-size: calc(clamp(1.2rem, 2vw, 2rem) * 1.5);
    font-weight: 700;
    color: #E8DFC8;
    #E8DFC8;-space: nowrap;
    opacity: 0;
}


/* =========================
SCENE 6
========================= */

.scene-6{
    position: relative;
    height: 500vh;
}

.scene6-sticky{
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
}

/* BACKGROUNDS */
.scene6-bg{
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.4s ease; /* 🔥 MÁS LENTO COMO PEDISTE */
}

.scene6-bg.active{
    opacity: 1;
}

.bg-1{ background-image: url("images/e-02.jpg"); }
.bg-2{ background-image: url("images/e-03.jpg"); }
.bg-3{ background-image: url("images/e-04.jpg"); }
.bg-4{ background-image: url("images/e-05.jpg"); }

/* TITLE */
.scene6-title{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 4vw;
    color: #E8DFC8;
    font-weight: 800;
    z-index: 5;
}

/* BLOCK BASE */
.scene6-block{
    position: absolute;

    left: 50%;
    transform: translate(-50%, 100%); /* entra desde abajo */

    max-width: 420px;

    color: #E8DFC8;
    font-size: 1.3rem;

    text-align: center;

    opacity: 0;
}

/* cuando está activo = CENTRO PERFECTO */
.scene6-block.active{
    top: 50%;
    transform: translate(-50%, -50%);
    opacity: 1;
}

/* cuando sale */
.scene6-block.exit{
    transform: translate(-50%, -200%);
    opacity: 0;
}


/* =========================
SCENE 7
========================= */

.scene-7{

    position:relative;

    height:50vh;
    min-height: 500px;

    background:#1B1A18;

    overflow:hidden;

    display:flex;
    flex-direction:column;
}

/* =========================
MARQUESINA
========================= */

.scene7-marquee{
    width:100%;
    overflow:hidden;
    border-top:0px solid rgba(255,255,255,.1);
    border-bottom:0px solid rgba(255,255,255,.1);
    padding:1rem 0;
    margin-top:0rem;
    height:clamp(4rem,8vw,8rem);
}

.scene7-track{
    font-family: "League Gothic", sans-serif;
    display:flex;
    align-items:center;
    gap:3rem;
    width:max-content;
    animation:scene7Marquee 25s linear infinite;
}

.scene7-track span{

    font-size:clamp(4rem,8vw,8rem);

    font-weight:900;

    color: #E8DFC8;

    line-height:1;

    #E8DFC8;-space:nowrap;
}

.scene7-track img{

    height:clamp(3rem,6vw,6rem);

    width:auto;

    flex-shrink:0;
}

@keyframes scene7Marquee{

    from{
        transform:translateX(0);
    }

    to{
        transform:translateX(-50%);
    }

}

/* =========================
CONTENIDO
========================= */

.scene7-content{

    flex:1;

    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;

    gap:2rem;

    padding:4rem 2rem;

    max-width:700px;

    margin:auto;
}

.scene7-subtitle{

    color: #E8DFC8;

    text-align:center;

    font-size:1.15rem;

    line-height:1.8;
}

/* =========================
FORMULARIO
========================= */

.scene7-form{

    width:100%;

    display:flex;
    gap:1rem;
}

.scene7-form input{

    flex:1;

    height:60px;

    padding:0 1.5rem;

    background:#111;

    border:1px solid rgba(255,255,255,.15);

    color: #E8DFC8;

    font-size:1rem;
}

.scene7-form button{

    height:60px;

    padding:0 2rem;

    border:none;

    background:#E8DFC8;;

    color:#E8DFC8;

    font-weight:700;

    cursor:pointer;
}

.scene7-form button:hover{

    opacity:.9;
}


/* =========================
SCENE 8
========================= */

.scene-8{

    position:relative;

    width:100%;

    aspect-ratio:3840 / 1662;

    min-height:500px;

    overflow:hidden;

    background:#1B1A18;
}

/* =========================
LAYERS
========================= */

.parallax-layer{

    position:absolute;

    inset:0;

    overflow:hidden;
}

.parallax-layer img{

    width:100%;
    height:100%;

    object-fit:cover;

    display:block;
}

/* Z ORDER */

.layer-bg{
    z-index:1;
}

.layer-03{
    z-index:2;
}

.layer-02{
    z-index:3;
}

.layer-01{
    z-index:4;
}


/* =========================
SCENE 9
========================= */

.scene-9{

    position:relative;

    height:100vh;

    overflow:hidden;

    background:#E8DFC8;
}

/* =========================
LEFT CONTENT
========================= */

.scene9-content{

    position:sticky;

    top:0;

    height:90vh;

    width:50%;

    padding:3rem;

    display:flex;
    flex-direction:column;

    z-index:10;
}

/* =========================
LOGO
========================= */

.scene9-logo{

    width:200px;

    height:auto;
}

/* =========================
COPY
========================= */

.scene9-copy{

    flex:1;

    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:flex-start;

    opacity:0;

    transform:translateX(-150px);

    will-change:transform, opacity;
}

.scene9-copy h2{

    font-size:clamp(3rem,6vw,6rem);

    line-height:1;

    margin-bottom:2rem;

    color:#111;
}

.scene9-btn{

    display:inline-flex;

    align-items:center;

    height:60px;

    padding:0 2rem;

    background:#111;

    color: #E8DFC8;

    text-decoration:none;

    font-weight:700;
}

/* =========================
SOCIAL
========================= */

.scene9-social{

    display:flex;

    gap:1rem;
}

.scene9-social a{

    color:#111;

    text-decoration:none;

    font-weight:700;
}

/* =========================
FOLLOW
========================= */

.scene9-follow{

    position:absolute;

    right:0;

    top:0;

    height:70vh;

    writing-mode:vertical-rl;

    text-orientation:mixed;

    font-size:24vh;

    font-weight:900;

    line-height:1;

    color:rgba(27, 26, 24,.08);

    z-index:1;

    pointer-events:none;
}

/* =========================
CHARACTER
========================= */

.scene9-character{

    position:absolute;

    top:0;

    right:-10vw;

    width:60vw;

    height:100vh;

    z-index:5;

    display:flex;
    align-items:flex-end;
    justify-content:center;

    will-change:transform;
}

.scene9-character img{

    height:125%;

    width:auto;

    display:block;
}



/* =========================
SCENE 10
========================= */

.scene-10{

    position:relative;

    height:100vh;

    background:#1B1A18;
}

.scene10-sticky{

    position:sticky;

    top:0;

    height:100vh;

    overflow:hidden;

    display:flex;
    align-items:center;
    justify-content:center;
}


/* =========================
ICON
========================= */

.scene10-icon{

    position:absolute;

    left:50%;
    top:50%;

    transform:translate(-50%, -50%);

    z-index:1;
}

.scene10-icon img{

    height:70vh;

    width:auto;

    display:block;
}

/* =========================
FOOTER
========================= */

.scene10-footer{

    position:absolute;

    left:0;
    bottom:0;

    width:100%;
    box-sizing: border-box;

    min-height:80px;

    padding:1rem 2rem;

    display:flex;
    justify-content:space-between;
    align-items:center;

    color: #E8DFC8;

    font-size:.9rem;

    z-index:10;

    border-top:1px solid rgba(255,255,255,.1);
}

/* =========================
LEFT
========================= */

.footer-left{

    display:flex;
    align-items:center;
    gap:1rem;
}

.footer-signature{

    height:40px;

    width:auto;
}

.footer-left a{

    color: #E8DFC8;

    text-decoration:none;
}

/* =========================
CENTER
========================= */

.footer-center{

    opacity:.7;
}

/* =========================
RIGHT
========================= */

.footer-right{

    display:flex;
    gap:1rem;
}

.footer-right a{

    color: #E8DFC8;

    text-decoration:none;
}