:root {
    --crema: #FFF9F5;
    --terracota: #B2675E;
    --durazno: #F4D1C1;
    --oscuro: #3E2723;
    --blanco: #ffffff;
    --verde-wpp: #25D366;
    --gris-suave: #f8f8f8;
    --transicion: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Poppins', sans-serif; background-color: var(--crema); color: var(--oscuro); scroll-behavior: smooth; }

/* --- Navegación --- */
header { 
    padding: 15px 8%; display: flex; justify-content: space-between; align-items: center; 
    background: var(--blanco); position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 10px rgba(0,0,0,0.05); 
}
.logo { 
    font-family: 'Playfair Display', serif; 
    font-size: 1.8rem; color: var(--terracota); 
    text-decoration: none; 
    font-weight: bold; 
    display: flex;
    align-items: center;
    gap: 12px;
}
.logo-icon {
    width: 40px;
    height: 40px;
    display: inline-block;
    transition: transform 0.3s ease;
}

.logo:hover .logo-icon {
    transform: rotate(360deg) scale(1.1);
}

.nav-links a { text-decoration: none; color: var(--oscuro); font-size: 0.9rem; margin-left: 20px; transition: var(--transicion); }
.nav-links a:hover { color: var(--terracota); }

/* Menú Hamburguesa */
.menu-toggle { display: none; font-size: 1.5rem; color: var(--terracota); cursor: pointer; }

/* --- Filtros Catálogo --- */
.filter-container { display: flex; justify-content: center; gap: 10px; margin-bottom: 30px; flex-wrap: wrap; }
.filter-btn { 
    padding: 8px 20px; border: 1px solid var(--terracota); background: transparent; 
    color: var(--terracota); border-radius: 20px; cursor: pointer; transition: var(--transicion); 
    font-size: 0.9rem; font-family: 'Poppins';
}
.filter-btn.active, .filter-btn:hover { background: var(--terracota); color: white; }

/* --- Hero --- */
.hero { 
    height: 60vh; 
    background: linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.2)), 
    url('../images/hero.jpeg'); 
    background-size: cover; 
    background-position: center 30%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    color: var(--blanco); 
    text-align: center;
}
.hero h1 { font-family: 'Playfair Display', serif; font-size: 4rem; text-shadow: 2px 2px 10px rgba(0,0,0,0.2); }

/* --- SECCIÓN NOSOTROS --- */
.about-section { padding: 80px 8%; display: flex; align-items: center; gap: 50px; background: var(--crema); }
.about-image { flex: 1; position: relative; }
.about-image img { width: 100%; border-radius: 20px; box-shadow: 20px 20px 0px var(--durazno); }
.about-content { flex: 1; }
.about-content h2 { font-family: 'Playfair Display', serif; font-size: 2.5rem; margin-bottom: 20px; color: var(--terracota); }
.about-content p { line-height: 1.8; color: var(--oscuro); font-size: 1rem; margin-bottom: 15px; }

/* --- SECCIÓN DESTACADOS MEJORADA --- */
.featured-section { 
    padding: 60px 8% 40px; 
    background: var(--blanco); 
    overflow: hidden; 
}

.featured-title { 
    font-family: 'Playfair Display', serif; 
    font-size: 2.2rem; 
    margin-bottom: 40px; 
    color: var(--oscuro); 
    text-align: center;
}

.slider-container { 
    overflow: hidden; 
    position: relative; 
    width: 100%; 
    padding: 10px 0;
}

.slider-wrapper { 
    display: flex; 
    gap: 30px; 
    overflow-x: auto; 
    scroll-behavior: smooth; 
    scrollbar-width: none; 
    padding: 10px 0 20px;
}

.slider-wrapper::-webkit-scrollbar { 
    display: none; 
}

.featured-card { 
    min-width: 320px; 
    max-width: 320px;
    background: var(--blanco); 
    border-radius: 15px; 
    overflow: hidden; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: var(--transicion);
    cursor: pointer;
    flex-shrink: 0;
}

.featured-card:hover { 
    transform: translateY(-10px); 
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.featured-card img { 
    width: 100%; 
    height: 380px; 
    object-fit: cover; 
}

.featured-card-info { 
    padding: 20px; 
    text-align: center; 
    background: white;
}

.featured-card-info h4 { 
    font-size: 1.1rem; 
    margin-bottom: 8px; 
    font-weight: 500;
    color: var(--oscuro);
}

.featured-card-info p { 
    color: var(--terracota); 
    font-weight: bold; 
    font-size: 1rem; 
}

/* --- Catálogo --- */
.catalog-container { padding: 80px 8%; background: var(--gris-suave); }
.section-title { font-family: 'Playfair Display', serif; font-size: 2.2rem; margin-bottom: 40px; text-align: center; }
.catalog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 30px; }
.product-card { background: white; border-radius: 15px; overflow: hidden; position: relative; transition: var(--transicion); box-shadow: 0 5px 15px rgba(0,0,0,0.05); cursor: pointer; }
.product-card:hover { transform: translateY(-10px); }

.image-container { position: relative; width: 100%; height: 400px; overflow: hidden; }
.product-img { width: 100%; height: 100%; object-fit: cover; }

/* NUEVO: Galería en tarjetas */
.product-gallery {
    display: flex;
    transition: transform 0.4s ease;
    height: 100%;
}

.product-gallery img {
    min-width: 100%;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-dots {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 5;
}

.gallery-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s;
}

.gallery-dot.active {
    background: white;
    width: 24px;
    border-radius: 4px;
}

.gallery-nav::before {
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s;
    z-index: 5;
    color: var(--oscuro);
    font-size: 16px;
}

.product-card:hover .gallery-nav {
    opacity: 1;
}

.gallery-nav:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
}

.gallery-nav.prev {
    left: 10px;
}

.gallery-nav.next {
    right: 10px;
}

/* Fallback si Font Awesome no carga */
.gallery-nav.prev::after {
    content: '‹';
    font-size: 24px;
    font-weight: bold;
}

.gallery-nav.next::after {
    content: '›';
    font-size: 24px;
    font-weight: bold;
}

.gallery-nav i {
    position: relative;
    z-index: 1;
}

.modal-image-nav.prev::after {
    content: '‹';
    font-size: 28px;
    font-weight: bold;
}

.modal-image-nav.next::after {
    content: '›';
    font-size: 28px;
    font-weight: bold;
}

.modal-image-nav i {
    position: relative;
    z-index: 1;
}

.availability-tag { 
    position: absolute; bottom: 15px; left: 50%; transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.95); width: 85%; text-align: center;
    padding: 8px 0; border-radius: 8px; font-size: 0.75rem; font-weight: 600; 
    color: var(--terracota); border: 1px solid var(--terracota); letter-spacing: 1px;
}

.product-info { padding: 20px; text-align: center; }
.product-info h3 { font-size: 1.1rem; margin-bottom: 5px; }
.product-info p { color: var(--terracota); font-weight: bold; }

/* --- MODAL --- */
.modal { 
    display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; 
    background: rgba(62, 39, 35, 0.85); z-index: 2000; justify-content: center; 
    align-items: center; padding: 20px; backdrop-filter: blur(5px);
}

.modal-content { 
    background: white; max-width: 900px; width: 100%; border-radius: 25px; 
    display: flex; overflow: hidden; position: relative; 
    box-shadow: 0 25px 50px rgba(0,0,0,0.3);
    animation: modalAppear 0.4s ease-out;
}

@keyframes modalAppear {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.modal-close { 
    position: absolute; top: 20px; right: 20px; width: 40px; height: 40px; 
    background: white; border-radius: 50%; display: flex; align-items: center; 
    justify-content: center; cursor: pointer; z-index: 10; font-size: 1.2rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1); transition: var(--transicion);
    color: var(--oscuro); border: none;
}
.modal-close:hover { background: var(--terracota); color: white; transform: rotate(90deg); }

/* NUEVO: Modal con galería */
.modal-img-container {
    width: 45%;
    background: #f5f5f5;
    position: relative;
    display: flex;
    flex-direction: column;
}

.modal-main-image {
    flex: 1;
    width: 100%;
    object-fit: cover;
    cursor: zoom-in;
}

.modal-main-image.zoomed {
    cursor: zoom-out;
    object-fit: contain;
    background: white;
}

.modal-thumbnails {
    display: flex;
    gap: 8px;
    padding: 12px;
    background: white;
    overflow-x: auto;
    scrollbar-width: thin;
}

.modal-thumbnails::-webkit-scrollbar {
    height: 4px;
}

.modal-thumbnails::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.modal-thumbnails::-webkit-scrollbar-thumb {
    background: var(--terracota);
    border-radius: 4px;
}

.modal-thumbnail {
    min-width: 60px;
    width: 60px;
    height: 60px;
    object-fit: cover;
    cursor: pointer;
    border-radius: 8px;
    border: 2px solid transparent;
    transition: all 0.3s;
    opacity: 0.6;
}

.modal-thumbnail:hover {
    opacity: 1;
    transform: scale(1.05);
}

.modal-thumbnail.active {
    border-color: var(--terracota);
    opacity: 1;
}

.modal-image-nav::before {
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
}

.modal-image-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.95);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    z-index: 5;
    color: var(--oscuro);
    font-size: 18px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.modal-image-nav:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
}

.modal-image-nav.prev {
    left: 15px;
}

.modal-image-nav.next {
    right: 15px;
}

.modal-image-counter {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    z-index: 10;
}

.modal-img { width: 45%; object-fit: cover; background: #eee; }
.modal-details { width: 55%; padding: 50px; display: flex; flex-direction: column; justify-content: center; }
.form-label { font-size: 0.8rem; font-weight: 600; text-transform: uppercase; margin-bottom: 5px; color: #888; }
.form-input { 
    width: 100%; padding: 12px 15px; margin-bottom: 20px; 
    border: 1px solid #eee; border-radius: 10px; background: #fafafa;
    font-family: inherit; transition: var(--transicion);
}
.form-input:focus { outline: none; border-color: var(--terracota); background: white; box-shadow: 0 0 0 4px rgba(178, 103, 94, 0.1); }

.size-selector { display: flex; gap: 10px; margin-bottom: 25px; }
.size-btn { 
    flex: 1; padding: 10px; border: 1px solid #eee; border-radius: 10px; 
    cursor: pointer; text-align: center; transition: var(--transicion); font-weight: 500;
}
.size-btn:hover { border-color: var(--terracota); color: var(--terracota); }
.size-btn.selected { background: var(--terracota); color: white; border-color: var(--terracota); }

.buy-btn { 
    background: var(--verde-wpp); color: white; border: none; width: 100%; 
    padding: 18px; border-radius: 15px; cursor: pointer; font-weight: 600; 
    display: flex; align-items: center; justify-content: center; gap: 10px;
    font-size: 1rem; transition: var(--transicion);
}
.buy-btn:hover { background: #1eb954; transform: translateY(-2px); box-shadow: 0 10px 20px rgba(37, 211, 102, 0.2); }

/* --- FAQ --- */
.faq { padding: 80px 8%; background: var(--blanco); }
.faq-container { max-width: 800px; margin: 0 auto; }
.faq-item { margin-bottom: 10px; border-radius: 12px; background: var(--gris-suave); overflow: hidden; }
.faq-question { width: 100%; text-align: left; padding: 20px; background: none; border: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-size: 1rem; font-weight: 500; }
.faq-answer { display: none; padding: 0 20px 20px; color: #666; line-height: 1.6; font-size: 0.9rem; }

/* --- Footer --- */
footer { background: var(--oscuro); color: white; padding: 60px 8% 20px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; margin-bottom: 40px; }
.footer-logo { font-family: 'Playfair Display'; font-size: 2rem; color: var(--durazno); margin-bottom: 15px; display: block; }
.footer-col h4 { margin-bottom: 20px; color: var(--durazno); font-size: 1.1rem; }
.footer-col p, .footer-col a { color: #bbb; text-decoration: none; font-size: 0.9rem; line-height: 2; display: block; transition: 0.3s; }
.footer-col a:hover { color: white; }
.copy { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; font-size: 0.8rem; color: #888; text-align: center; }

.wpp-float { position: fixed; bottom: 30px; left: 20px; background: var(--verde-wpp); color: white; width: 60px; height: 60px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 30px; z-index: 100; box-shadow: 0 10px 20px rgba(0,0,0,0.2); transition: 0.3s; text-decoration: none !important; }
.wpp-float:hover { transform: scale(1.1); text-decoration: none; }

/* Isotipo en el título */
.title-icon {
    width: 60px;
    height: 60px;
    margin-left: 20px;
    vertical-align: middle;
    display: inline-block;
    filter: drop-shadow(0 4px 8px rgba(178, 103, 94, 0.3));
    transition: transform 0.3s ease;
}

.title-icon:hover {
    transform: scale(1.1);
}
/* --- PRELOADER --- */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--crema) 0%, var(--durazno) 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.preloader-content {
    text-align: center;
    animation: fadeInUp 0.8s ease;
}

.preloader-logo {
    width: 120px;
    height: 120px;
    margin-bottom: 30px;
    animation: float 3s ease-in-out infinite;
    filter: drop-shadow(0 10px 20px rgba(178, 103, 94, 0.3));
}

.preloader-spinner {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    border: 4px solid rgba(178, 103, 94, 0.2);
    border-top: 4px solid var(--terracota);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.preloader-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    color: var(--terracota);
    font-weight: 500;
    animation: pulse 2s ease-in-out infinite;
}

/* Animaciones del Preloader */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .menu-toggle { display: block; }
    .nav-links { 
        display: none; 
        flex-direction: column; 
        position: absolute; 
        top: 70px; left: 0; width: 100%; 
        background: white; padding: 20px; 
        box-shadow: 0 10px 10px rgba(0,0,0,0.05);
    }
    .nav-links.active { display: flex; }
    .nav-links a { margin: 10px 0; font-size: 1.1rem; }

    .about-section { flex-direction: column; text-align: center; padding: 50px 8%; }
    .about-image img { box-shadow: 10px 10px 0px var(--durazno); }
    .hero h1 { font-size: 2.5rem; }

    .modal-content { 
        flex-direction: column; 
        max-height: 90vh; 
        overflow-y: auto; 
    }
    
    .modal-img-container { 
        width: 100%; 
        height: 400px; /* Aumentado para mejor visualización */
        position: relative; /* Asegurar posición relativa */
        flex-shrink: 0; /* Evitar que se comprima */
    }
    
    .modal-main-image {
        position: static; /* Cambiar de absolute si lo tenía */
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    .modal-details { 
        width: 100%; 
        padding: 30px; 
        position: relative; /* Asegurar flujo normal */
    }
    
    .modal-close { 
        top: 10px; 
        right: 10px; 
        background: rgba(255,255,255,0.8); 
        position: fixed; /* Cambiado a fixed para que siempre esté visible */
        z-index: 20;
    }
    
    .gallery-nav { opacity: 0.7; }
    
    /* Ocultar miniaturas en móvil */
    .modal-thumbnails { display: none; }
    
    /* Asegurar que el contador no interfiera */
    .modal-image-counter {
        position: absolute;
        top: 10px;
        left: 10px;
    }
    
    /* Destacados responsive */
    .featured-card { 
        min-width: 280px; 
        max-width: 280px;
    }
    
    .featured-card img { 
        height: 320px; 
    }
    
    .featured-title { 
        font-size: 1.8rem; 
        margin-bottom: 30px;
    }
    .title-icon {
        width: 45px;
        height: 45px;
        margin-left: 12px;
    }
     .logo-icon {
        width: 35px;
        height: 35px;
    }
    
    .logo {
        font-size: 1.5rem;
        gap: 8px;
    }
      .preloader-logo {
        width: 100px;
        height: 100px;
    }
    
    .preloader-spinner {
        width: 50px;
        height: 50px;
    }
    
    .preloader-text {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .modal-img-container { 
        height: 350px; /* Ajuste para pantallas más pequeñas */
    }
    
    .featured-card { 
        min-width: 260px; 
        max-width: 260px;
    }
    
    .featured-card img { 
        height: 280px; 
    }
}

/* Estilos para el selector de color */
.color-selector { display: flex; gap: 15px; margin-bottom: 25px; }
.color-option { 
    width: 30px; height: 30px; border-radius: 50%; cursor: pointer; 
    border: 2px solid transparent; transition: var(--transicion); 
    position: relative;
}
.color-option.selected { border-color: var(--terracota); transform: scale(1.2); }
.color-option::after {
    content: attr(data-color-name); position: absolute; bottom: -25px; left: 50%;
    transform: translateX(-50%); font-size: 10px; white-space: nowrap;
    opacity: 0; transition: 0.3s; color: var(--oscuro);
}
.color-option:hover::after { opacity: 1; }
/* Ajuste para que el contenedor de la librería no rompa el diseño */
/* 1. Ajustar el tamaño del texto y el código de país */
.iti {
    width: 100% !important;
    margin-bottom: 25px !important; /* Esto empuja Cantidad y Color hacia abajo */
}

/* 2. Igualar el tamaño del +54 con los números del input */
.iti__selected-dial-code {
    font-size: 16px !important; /* Ajusta este valor para que coincida con el texto del input */
    font-weight: 400;
    color: #444;
}

/* 3. Ajustar el tamaño de los números que escribe el usuario */
#phone {
    font-size: 16px !important; 
    height: 48px !important; /* Altura recomendada para que sea cómodo en móviles */
    padding-top: 10px !important;
    padding-bottom: 10px !important;
    border: 1px solid #ced4da !important;
    border-radius: 8px !important;
}

/* 4. Alinear la flechita y la bandera */
.iti__flag-container {
    padding-left: 10px !important;
}

/* ========================
   SHOPPING CART STYLES
======================== */

/* Botón flotante del carrito */
.cart-float {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: var(--terracota);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    z-index: 998;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-float:hover {
    background: #B85E40;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}

.cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #1a1a1a;
    color: white;
    font-size: 12px;
    font-weight: bold;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
}

/* Panel lateral del carrito */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -450px;
    width: 450px;
    height: 100vh;
    background: white;
    box-shadow: -2px 0 20px rgba(0,0,0,0.2);
    z-index: 1001;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.cart-sidebar.active {
    right: 0;
}

.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.cart-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Header del carrito */
.cart-header {
    padding: 25px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #f8f8f8 0%, #fff 100%);
}

.cart-header h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    margin: 0;
    color: #1a1a1a;
}

.cart-header h3 i {
    color: var(--terracota);
    margin-right: 10px;
}

.cart-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    transition: all 0.3s ease;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.cart-close:hover {
    background: #f0f0f0;
    color: #1a1a1a;
}

/* Items del carrito */
.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.cart-item {
    display: flex;
    gap: 15px;
    padding: 20px;
    border-bottom: 1px solid #eee;
    transition: all 0.3s ease;
    background: white;
}

.cart-item:hover {
    background: #fafafa;
}

.cart-item-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.cart-item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.cart-item-name {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
}

.cart-item-specs {
    font-size: 0.85rem;
    color: #666;
}

.cart-item-price {
    color: var(--terracota);
    font-weight: 600;
    font-size: 1.1rem;
}

.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
}

.qty-control {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f5f5f5;
    border-radius: 20px;
    padding: 4px 8px;
}

.qty-btn {
    background: white;
    border: 1px solid #ddd;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #666;
    transition: all 0.2s ease;
}

.qty-btn:hover {
    background: var(--terracota);
    color: white;
    border-color: var(--terracota);
}

.qty-display {
    min-width: 30px;
    text-align: center;
    font-weight: 600;
    color: #1a1a1a;
}

.remove-item {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 18px;
    padding: 5px;
    transition: all 0.2s ease;
    margin-left: auto;
}

.remove-item:hover {
    color: #e74c3c;
    transform: scale(1.1);
}

/* Carrito vacío */
.cart-empty {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #999;
    text-align: center;
    padding: 40px;
}

.cart-empty.active {
    display: flex;
}

.cart-empty i {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.3;
}

.cart-empty p {
    font-size: 1.2rem;
    margin: 10px 0;
    color: #666;
}

.cart-empty small {
    color: #999;
}

/* Footer del carrito */
.cart-footer {
    padding: 20px;
    border-top: 2px solid #eee;
    background: #fafafa;
    display: none;
}

.cart-footer.active {
    display: block;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
    padding: 15px;
    background: white;
    border-radius: 8px;
}

.cart-total span:first-child {
    font-family: 'Playfair Display', serif;
    color: #1a1a1a;
}

.cart-total span:last-child {
    color: var(--terracota);
    font-size: 1.5rem;
}

.checkout-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #25D366 0%, #20BA5A 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 10px;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.checkout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.4);
}

.checkout-btn i {
    margin-right: 8px;
}

.clear-cart-btn {
    width: 100%;
    padding: 12px;
    background: white;
    color: #e74c3c;
    border: 1px solid #eee;
    border-radius: 8px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.clear-cart-btn:hover {
    background: #fee;
    border-color: #e74c3c;
}

.clear-cart-btn i {
    margin-right: 6px;
}

/* Botones del modal actualizados */
.modal-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 20px;
}

.add-to-cart-btn {
    padding: 15px 20px;
    background: #1a1a1a;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.add-to-cart-btn:hover {
    background: #333;
    transform: translateY(-2px);
}

.buy-btn {
    grid-column: 1 / -1;
}

/* Toast notification */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #1a1a1a;
    color: white;
    padding: 16px 24px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    z-index: 10000;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 12px;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.toast i {
    color: #4CAF50;
    font-size: 20px;
}

/* Cart responsive styles */
@media (max-width: 768px) {
    .cart-sidebar {
        width: 100%;
        right: -100%;
    }

    .cart-float {
        bottom: 80px;
        right: 15px;
        width: 55px;
        height: 55px;
        font-size: 22px;
    }

    .modal-actions {
        grid-template-columns: 1fr;
    }

    .add-to-cart-btn {
        font-size: 0.9rem;
        padding: 14px;
    }

    .cart-item {
        padding: 15px;
    }

    .cart-item-img {
        width: 70px;
        height: 70px;
    }
}

/* WhatsApp button responsive adjustment */
@media (max-width: 768px) {
    .wpp-float {
        bottom: 20px;
        left: 15px;
        width: 55px;
        height: 55px;
        font-size: 26px;
    }
}

/* ========================
   SMOOTH SCROLL ENHANCEMENTS
======================== */

/* Mejorar el scroll en toda la página */
html {
    scroll-padding-top: 80px; /* Offset para compensar header fijo */
}

/* Animación suave para secciones al hacer scroll */
section {
    scroll-margin-top: 80px;
}

/* Opcional: Efecto de aparición suave al hacer scroll (fade-in) */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Aplicar animación a las secciones principales */
.about-section,
.featured-section,
.catalog-container,
.faq {
    animation: fadeInUp 0.8s ease-out;
}

/* Suavizar transiciones de hover en cards */
.catalog-card,
.featured-card {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
