:root {
    --bg-main: #FDFBF7;
    --bg-card: #FFFFFF;
    --text-primary: #1C1918;
    --text-secondary: #8C704D;
    
    --accent: #A88554;
    --accent-light: #C3A270;
    --accent-agave: #1C1918;
    
    --shadow-soft: 0 8px 30px rgba(28,25,24,0.06);
    --border-color: #EBE6DF;
    --bg-secondary: #F6F3EE;
}

html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

html, body {
    overflow-x: hidden;
    max-width: 100%;
    width: 100%;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Typography Helpers */
h1, h2, h3, h4, .oswald-font {
    font-family: 'Cormorant Garamond', serif;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
}

/* Top Banner */
.top-banner {
    background-color: #1C1918;
    color: #FFF;
    text-align: center;
    padding: 0.5rem;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Navbar */
.main-nav {
    background: #FFF;
    border-bottom: 1px solid var(--border-color);
    padding: 0.8rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
}

.logo {
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo img {
    height: 75px;
    width: 75px;
    object-fit: contain;
    border-radius: 50%;
    transition: transform 0.3s ease;
    border: 1px solid var(--border-color);
}

.logo img:hover {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
    justify-content: flex-start;
}

.nav-links a {
    font-weight: 500;
    font-size: 0.75rem;
    letter-spacing: 1.5px;
    transition: color 0.3s ease;
    position: relative;
    padding-bottom: 4px;
    color: var(--text-primary);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 1px;
    background-color: var(--accent);
    transition: width 0.3s ease, left 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
    left: 0;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    justify-content: flex-end;
}

.nav-actions i {
    transition: color 0.3s ease;
}

.nav-actions i:hover {
    color: var(--accent);
}

.search-compact {
    display: flex;
    align-items: center;
    background: #FFF;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 0.3rem 0.8rem;
}

.search-compact input {
    border: none;
    outline: none;
    padding: 0.2rem;
    width: 150px;
    font-size: 0.9rem;
}

.icon-btn {
    background: none;
    border: none;
    font-size: 1.3rem;
    cursor: pointer;
    position: relative;
    color: var(--text-primary);
}

.icon-btn .badge {
    position: absolute;
    top: -5px;
    right: -8px;
    background: var(--accent);
    color: white;
    font-size: 0.6rem;
    padding: 2px 5px;
    border-radius: 10px;
    font-weight: bold;
}

/* Hero Section */
.hero {
    position: relative;
    height: 600px;
    background-image: url('https://images.unsplash.com/photo-1596455607563-ad6193f76b17?auto=format&fit=crop&q=80&w=2000');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(28, 25, 24, 0.45);
}

.hero-content {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
    padding: 0 1.5rem;
    color: white;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-title {
    font-size: 4.2rem;
    line-height: 1.1;
    margin-bottom: 0.8rem;
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    letter-spacing: 4px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.star-separator {
    color: var(--accent-light);
    font-size: 0.9rem;
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.star-separator::before,
.star-separator::after {
    content: '';
    display: block;
    width: 40px;
    height: 1px;
    background-color: var(--accent-light);
}

.hero-subtitle {
    font-size: 1.05rem;
    font-weight: 300;
    margin-bottom: 2.2rem;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 1px;
    max-width: 600px;
    line-height: 1.6;
    text-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.btn-primary {
    background-color: #1C1918;
    color: #FFF;
    border: 1px solid var(--accent);
    padding: 0.9rem 2.5rem;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.btn-primary:hover {
    background-color: var(--accent);
    border-color: var(--accent);
    color: #FFF;
    transform: translateY(-2px);
}

/* Container & Featured */
.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

.featured-categories {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
}

.cat-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.cat-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.3rem;
}

.cat-card a {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* Layout (Sidebar + Grid) */
.catalog-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 3rem;
}

/* Sidebar */
.sidebar {
    padding-right: 1rem;
}

.mobile-filters-header {
    display: none;
}

.filter-group {
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1.5rem;
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    margin-bottom: 1rem;
}

.filter-header h4 {
    font-size: 1.1rem;
}

.grid-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.filter-pill {
    background: #FFF;
    border: 1px solid var(--border-color);
    padding: 0.4rem 0.8rem;
    font-size: 0.9rem;
    cursor: pointer;
    border-radius: 4px;
}

.filter-pill:hover, .filter-pill.active {
    border-color: var(--text-primary);
    background: var(--text-primary);
    color: #FFF;
}

/* Color circle pills for sidebar filter */
.color-circle-pill {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid rgba(0,0,0,0.05); /* Soft border for light colors */
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.1); /* Inner stroke to define white */
    cursor: pointer;
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
    outline: none;
    position: relative;
}

.color-circle-pill:hover {
    transform: scale(1.15);
    box-shadow: 0 3px 8px rgba(0,0,0,0.18), inset 0 0 0 1px rgba(0,0,0,0.1);
}

.color-circle-pill.active {
    border-color: transparent;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.1), 0 0 0 2px var(--bg-card), 0 0 0 4px var(--text-primary);
    transform: scale(1.1);
}

.color-circle-pill[title]:hover::after {
    content: attr(title);
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--text-primary);
    color: white;
    font-size: 0.7rem;
    padding: 3px 7px;
    border-radius: 4px;
    white-space: nowrap;
    pointer-events: none;
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
}

.color-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    align-items: center;
}


.price-slider {
    width: 100%;
    margin-bottom: 1rem;
    accent-color: var(--accent);
}

.price-label {
    font-weight: 600;
}

/* Products Area */
.area-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.area-header h2 {
    font-size: 1.8rem;
}

.slider-controls button {
    background: none;
    border: 1px solid var(--border-color);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    margin-left: 0.5rem;
}

.slider-controls button:hover {
    background: var(--text-primary);
    color: white;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

/* Card fade-in animation */
@keyframes cardFadeIn {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}

.glass-card {
    background: var(--bg-card);
    border-radius: 8px;
    padding: 1rem;
    position: relative;
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    animation: cardFadeIn 0.4s ease both;
}

.fav-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.2rem;
    cursor: pointer;
}

.card-img-placeholder {
    width: 100%;
    aspect-ratio: 1;
    background: var(--bg-main);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 3rem;
    margin-bottom: 1rem;
    overflow: hidden;
    position: relative;
    border-radius: 4px;
}

.card-img-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    transition: transform 0.5s ease;
}

.glass-card:hover .card-img-placeholder img {
    transform: scale(1.05); /* Premium hover zoom effect */
}

/* Carrusel de Imágenes en Tarjeta de Productos (Hasta 6 Fotos) */
.card-slider {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.3s ease-in-out, transform 0.5s ease;
    z-index: 1;
}

.slide-img.active {
    opacity: 1;
    z-index: 2;
    position: relative; /* Mantiene proporciones */
}

.glass-card:hover .slide-img.active {
    transform: scale(1.05); /* Mantener zoom al pasar mouse */
}

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.45);
    color: white;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.2s ease, background-color 0.2s, transform 0.2s;
}

.slider-nav:hover {
    background: rgba(0, 0, 0, 0.75);
}

.slider-nav:active {
    transform: translateY(-50%) scale(0.95);
}

.slider-nav.prev {
    left: 8px;
}

.slider-nav.next {
    right: 8px;
}

/* Mostrar controles en hover en desktop, y siempre en celular */
@media (hover: hover) {
    .glass-card:hover .slider-nav {
        opacity: 1;
    }
}
@media (hover: none) {
    .slider-nav {
        opacity: 0.8;
    }
}

.slider-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 10;
    background: rgba(0, 0, 0, 0.25);
    padding: 4px 8px;
    border-radius: 20px;
    backdrop-filter: blur(4px);
}

.slider-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.55);
    cursor: pointer;
    transition: background-color 0.2s, transform 0.2s;
}

.slider-dot.active {
    background: #FFFFFF;
    transform: scale(1.3);
}

.card-title {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-family: 'Roboto', sans-serif;
    text-transform: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.4em;
}

.card-price {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
}

/* Contenedor de Tallas (UI/UX Badges Homologados) */
.card-sizes {
    margin-top: 0.2rem;
    margin-bottom: 1.2rem !important; /* Espacio respirable obligatorio antes del botón */
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.size-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.size-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    align-items: center;
}

.size-pill {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    transition: all 0.2s ease;
    font-family: 'Roboto', sans-serif;
}

.size-pill:hover {
    background: var(--accent-agave);
    color: #fff;
    border-color: var(--accent-agave);
    transform: translateY(-1px);
}

.size-pill.more-sizes {
    background: var(--accent-agave);
    color: #fff;
    border-color: var(--accent-agave);
    font-size: 0.7rem;
    font-weight: 700;
}

.card-btn {
    background: var(--accent-agave);
    color: white;
    border: none;
    padding: 0.8rem;
    width: 100%;
    cursor: pointer;
    font-family: 'Oswald', sans-serif;
    font-size: 0.9rem;
    border-radius: 4px;
    margin-top: auto;
    transition: background 0.3s;
}

.card-btn:hover {
    background: #38473b;
}

/* Footer */
.main-footer {
    background-color: var(--accent);
    color: white;
    padding: 3rem 1.5rem;
    margin-top: 4rem;
}

.footer-container {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links a {
    color: rgba(255,255,255,0.8);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: white;
}

.footer-copy {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.7);
}

/* WhatsApp */
.fab-wa {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 100;
}

/* Responsive */
@media (max-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 768px) {
    .catalog-layout {
        grid-template-columns: 1fr;
    }
    .featured-categories {
        grid-template-columns: 1fr;
    }
    .nav-links {
        display: none;
    }
}

body.modal-open {
    overflow: hidden !important;
}

/* Modal Carrito y Tallas */
.cart-modal {
    display: none; 
    position: fixed; 
    z-index: 9999; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    background-color: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    overflow: hidden; /* Avoid double scrolling */
}

.cart-modal-content {
    background-color: var(--bg-card);
    margin: 3% auto; 
    padding: 2rem;
    border: 1px solid var(--border-color);
    width: 95%;
    max-width: 480px;
    max-height: 90vh; /* Prevents overflow */
    overflow-y: auto; /* Internal scrolling */
    overscroll-behavior: contain; /* Prevents scroll chaining/bleeding to background */
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    position: relative;
    animation: detailsPopIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.details-modal-content {
    background-color: var(--bg-card);
    margin: 3% auto; 
    padding: 2rem;
    border: 1px solid var(--border-color);
    width: 95%;
    max-width: 900px;
    max-height: 90vh; /* Prevents overflow */
    overflow-y: auto; /* Internal scrolling */
    overscroll-behavior: contain; /* Prevents scroll chaining/bleeding to background */
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    position: relative;
    animation: detailsPopIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.close-cart {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #4a5568;
    font-size: 24px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px; /* Slightly rounded square like the reference */
    cursor: pointer;
    line-height: 1;
    z-index: 50; /* Ensure it's above gallery */
    transition: all 0.2s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.close-cart:hover,
.close-cart:focus {
    background: var(--accent-agave, #48bb78); /* Color corporativo al pasar el mouse */
    color: #ffffff;
    border-color: var(--accent-agave, #48bb78);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(72, 187, 120, 0.3); /* Sombra difuminada verde (Fade) */
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid var(--border-color);
    padding: 1.2rem 0;
}

.cart-item-thumb {
    width: 65px;
    height: 65px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    background: var(--bg-main);
    flex-shrink: 0;
}

.cart-item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    text-align: left;
}

.cart-item-title {
    font-family: 'Oswald', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.3;
}

.cart-item-variant {
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin: 0;
}

.cart-item-price {
    font-weight: 700;
    font-size: 0.92rem;
    color: var(--accent);
    margin: 0;
}

.remove-item-btn {
    background: none;
    border: none;
    color: #c94a4a;
    cursor: pointer;
    font-size: 1.1rem;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.remove-item-btn:hover {
    background-color: rgba(201, 74, 74, 0.1);
    transform: scale(1.1);
}

.cart-total {
    text-align: right;
    margin-top: 1.5rem;
    padding: 1.2rem;
    background: rgba(141, 110, 99, 0.05); /* Soft tint */
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.cart-total h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
    color: var(--text-primary);
}

.cart-total h3 span {
    color: var(--accent);
    font-weight: 700;
}

.cart-checkout-btn {
    width: 100%;
    background-color: #25D366; /* WhatsApp Green */
    color: white;
    border: none;
    padding: 12px;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.cart-checkout-btn:hover {
    background-color: #1ebd5a;
}

/* Modal Tallas Opciones */
.size-options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    gap: 10px;
    margin-top: 20px;
}

.size-option-btn {
    padding: 10px;
    border: 1px solid #ccc;
    background-color: #fff;
    cursor: pointer;
    text-align: center;
    font-weight: bold;
    border-radius: 4px;
}

.size-option-btn:hover {
    background-color: #8D6E63;
    color: white;
    border-color: #8D6E63;
}

/* Glassmorphic Navbar Updates */
.main-nav {
    background: rgba(244, 241, 237, 0.8) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Mobile Toggle Button */
.menu-toggle-btn {
    background: none;
    border: none;
    font-size: 1.6rem;
    cursor: pointer;
    color: var(--text-primary);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 0.2rem;
}

/* Mobile Drawer Styles */
.mobile-drawer {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100vh;
    background-color: var(--bg-main);
    box-shadow: -5px 0 25px rgba(0,0,0,0.15);
    z-index: 10000;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    padding: 2rem 1.5rem;
}

.mobile-drawer.open {
    right: 0;
}

.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
}

.drawer-title {
    font-family: 'Oswald', sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: 1px;
}

.close-drawer-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-primary);
}

.drawer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.drawer-links a {
    font-family: 'Oswald', sans-serif;
    font-size: 1.2rem;
    font-weight: 500;
    letter-spacing: 1px;
    transition: color 0.2s;
    display: block;
}

.drawer-links a:hover, .drawer-links a.active {
    color: var(--accent);
}

/* Backdrop Overlay */
.drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 9999;
    display: none;
}
.drawer-backdrop.show {
    display: block;
}

/* Card Hover Elevation */
.glass-card {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.glass-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

/* WhatsApp Pulse Animation */
.fab-wa {
    animation: wa-pulse 2s infinite;
}
@keyframes wa-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Compact Catalog Hero Banner */
.hero-compact {
    height: 250px !important;
}
.hero-compact .hero-title {
    font-size: 2.2rem !important;
}
.hero-compact .hero-subtitle {
    font-size: 0.95rem !important;
}

/* Mobile Filters Button and Drawer Layout */
.mobile-filters-bar {
    display: none;
    width: 100%;
    margin-bottom: 1.5rem;
}
.btn-filters-toggle {
    width: 100%;
    background-color: var(--text-primary);
    color: white;
    padding: 0.75rem;
    border: none;
    border-radius: 4px;
    font-family: 'Oswald', sans-serif;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

/* Responsive Footer and Layout Updates */
@media (max-width: 768px) {
    .menu-toggle-btn {
        display: flex !important;
    }
    .nav-links {
        display: none !important;
    }
    .footer-container {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    .footer-links {
        align-items: center;
    }
    
    /* Catalog Layout on Mobile: Collapsible Filters */
    .mobile-filters-bar {
        display: block !important;
    }
    .catalog-layout {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
    .sidebar {
        display: none; /* Hidden by default on mobile, shown via overlay class */
        position: fixed;
        top: 0;
        left: -320px;
        width: 320px;
        height: 100vh;
        background: var(--bg-main);
        z-index: 10005;
        padding: 2rem 1.5rem;
        overflow-y: auto;
        overflow-x: hidden; /* Evita que los botones desbordados asomen */
        box-shadow: 5px 0 25px rgba(0,0,0,0.15);
        transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    .mobile-filters-header {
        display: flex !important;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 2rem;
        border-bottom: 1px solid var(--border-color);
        padding-bottom: 1rem;
    }
    .mobile-filters-header span {
        font-family: 'Oswald', sans-serif;
        font-size: 1.3rem;
        font-weight: 600;
        letter-spacing: 1px;
        color: var(--text-primary);
    }
    .mobile-filters-header button {
        background: none;
        border: none;
        font-size: 1.5rem;
        cursor: pointer;
        color: var(--text-primary);
    }
    .sidebar.open {
        display: block !important;
        left: 0;
    }
    .sidebar .filter-group:last-child {
        border-bottom: none;
    }
    
    /* Small card buttons style */
    .card-btn {
        padding: 0.6rem !important;
        font-size: 0.8rem !important;
    }
}

/* -------------------------------------------------------
   REDES SOCIALES MODERNAS Y SECCIÓN DE CONTACTO (Fase 5)
   ------------------------------------------------------- */

/* Social Media Buttons */
.footer-socials {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 1.2rem;
    margin-top: 0.5rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 1.15rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.social-icon:hover {
    color: white;
    transform: translateY(-3px) scale(1.08);
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
}

.social-icon.facebook:hover {
    background: #1877F2;
    border-color: #1877F2;
}

.social-icon.instagram:hover {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%);
    border-color: transparent;
}

/* Contact Page Layout */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
    align-items: start;
    margin-top: 2rem;
}

.contact-info-card {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
    text-align: left;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.contact-item-icon {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(196, 114, 85, 0.1); /* --accent 10% */
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 1.25rem;
    flex-shrink: 0;
}

.contact-item-details h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0 0 0.2rem 0;
    letter-spacing: 0.5px;
    color: var(--text-primary);
}

.contact-item-details p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.4;
}

.contact-map-card {
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-soft);
    height: 410px;
}

.contact-map-card iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .contact-map-card {
        height: 320px;
    }
    .contact-store-card {
        padding: 1.5rem;
    }
    .contact-info-card {
        padding: 1.5rem;
    }
}

/* -------------------------------------------------------
   ESTILOS DE LA VENTANA DE DETALLES DE PRODUCTO (Fase 6)
   ------------------------------------------------------- */

/* Details Modal Styles */
.details-modal-content {
    background-color: var(--bg-card);
    margin: 3% auto;
    padding: 2.5rem;
    border: 1px solid var(--border-color);
    width: 90%;
    max-width: 950px;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    position: relative;
    backdrop-filter: blur(10px);
    animation: detailsPopIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes detailsPopIn {
    from {
        transform: scale(0.95);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas: 
        "gallery info"
        "actions info";
    gap: 1.5rem 3rem;
    align-items: start;
}

.details-gallery {
    grid-area: gallery;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.details-info {
    grid-area: info;
}

.details-actions {
    grid-area: actions;
}


.details-slider-container {
    width: 100%;
    aspect-ratio: 1;
    background: var(--bg-main);
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--border-color);
}

.details-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.details-thumbnails {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding: 0.2rem 0;
}

.details-thumb-img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: border-color 0.2s, opacity 0.2s;
    opacity: 0.6;
}

.details-thumb-img:hover, .details-thumb-img.active {
    border-color: var(--accent);
    opacity: 1;
}

/* Info styling */
.details-info {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    text-align: left;
}

.details-category {
    font-family: 'Oswald', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 1px;
}

.details-title {
    font-family: 'Oswald', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
    margin: 0;
}

.details-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.details-desc-box {
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 1.2rem 0;
    margin: 0.5rem 0;
}

.details-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

.details-selector-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.details-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

/* Store card slideshow specific styling */
.contact-store-card {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
}

@media (max-width: 768px) {
    .details-modal-content {
        padding: 4rem 1.5rem 1.5rem 1.5rem; /* 4rem top padding creates a safe zone for the X button */
        margin: 5% auto;
        width: 95%;
    }
    .details-grid {
        grid-template-columns: 1fr;
        grid-template-areas: 
            "gallery"
            "info"
            "actions";
        gap: 2rem;
    }
    .details-actions {
        margin-top: 0;
    }
    .details-title {
        font-size: 1.5rem;
    }
}

/* -------------------------------------------------------
   STOCK INDICATORS (Fase 7)
------------------------------------------------------- */
.stock-variant-indicator {
    font-size: 0.95rem;
    font-weight: 500;
    margin-top: 1rem;
    padding: 0.5rem 0.8rem;
    border-radius: 6px;
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    display: inline-block;
    transition: all 0.3s ease;
}

.stock-variant-indicator.in-stock {
    color: #059669; /* Verde esmeralda */
    background: #ecfdf5;
    border-color: #a7f3d0;
}

.stock-variant-indicator.low-stock {
    color: #d97706; /* Naranja/Ámbar */
    background: #fffbeb;
    border-color: #fde68a;
}

.stock-variant-indicator.out-of-stock {
    color: #dc2626; /* Rojo */
    background: #fef2f2;
    border-color: #fecaca;
}

.stock-badge-card {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 2;
    pointer-events: none;
    font-family: 'Oswald', sans-serif;
    letter-spacing: 0.5px;
}
.stock-badge-card.low {
    background: #dc2626; /* Rojo brillante para urgencia */
}

/* -------------------------------------------------------
   COOKIE & PRIVACY BANNER
------------------------------------------------------- */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(150%);
    background: rgba(26, 32, 44, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #f7fafc;
    padding: 16px 24px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    width: 90%;
    max-width: 600px;
    z-index: 10000;
    opacity: 0;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s ease;
    border: 1px solid rgba(255,255,255,0.1);
}

.cookie-banner.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.cookie-text {
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
    font-family: 'Inter', sans-serif;
}

.cookie-text a {
    color: var(--accent-agave, #48bb78);
    text-decoration: underline;
    font-weight: 500;
}

.cookie-btn {
    background: var(--accent-agave, #48bb78);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-family: 'Oswald', sans-serif;
    font-size: 0.95rem;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.3s, transform 0.2s;
}

.cookie-btn:hover {
    background: #38a169;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .cookie-banner {
        flex-direction: column;
        text-align: center;
        gap: 12px;
        padding: 20px;
        bottom: 10px;
    }
    .cookie-btn {
    }
}

/* -------------------------------------------------------
   REDESIGN PREMIUM - EL CAPORAL PORTADA
   ------------------------------------------------------- */

/* Secciones de Título */
.section-title-wrapper {
    text-align: center;
    margin-top: 4rem;
    margin-bottom: 2rem;
}

.section-main-title {
    font-size: 2.2rem;
    font-weight: 300;
    color: var(--text-primary);
    letter-spacing: 3px;
    margin-bottom: 0.5rem;
}

/* Grilla de Categorías Premium */
.featured-categories-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1.2rem;
    margin-bottom: 3rem;
}

.cat-card-premium {
    background: #FFF;
    border: 1px solid var(--border-color);
    padding: 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    text-align: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    height: 310px;
}

.cat-card-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--accent);
    transform: scaleX(0);
    transition: transform 0.4s ease;
    transform-origin: center;
}

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

.cat-card-premium:hover {
    box-shadow: var(--shadow-soft);
    border-color: var(--accent-light);
    transform: translateY(-5px);
}

.cat-icon-container {
    color: var(--accent);
    margin-bottom: 0.8rem;
    transition: transform 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.cat-svg-icon {
    width: 32px;
    height: 32px;
    stroke-width: 1.5;
}

.cat-card-premium:hover .cat-icon-container {
    transform: scale(1.1);
}

.cat-label {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.05rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-primary);
    letter-spacing: 1.5px;
    margin-bottom: 1.2rem;
}

.cat-img-wrapper {
    width: 100%;
    height: 140px;
    overflow: hidden;
    border-radius: 2px;
}

.cat-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.cat-card-premium:hover .cat-img-wrapper img {
    transform: scale(1.08);
}

.all-catalog-cta {
    text-align: center;
    margin-bottom: 5rem;
}

.cta-link {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 2px;
    color: var(--text-primary);
    border-bottom: 1px solid var(--accent);
    padding-bottom: 6px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.cta-link:hover {
    color: var(--accent);
    border-color: var(--text-primary);
    transform: translateX(3px);
}

/* Pilares de Confianza */
.trust-pillars {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 3.5rem 0;
    margin-bottom: 5rem;
}

.pillar {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.pillar i {
    font-size: 2.2rem;
    color: var(--accent);
}

.pillar-info h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    margin-bottom: 0.3rem;
    color: var(--text-primary);
}

.pillar-info p {
    font-size: 0.75rem;
    color: #777;
    margin: 0;
}

/* CTA Banner Intermedio */
.cta-banner-middle {
    text-align: center;
    background-color: var(--bg-secondary);
    padding: 4.5rem 2rem;
    border-radius: 4px;
    margin-bottom: 5rem;
    border: 1px solid var(--border-color);
}

.cta-banner-middle h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.2rem;
    font-weight: 300;
    letter-spacing: 3px;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.cta-banner-middle p {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 2.2rem;
    font-weight: 300;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* Rediseño Footer */
.main-footer {
    background-color: #1C1918;
    color: #BBB;
    padding: 5rem 0 0 0;
    border-top: 2px solid var(--accent);
}

.footer-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 1.5rem 4rem 1.5rem;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.2fr;
    gap: 3rem;
}

.footer-brand-section h3 {
    color: #FFF;
    font-size: 1.8rem;
    letter-spacing: 2px;
    margin-bottom: 1.2rem;
}

.footer-brand-section p {
    font-size: 0.85rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-weight: 300;
}

.footer-links-group h4 {
    color: #FFF;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    margin-bottom: 1.5rem;
}

.footer-links-group a {
    display: block;
    font-size: 0.85rem;
    color: #999;
    margin-bottom: 0.8rem;
    transition: color 0.3s ease;
    font-weight: 300;
}

.footer-links-group a:hover {
    color: var(--accent-light);
}

.footer-links-group p {
    font-size: 0.85rem;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 300;
}

.footer-links-group p i {
    color: var(--accent);
}

.footer-socials {
    display: flex;
    gap: 1rem;
}

.footer-socials .social-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #2E2D2B;
    color: #FFF;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.footer-socials .social-icon:hover {
    background: var(--accent);
    color: #FFF;
    transform: translateY(-2px);
}

.footer-copy-bar {
    border-top: 1px solid #2E2D2B;
    padding: 1.5rem;
    text-align: center;
    font-size: 0.75rem;
    color: #666;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

/* RESPONSIVIDAD Y TRANSICIÓN DE MENU MÓVIL (<= 992px) */
@media (max-width: 992px) {
    .main-nav {
        padding: 0.6rem 0;
    }
    
    .nav-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .nav-links {
        display: none !important;
    }
    
    .menu-toggle-btn {
        display: flex !important;
    }
    
    .logo img {
        height: 52px;
        width: 52px;
    }
    
    .featured-categories-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
    
    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .trust-pillars {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .pillar {
        flex-direction: column;
        text-align: center;
    }
    
    .featured-categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }
    
    .cat-card-premium {
        height: 290px;
        padding: 1rem;
    }
    
    .cat-img-wrapper {
        height: 120px;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-socials {
        justify-content: center;
    }
}

