:root {
    --bg-dark: #2d2621;
    --bg-light: #f9f6f0;
    --gold: #c19d53;
    --gold-hover: #a38141;
    --text-dark: #333333;
    --text-muted: #666666;
    --white: #ffffff;
}

/* Reset & Global Styles updates */
body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-light);
    margin: 0;
    overflow-x: hidden;
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 85vh; /* Le damos un poco más de aire vertical */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, 
        rgba(45, 38, 33, 0.85) 0% 
        rgba(19, 16, 14, 0.95) 80%, 
        #3d342d 100%
    );
    background: linear-gradient(180deg, rgba(45, 38, 33, 0.85) 0%, rgba(19, 16, 14, 0.95) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    padding: 0 1.5rem;
    color: var(--white); /* Forzamos que los textos del hero sean blancos por defecto */
}

.hero-content h1 {
    color: var(--white);
}

.animate-fade-entry {
    opacity: 0;
    transform: translateY(15px);
    animation: fadeEntryIn 1s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

h1.animate-fade-entry { animation-delay: 0.2s; }
p.animate-fade-entry { animation-delay: 0.4s; }
button.animate-fade-entry { animation-delay: 0.6s; }

.gold-text {
    color: var(--gold);
    font-family: 'Playfair Display', Georgia, serif; /* Si usas Playfair en tu PDP, úsala aquí también */
    font-style: italic;
}

.hero-content p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 2rem auto;
    color: #dfdfdf;
    font-weight: 300;
}

.tagline {
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Buttons */
.btn-primary, .btn-secondary {
    padding: 0.8rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary {
    background-color: var(--gold);
    color: var(--white);
    padding: 1rem 2.5rem; /* Más espaciado */
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 4px; /* Bordes ligeramente menos redondeados se asocian más al lujo nicho */
    box-shadow: 0 4px 15px rgba(193, 157, 83, 0.3);
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.btn-primary:hover {
    background-color: var(--gold-hover);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(193, 157, 83, 0.5);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--gold);
    color: var(--gold);
}

.btn-secondary:hover {
    background-color: var(--gold);
    color: var(--white);
}

/* Features Section */
.features-container {
    padding: 5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.features-section {
    background-color: #fdfbf7; /* Mantiene tu elegante fondo crema base */
    padding: 5rem 2rem;
    text-align: center;
    position: relative; /* Esencial para controlar el fondo absoluto */
    overflow: hidden; /* Evita que el fondo se salga de los bordes */
}

.features-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    
    /* 1. Vinculamos tu imagen */
    background-image: url('../images/ingredientes2.jpg'); 
    
    /* 2. Logramos la continuidad infinita */
    background-repeat: repeat; 
    
    /* 3. Ajustamos el tamaño para que no se vea gigantesca ni tosca */
    background-size: 350px; /* Puedes bajarlo a 250px o subirlo a 400px según tu gusto */
    
    background-position: top left;
    
    /* 4. EL TRUCO DE TRANSPARENCIA: La volvemos una marca de agua ultra sutil */
    opacity: 0.12; /* 0.12 significa 12% de opacidad. Así los colores vivos se suavizan por completo */
    
    z-index: 1; /* Se queda atrás de las tarjetas y textos */
}

.features-section .features-divider-line,
.features-section .section-title,
.features-section .features-grid {
    position: relative;
    z-index: 2; /* Mayor que el z-index del ::before */
}

/* Líneas decorativas sutiles al lado del título principal */
.features-divider-line {
    width: 60px;
    height: 1px;
    background-color: var(--gold, #c19d53);
    margin: 1rem auto;
    opacity: 0.6;
}

.section-title {
    color: #13100e;
    font-size: 2rem;
    letter-spacing: 1px;
    margin: 0.5rem 0;
}

.features-grid {
    display: block; /* WeasyPrint/Diseño fluido seguro */
    max-width: 1200px;
    margin: 3rem auto 0 auto;
    text-align: center;
}

.feature-card {
    display: inline-block;
    vertical-align: top;
    background-color: #ffffff; /* Blanco puro para resaltar sobre el fondo crema */
    width: 30%;
    min-width: 280px;
    margin: 1% 1.5%;
    padding: 3rem 2rem;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03); /* Sombra extremadamente suave */
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    box-sizing: border-box;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(193, 157, 83, 0.12); /* Destello sutil dorado */
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 1.2rem;
}

.icon-wrapper {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem auto;
    background-color: #fdfbf7; /* Fondo a juego con la sección */
    border-radius: 50%;
    display: table; /* Para centrado perfecto */
}

.feature-icon {
    display: table-cell;
    vertical-align: middle;
    width: 32px;
    height: 32px;
    color: var(--gold, #c19d53); /* El color dorado de Scent Vault SV */
    margin: 19px auto; /* Centrado manual del vector */
    transition: color 0.3s ease;
}

.feature-card:hover .feature-icon {
    color: #13100e; /* El icono cambia a negro/marrón oscuro en hover para dar feedback visual */
}

.feature-card h3 {
    font-family: 'Playfair Display', Georgia, serif;
    color: #13100e;
    font-size: 1.25rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.feature-card p {
    color: #5a544f; /* Gris cálido para lectura descansada */
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Process Section */
.process-section {
    background-color: #f1ede4;
    padding: 5rem 2rem;
    text-align: center;
}

.process-content {
    max-width: 700px;
    margin: 0 auto;
}

.process-content h2 {
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.process-content p {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 2rem;
}

/* --- ANIMATION BASE ENGINE --- */
.reveal, .reveal-left, .reveal-right, .reveal-up {
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform, opacity;
}

.reveal { transform: scale(0.95); }
.reveal-left { transform: translateX(-50px); }
.reveal-right { transform: translateX(50px); }
.reveal-up { transform: translateY(50px); }

/* Class added by JavaScript when element scrolls into view */
.active-view {
    opacity: 1;
    transform: translate(0) scale(1);
}

/* Sección de cierre antes del footer */
.cta-closure-section {
    position: relative;
    padding: 6rem 2rem 5rem 2rem; /* Ajustamos el padding inferior */
    text-align: center;
    background-color: #1a1613; 
    background-size: cover;
    background-position: center;
    overflow: hidden;
    margin-bottom: 0; /* Forzamos que no haya margen externo */
}

/* Capa de contraste para asegurar la legibilidad del texto blanco */
.cta-closure-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* El degradado termina exactamente en el color de fondo de tu footer (ej: #13100e) */
    background: linear-gradient(180deg, 
        rgba(26, 22, 19, 0.92) 0%, 
        rgba(19, 16, 14, 0.95) 80%, 
        #3d342d 100%
    );
    z-index: 1;
}

/* Contenido flotante sobre el overlay */
.cta-closure-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    margin: 0 auto;
}

.cta-tagline {
    color: var(--gold, #c19d53);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 1rem;
}

.cta-closure-content h2 {
    color: #ffffff;
    font-size: 2.25rem;
    margin-bottom: 1.5rem;
    letter-spacing: 0.5px;
}

.cta-description {
    color: #bfb7b0; /* Gris claro/arena muy elegante */
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 2.5rem;
}

/* Botón final llamativo */
.final-cta-btn {
    padding: 1.2rem 3rem !important;
    font-size: 1rem !important;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: 0 4px 20px rgba(193, 157, 83, 0.4);
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.final-cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(193, 157, 83, 0.6);
}