/* --- RESET Y VARIABLES GLOBALES --- */
:root {
    --primary: #D0AC00;
    --dark: #111111;
    --light: #fdfdfd;    --text-dark: #803329;
    --text-light: #f0f0f0;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Lato', sans-serif;
    color: var(--text-dark);
    overflow: hidden; /* Clave para el efecto full-page */
    position: relative;
}

.transition-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #F1EDDC; /* Color base de la transición */
    z-index: 5000;
    pointer-events: none;
    transform: translateY(-100%);
    transition: transform 0.6s cubic-bezier(0.83, 0, 0.17, 1);
}

.transition-overlay.is-active {
    transform: translateY(0);
}

/* --- ESTRUCTURA FULL-PAGE --- */
#fullpage-container {
    position: relative;
    width: 100%;
    height: 100vh;
    transition: transform 0.8s cubic-bezier(0.65, 0, 0.35, 1);
}

.section {
    width: 100vw;
    height: 100vh;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.section .container {
    position: relative;
    z-index: 2;
}

.container { max-width: 1200px; width: 90%; margin: 0 auto; }

/* --- HEADER Y MENÚ (Copiado de index.html) --- */
.main-header {
    position: fixed; top: 0; left: 0; width: 100%; padding: 2rem; display: flex; justify-content: space-between; align-items: center; z-index: 100; transition: filter 0.5s ease;
}
.main-header .logo img { height: 70px; }
.menu-toggle { width: 30px; height: 22px; display: flex; flex-direction: column; justify-content: space-between; cursor: pointer; z-index: 1001; /* Por encima del menú fullscreen */ }
.menu-toggle span { width: 100%; height: 2px; background-color: var(--dark); transition: transform 0.3s ease, opacity 0.3s ease; }
.menu-toggle.active span { background-color: white; /* Asegura que la 'X' sea blanca */ }
.menu-toggle.active span:nth-child(1) { transform: translateY(10px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-10px) rotate(-45deg); }
.fullscreen-nav { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: var(--dark); z-index: 1000; display: flex; flex-direction: column; justify-content: center; align-items: center; opacity: 0; visibility: hidden; transition: opacity 0.5s ease, visibility 0.5s ease; }
.fullscreen-nav.active { opacity: 1; visibility: visible; }
.fullscreen-nav-header { position: absolute; top: 0; left: 0; width: 100%; padding: 2rem; }
.fullscreen-nav-header .logo img { height: 80px; filter: brightness(0) invert(1); }

.close-menu-btn {
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-size: 3rem;
    color: white;
    cursor: pointer;
    line-height: 1;
    z-index: 1001;
    transition: transform 0.3s ease;
}
.close-menu-btn:hover { transform: scale(1.2); }

.fullscreen-nav-links { display: flex; flex-direction: column; align-items: center; gap: 2rem; }
.fullscreen-nav-links a { font-family: 'Playfair Display', serif; font-size: clamp(2.5rem, 6vw, 4rem); color: var(--primary); text-decoration: none; transition: transform 0.3s ease, opacity 0.3s ease; opacity: 0.8; }
.fullscreen-nav-links a:hover { transform: scale(1.1); opacity: 1; }

.fullscreen-nav-links .lang-switcher-menu a {
    font-family: 'Lato', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    opacity: 0.7;
}

/* --- NAVEGACIÓN VERTICAL --- */
.page-nav {
    position: fixed;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.page-nav .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: transparent;
    border: 1px solid rgba(0, 0, 0, 0.4);
    transition: background-color 0.4s ease, transform 0.4s ease, border-color 0.4s ease;
    cursor: pointer;
}
.page-nav .dot.active {
    border-color: var(--primary);
    background-color: var(--primary);
    transform: scale(1.3);
}

/* --- ANIMACIONES DE CONTENIDO --- */
.content-wrapper {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease 0.5s, transform 0.8s cubic-bezier(0.19, 1, 0.22, 1) 0.5s;
}
.section.active .content-wrapper {
    opacity: 1;
    transform: translateY(0);
}

/* --- ESTILOS DE LA PÁGINA DE PRODUCTO --- */
#section-product-hero { text-align: center; }
#section-product-hero .tagline { font-weight: 600; color: var(--primary); text-transform: uppercase; letter-spacing: 2px; margin-bottom: 1rem; display: block; }
#section-product-hero h1 { font-family: 'Playfair Display', serif; font-size: clamp(3.5rem, 8vw, 6rem); color: var(--text-dark); }
#section-product-hero p { font-size: 1.2rem; max-width: 600px; margin: 1.5rem auto 0; line-height: 1.7; }

#section-product-gallery { text-align: center; }
.product-gallery-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
}
#section-product-gallery img {
    max-height: 80vh;
    max-width: 100%;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.15));
    transition: transform 0.4s ease;
}
.product-image-wrapper:hover img {
    transform: scale(1.05);
}
.product-features h2 { font-family: 'Playfair Display', serif; font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 1.5rem; color: var(--text-dark); }
.product-features ul { list-style: none; padding-left: 0; margin-bottom: 1.5rem; }
.product-features li { font-size: 1.1rem; line-height: 1.6; margin-bottom: 0.8rem; display: flex; align-items: center; }
.product-features li::before { content: '✓'; color: var(--primary); margin-right: 0.8rem; font-size: 1.3rem; font-weight: bold; }
.product-features p { font-size: 1.1rem; line-height: 1.8; }

#section-product-details { background-color: white; }
.details-layout { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 4rem; }
.details-text h2 { font-family: 'Playfair Display', serif; font-size: clamp(2.5rem, 5vw, 3.5rem); margin-bottom: 1.5rem; color: var(--text-dark); }
.details-text p { font-size: 1.1rem; line-height: 1.8; margin-bottom: 1rem; }
.details-image img {
    width: 100%; max-width: 400px; display: block; margin: 0 auto;
    transition: transform 0.4s ease;
}

/* --- FOOTER (Copiado de index.html) --- */
#section-footer {
    position: relative; /* Ensure video is positioned relative to this */
    background-color: transparent; /* No background color needed, video will cover */
    color: var(--text-light); /* Default text color for content on video */
    text-align: center;
}
#section-footer .video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0; /* Behind the content */
}
.footer-content-overlay {
    position: relative; /* To be on top of the video */
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* Alinea el contenido abajo */
    align-items: center;
    width: 100%;
    height: 100%; /* Occupy full section height */
    padding-bottom: 2rem; /* Espacio desde el borde inferior */
}
.footer-content-overlay p { font-size: 0.9rem; color: rgba(255, 255, 255, 0.7); margin-bottom: 0.5rem; }
.footer-content-overlay .credits a { text-decoration: none; font-weight: bold; color: rgba(255, 255, 255, 0.7); }
.footer-content-overlay .credits a:hover { color: white; }

@media (min-width: 768px) {
    .product-gallery-layout {
        grid-template-columns: 1fr 1fr;
        text-align: left;
    }
}
@media (max-width: 768px) {
    .details-layout { grid-template-columns: 1fr; }
    .details-image { order: -1; margin-bottom: 2rem; }
    .product-gallery-layout { text-align: center; }
}