/* ================================================= */
/* ================== FUENTES ====================== */
/* ================================================= */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;700;800&family=Cormorant+Garamond:ital,wght@1,600&display=swap');

/* ================================================= */
/* ================== VARIABLES ==================== */
/* ================================================= */
:root {
    --bg: #F8F3E8;
    --primary: #1a1a1a;
    --green: #6F7F6A;
    --green-dark: #4A5447;
    --border: #1a1a1a;
    --paper-shadow: rgba(0,0,0,0.1);
}

/* ================================================= */
/* ================== BASE ========================= */
/* ================================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: var(--bg);
    color: var(--primary);
    padding-top: 65px;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
}

/* ================================================= */
/* ================== HEADER ======================= */
/* ================================================= */
.main-header {
    position: fixed;
    top: 0;
    width: 100%;
    height: 65px;
    background: var(--green);
    display: flex;
    align-items: center;
    z-index: 2000;
    border-bottom: 1px solid var(--border);
    padding: 0 5%;
}

.header-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: white;
}

.logo img {
    height: 40px;
    border-radius: 50%;
}

.logo h1 { font-size: 1.1rem; font-weight: 800; color: black; }
.logo span { color: var(--bg); }

/* --- NAVEGACIÓN --- */
/* ================================================= */
/* ================== NAV LIST ===================== */
/* ================================================= */

.nav-list {
    display: flex;
    list-style: none;
    gap: 25px;
    align-items: center;
}

/* Efecto de subrayado al pasar el ratón */
.nav-list a {
    text-decoration: none;
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 4px;
    transition: 0.3s;
}

/* Línea animada (efecto invisible hasta el hover) */
.nav-list a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: white;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

/* Activación de la línea al hacer hover */
.nav-list a:hover::after {
    transform: scaleX(1);
}

.nav-list a:hover {
    opacity: 1;
}

/* Estilo para la página activa */
.nav-list a.active {
    border-bottom: 2px solid white;
}
/* --- HAMBURGUESA (NUEVO) --- */
.menu-toggle {
    display: none;
    font-size: 1.6rem;
    color: white;
    cursor: pointer;
    z-index: 2100;
}

.menu-toggle.active i::before {
    content: "\f00d";
}

.menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(4px);
    opacity: 0;
    pointer-events: none;
    transition: 0.3s;
    z-index: 1990;
}

.menu-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* ================================================= */
/* ================= ALBUM PEGATINAS ================ */
/* ================================================= */
#pagina-pegatinas .album-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: calc(100vh - 65px);
    perspective: 2000px;
    background: #e5e0d3;
    padding: 20px;
    overflow: hidden;
}

#pagina-pegatinas .book {
    position: relative;
    width: 360px;
    height: 480px;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
    box-shadow: 15px 15px 40px rgba(0,0,0,0.15);
    transform-origin: center;
}

/* Resto de estilos del libro... */
#pagina-pegatinas .paper { position: absolute; width: 100%; height: 100%; top: 0; left: 0; transform-origin: left; transform-style: preserve-3d; transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1); backface-visibility: hidden; }
#pagina-pegatinas .front, #pagina-pegatinas .back { position: absolute; width: 100%; height: 100%; top: 0; left: 0; backface-visibility: hidden; overflow: hidden; }
#pagina-pegatinas .front { z-index: 2; box-shadow: inset 4px 0 8px rgba(0,0,0,0.05); }
#pagina-pegatinas .back { z-index: 1; transform: rotateY(180deg); box-shadow: inset -4px 0 8px rgba(0,0,0,0.05); }
#pagina-pegatinas .page { width: 100%; height: 100%; background: #fff; padding: 25px; display: flex; flex-direction: column; border: 1px solid #ddd; background-image: linear-gradient(90deg, #f5f5f5 0%, #fff 5%, #fff 100%); }
.page.portada { background: var(--green) !important; background-image: radial-gradient(rgba(255,255,255,0.1) 1px, transparent 1px) !important; background-size: 15px 15px !important; color: white; justify-content: center; align-items: center; text-align: center; border-left: 12px solid var(--green-dark) !important; }
.portada-center h1 { font-size: 1.8rem; font-weight: 800; margin-top: 15px; }
.portada-center h1 span { display: block; font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 1.2rem; color: #A5B49E; }
.stickers-grid { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 15px; height: 100%; }
.sticker-item { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 8px; border: 1px dashed #ddd; border-radius: 12px; background: #fff; transition: transform 0.3s ease; }
.sticker-item img { width: 100%; height: 100px; object-fit: cover; border-radius: 8px; margin-bottom: 8px; filter: drop-shadow(2px 3px 5px rgba(0,0,0,0.1)); }
.sticker-item p { font-size: 0.7rem; font-weight: 800; text-transform: uppercase; }
.sticker-item span { font-size: 0.7rem; color: var(--green); font-weight: 800; }
.page.final-page { background: var(--green) !important; color: white; border-right: 12px solid var(--green-dark) !important; justify-content: center; align-items: center; text-align: center; }
.btn-small { margin-top: 20px; padding: 10px 25px; background: #000; color: #fff; text-decoration: none; font-size: 0.7rem; font-weight: 700; border-radius: 50px; text-transform: uppercase; }
.album-controls { margin-top: 25px; display: flex; gap: 20px; }
.nav-arrow { width: 50px; height: 50px; border-radius: 50%; border: 1px solid var(--border); background: white; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.nav-arrow:hover { background: #6F7F6A; color: white; }
.flipped { transform: rotateY(-180deg); }

/* ================================================= */
/* ============ FOOTER ============================= */
/* ================================================= */
.main-footer { background: #6F7F6A; color: white; padding: 60px 5% 30px; }
.footer-container { max-width: 1400px; margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px; }
.footer-brand h2 { font-size: 1.3rem; font-weight: 800; }
.footer-brand p { margin-top: 10px; font-size: 0.85rem; opacity: 0.8; }
.footer-links a { color: white; text-decoration: none; font-size: 0.85rem; font-weight: 600; }
.footer-social a { color: white; font-size: 1.2rem; margin-right: 15px; }
.footer-bottom { margin-top: 40px; text-align: center; font-size: 0.75rem; opacity: 0.7; }

/* ================================================= */
/* ================= MOBILE MENU =================== */
/* ================================================= */
@media (max-width: 768px) {

    .menu-toggle {
        display: block;
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
    }

    .nav-list {
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: 80%;
        max-width: 320px;

        background: rgba(111,127,106,0.98);
        backdrop-filter: blur(10px);

        flex-direction: column;
        align-items: flex-start;
        justify-content: center;

        padding: 40px;
        gap: 25px;

        transform: translateX(100%);
        transition: transform 0.35s ease;

        z-index: 2000;
    }

    .nav-list.active {
        transform: translateX(0);
    }

    .header-container {
        gap: 10px;
    }
}

/* ================================================= */
/* ============== SMALL MOBILE ===================== */
/* ================================================= */
@media (max-width: 480px) {

    .logo h1 {
        font-size: 0.9rem;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .btn-main {
        font-size: 0.65rem;
        padding: 10px 18px;
    }
}

