/* ========== RESET Y VARIABLES ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --terracota: #C85C3E;
    --terracota-oscuro: #A04028;
    --arcilla: #E8D5B7;
    --arcilla-claro: #F5EDE0;
    --barro: #5A3A2B;
    --barro-claro: #7A5A4B;
    --texto-oscuro: #2C1810;
    --texto-claro: #6B4C3A;
    --dorado: #C6A43F;
    --dorado-suave: #E8D5A3;
    --blanco: #FFFFFF;
    --negro-suave: #1A1A1A;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, var(--arcilla-claro) 0%, #FFF8F0 100%);
    color: var(--texto-oscuro);
    line-height: 1.6;
    position: relative;
}

/* Textura de fondo sutil */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" opacity="0.03"><path fill="none" d="M10,10 L90,10 M10,20 L90,20 M10,30 L90,30 M10,40 L90,40 M10,50 L90,50 M10,60 L90,60 M10,70 L90,70 M10,80 L90,80 M10,90 L90,90" stroke="%238B4513" stroke-width="0.5"/><circle cx="50" cy="50" r="2" fill="%238B4513"/></svg>');
    background-repeat: repeat;
    pointer-events: none;
    z-index: -1;
}

/* ========== NAVEGACIÓN ELEGANTE ========== */
nav {
    background: linear-gradient(135deg, var(--barro) 0%, var(--texto-oscuro) 100%);
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    font-family: 'Playfair Display', serif;
    color: var(--blanco);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
    letter-spacing: 1px;
}

.logo span {
    color: var(--dorado);
    font-weight: 900;
}

.menu-toggle {
    display: none;
    font-size: 2rem;
    background: none;
    border: none;
    color: var(--blanco);
    cursor: pointer;
    transition: transform 0.3s;
}

.menu-toggle:hover {
    transform: scale(1.1);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links li a {
    color: var(--blanco);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    padding: 0.5rem 1rem;
    border-radius: 30px;
    position: relative;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--dorado);
    transition: all 0.3s;
    transform: translateX(-50%);
}

.nav-links li a:hover::after {
    width: 70%;
}

.nav-links li a:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-2px);
}

/* ========== SECCIONES ========== */
.seccion-activa {
    display: block;
    animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.seccion-oculta {
    display: none;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.seccion-titulo {
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--barro);
    position: relative;
    font-weight: 700;
}

.seccion-titulo::before {
    content: '✦';
    font-size: 2rem;
    color: var(--dorado);
    margin-right: 1rem;
    opacity: 0.8;
}

.seccion-titulo::after {
    content: '✦';
    font-size: 2rem;
    color: var(--dorado);
    margin-left: 1rem;
    opacity: 0.8;
}

/* ========== CARRUSEL MODERNO ========== */
.carrusel-container {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    border-radius: 0 0 30px 30px;
}

.carrusel {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.carrusel-slide {
    min-width: 100%;
    position: relative;
}

.carrusel-slide img {
    width: 100%;
    height: 550px;
    object-fit: cover;
    filter: brightness(0.85);
}

.carrusel-texto {
    position: absolute;
    bottom: 15%;
    left: 10%;
    background: linear-gradient(135deg, rgba(0,0,0,0.7), rgba(0,0,0,0.5));
    color: var(--blanco);
    padding: 1.5rem 2.5rem;
    border-radius: 20px;
    backdrop-filter: blur(8px);
    border-left: 4px solid var(--dorado);
    animation: slideInLeft 0.8s ease;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.carrusel-texto h2 {
    font-size: 2.5rem;
    font-family: 'Playfair Display', serif;
    margin-bottom: 0.5rem;
}

.carrusel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(5px);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carrusel-btn:hover {
    background: var(--dorado);
    transform: translateY(-50%) scale(1.1);
}

.carrusel-prev {
    left: 20px;
}

.carrusel-next {
    right: 20px;
}

.carrusel-indicadores {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
}

.indicador {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s;
}

.indicador.activo {
    background: var(--dorado);
    width: 30px;
    border-radius: 10px;
}

/* ========== PRODUCTOS GRID MODERNO ========== */
.productos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.producto-card {
    background: var(--blanco);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
}

.producto-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--dorado), var(--terracota));
    transform: scaleX(0);
    transition: transform 0.4s;
}

.producto-card:hover::before {
    transform: scaleX(1);
}

.producto-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.producto-card img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    transition: transform 0.4s;
}

.producto-card:hover img {
    transform: scale(1.05);
}

.producto-info {
    padding: 1.5rem;
    background: var(--blanco);
}

.producto-info h3 {
    font-size: 1.4rem;
    font-family: 'Playfair Display', serif;
    margin-bottom: 0.5rem;
    color: var(--barro);
}

.producto-info p {
    color: var(--texto-claro);
    margin-bottom: 1rem;
    font-size: 0.9rem;
    line-height: 1.5;
}

.producto-precio {
    font-size: 1.6rem;
    font-weight: bold;
    color: var(--terracota);
    margin: 0.5rem 0;
    font-family: 'Playfair Display', serif;
}

.producto-info small {
    display: inline-block;
    background: linear-gradient(135deg, var(--arcilla), var(--arcilla-claro));
    padding: 0.2rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--barro);
}

/* ========== BOTONES DE PRODUCTOS ========== */
.producto-botones {
    display: flex;
    gap: 0.8rem;
    margin-top: 1rem;
}

.btn-detalle {
    background: linear-gradient(135deg, var(--barro), var(--barro-claro));
    color: white;
    border: none;
    padding: 0.6rem 1rem;
    border-radius: 30px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

.btn-detalle:hover {
    background: linear-gradient(135deg, var(--barro-claro), var(--barro));
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(90,58,43,0.3);
}

.btn-consulta {
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: white;
    border: none;
    padding: 0.6rem 1rem;
    border-radius: 30px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

.btn-consulta:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37,211,102,0.3);
}

/* ========== FILTROS ESTILIZADOS ========== */
.filtros {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.filtro-btn {
    padding: 0.6rem 1.8rem;
    border: 2px solid var(--terracota);
    background: transparent;
    color: var(--terracota);
    border-radius: 40px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
    font-size: 0.9rem;
}

.filtro-btn:hover {
    background: var(--terracota);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(200,92,62,0.3);
}

.filtro-btn.activo {
    background: var(--terracota);
    color: white;
    box-shadow: 0 4px 12px rgba(200,92,62,0.4);
}

/* ========== EVENTOS ========== */
.eventos-lista {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.evento-card {
    background: var(--blanco);
    border-radius: 20px;
    padding: 1.8rem;
    transition: all 0.3s;
    border: 1px solid rgba(200,92,62,0.1);
    position: relative;
    overflow: hidden;
}

.evento-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--dorado), var(--terracota));
}

.evento-card:hover {
    transform: translateX(5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.evento-card h3 {
    color: var(--barro);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    font-family: 'Playfair Display', serif;
}

.evento-fecha {
    color: var(--terracota);
    font-weight: bold;
    margin: 0.5rem 0;
    display: inline-block;
    padding: 0.2rem 0.8rem;
    background: rgba(200,92,62,0.1);
    border-radius: 20px;
}

.evento-lugar {
    color: var(--barro-claro);
    margin-bottom: 0.8rem;
    font-size: 0.9rem;
}

/* ========== QUIÉNES SOMOS ========== */
.quienes-container {
    background: var(--blanco);
    padding: 2.5rem;
    border-radius: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    position: relative;
    overflow: hidden;
}

.quienes-container::before {
    content: '🏺';
    position: absolute;
    bottom: -20px;
    right: -20px;
    font-size: 150px;
    opacity: 0.05;
    pointer-events: none;
}

.quienes-container h2 {
    color: var(--terracota);
    margin: 1.5rem 0 1rem 0;
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
}

.quienes-container h2:first-child {
    margin-top: 0;
}

.quienes-container ul {
    list-style: none;
    padding-left: 0;
}

.quienes-container li {
    margin: 0.8rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.quienes-container li::before {
    content: '✦';
    color: var(--dorado);
    position: absolute;
    left: 0;
}

/* ========== CONTACTO ========== */
.contacto-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.contacto-info,
.form-contacto {
    background: var(--blanco);
    padding: 2rem;
    border-radius: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: all 0.3s;
}

.contacto-info:hover,
.form-contacto:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

.contacto-info h3,
.form-contacto h3 {
    color: var(--barro);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    font-family: 'Playfair Display', serif;
    position: relative;
    display: inline-block;
}

.contacto-info h3::after,
.form-contacto h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 50%;
    height: 3px;
    background: linear-gradient(90deg, var(--dorado), transparent);
}

.contacto-info p {
    margin: 1rem 0;
    padding: 0.5rem;
    border-radius: 10px;
    transition: background 0.3s;
}

.contacto-info p:hover {
    background: rgba(200,92,62,0.05);
}

.form-contacto input,
.form-contacto select,
.form-contacto textarea {
    width: 100%;
    padding: 0.9rem;
    margin-bottom: 1rem;
    border: 2px solid #E8E0D5;
    border-radius: 15px;
    font-family: inherit;
    transition: all 0.3s;
    background: var(--arcilla-claro);
}

.form-contacto input:focus,
.form-contacto select:focus,
.form-contacto textarea:focus {
    outline: none;
    border-color: var(--terracota);
    background: white;
    box-shadow: 0 0 0 3px rgba(200,92,62,0.1);
}

.btn {
    background: linear-gradient(135deg, var(--terracota), var(--terracota-oscuro));
    color: white;
    padding: 0.9rem 2rem;
    border: none;
    border-radius: 40px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
    font-size: 1rem;
    width: 100%;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(200,92,62,0.4);
}

/* ========== MODAL MEJORADO ========== */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.85);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s;
}

.modal-contenido {
    background: linear-gradient(135deg, var(--blanco), var(--arcilla-claro));
    margin: 3% auto;
    padding: 0;
    width: 90%;
    max-width: 850px;
    border-radius: 30px;
    position: relative;
    animation: slideInModal 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 30px 60px rgba(0,0,0,0.3);
}

@keyframes slideInModal {
    from {
        transform: scale(0.9) translateY(-50px);
        opacity: 0;
    }
    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

.modal-cerrar {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 40px;
    font-weight: bold;
    color: var(--terracota);
    cursor: pointer;
    transition: 0.3s;
    z-index: 10;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.modal-cerrar:hover {
    color: var(--dorado);
    transform: rotate(90deg) scale(1.1);
}

.modal-producto {
    padding: 2rem;
}

.modal-producto img {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 20px;
    margin-bottom: 1.5rem;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.modal-producto h2 {
    color: var(--barro);
    font-size: 2rem;
    margin-bottom: 0.5rem;
    font-family: 'Playfair Display', serif;
}

.modal-producto .cultura {
    display: inline-block;
    background: linear-gradient(135deg, var(--terracota), var(--terracota-oscuro));
    color: white;
    padding: 0.3rem 1.2rem;
    border-radius: 30px;
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.modal-producto .precio {
    font-size: 2rem;
    color: var(--terracota);
    font-weight: bold;
    margin: 1rem 0;
    font-family: 'Playfair Display', serif;
}

.modal-producto .descripcion {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    color: var(--texto-claro);
}

.modal-producto .caracteristicas {
    background: rgba(200,92,62,0.05);
    padding: 1.2rem;
    border-radius: 15px;
    margin: 1rem 0;
    border-left: 3px solid var(--dorado);
}

.modal-producto .caracteristicas h4 {
    color: var(--barro);
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
}

.modal-producto .caracteristicas ul {
    list-style: none;
    padding-left: 0;
}

.modal-producto .caracteristicas li {
    padding: 0.4rem 0;
    padding-left: 1.8rem;
    position: relative;
}

.modal-producto .caracteristicas li:before {
    content: "🏺";
    color: var(--dorado);
    position: absolute;
    left: 0;
    font-size: 0.9rem;
}

.modal-botones {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.modal-botones button {
    flex: 1;
    padding: 0.8rem;
    font-size: 0.95rem;
}

/* ========== WHATSAPP FLOTANTE ========== */
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    text-decoration: none;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    transition: all 0.3s;
    z-index: 1000;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37,211,102,0.4);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37,211,102,0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37,211,102,0);
    }
}

.whatsapp-float:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 25px rgba(0,0,0,0.4);
}

/* ========== FOOTER ========== */
footer {
    background: linear-gradient(135deg, var(--barro), var(--texto-oscuro));
    color: var(--arcilla-claro);
    text-align: center;
    padding: 2.5rem;
    margin-top: 4rem;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--dorado), var(--terracota), var(--dorado), transparent);
}

footer p:first-child {
    font-size: 1rem;
    letter-spacing: 1px;
}

footer p:last-child {
    font-size: 0.8rem;
    margin-top: 0.8rem;
    opacity: 0.7;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 968px) {
    .contacto-grid {
        grid-template-columns: 1fr;
    }
    
    .seccion-titulo {
        font-size: 2rem;
    }
    
    .seccion-titulo::before,
    .seccion-titulo::after {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: linear-gradient(135deg, var(--barro), var(--texto-oscuro));
        padding: 1.5rem;
        text-align: center;
        gap: 1rem;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .carrusel-texto {
        bottom: 10%;
        left: 5%;
        right: 5%;
        padding: 1rem;
    }
    
    .carrusel-texto h2 {
        font-size: 1.2rem;
    }
    
    .carrusel-texto p {
        font-size: 0.8rem;
    }
    
    .carrusel-slide img {
        height: 350px;
    }
    
    .seccion-titulo {
        font-size: 1.6rem;
    }
    
    .productos-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .modal-contenido {
        margin: 10% auto;
        width: 95%;
    }
    
    .modal-producto {
        padding: 1.2rem;
    }
    
    .modal-producto h2 {
        font-size: 1.3rem;
    }
    
    .modal-botones {
        flex-direction: column;
    }
    
    .carrusel-btn {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .filtro-btn {
        padding: 0.4rem 1rem;
        font-size: 0.8rem;
    }
}