/* =========================================
   VARIABLES DE COLOR (Basado en tu paleta)
   ========================================= */
:root {
    --beige: #EBD6A6;
    --vino: #601915;
    --rojo: #AD2A29;
    --oscuro: #170D0C;
    --caqui: #B09775;
    --malva: #A6818C;
    --blanco: #FFFFFF;
    --fondo-claro: #FDFBF7; /* Un beige mucho más suave para fondos amplios */
}

/* =========================================
   ESTILOS GENERALES Y TIPOGRAFÍA
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--fondo-claro);
    color: var(--oscuro);
    overflow-x: hidden;
}

h1, h2, h3, .logo {
    font-family: 'Playfair Display', serif;
}

/* =========================================
   NAVEGACIÓN
   ========================================= */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background-color: var(--blanco);
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--vino);
    letter-spacing: 2px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--oscuro);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    transition: color 0.3s;
}

.nav-links a:hover { color: var(--rojo); }

/* =========================================
   BOTONES
   ========================================= */
.btn-solid, .btn-outline, .btn-solid-small, .btn-cart, .btn-solid-light {
    display: inline-block;
    text-decoration: none;
    border-radius: 30px; /* Bordes redondeados estilo "píldora" */
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-solid {
    background-color: var(--rojo);
    color: var(--blanco);
    padding: 1rem 2.5rem;
}

.btn-solid:hover { background-color: var(--vino); }

.btn-outline {
    background-color: transparent;
    color: var(--vino);
    border: 2px solid var(--vino);
    padding: 0.9rem 2.5rem;
}

.btn-outline:hover {
    background-color: var(--vino);
    color: var(--blanco);
}

.btn-solid-small {
    background-color: var(--vino);
    color: var(--blanco);
    padding: 0.8rem 2rem;
}
/* =========================================
   HERO SECTION (Cabecera)
   ========================================= */
.hero-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4rem 5% 6rem;
    background-color: var(--beige); /* Fondo de tu paleta */
    position: relative;
    min-height: 80vh;
}

.hero-text {
    flex: 1;
    max-width: 550px;
    z-index: 2;
}

.hero-text h1 {
    font-size: 4rem; /* Título muy grande como en la foto */
    line-height: 1.1;
    color: var(--oscuro);
    margin-bottom: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    font-family: 'Playfair Display', serif;
}

.hero-text p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2.5rem;
    color: #444; /* Un gris oscuro para que sea legible pero sutil */
    max-width: 450px;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
}

/* Botones específicos del Hero basados en la imagen */
.btn-primary-hero, .btn-secondary-hero {
    padding: 12px 35px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    font-family: 'Montserrat', sans-serif;
}

.btn-primary-hero {
    background-color: var(--caqui); /* Reemplaza el amarillo del modelo con tu Caqui */
    color: var(--oscuro);
}

.btn-primary-hero:hover {
    background-color: #9d8564; /* Un tono más oscuro al pasar el mouse */
}

.btn-secondary-hero {
    background-color: var(--rojo); /* Reemplaza el naranja oscuro del modelo con tu Rojo Intenso */
    color: var(--blanco);
}

.btn-secondary-hero:hover {
    background-color: var(--vino);
}

/* =========================================
   ESTILO "BLOB" ANIMADO (LÍQUIDO EN MOVIMIENTO)
   ========================================= */
.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative; 
    z-index: 1;
    padding: 2rem;
}

/* 1. LA MANCHA DE FONDO ANIMADA */
.hero-image::before {
    content: '';
    position: absolute;
    top: 5%;
    left: 10%;
    width: 80%;
    height: 90%;
    background-color: var(--caqui); 
    z-index: -1; 
    opacity: 0.6; 
    /* Llamamos a la animación. Durará 8 segundos y se repetirá infinito */
    animation: fluirFondo 8s ease-in-out infinite;
}

/* 2. LA FOTO CON MOVIMIENTO SUTIL */
.hero-image img {
    width: 100%;
    max-width: 450px;
    aspect-ratio: 1 / 1; 
    object-fit: cover; 
    box-shadow: 0 20px 40px rgba(0,0,0,0.15); 
    /* Llamamos a la animación de la foto. Durará 10 segundos para desfasarse del fondo */
    animation: fluirFoto 10s ease-in-out infinite;
}

/* =========================================
   LOS "MOTORES" DE LA ANIMACIÓN (KEYFRAMES)
   ========================================= */

/* Motor para la mancha caqui (Se deforma y se mueve un poco) */
@keyframes fluirFondo {
    0% { 
        border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; 
        transform: translate(0, 0) scale(1);
    }
    50% { 
        border-radius: 70% 30% 50% 50% / 30% 40% 60% 70%; 
        transform: translate(-10px, 15px) scale(1.05); /* Se desplaza y crece ligerísimamente */
    }
    100% { 
        border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; 
        transform: translate(0, 0) scale(1);
    }
}

/* Motor para la foto (Se deforma suavemente para no marear al usuario) */
@keyframes fluirFoto {
    0% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
    50% { border-radius: 40% 60% 50% 50% / 50% 60% 40% 50%; }
    100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
}
/* Ajuste para pantallas pequeñas (Celulares) */
@media (max-width: 768px) {
    .hero-section {
        flex-direction: column;
        text-align: center;
        padding-top: 2rem;
    }
    .hero-text h1 {
        font-size: 2.5rem;
    }
    .hero-text p {
        margin: 0 auto 2rem;
    }
    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }
    .hero-image {
        margin-top: 3rem;
        justify-content: center;
    }
}
/* =========================================
   NUESTRA HISTORIA (Diseño asimétrico)
   ========================================= */
.story-section {
    display: flex;
    align-items: center;
    padding: 8rem 5%;
    gap: 4rem;
    background-color: var(--blanco);
}

.story-images {
    flex: 1;
    position: relative;
    height: 400px;
}

.circle-img {
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blanco);
    font-weight: bold;
    position: absolute;
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.img1 {
    width: 250px;
    height: 250px;
    background-color: var(--malva);
    top: 0;
    left: 10%;
}

.img2 {
    width: 200px;
    height: 200px;
    background-color: var(--oscuro);
    bottom: 0;
    right: 10%;
    border: 10px solid var(--blanco);
}

.story-text {
    flex: 1;
}

.story-text h2 {
    font-size: 2.5rem;
    color: var(--oscuro);
    margin-bottom: 1.5rem;
}

.story-text p {
    line-height: 1.8;
    margin-bottom: 2rem;
    color: #555;
}

/* =========================================
   PRODUCTOS (Tarjetas estilo E-commerce)
   ========================================= */
.products-section {
    padding: 6rem 5%;
    background-color: var(--fondo-claro);
    text-align: center;
}

.section-title {
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: 2.8rem;
    color: var(--vino);
    margin-bottom: 1rem;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.product-card {
    background-color: var(--blanco);
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 10px 20px rgba(0,0,0,0.04);
    text-align: center;
    border: 1px solid rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.product-card:hover { transform: translateY(-10px); }

.product-img {
    width: 100%;
    height: 250px; /* Aumentamos un poquito la altura para las botellas */
    object-fit: contain; /* Esto asegura que la botella se vea entera sin recortarse */
    background-color: transparent; /* Quitamos el fondo beige para que luzca limpio */
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

/* Efecto opcional: Que la botella se haga un poco más grande al pasar el mouse */
.product-card:hover .product-img {
    transform: scale(1.05);
}

.product-info h3 {
    font-size: 1.2rem;
    color: var(--oscuro);
    margin-bottom: 0.5rem;
}

.stars {
    color: var(--caqui);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.price {
    font-weight: 600;
    color: var(--rojo);
    margin-bottom: 1.5rem;
}

.btn-cart {
    background-color: #25D366; /* Color de WhatsApp */
    color: var(--blanco);
    padding: 0.8rem 1rem;
    display: block;
    border-radius: 8px;
}

.btn-cart:hover { background-color: #1EBE5D; }

/* =========================================
   BANNER PROMOCIONAL
   ========================================= */
.promo-banner {
    background-color: var(--rojo);
    margin: 4rem 5%;
    padding: 4rem 2rem;
    border-radius: 20px;
    text-align: center;
    color: var(--blanco);
    box-shadow: 0 15px 30px rgba(173, 42, 41, 0.2);
}

.promo-banner h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.promo-banner p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.btn-solid-light {
    background-color: var(--blanco);
    color: var(--rojo);
    padding: 1rem 3rem;
}

.btn-solid-light:hover {
    background-color: var(--beige);
    color: var(--oscuro);
}

/* =========================================
   FOOTER
   ========================================= */
.footer {
    background-color: var(--oscuro);
    color: var(--blanco);
    padding: 4rem 5% 1rem;
}

.footer-info {
    text-align: center;
    margin-bottom: 3rem;
}

.footer-info h3 {
    color: var(--beige);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.footer-info p {
    color: #ccc;
    margin-bottom: 0.5rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #888;
    font-size: 0.8rem;
}

/* Responsividad para celulares */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .hero-section { flex-direction: column; text-align: center; padding: 4rem 5%; }
    .hero-image-placeholder { margin-left: 0; margin-top: 2rem; width: 100%; height: 300px; }
    .hero-buttons { justify-content: center; flex-direction: column; }
    .story-section { flex-direction: column; }
    .story-images { height: 300px; width: 100%; }
}
/* =========================================
   SECCIÓN PROMOCIONAL (SET DE REGALO - OVERLAPPING)
   ========================================= */

/* Contenedor principal con fondo dividido (mitad beige, mitad claro) */
.promo-banner-oferta {
    padding: 8rem 5%;
    /* Truco CSS para que la mitad superior sea beige y la inferior clara */
    background: linear-gradient(to bottom, var(--beige) 50%, var(--fondo-claro) 50%);
    display: flex;
    justify-content: center;
    align-items: center;
}

/* La caja roja central */
.promo-caja {
    background-color: var(--rojo); /* Usamos tu rojo intenso */
    border-radius: 15px;
    position: relative; /* Muy importante para que las imágenes salgan de aquí */
    width: 100%;
    max-width: 1000px;
    display: flex;
    align-items: center;
    /* Padding: Arriba, Derecha, Abajo, Izquierda (Izquierda muy grande para la foto) */
    padding: 3.5rem 4rem 3.5rem 45%; 
    box-shadow: 0 15px 30px rgba(173, 42, 41, 0.2);
}

/* 1. Fotografía izquierda */
.img-superpuesta-izq {
    position: absolute;
    left: -3%; /* Hace que salga un poco por la izquierda */
    top: 50%;
    transform: translateY(-50%); /* Centra la imagen verticalmente */
    width: 42%;
    max-width: 400px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    object-fit: cover; /* Evita que la foto se deforme */
}

/* 2. Textos de la caja */
.promo-texto {
    color: var(--blanco);
    z-index: 2;
}

.promo-texto h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-family: 'Playfair Display', serif;
    letter-spacing: 1px;
}

.promo-texto p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    opacity: 0.9;
}

.promo-texto .descuento {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

/* Botón con borde blanco (Outline) */
.btn-outline-blanco {
    display: inline-block;
    border: 2px solid var(--blanco);
    color: var(--blanco);
    padding: 12px 35px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-blanco:hover {
    background-color: var(--blanco);
    color: var(--rojo);
}

/* 3. Ilustración derecha (PNG transparente) */
.img-superpuesta-der {
    position: absolute;
    right: -40px; /* Sale por la derecha */
    bottom: -40px; /* Sale por abajo */
    width: 160px; /* Ajusta este tamaño según tu imagen */
    z-index: 3;
    filter: drop-shadow(5px 5px 10px rgba(0,0,0,0.2)); /* Sombra para el PNG */
}

/* =========================================
   AJUSTES PARA CELULARES (RESPONSIVE)
   ========================================= */
@media (max-width: 900px) {
    .promo-banner-oferta {
        padding: 4rem 5%;
        background: var(--fondo-claro); /* En celular quitamos el fondo dividido */
    }
    
    .promo-caja {
        flex-direction: column;
        text-align: center;
        /* Cambiamos el padding para hacer espacio a la imagen arriba */
        padding: 12rem 2rem 3rem; 
        margin-top: 6rem;
    }

    .img-superpuesta-izq {
        width: 85%;
        left: 50%;
        top: -15%; /* Movemos la imagen hacia arriba */
        transform: translate(-50%, -10%);
    }

    .img-superpuesta-der {
        width: 100px;
        right: -10px;
        bottom: -20px;
    }

    .promo-texto h2 {
        font-size: 2rem;
    }
}
/* =========================================
   SECCIÓN BOTELLA STORYTELLING
   ========================================= */
/* =========================================
   SECCIÓN BOTELLA STORYTELLING
   ========================================= */
.seccion-oscura-historia {
    background-color: #170D0C !important; /* Forzamos el color Negro-Marrón de tu paleta */
    color: #EBD6A6; /* Tu color Beige */
    position: relative;
    height: 90vh;
    min-height: 600px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Playfair Display', serif;
}

/* Textos grandes flotantes */
.texto-flotante-izq {
    position: absolute;
    top: 10%;
    left: 8%;
    font-size: 4rem;
    letter-spacing: 6px;
    font-weight: 400;
    opacity: 0.9;
}

.texto-flotante-der {
    position: absolute;
    top: 22%;
    right: 8%;
    font-size: 4rem;
    letter-spacing: 6px;
    font-weight: 400;
    opacity: 0.9;
}
/* Agrega esta regla a los textos para que se desvanezcan suavemente al cambiar */
#titulo-flotante, #descripcion-botella {
    transition: opacity 0.4s ease-in-out;
}

/* Frase de la izquierda */
.caja-frase {
    position: absolute;
    left: 8%;
    top: 55%;
    max-width: 250px;
    font-family: 'Montserrat', sans-serif;
}

.caja-frase .comillas {
    font-size: 3rem;
    color: var(--beige);
    line-height: 0;
}

.caja-frase p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    margin-top: 10px;
}

.btn-linea-fina {
    color: var(--beige);
    text-decoration: none;
    font-size: 0.8rem;
    letter-spacing: 2px;
    border-top: 1px solid rgba(235, 214, 166, 0.3);
    border-bottom: 1px solid rgba(235, 214, 166, 0.3);
    padding: 10px 0;
    display: inline-block;
    transition: all 0.3s;
}

.btn-linea-fina:hover { border-color: var(--beige); }

/* Flecha de la derecha */
.btn-flecha-der {
    position: absolute;
    right: 8%;
    top: 60%;
    background: transparent;
    border: 1px solid rgba(235, 214, 166, 0.5);
    color: var(--beige);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s;
}

.btn-flecha-der:hover {
    background-color: var(--beige);
    color: var(--negro-marron);
}

/* =========================================
   CARRUSEL 3D DE BOTELLAS
   ========================================= */
.carrusel-botellas {
    position: relative;
    width: 100%;
    max-width: 800px;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 2rem;
}

.botella-item {
    position: absolute;
    height: 380px;
    width: auto;
    object-fit: contain;
    transition: all 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
}

/* ESTADO 1: Botella Central (ACTIVA) - Full Color */
.botella-item.activa {
    transform: translateX(0) scale(1.2);
    z-index: 10;
    filter: grayscale(0%) brightness(1.1); /* Color original y un poco más de luz */
}

/* ESTADO 2: Botella Izquierda - Gris y pequeña */
.botella-item.previa {
    transform: translateX(-220px) scale(0.8);
    z-index: 5;
    filter: grayscale(100%) brightness(0.5) opacity(0.7); /* Completamente gris y oscura */
}

/* ESTADO 3: Botella Derecha - Gris y pequeña */
.botella-item.siguiente {
    transform: translateX(220px) scale(0.8);
    z-index: 5;
    filter: grayscale(100%) brightness(0.5) opacity(0.7); /* Completamente gris y oscura */
}

/* ESTADO 4: Ocultas atrás */
.botella-item.oculta {
    transform: translateX(0) scale(0.5);
    z-index: 1;
    opacity: 0;
    pointer-events: none;
}

/* Adaptación para celulares */
@media (max-width: 900px) {
    .texto-flotante-izq, .texto-flotante-der { font-size: 2.5rem; position: static; text-align: center; margin-top: 1rem; }
    .seccion-oscura-historia { flex-direction: column; height: auto; padding: 4rem 2rem; }
    .caja-frase { position: static; text-align: center; margin-top: 2rem; }
    .btn-flecha-der { display: none; /* Ocultamos la flecha en celular para que toquen las botellas */ }
    .botella-item.previa { transform: translateX(-100px) scale(0.7); }
    .botella-item.siguiente { transform: translateX(100px) scale(0.7); }
}
/* =========================================
   ANIMACIÓN DE TEXTO (Aparición suave hacia arriba)
   ========================================= */
@keyframes aparecerArriba {
    0% {
        opacity: 0;
        transform: translateY(40px); /* Empieza un poco más abajo */
    }
    100% {
        opacity: 1;
        transform: translateY(0); /* Termina en su posición original */
    }
}
