/* ================= VARIABLES ================= */
:root {
    --black-bg: #050505;
    --black-light: #1a1a1a;
    --red-primary: #c83232;
    --red-dark: #a32424;
    --white: #ffffff;
    --bg-light: #fcfcfc;
    --text-main: #333333;
    --text-muted: #666666;
    --gold-accent: #d4af37;
    --green-italy: #008c45;
    --red-italy: #cd212a;
}

/* ================= RESET Y BASE ================= */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-light);
    line-height: 1.6;
}

h1, h2, h3, h4, .logo, .footer-logo-wrapper h2, .gourmet-text {
    font-family: 'Playfair Display', serif;
}

/* Utilidades para fondos de imágenes (Ahorra muchísimas líneas) */
.carousel-item, .cat-img, .product-img, .recipe-img, .news-img, .promo-bg, .badge-flag {
    background-size: cover;
    background-position: center;
}
.recipe-img{
    background-repeat: no-repeat;
    background-position: center;
    height: 200px;
}

/* ================= UTILIDADES GLOBALES DE SECCIONES ================= */
.section-container {
    padding: 70px 5%;
}

.section-container.visual-categories, .section-container.news-section, .section-container.popular-products {
    background-color: var(--white);
}

.section-container.recipes-section {
    background-color: #f4f1eb;
}

.section-container.promo-banners {
    background-color: var(--bg-light);
}

.section-title {
    font-size: 32px;
    margin-bottom: 5px;
    text-align: center;
}

.section-subtitle {
    font-size: 15px;
    color: var(--text-muted);
    margin-bottom: 40px;
    text-align: center;
}

.center-btn { text-align: center; margin-top: 20px; }

/* Botones Base */
button, .btn-nav-flat, .btn-promo, .news-link {
    font-family: 'Montserrat', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

/* ================= HEADER Y BARRA SUPERIOR ================= */
.main-header {
    background-color: var(--black-bg);
    color: var(--white);
    position: sticky;
    top: 0;
    z-index: 100;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    border-bottom: 1px solid #222;
}

.logo img { height: 80px; width: auto; }

.search-bar { display: flex; width: 300px; }
.search-bar input { width: 100%; padding: 10px 15px; border: none; border-radius: 20px 0 0 20px; outline: none; }
.search-bar button { padding: 10px 15px; border: none; background: var(--white); border-radius: 0 20px 20px 0; color: var(--text-main); }

.actions { display: flex; gap: 20px; align-items: center; }
.nav-act-link { color: var(--white); text-decoration: none; font-size: 14px; transition: color 0.3s; }
.nav-act-link:hover { color: var(--red-primary); }

.cart-count {
    background: var(--red-primary);
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 12px;
    font-weight: bold;
}

/* ================= NAVEGACIÓN Y MEGA MENÚ ================= */
.main-nav { background-color: var(--white); box-shadow: 0 2px 10px rgba(0,0,0,0.05); position: relative; }
.nav-list { list-style: none; display: flex; justify-content: space-between; align-items: center; padding: 0 5%; margin: 0; width: 100%; }
.nav-list > li { padding: 15px 0; }
.nav-list a { text-decoration: none; color: var(--text-main); font-weight: 600; font-size: 13px; text-transform: uppercase; transition: color 0.3s; }
.nav-list a:hover { color: var(--red-primary); }

.btn-nav-flat.btn-red { background-color: var(--red-primary); color: var(--white); padding: 8px 20px; border-radius: 20px; }
.btn-nav-flat.btn-red-dark { background-color: var(--red-dark); color: var(--white); padding: 8px 20px; border-radius: 20px; }
.text-xs { font-size: 10px; margin-left: 5px; }

/* Mega Menú Estructura */
.has-mega-menu { position: static; }
.mega-menu {
    position: absolute; top: 100%; left: 0; width: 100%; background-color: var(--white);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15); display: flex; opacity: 0; visibility: hidden;
    transform: translateY(10px); transition: all 0.3s ease; z-index: 200; border-top: 2px solid var(--red-primary);
}
.has-mega-menu:hover .mega-menu { opacity: 1; visibility: visible; transform: translateY(0); }

.mega-menu-sidebar { width: 260px; background-color: #2b2b2b; padding: 20px 0; }
.mega-menu-sidebar ul { list-style: none; }
.mega-menu-sidebar a { display: block; color: #e0e0e0; padding: 12px 30px; font-size: 14px; text-transform: none; font-weight: 400; }
.mega-menu-sidebar a:hover, .mega-menu-sidebar a.active { background-color: var(--red-primary); color: var(--white); }

.mega-menu-content { flex-grow: 1; padding: 40px; }
.mega-category-grid { display: flex; gap: 60px; }
.mega-col h4 { color: var(--red-dark); font-size: 16px; margin-bottom: 20px; text-transform: uppercase; border-bottom: 1px solid #eee; padding-bottom: 8px; }
.mega-col ul { list-style: none; }
.mega-col li { margin-bottom: 12px; }
.mega-col a { color: var(--text-muted); text-transform: none; font-weight: 500; font-size: 14px; }

/* Paneles Dinámicos */
.mega-panel { display: none; animation: fadeInMenu 0.3s ease; }
.mega-panel.active { display: block; }
@keyframes fadeInMenu { from { opacity: 0; transform: translateX(-10px); } to { opacity: 1; transform: translateX(0); } }

/* ================= REGLAS GENERALES (ESCRITORIO) ================= */
.hamburger-btn, 
.mobile-nav-overlay {
    display: none; /* Ocultamos componentes móviles en PC */
}

/* ================= VISTA MÓVIL (TELF) ================= */
@media (max-width: 768px) {
    /* 1. Ocultar Menú Desktop y Reorganizar Top Bar */
    .desktop-nav { display: none; }
    
    .top-bar {
        flex-wrap: wrap;
        gap: 15px;
        padding: 15px 5%;
    }
    
    .hamburger-btn {
        display: block;
        order: 0; /* Primer elemento a la izquierda */
        background: transparent;
        border: none;
        color: var(--white);
        font-size: 24px;
        cursor: pointer;
    }
    
    .logo { order: 1; margin: 0 auto; }
    .logo img { height: 45px; }
    
    .actions { order: 2; gap: 15px; }
    .nav-act-link { font-size: 0; }
    .nav-act-link i { font-size: 20px; }
    .cart-count { font-size: 11px; padding: 2px 5px; transform: translateY(-5px); display: inline-block; }
    
    .search-bar { order: 3; width: 100%; margin-top: 5px; }

    /* 2. Estilos del Menú Off-Canvas (Overlay y Panel) */
    .mobile-nav-overlay {
        display: block; /* Habilitado en móvil */
        position: fixed;
        top: 0; left: 0; width: 100vw; height: 100vh;
        background-color: rgba(0, 0, 0, 0.6);
        z-index: 1000;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease;
    }
    .mobile-nav-overlay.active {
        opacity: 1; visibility: visible;
    }

    .mobile-nav-content {
        background-color: var(--white);
        width: 85%;
        max-width: 320px;
        height: 100%;
        transform: translateX(-100%); /* Escondido a la izquierda */
        transition: transform 0.3s ease;
        overflow-y: auto;
        color: var(--text-main);
    }
    .mobile-nav-overlay.active .mobile-nav-content {
        transform: translateX(0); /* Desliza hacia adentro */
    }

    /* Cabecera del menú móvil */
    .mobile-nav-header {
        display: flex; justify-content: space-between; align-items: center;
        padding: 20px; border-bottom: 1px solid #eee;
    }
    .mobile-nav-header img { height: 40px; }
    .close-btn { background: transparent; border: none; font-size: 24px; color: var(--text-main); cursor: pointer; }

    /* Listas y Acordeones Móviles */
    .mobile-menu-list { list-style: none; padding: 0; margin: 0; }
    .mobile-menu-list li { border-bottom: 1px solid #f5f5f5; }
    
    .mobile-simple-link, .mobile-toggle {
        display: flex; justify-content: space-between; align-items: center;
        padding: 15px 20px; color: var(--text-main); text-decoration: none;
        font-weight: 600; font-size: 15px; cursor: pointer;
    }
    
    .text-red { color: var(--red-primary) !important; }
    .text-red-dark { color: var(--red-dark) !important; }

    /* Submenús ocultos por defecto */
    .mobile-submenu, .mobile-sub-submenu {
        list-style: none; padding: 0; margin: 0;
        max-height: 0; overflow: hidden; transition: max-height 0.3s ease;
        background-color: #fafafa;
    }
    
    /* Categorías */
    .sub-toggle { padding-left: 30px; font-size: 14px; font-weight: 500; }
    
    /* Productos Finales */
    .mobile-sub-submenu a {
        display: block; padding: 10px 20px 10px 40px;
        color: var(--text-muted); font-size: 13px; text-decoration: none;
    }
    .view-all-link { color: var(--red-primary) !important; font-weight: 600; }
    
    /* Animaciones de iconos JS */
    .icon-arrow, .icon-plus { transition: transform 0.3s ease; }
    .mobile-dropdown.open > .mobile-toggle .icon-arrow { transform: rotate(180deg); }
    .mobile-sub-dropdown.open > .mobile-toggle .icon-plus { transform: rotate(45deg); }
}

/* ================= HERO CARRUSEL ================= */
.hero-carousel { 
    position: relative; 
    width: 100%; 
    background-color: var(--black-bg); 
    overflow: hidden;
    /* height: 700px; <-- ELIMINADO para que sea automático */
}

.carousel-inner { 
    display: grid; /* TRUCO MÁGICO: Grid permite apilar elementos sin sacarlos del flujo */
    width: 100%; 
}

.carousel-item { 
    grid-area: 1 / 1; /* Coloca todos los items en la misma celda de la grilla */
    opacity: 0; 
    visibility: hidden; 
    transition: opacity 0.8s ease, visibility 0.8s ease; 
    position: relative; /* Ya NO es absolute */
    z-index: 1; 
}

.carousel-item.active { 
    opacity: 1; 
    visibility: visible; 
    z-index: 2; 
}

/* --- ESTILOS DE LA IMAGEN --- */
.carousel-image {
    width: 100%;
    height: auto; /* Mantiene la proporción original */
    max-height: 80vh; /* Evita que una imagen vertical ocupe toda la pantalla en PC */
    object-fit: cover; /* Llena el ancho disponible */
    display: block;
}
.carousel-image.desktop { display: block; }
.carousel-image.mobile { display: none; }

/* --- ESTILOS DEL CONTENIDO (TEXTO SOBRE LA IMAGEN) --- */
.hero-content { 
    position: absolute; /* Flota sobre la imagen */
    top: 0;
    left: 0;
    width: 100%; 
    height: 100%; 
    display: flex; 
    align-items: flex-end; 
    justify-content: flex-end;
    padding: 0 8% 60px 8%; /* Espaciado interno */
    z-index: 3;
}

.content-wrapper {
    transform: translateY(20px); 
    opacity: 0; 
    transition: all 0.8s ease 0.3s;
    text-align: right;
    max-width: 600px;
}

.carousel-item.active .content-wrapper { 
    transform: translateY(0); 
    opacity: 1; 
}

.hero-content h1 { font-size: 50px; margin-bottom: 15px; line-height: 1.1; color: var(--white); }
.hero-content p { font-size: 18px; color: #e0e0e0; margin-bottom: 25px; }

/* Controles e Indicadores (Se mantienen casi igual) */
.carousel-control { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0,0,0,0.4); color: var(--white); border: none; font-size: 24px; padding: 15px 20px; z-index: 10; border-radius: 4px; cursor:pointer; }
.carousel-control:hover { background: var(--red-primary); }
.carousel-control.prev { left: 2%; }
.carousel-control.next { right: 2%; }

.carousel-indicators { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; z-index: 10; }
.dot { width: 12px; height: 12px; background-color: rgba(255,255,255,0.5); border-radius: 50%; cursor: pointer; transition: 0.3s; }
.dot.active { background-color: var(--red-primary); transform: scale(1.2); }

/* ================= VISTA MÓVIL (TELF) ================= */
@media (max-width: 768px) {
    .carousel-image {
        /* En móvil, solemos querer que no quede tan alto si la imagen es ancha */
        max-height: 50vh; 
        object-fit: cover;
    }
    .carousel-image.desktop { display: none; }
    .carousel-image.mobile { display: block; }
    .hero-content {
        align-items: center;
        justify-content: center;
        padding: 0 5% 40px 5%;
    }
    .content-wrapper {
        text-align: center;
    }
    .hero-content h1 { font-size: 32px; margin-bottom: 10px; }
    .hero-content p { font-size: 15px; margin-bottom: 20px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
}

/* ================= COMPONENTES GLOBALES (Botones y Tarjetas) ================= */
.btn-primary { background-color: var(--red-primary); color: var(--white); border: none; padding: 15px 35px; font-size: 16px; border-radius: 30px; font-weight: 600; }
.btn-primary:hover { background-color: var(--red-dark); }
.btn-outline { background-color: transparent; color: var(--black-bg); border: 2px solid var(--black-bg); padding: 12px 30px; font-size: 15px; border-radius: 30px; font-weight: 600; cursor: pointer; transition: 0.3s; text-decoration: none; text-align: center; }
.btn-outline:hover { background-color: var(--black-bg); color: var(--white); }

/* Tarjetas Globales (Productos, Recetas, Noticias) */
.product-card, .recipe-card, .news-card {
    background-color: var(--bg-light);
    border: 1px solid #eee;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}
.recipe-card { background-color: var(--white); box-shadow: 0 4px 15px rgba(0,0,0,0.04); border: none; }
.product-card:hover, .recipe-card:hover, .news-card:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(0,0,0,0.08); }

/* ================= SLIDER CATEGORÍAS ================= */
.category-slider-wrapper { display: flex; align-items: center; justify-content: center; position: relative; max-width: 100%; margin: 0 auto; }
.cat-nav-btn { background-color: var(--white); border: 1px solid #ddd; width: 45px; height: 45px; border-radius: 50%; font-size: 18px; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 10px rgba(0,0,0,0.05); position: absolute; z-index: 10; }
.cat-nav-btn:hover { background-color: var(--black-bg); color: var(--white); }
.prev-cat { left: -20px; } .next-cat { right: -20px; }
.category-slider-container { width: 100%; overflow: hidden; padding: 20px 0; }
.category-track { display: flex; gap: 30px; transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1); }
.cat-item { display: flex; flex-direction: column; align-items: center; cursor: pointer; flex: 0 0 calc((100% - 120px) / 5); transition: transform 0.3s; }
.cat-item a { text-decoration: none; color: var(--text-main); text-align: center; width: 100%; }
.cat-item:hover { transform: translateY(-10px); }
.cat-img { width: 100%; height: 220px; border-radius: 24px; background-color: #eee; margin-bottom: 20px; box-shadow: 0 10px 20px rgba(0,0,0,0.06); transition: 0.3s; }
.cat-item:hover .cat-img { box-shadow: 0 15px 35px rgba(0,0,0,0.12); }
.highlight-cat .cat-img { border: 3px solid var(--red-primary); box-shadow: 0 15px 30px rgba(200,50,50,0.25); }
.highlight-cat span { color: var(--red-primary); font-weight: 700; }
.cat-item span { font-weight: 600; font-size: 17px; }

/* ================= GRILLAS (Productos, Recetas, Noticias) ================= */
.products-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin: 40px 0; }
.recipes-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; margin-bottom: 40px; }
.news-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 25px; margin: 40px 0; }

/* Productos Específico */
.popular-products { max-width: 1200px; margin: 0 auto; }
.badge-offer { position: absolute; top: 15px; left: 15px; background: var(--red-primary); color: var(--white); padding: 5px 10px; font-size: 12px; font-weight: 600; border-radius: 4px; z-index: 2; text-transform: uppercase; }
.img-wrapper { width: 100%; height: 250px; overflow: hidden; position: relative; background: #f9f9f9; }
.product-img { width: 100%; height: 100%; transition: transform 0.5s; }
.product-card:hover .product-img { transform: scale(1.05); }

/* Banderitas */
.badge-flag { position: absolute; bottom: 10px; right: 10px; width: 30px; height: 30px; border-radius: 50%; box-shadow: 0 2px 5px rgba(0,0,0,0.2); border: 2px solid var(--white); z-index: 2; }
.flag-it { background: linear-gradient(to right, #008C45 33%, #F4F5F0 33% 66%, #CD212A 66%); }
.flag-ar { background: linear-gradient(to bottom, #74ACDF 33%, #FFFFFF 33% 66%, #74ACDF 66%); }
.flag-gr { background: linear-gradient(to bottom, #005BAE 20%, #FFFFFF 20% 40%, #005BAE 40% 60%, #FFFFFF 60% 80%, #005BAE 80%); }
.flag-import { background-color: #d4af37; display: flex; align-items: center; justify-content: center; color: white; font-weight: bold; }
.flag-import::before { content: '✈'; }

/* Info Tarjetas Generales */
.product-info, .recipe-content, .news-content { padding: 20px; display: flex; flex-direction: column; flex-grow: 1; }
.product-info h3, .recipe-content h3, .news-content h3 { font-size: 15px; margin-bottom: 15px; font-weight: 600; line-height: 1.4; flex-grow: 1; color: var(--black-bg); }
.product-info h3 a { text-decoration: none; color: var(--black-bg); transition: 0.3s; }
.recipe-content h3 { font-size: 20px; margin-bottom: 10px; }
.news-content h3 { margin-bottom: 20px; }

/* Precios y Botones Producto */
.price { display: flex; gap: 10px; margin-bottom: 20px; align-items: center; }
.old-price { font-size: 13px; color: var(--text-muted); text-decoration: line-through; }
.current-price { font-size: 18px; font-weight: 700; color: var(--black-bg); }
.current-price.offer { color: var(--red-primary); }

.product-actions { display: flex; gap: 10px; }
.btn-add-cart, .btn-view-details { padding: 10px; border-radius: 6px; font-size: 13px; font-weight: 600; flex-grow: 1; border: none; cursor: pointer; transition: 0.3s; text-decoration: none; text-align: center; }
.btn-add-cart { background: var(--black-bg); color: var(--white); }
.btn-add-cart:hover { background: var(--red-primary); }
.btn-view-details { background: transparent; color: var(--black-bg); border: 1px solid #ddd; }
.btn-view-details:hover { border-color: var(--black-bg); background: var(--bg-light); }

/* Recetas Específico */
.extra-info { max-height: 0; opacity: 0; overflow: hidden; transition: 0.5s ease; font-size: 14px; color: var(--text-muted); }
.extra-info p { margin-bottom: 10px; }
.extra-info em { color: var(--red-dark); font-weight: 600; }
.recipe-card.expanded .extra-info { max-height: 500px; opacity: 1; margin-top: 15px; padding-top: 15px; border-top: 1px solid #eee; }
.expand-btn { margin-top: 15px; background: none; border: none; color: var(--red-primary); font-weight: 600; font-size: 14px; text-transform: uppercase; text-decoration: none; display: inline-block; }

/* Noticias Específico */
.news-img { height: 180px; background-color: #f0f0f0; }
.news-date { font-size: 11px; color: var(--red-primary); font-weight: 600; margin-bottom: 10px; text-transform: uppercase; }
.news-link { font-size: 12px; font-weight: 700; color: var(--black-bg); text-transform: uppercase; display: inline-block; }
.news-card:hover .news-link { color: var(--red-primary); transform: translateX(3px); }

/* ================= BANNERS PROMOCIONALES ================= */
.promo-container { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.promo-card { position: relative; border-radius: 12px; overflow: hidden; display: flex; align-items: center; justify-content: flex-end; text-align: right; cursor: pointer; }
.promo-card.wide { grid-column: 1 / -1; height: 400px; }
.promo-card.half { height: 280px; }
.promo-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; transition: 0.6s; }
.promo-card:hover .promo-bg { transform: scale(1.08); }
.promo-overlay { position: absolute; top:0; left:0; width:100%; height:100%; z-index:2; }
.promo-content { position: relative; z-index: 3; padding: 50px; color: var(--white); max-width: 50%; }
.promo-card.half .promo-content { max-width: 65%; padding: 40px; }
.promo-content h4 { font-size: 13px; color: #ccc; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 10px; }
.promo-content h2 { font-size: 32px; font-weight: 800; margin-bottom: 15px; text-transform: uppercase; }
.promo-card.wide .promo-content h2 { font-size: 46px; }
.promo-content p { color: var(--gold-accent); font-weight: 600; margin-bottom: 25px; }
.btn-promo { display: inline-block; border: 1px solid var(--white); color: var(--white); padding: 10px 30px; border-radius: 30px; font-size: 13px; font-weight: 600; text-transform: uppercase; }
.btn-promo:hover { background-color: var(--red-primary); border-color: var(--red-primary); }

/* ================= FOOTER ================= */
/* .italian-stripe { display: flex; height: 8px; }
.stripe-chunk { flex: 1; }
.stripe-chunk.green { background-color: var(--green-italy); }
.stripe-chunk.white { background-color: var(--white); }
.stripe-chunk.red { background-color: var(--red-italy); }

.main-footer { background-color: #000; color: var(--white); padding: 60px 5% 20px; font-family: 'Montserrat', sans-serif; }
.footer-row-1 { display: grid; grid-template-columns: 1fr 2fr 1fr; gap: 40px; align-items: center; padding-bottom: 40px; }
.footer-col-logo { display: flex; justify-content: center; }
.footer-logo-wrapper img { max-width: 250px; }
.footer-col-brands { display: flex; justify-content: center; align-items: center; gap: 25px; flex-wrap: wrap; }
.footer-col-brands img { max-height: 45px; max-width: 120px; object-fit: contain; opacity: 0.8; transition: 0.3s; }
.footer-col-brands img:hover { opacity: 1; }
.footer-col-socials { display: flex; flex-direction: column; gap: 15px; padding-left: 20px; }
.footer-col-socials a { color: var(--white); text-decoration: none; font-size: 14px; display: flex; align-items: center; gap: 12px; transition: 0.3s; }
.footer-col-socials a i { font-size: 20px; width: 20px; text-align: center; }
.footer-col-socials a:hover { color: var(--red-primary); }

.footer-row-2 { text-align: center; padding: 30px 0; border-top: 1px solid #222; border-bottom: 1px solid #222; }
.footer-contact-info { font-size: 13px; font-weight: 600; margin-bottom: 15px; }
.footer-contact-info span { margin: 0 5px; }
.footer-links a { font-size: 12px; font-weight: 600; color: #ccc; text-decoration: none; margin: 0 5px; transition: 0.3s; }
.footer-links a:hover { color: var(--white); }
.separator { color: #555; margin: 0 8px; }
.footer-row-3 { text-align: center; padding-top: 25px; font-size: 11px; color: #888; } */

/* ================= PRE-FOOTER BANNER ================= */
.italian-stripe { display: flex; height: 8px; }
.stripe-chunk { flex: 1; }
.stripe-chunk.green { background-color: var(--green-italy); }
.stripe-chunk.white { background-color: var(--white); }
.stripe-chunk.red { background-color: var(--red-italy); }
.pre-footer-banner {
    padding: 40px 0;
    background-color: var(--white);
    text-align: center;
}

.bottega-banner-img {
    width: 100%;
    max-width: 1200px;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
    display: block;
    margin: 0 auto;
}

/* ================= FOOTER PRINCIPAL ================= */
.main-footer {
    background-color: var(--black-bg); /* O el verde oscuro si el cliente prefirió ese tono */
    color: var(--white);
    padding-top: 60px;
    font-family: 'Montserrat', sans-serif;
}

.footer-top-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr 1.5fr; /* 5 columnas con proporciones ajustadas */
    gap: 30px;
    margin-bottom: 50px;
}

/* Columna 1: Logo y Redes */
.col-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-logo-main {
    max-width: 150px;
    margin-bottom: 25px;
    filter: brightness(0) invert(1); /* Pone el logo blanco si el original es negro */
}

.footer-social-boxes {
    display: flex;
    gap: 10px;
}

.footer-social-boxes a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.3s;
}

.footer-social-boxes a:hover {
    background-color: var(--red-primary);
}

/* Textos y Enlaces Generales */
.footer-heading {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--white);
}

.footer-text-block {
    margin-bottom: 15px;
    font-size: 13px;
    color: #ccc;
    line-height: 1.5;
}

.footer-text-block p { margin: 0; }

.highlight-contact {
    display: inline-block;
    padding: 5px 10px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    margin-top: 5px;
    color: var(--white);
    font-weight: 600;
}

.footer-links-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links-list li {
    margin-bottom: 12px;
}

.footer-links-list a {
    color: #ccc;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.3s;
}

.footer-links-list a:hover {
    color: var(--white);
    text-decoration: underline;
}

/* Newsletter */
.newsletter-form {
    margin-bottom: 15px;
}

.newsletter-input {
    width: 100%;
    padding: 12px 15px;
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    color: var(--white);
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    outline: none;
    transition: border-color 0.3s;
}

.newsletter-input::placeholder { color: #888; }
.newsletter-input:focus { border-color: var(--white); }

.newsletter-disclaimer {
    font-size: 11px;
    color: #888;
    line-height: 1.4;
}

/* Fila Media: Sellos y Reclamaciones */
.footer-middle-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    flex-wrap: wrap;
    gap: 20px;
}

.seal-cci img {
    width: 100%;
    height: auto;
    background-color: var(--white);
    padding: 5px;
    border-radius: 4px;
}

/* media query de .seal-cci img */
@media (max-width: 768px) {
    .seal-cci img {
        max-width: 100%;
        height: auto !important;
    }
}

/* ================= MEDIOS DE PAGO (FOOTER) ================= */
.seal-payments-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.payment-title {
    font-size: 11px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
}

.seal-payments-icons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* Tarjetas para los íconos */
.pay-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 55px; /* Más ancho para parecer una tarjeta real */
    height: 55px;
    background-color: rgba(255, 255, 255, 0.9); /* Fondo oscuro translúcido */
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    color: var(--white);
    font-size: 24px;
    transition: all 0.3s ease;
    cursor: default;
}
.pay-badge img { width: 100%; height: auto; object-fit: contain;  }
/* Efecto Hover Premium para tarjetas de crédito */
.pay-badge:hover {
    background-color: var(--white);
    color: var(--black-bg);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.15);
}

.btn-libro-reclamaciones {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.btn-libro-reclamaciones:hover { background-color: rgba(255, 255, 255, 0.2); }

/* ================= MARCAS EXCLUSIVAS (FOOTER) ================= */
.footer-brands-wrapper {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 0px solid rgba(255, 255, 255, 0.08);
    padding: 35px 0 0 0;
    text-align: center;
    width: 100%;
}

.footer-brands-title {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    margin-bottom: 25px;
}

/* 
 * Usamos footer-brands-flex para que se vea bien alineado 
 * incluso si la librería Swiper.js tarda en cargar o falla.
 */
.footer-brands-flex {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap; 
    gap: 40px;
}

.brand-slide {
    width: auto !important; /* Evita que Swiper estire los logos de más */
    display: flex;
    justify-content: center;
    align-items: center;
}

.brand-img-footer {
    max-height: 45px; /* Altura controlada para mantener la elegancia */
    max-width: 130px;
    object-fit: contain;
    
    /* 
     * EL TRUCO PREMIUM: 
     * brightness(0) vuelve la imagen negra.
     * invert(1) la vuelve blanca pura.
     * opacity(0.5) la hace sutil para no robar protagonismo.
     */
    transition: all 0.3s ease;
}

.brand-img-footer:hover {
    /* Al pasar el mouse, se vuelve blanco sólido y se acerca ligeramente */
    transform: scale(1.05);
}

/* ================= RESPONSIVE MARCAS ================= */
@media (max-width: 768px) {
    .footer-brands-flex {
        gap: 20px;
    }
    
    .brand-img-footer {
        max-height: 35px; /* Logos un poco más pequeños en celular */
        max-width: 90px;
    }
}

/* Fila Inferior y Banner Alcohol */
.footer-bottom-copyright {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 11px;
    color: #888;
}

.alcohol-warning-banner {
    background-color: #000; /* Negro puro para máximo contraste */
    color: var(--white);
    text-align: center;
    padding: 15px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
}

.alcohol-warning-banner p { margin: 0; }

/* ================= RESPONSIVE FOOTER ================= */
@media (max-width: 1024px) {
    .footer-top-grid {
        grid-template-columns: repeat(3, 1fr); /* 3 columnas en tablet */
    }
}

@media (max-width: 768px) {
    .footer-top-grid {
        grid-template-columns: 1fr; /* 1 columna en móvil */
        gap: 40px;
    }
    
    .footer-middle-flex {
        flex-direction: column;
        text-align: center;
    }
    
    .col-brand {
        align-items: center;
        text-align: center;
    }
}

/* ================= MEDIA QUERIES (TODO LO RESPONSIVO) ================= */
@media (max-width: 1024px) {
    .cat-item { flex: 0 0 calc((100% - 90px) / 4); }
    .products-grid { grid-template-columns: repeat(2, 1fr); }
    .news-grid-4 { grid-template-columns: repeat(2, 1fr); }
    .footer-row-1 { grid-template-columns: 1fr; text-align: center; gap: 30px; }
    .footer-col-logo, .footer-col-socials { justify-content: center; align-items: center; padding-left: 0; }
    .footer-col-socials { flex-direction: row; flex-wrap: wrap; }
}

@media (max-width: 900px) {
    .hero-content h1 { font-size: 40px; }
    .carousel-control { padding: 10px 15px; font-size: 18px; }
    .promo-card.wide .promo-content h2 { font-size: 36px; }
    .promo-content h2 { font-size: 26px; }
}

@media (max-width: 768px) {
    .cat-nav-btn { display: none; }
    .category-slider-container { overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 20px;}
    .category-track { gap: 15px; }
    .cat-item { flex: 0 0 calc((100% - 30px) / 2.5); scroll-snap-align: start;}
    .cat-img { height: 180px; }
    
    .promo-container { grid-template-columns: 1fr; }
    .promo-card.wide, .promo-card.half { height: 300px; align-items: flex-end; text-align: left; justify-content: flex-start; }
    .promo-content, .promo-card.half .promo-content { max-width: 100%; width: 100%; padding: 30px; }

    .footer-contact-info span, .footer-links a { display: block; margin: 10px 0; }
    .separator { display: none; }
}

@media (max-width: 600px) {
    .products-grid { grid-template-columns: 1fr; }
    .news-grid-4 { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .cat-item { flex: 0 0 calc((100% - 15px) / 1.5); }
}

/* ================= MODAL DE EDAD (LUXURY UI) ================= */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85); /* Fondo oscuro elegante */
    backdrop-filter: blur(8px); /* Efecto cristalino */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999; /* Por encima de absolutamente todo */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* Bloquea el scroll de la página de fondo cuando el modal está abierto */
body.modal-open {
    overflow: hidden;
}

.age-modal {
    background-color: var(--black-bg);
    border: 1px solid #333;
    border-radius: 12px;
    padding: 50px 40px;
    max-width: 480px;
    width: 90%;
    text-align: center;
    color: var(--white);
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
    transform: translateY(20px) scale(0.95);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-overlay.show .age-modal {
    transform: translateY(0) scale(1);
}

.modal-logo {
    max-width: 140px;
    margin-bottom: 20px;
}

.modal-title {
    font-size: 26px;
    margin-bottom: 15px;
    color: var(--gold-accent);
}

.modal-text {
    font-size: 14px;
    color: #ccc;
    margin-bottom: 30px;
    line-height: 1.6;
}

.modal-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 25px;
}

/* Variante de botón oscuro para el "No" */
.btn-outline-light {
    border-color: #444;
    color: #aaa;
}

.btn-outline-light:hover {
    background-color: #222;
    border-color: #666;
    color: var(--white);
}

.modal-footer-text {
    font-size: 11px;
    color: #666;
    border-top: 1px solid #222;
    padding-top: 15px;
}

/* ================= BANNER BOTTEGA ROSCINI ================= */
.bottega-banner {
    position: relative;
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    overflow: hidden;
}

.bottega-bg {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover; background-position: center; z-index: 1;
}

.bottega-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.7); z-index: 2;
}

.bottega-content { position: relative; z-index: 3; max-width: 600px; padding: 20px; }
.bottega-tag { display: block; font-size: 12px; color: var(--gold-accent); text-transform: uppercase; letter-spacing: 3px; margin-bottom: 10px; }
.bottega-content h2 { font-size: 42px; margin-bottom: 15px; }
.bottega-content p { color: #ccc; margin-bottom: 25px; }

/* ================= SELLOS Y ADVERTENCIA (FOOTER) ================= */
.footer-row-seals {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 0;
    border-top: 1px solid #222;
    border-bottom: 1px solid #222;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 20px;
}
.seal-cci { width: 330px; }
.seal-cci span { display: block; font-size: 12px; color: #aaa; margin-top: 5px; }

.seal-payments { display: flex; gap: 15px; font-size: 30px; color: #aaa; }
.seal-payments i:hover { color: var(--white); }

.btn-claims {
    display: inline-flex; align-items: center; gap: 10px;
    background-color: transparent; border: 1px solid #555; color: #ccc;
    padding: 10px 20px; border-radius: 4px; text-decoration: none; font-size: 13px; font-weight: 600;
    transition: all 0.3s;
}
.btn-claims:hover { background-color: var(--white); color: var(--black-bg); }

.alcohol-warning {
    background-color: #030303;
    color: #999;
    text-align: center;
    padding: 25px 5%;
    font-size: 13px;
    letter-spacing: 3px;
    line-height: 1.8;
}

/* ================= MODAL DESCUENTO 10% ================= */
.discount-modal {
    background-color: var(--white);
    border-radius: 12px;
    overflow: hidden;
    max-width: 750px;
    width: 95%;
    position: relative;
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
    transform: translateY(20px) scale(0.95);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-overlay.show .discount-modal { transform: translateY(0) scale(1); }

.close-modal {
    position: absolute; top: 15px; right: 20px;
    background: none; border: none; font-size: 28px; color: #999;
    cursor: pointer; z-index: 10; transition: color 0.3s;
}
.close-modal:hover { color: var(--red-primary); }

.discount-body { display: flex; }
.discount-img { width: 45%; background-size: cover; background-position: center; }
.discount-content-box { width: 55%; padding: 50px 40px; text-align: left; color: var(--text-main); }
.discount-tag { display: inline-block; background: var(--red-primary); color: white; padding: 5px 12px; border-radius: 20px; font-weight: 700; font-size: 13px; margin-bottom: 15px; }

.discount-content-box .modal-title { color: var(--black-bg); font-size: 28px; margin-bottom: 10px; }
.discount-content-box .modal-text { color: var(--text-muted); margin-bottom: 25px; }

.discount-form input {
    width: 100%; padding: 15px; border: 1px solid #ddd; border-radius: 6px;
    margin-bottom: 15px; font-family: 'Montserrat', sans-serif; outline: none;
}
.discount-form input:focus { border-color: var(--red-primary); }

@media (max-width: 768px) {
    .footer-row-seals { flex-direction: column; text-align: center; }
    .discount-body { flex-direction: column; }
    .discount-img { width: 100%; height: 200px; }
    .discount-content-box { width: 100%; padding: 30px 20px; text-align: center; }
}

/* ================= VISTA DE TIENDA / CATÁLOGO ================= */

.shop-main-container {
    max-width: 1300px;
    margin: 0 auto;
    padding-top: 40px;
}

/* Breadcrumbs (Migas de pan) */
.breadcrumbs {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 25px;
    color: var(--text-muted);
}

.breadcrumbs a {
    color: var(--text-main);
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumbs a:hover {
    color: var(--red-primary);
}

.breadcrumbs .divider {
    margin: 0 10px;
    color: #ccc;
}

.breadcrumbs .current {
    color: var(--red-primary);
}

/* Título de la página */
.shop-header {
    border-bottom: 1px solid #eaeaea;
    padding-bottom: 20px;
    margin-bottom: 40px;
}

.shop-header .page-title {
    font-size: 36px;
    color: var(--black-bg);
    margin: 0;
}

/* Layout Principal (CSS Grid) */
.shop-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    align-items: start;
}

/* --- Barra Lateral (Filtros) --- */
.shop-sidebar {
    position: sticky;
    top: 200px; /* Se queda fija al hacer scroll */
    background-color: var(--white);
    padding: 25px;
    border-radius: 12px;
    border: 1px solid #eee;
    box-shadow: 0 4px 20px rgba(0,0,0,0.02);
}

.shop-sidebar .btn-filter {
    display: block;
    width: 100%;
    background-color: var(--black-bg);
    color: var(--white);
    border: none;
    padding: 12px 0;
    border-radius: 6px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    text-transform: uppercase;
}

.sidebar-header-mobile {
    display: none; /* Oculto en escritorio */
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.sidebar-header-mobile h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    margin: 0;
}

.close-filters {
    background: none;
    border: none;
    font-size: 20px;
    color: var(--text-main);
    cursor: pointer;
}

.filter-group {
    margin-bottom: 25px;
}

.filter-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

/* Selectores Personalizados Elegantes */
.custom-select-wrapper {
    position: relative;
    width: 100%;
}

.custom-select {
    width: 100%;
    padding: 12px 40px 12px 15px;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    color: var(--black-bg);
    background-color: var(--bg-light);
    border: 1px solid #ddd;
    border-radius: 6px;
    appearance: none; /* Quita la flecha por defecto del navegador */
    -webkit-appearance: none;
    -moz-appearance: none;
    outline: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.custom-select:focus, .custom-select:hover {
    border-color: var(--black-bg);
    background-color: var(--white);
}

.select-arrow {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    pointer-events: none; /* Para que el click traspase al select */
    color: var(--text-muted);
    font-size: 12px;
}

/* --- Área de Productos --- */
.shop-content-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.results-count {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 500;
}

.btn-mobile-filter {
    display: none; /* Oculto en escritorio */
    background-color: var(--black-bg);
    color: var(--white);
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    gap: 8px;
    align-items: center;
}

/* Ajuste específico de la grilla para esta vista */
.shop-grid {
    margin-top: 0;
    /* Anulamos el max-width que tenía en el index para que llene el contenedor */
    max-width: 100%; 
}

/* Paginación */
.shop-pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 50px;
}
.shop-pagination a{
    text-decoration: none;
    color: var(--text-main);
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    transition: all 0.3s;
}

.page-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--white);
    border: 1px solid #ddd;
    border-radius: 50%;
    color: var(--text-main);
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.page-btn:hover {
    border-color: var(--black-bg);
    background-color: var(--bg-light);
}

.page-btn.active {
    background-color: var(--black-bg);
    color: var(--white);
    border-color: var(--black-bg);
}

/* ================= RESPONSIVE TIENDA ================= */
@media (max-width: 1024px) {
    .shop-layout {
        grid-template-columns: 220px 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .shop-layout {
        grid-template-columns: 1fr; /* Una sola columna */
    }

    .btn-mobile-filter {
        display: inline-flex;
    }

    /* Comportamiento Modal de la Barra Lateral en Móviles */
    .shop-sidebar {
        position: fixed;
        top: 0;
        left: -100%; /* Oculto fuera de la pantalla */
        width: 300px;
        height: 100%;
        z-index: 1000;
        border-radius: 0;
        border: none;
        box-shadow: 20px 0 30px rgba(0,0,0,0.1);
        overflow-y: auto;
        transition: left 0.4s cubic-bezier(0.175, 0.885, 0.32, 1);
    }

    .shop-sidebar.active {
        left: 0; /* Entra a la pantalla */
    }

    .sidebar-header-mobile {
        display: flex;
    }
}

/* ================= DETALLE DE PRODUCTO ================= */
.product-detail-main {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 30px;
}

/* Layout Principal */
.product-top-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 70px;
}

/* --- Galería de Imágenes --- */
.product-gallery {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.main-image-container {
    background-color: var(--white);
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 20px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1; /* Cuadrado perfecto */
    overflow: hidden;
}

.main-image-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; /* Ideal para frascos y botellas */
    transition: transform 0.3s ease;
}

.thumbnail-track {
    display: flex;
    gap: 15px;
}

.thumb-item {
    width: 80px;
    height: 80px;
    border: 2px solid transparent;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    background-color: var(--white);
    transition: all 0.3s ease;
}

.thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumb-item.active, .thumb-item:hover {
    border-color: var(--red-primary);
}

/* --- Información del Producto --- */
.product-title-large {
    font-size: 36px;
    color: var(--black-bg);
    margin-bottom: 5px;
    line-height: 1.2;
}

.product-sku {
    font-size: 12px;
    color: #999;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.product-price-large {
    font-size: 28px;
    margin-bottom: 20px;
}

.product-short-desc {
    color: var(--text-muted);
    font-size: 15px;
    margin-bottom: 30px;
    line-height: 1.7;
}

/* Tabla de Especificaciones (Lista Elegante) */
.product-specs-list {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
    border-top: 1px solid #eee;
}

.product-specs-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    font-size: 14px;
}

.spec-label {
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 12px;
}

.spec-value {
    color: var(--black-bg);
    font-weight: 700;
    text-align: right;
}

/* Controles de Compra */
.purchase-actions {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
}

.qty-selector {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 30px;
    overflow: hidden;
    height: 50px;
    width: 130px;
}

.qty-btn {
    background: none;
    border: none;
    width: 40px;
    height: 100%;
    cursor: pointer;
    color: var(--text-main);
    transition: background 0.3s;
}

.qty-btn:hover {
    background-color: #f0f0f0;
}

.qty-input {
    width: 50px;
    height: 100%;
    border: none;
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 16px;
    outline: none;
    /* Quitar flechas por defecto del input number */
    -moz-appearance: textfield;
}
.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.btn-block {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

/* Acordeón de Detalles (Detalles Nativos HTML) */
.product-accordion details {
    border-bottom: 1px solid #eee;
}

.product-accordion summary {
    padding: 20px 0;
    font-weight: 700;
    cursor: pointer;
    list-style: none; /* Oculta la flecha por defecto */
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--black-bg);
    transition: color 0.3s;
}

.product-accordion summary::-webkit-details-marker {
    display: none;
}

.product-accordion summary:hover {
    color: var(--red-primary);
}

.product-accordion details[open] summary i {
    transform: rotate(180deg);
}

.product-accordion .accordion-content {
    padding-bottom: 20px;
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
}

/* Sección Relacionados */
.related-products-section {
    border-top: 1px solid #eaeaea;
    padding-top: 50px;
}

/* ================= RESPONSIVE PRODUCTO ================= */
@media (max-width: 900px) {
    .product-top-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .product-title-large {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .purchase-actions {
        flex-direction: column;
    }
    .qty-selector {
        width: 100%;
        justify-content: space-between;
    }
    .qty-input {
        width: 100%;
    }
}

/* ================= PÁGINA DE RECETAS ================= */

.recipes-page-main {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 40px;
}

/* Encabezado centrado */
.page-header-centered {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
}

.page-title-large {
    font-size: 42px;
    color: var(--black-bg);
    margin-bottom: 15px;
    line-height: 1.2;
}

.page-subtitle-large {
    font-size: 16px;
    line-height: 1.6;
}

/* Filtros Estilo Píldoras */
.recipe-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 50px;
}

.filter-pill {
    background-color: transparent;
    border: 1px solid #ddd;
    color: var(--text-main);
    padding: 10px 25px;
    border-radius: 30px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-pill:hover {
    border-color: var(--black-bg);
    color: var(--black-bg);
}

.filter-pill.active {
    background-color: var(--black-bg);
    color: var(--white);
    border-color: var(--black-bg);
}

/* Ajuste de la grilla para la vista de página completa */
.recipes-grid.page-grid {
    margin-top: 0;
}

/* Ocultar recetas filtradas (Controlado por JS) */
.recipe-card.hidden {
    display: none;
}

@media (max-width: 768px) {
    .page-title-large {
        font-size: 32px;
    }
    
    .recipe-filters {
        gap: 10px;
    }
    
    .filter-pill {
        padding: 8px 20px;
        font-size: 13px;
    }
}

/* ================= VISTA DETALLE DE RECETA ================= */
.recipe-detail-page {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 30px;
}

/* --- Hero Banner Receta --- */
.recipe-hero-banner {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    padding: 80px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin-bottom: 60px;
    background-size: cover;
    background-position: center;
}

.recipe-hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.4), rgba(5,5,5,0.85));
    z-index: 1;
}

.recipe-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    color: var(--white);
}

.recipe-category-tag {
    display: inline-block;
    background-color: transparent;
    border: 1px solid var(--gold-accent);
    color: var(--gold-accent);
    padding: 6px 15px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 30px;
    margin-bottom: 20px;
    font-weight: 600;
}

.recipe-title-main {
    font-family: 'Playfair Display', serif;
    font-size: 48px;
    margin-bottom: 20px;
    line-height: 1.1;
}

.recipe-hero-desc {
    font-size: 16px;
    color: #ddd;
    margin-bottom: 30px;
    line-height: 1.6;
}

.recipe-meta-info {
    display: flex;
    justify-content: center;
    gap: 30px;
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 25px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.meta-item i {
    color: var(--gold-accent);
    font-size: 18px;
}

/* --- Layout Principal --- */
.recipe-body-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 60px;
    align-items: start;
}

.recipe-section-title {
    font-size: 28px;
    color: var(--black-bg);
    margin-bottom: 30px;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

/* --- Lista de Pasos (Columna Izquierda) --- */
.steps-container {
    display: flex;
    flex-direction: column;
    gap: 35px;
}

.step-item {
    display: flex;
    gap: 25px;
}

.step-number {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background-color: var(--bg-light);
    border: 1px solid #ddd;
    color: var(--red-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
}

.step-text h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    color: var(--black-bg);
    margin-bottom: 10px;
    margin-top: 12px; /* Alineación óptica con el número */
}

.step-text p {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.7;
}

/* --- Columna Derecha (Sidebar) --- */
.recipe-sidebar-col {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.sidebar-title {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    color: var(--black-bg);
    margin-bottom: 15px;
}

/* Caja de Ingredientes */
.ingredients-box {
    background-color: #f4f1eb; /* Color crema suave que usamos arriba */
    padding: 30px;
    border-radius: 12px;
}

.ingredients-hint {
    font-size: 12px;
    color: #888;
    margin-bottom: 20px;
    font-style: italic;
}

.interactive-ingredients-list {
    list-style: none;
    padding: 0;
}

.interactive-ingredients-list li {
    padding: 12px 0;
    border-bottom: 1px dashed #dcdcdc;
    font-size: 15px;
    color: var(--text-main);
    cursor: pointer;
    display: flex;
    align-items: flex-start;
    transition: color 0.3s, opacity 0.3s;
}

.interactive-ingredients-list li:last-child {
    border-bottom: none;
}

.interactive-ingredients-list li::before {
    content: '\f111'; /* Círculo vacío de FontAwesome */
    font-family: 'Font Awesome 6 Free';
    font-weight: 400;
    color: var(--red-primary);
    margin-right: 15px;
    font-size: 14px;
    margin-top: 3px;
    transition: all 0.3s;
}

/* Estado tachado al hacer clic */
.interactive-ingredients-list li.checked {
    color: #999;
    text-decoration: line-through;
}

.interactive-ingredients-list li.checked::before {
    content: '\f058'; /* Círculo con check de FontAwesome */
    font-weight: 900;
    color: var(--green-italy);
}

/* Caja de Maridaje Destacado */
.pairing-highlight-box {
    border: 1px solid #eee;
    padding: 30px;
    border-radius: 12px;
    background-color: var(--white);
    box-shadow: 0 10px 30px rgba(0,0,0,0.02);
}

.pairing-desc {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 25px;
    line-height: 1.6;
}

/* Ajuste de la tarjeta de producto para que quepa bien en el sidebar */
.compact-card .img-wrapper {
    height: 200px;
}

/* ================= RESPONSIVE DETALLE RECETA ================= */
@media (max-width: 1024px) {
    .recipe-body-layout {
        grid-template-columns: 1fr 320px;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .recipe-hero-banner {
        padding: 50px 20px;
    }
    
    .recipe-title-main {
        font-size: 32px;
    }

    .recipe-meta-info {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }

    .recipe-body-layout {
        grid-template-columns: 1fr;
    }

    .step-item {
        flex-direction: column;
        gap: 15px;
    }

    .step-number {
        margin-bottom: -5px;
    }

    .step-text h3 {
        margin-top: 0;
    }
}

/* ================= PÁGINA DE NOTICIAS (MAGAZINE) ================= */

.news-page-main {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 40px;
}

/* Noticia Destacada (Hero Article) */
.featured-news-card {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    background-color: var(--white);
    border: 1px solid #eee;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 60px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.featured-news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
}

.featured-news-img {
    height: 100%;
    min-height: 400px;
    background-size: cover;
    background-position: center;
}

.featured-news-content {
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.news-category-tag {
    background-color: var(--black-bg);
    color: var(--white);
    padding: 6px 12px;
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
    border-radius: 4px;
    margin-bottom: 15px;
}

.featured-news-content .news-date {
    font-size: 13px;
    margin-bottom: 15px;
}

.featured-news-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 36px;
    color: var(--black-bg);
    margin-bottom: 20px;
    line-height: 1.2;
}

.featured-news-content p {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 30px;
}

/* Grilla de Noticias Secundarias (3 Columnas en lugar de 4) */
.news-page-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

/* Ocultar elementos filtrados */
.featured-news-card.hidden,
.news-card.hidden {
    display: none;
}

/* ================= RESPONSIVE NOTICIAS ================= */
@media (max-width: 1024px) {
    .news-page-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .featured-news-card {
        grid-template-columns: 1fr;
    }
    
    .featured-news-img {
        min-height: 300px;
    }
    
    .featured-news-content h2 {
        font-size: 28px;
    }
}

@media (max-width: 600px) {
    .news-page-grid {
        grid-template-columns: 1fr;
    }
    
    .featured-news-content {
        padding: 30px 20px;
    }
}

/* ================= VISTA DETALLE DE NOTICIA ================= */
.article-detail-page {
    max-width: 1000px; /* Un poco más estrecho para enfocar la lectura */
    margin: 0 auto;
    padding-top: 40px;
}

.article-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
}

.article-header .news-category-tag {
    margin-bottom: 20px;
}

.article-main-title {
    font-family: 'Playfair Display', serif;
    font-size: 46px;
    color: var(--black-bg);
    line-height: 1.2;
    margin-bottom: 25px;
}

.article-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    font-size: 13px;
    color: var(--text-muted);
}

.meta-separator {
    color: #ccc;
}

.meta-author strong {
    color: var(--black-bg);
}

.article-hero-image {
    width: 100%;
    margin-bottom: 50px;
    border-radius: 12px;
    overflow: hidden;
}

.article-hero-image img {
    width: 100%;
    height: auto;
    max-height: 550px;
    object-fit: cover;
    display: block;
}

.image-caption {
    display: block;
    text-align: center;
    font-size: 12px;
    color: #888;
    margin-top: 10px;
    font-style: italic;
}

/* Cuerpo del artículo */
.article-body-content {
    max-width: 760px;
    margin: 0 auto;
    font-size: 17px;
    line-height: 1.8;
    color: var(--text-main);
}

.article-body-content p {
    margin-bottom: 25px;
}

.article-body-content h2, 
.article-body-content h3 {
    font-family: 'Playfair Display', serif;
    color: var(--black-bg);
    margin: 40px 0 20px 0;
}

.article-body-content h2 { font-size: 30px; }
.article-body-content h3 { font-size: 24px; }

/* Efecto Letra Capital Editorial */
.drop-cap {
    float: left;
    font-family: 'Playfair Display', serif;
    font-size: 65px;
    line-height: 50px;
    padding-top: 6px;
    padding-right: 10px;
    color: var(--red-primary);
    font-weight: 700;
}

/* Cita destacada (Blockquote) */
.article-quote {
    margin: 40px 0;
    padding: 30px 40px;
    background-color: var(--bg-light);
    border-left: 4px solid var(--gold-accent);
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    font-style: italic;
    color: var(--black-bg);
    line-height: 1.6;
    border-radius: 0 8px 8px 0;
}

.article-quote cite {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-style: normal;
    color: var(--text-muted);
    font-weight: 600;
    margin-top: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Footer del artículo (Etiquetas y Redes) */
.article-footer-actions {
    max-width: 760px;
    margin: 50px auto;
    padding: 25px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.tag-label, .share-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--black-bg);
    text-transform: uppercase;
    margin-right: 10px;
}

.article-tags {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.tag-link {
    background-color: #f0f0f0;
    color: var(--text-main);
    padding: 5px 12px;
    font-size: 12px;
    border-radius: 4px;
    text-decoration: none;
    transition: background 0.3s;
}

.tag-link:hover {
    background-color: var(--red-primary);
    color: var(--white);
}

.share-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
}

.share-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--white);
    text-decoration: none;
    transition: transform 0.3s, opacity 0.3s;
    border: none;
    cursor: pointer;
}

.share-btn:hover {
    transform: translateY(-3px);
    opacity: 0.9;
}

.share-btn.fb { background-color: #1877F2; }
.share-btn.tw { background-color: #000000; }
.share-btn.wa { background-color: #25D366; }
.share-btn.link { background-color: var(--text-muted); }

/* Relacionados */
.related-articles-section {
    margin-top: 60px;
    padding-top: 20px;
}

/* ================= RESPONSIVE DETALLE NOTICIA ================= */
@media (max-width: 768px) {
    .article-main-title {
        font-size: 32px;
    }

    .article-meta {
        flex-direction: column;
        gap: 8px;
    }
    
    .meta-separator {
        display: none;
    }

    .article-hero-image img {
        max-height: 350px;
    }

    .article-quote {
        padding: 20px;
        font-size: 18px;
    }

    .article-footer-actions {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ================= CARRITO LATERAL (SIDEBAR) ================= */

/* Fondo oscuro translúcido */
.cart-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(3px);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.cart-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Contenedor del Sidebar */
.cart-sidebar {
    position: fixed;
    top: 0; right: -100%; /* Empieza oculto a la derecha */
    width: 400px;
    max-width: 100vw; /* Para móviles */
    height: 100vh;
    background-color: var(--bg-light);
    z-index: 10001;
    display: flex;
    flex-direction: column;
    box-shadow: -5px 0 30px rgba(0,0,0,0.1);
    transition: right 0.4s cubic-bezier(0.25, 0.8, 0.25, 1); /* Animación suave */
}

.cart-sidebar.active {
    right: 0; /* Entra en pantalla */
}

/* Evitar scroll en la página de fondo cuando está abierto */
body.cart-open {
    overflow: hidden;
}

/* Cabecera */
.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    border-bottom: 1px solid #eaeaea;
    background-color: var(--white);
}

.cart-header h2 {
    font-size: 22px;
    color: var(--black-bg);
    margin: 0;
}

.close-cart {
    background: none;
    border: none;
    font-size: 22px;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.3s, transform 0.3s;
}

.close-cart:hover {
    color: var(--red-primary);
    transform: rotate(90deg);
}

/* Cuerpo (Lista de productos) */
.cart-body {
    flex-grow: 1;
    overflow-y: auto;
    padding: 20px 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Items individuales */
.cart-item {
    display: flex;
    gap: 15px;
    background-color: var(--white);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #eee;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
    position: relative;
}

.cart-item-img {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    background-color: #f9f9f9;
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-item-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
}

.cart-item-details {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.item-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: var(--black-bg);
    margin-bottom: 5px;
    line-height: 1.3;
    padding-right: 20px; /* Espacio para que no choque con nada */
}

.item-price {
    font-size: 14px;
    font-weight: 700;
    color: var(--red-primary);
    margin-bottom: 10px;
}

.item-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Controles de cantidad en miniatura para el carrito */
.mini-qty-selector {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    height: 30px;
    overflow: hidden;
}

.mini-qty-btn {
    background: #fcfcfc;
    border: none;
    width: 25px;
    height: 100%;
    cursor: pointer;
    color: var(--text-muted);
    font-size: 10px;
    transition: background 0.3s;
}

.mini-qty-btn:hover { background-color: #eee; color: var(--black-bg); }

.mini-qty-input {
    width: 30px;
    height: 100%;
    border: none;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 12px;
    color: var(--black-bg);
}

.remove-item-btn {
    background: none;
    border: none;
    color: #aaa;
    font-size: 16px;
    cursor: pointer;
    transition: color 0.3s;
}

.remove-item-btn:hover {
    color: var(--red-primary);
}

/* Footer del carrito */
.cart-footer {
    padding: 25px 30px;
    background-color: var(--white);
    border-top: 1px solid #eaeaea;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.03);
}

.cart-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.summary-label {
    font-size: 16px;
    font-weight: 600;
    color: var(--black-bg);
}

.summary-value {
    font-size: 22px;
    font-weight: 800;
    color: var(--black-bg);
}

.cart-taxes-note {
    font-size: 11px;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 20px;
}

.cart-checkout-btn {
    padding: 18px;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ================= VISTA CARRITO COMPLETO ================= */
.full-cart-page {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 40px;
}

.cart-page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
    border-bottom: 2px solid var(--black-bg);
    padding-bottom: 15px;
}

.cart-page-header .page-title-large {
    margin-bottom: 0;
    font-size: 36px;
}

.continue-shopping-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.continue-shopping-link:hover {
    color: var(--red-primary);
}

/* Layout Principal */
.cart-full-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 50px;
    align-items: start;
}

/* --- Tabla/Lista de Productos --- */
.cart-table-header {
    display: grid;
    grid-template-columns: 3fr 1fr 1fr 1fr;
    padding-bottom: 15px;
    border-bottom: 1px solid #ddd;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cart-row-item {
    display: grid;
    grid-template-columns: 3fr 1fr 1fr 1fr;
    align-items: center;
    padding: 30px 0;
    border-bottom: 1px solid #eee;
    transition: background-color 0.3s;
}

.cart-row-item:hover {
    background-color: var(--bg-light);
}

/* Columnas de la tabla */
.col-product {
    display: flex;
    align-items: center;
    gap: 20px;
}

.col-price, .col-qty, .col-subtotal {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.col-subtotal {
    justify-content: space-between; /* Para separar el precio del tacho de basura */
    padding-right: 10px;
}

/* Info del Item */
.item-img-large {
    width: 100px;
    height: 100px;
    background-color: var(--white);
    border: 1px solid #eee;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.item-img-large img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.item-info-large h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    color: var(--black-bg);
    margin-bottom: 5px;
}

.item-sku {
    font-size: 12px;
    color: #999;
}

.mobile-price {
    display: none; /* Oculto en escritorio */
    font-weight: 700;
    color: var(--red-primary);
    margin-top: 5px;
}

.price-text, .subtotal-text {
    font-size: 16px;
    font-weight: 600;
    color: var(--black-bg);
}

.remove-row-btn {
    background: none;
    border: none;
    color: #ccc;
    font-size: 18px;
    cursor: pointer;
    transition: color 0.3s, transform 0.3s;
}

.remove-row-btn:hover {
    color: var(--red-primary);
    transform: scale(1.1);
}

/* --- Resumen del Pedido (Columna Derecha) --- */
.summary-box-premium {
    background-color: var(--bg-light);
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 35px;
    position: sticky;
    top: 100px;
}

.summary-title {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    color: var(--black-bg);
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #ddd;
}

/* Código Promocional */
.promo-code-section {
    margin-bottom: 25px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

.promo-trigger {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-main);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0;
    transition: color 0.3s;
}

.promo-trigger:hover { color: var(--red-primary); }

.promo-input-group {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.4s ease;
}

.promo-input-group.active {
    max-height: 50px;
    opacity: 1;
}

.promo-input {
    flex-grow: 1;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: 'Montserrat', sans-serif;
    outline: none;
}
.promo-input:focus { border-color: var(--black-bg); }

/* Desglose de precios */
.summary-breakdown {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.summary-breakdown li {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    margin-bottom: 15px;
    color: var(--text-main);
}

.muted-text {
    color: #999;
    font-size: 12px;
}

.summary-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 2px solid var(--black-bg);
    padding-top: 20px;
    margin-bottom: 30px;
    font-size: 18px;
    font-weight: 700;
    color: var(--black-bg);
}

.total-price-large {
    font-size: 26px;
    color: var(--red-primary);
}

.btn-checkout-large {
    padding: 18px;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Sellos de seguridad */
.secure-checkout-badges {
    margin-top: 25px;
    text-align: center;
}

.secure-checkout-badges p {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.payment-icons {
    font-size: 24px;
    color: #bbb;
    display: flex;
    justify-content: center;
    gap: 10px;
}

/* ================= RESPONSIVE CARRITO ================= */
@media (max-width: 1024px) {
    .cart-full-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .summary-box-premium {
        position: static;
    }
}

@media (max-width: 768px) {
    .cart-page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .cart-table-header {
        display: none; /* Ocultamos los encabezados en móvil */
    }
    
    .cart-row-item {
        grid-template-columns: 1fr;
        gap: 20px;
        position: relative;
    }
    
    .desktop-only {
        display: none;
    }
    
    .mobile-price {
        display: block;
    }
    
    .col-subtotal {
        justify-content: flex-end;
    }
    
    .subtotal-text {
        display: none; /* Ocultamos el subtotal en móvil para ahorrar espacio, ya se ve el precio */
    }
    
    .remove-row-btn {
        position: absolute;
        top: 20px;
        right: 0;
    }
    
    .qty-selector {
        width: 120px;
    }
}

/* ================= VISTA PROCESAR COMPRA (CHECKOUT) ================= */
.checkout-page {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 40px;
}

.checkout-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: start;
}

/* --- Secciones del Formulario --- */
.checkout-section {
    margin-bottom: 50px;
}

.checkout-section-title {
    font-size: 20px;
    color: var(--black-bg);
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.step-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background-color: var(--black-bg);
    color: var(--white);
    border-radius: 50%;
    font-size: 13px;
    font-weight: 700;
}

/* Grilla de campos (Inputs) */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.checkout-input {
    width: 100%;
    padding: 14px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    color: var(--black-bg);
    outline: none;
    background-color: var(--white);
    transition: border-color 0.3s;
}

.checkout-input:focus {
    border-color: var(--black-bg);
}

/* Tarjetas de Selección (Radio Cards) */
.radio-card-group {
    display: flex;
    gap: 15px;
}

.radio-card-group.vertical {
    flex-direction: column;
}

.radio-card {
    flex: 1;
    cursor: pointer;
    position: relative;
}

.radio-card input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.radio-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: var(--white);
    color: var(--text-muted);
    font-weight: 600;
    transition: all 0.3s ease;
}

.radio-content.left-align {
    justify-content: flex-start;
    gap: 20px;
}

.radio-content i {
    font-size: 24px;
}

.radio-text {
    display: flex;
    flex-direction: column;
}

.radio-title {
    color: var(--black-bg);
    font-size: 15px;
    margin-bottom: 4px;
}

.radio-desc {
    font-size: 12px;
    font-weight: 400;
}

/* Estado Activo del Radio Card */
.radio-card input[type="radio"]:checked + .radio-content {
    border-color: var(--black-bg);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    background-color: #fcfcfc;
}

.radio-card input[type="radio"]:checked + .radio-content i {
    color: var(--black-bg);
}

/* --- Resumen de Orden (Productos Compactos) --- */
.order-items-compact {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 25px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

.compact-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.compact-img {
    width: 65px;
    height: 65px;
    background-color: var(--white);
    border: 1px solid #eee;
    border-radius: 8px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.compact-img img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
}

.compact-qty {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--text-muted);
    color: var(--white);
    font-size: 11px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.compact-info h4 {
    font-size: 14px;
    color: var(--black-bg);
    margin-bottom: 5px;
}

.compact-info span {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 600;
}

/* Botones finales */
.checkout-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 10px;
}

.back-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    transition: color 0.3s;
}

.back-link:hover {
    color: var(--red-primary);
}

/* ================= RESPONSIVE CHECKOUT ================= */
@media (max-width: 900px) {
    .checkout-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .checkout-form-column {
        order: 2; /* En móvil, el resumen se ve primero arriba */
    }
    
    .cart-summary-column {
        order: 1;
    }
    
    .desktop-only {
        display: none;
    }
    
    .checkout-mobile-nav {
        display: block !important;
        margin-top: 30px;
        text-align: center;
    }
}

@media (max-width: 600px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .radio-card-group {
        flex-direction: column;
    }
}

/* ================= VISTA DE MARCAS ================= */
.brands-page-main {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 40px;
}

.brands-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-top: 30px;
    margin-bottom: 60px;
}

.brand-card {
    background-color: var(--white);
    border: 1px solid #eee;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}

.brand-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
}

.brand-img {
    height: 250px;
    background-size: cover;
    background-position: center;
    background-color: #f9f9f9;
    border-bottom: 3px solid var(--red-primary);
}

.brand-content {
    padding: 35px 40px;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Hace que todas las tarjetas midan lo mismo */
}

/* Si luego pones imágenes de logos, aplica esta clase a la etiqueta <img> */
.brand-name {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    color: var(--black-bg);
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.brand-desc {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 30px;
    flex-grow: 1; /* Empuja el botón hacia abajo si sobra espacio */
}

.btn-catalog {
    align-self: flex-start; /* Evita que el botón ocupe todo el ancho */
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    padding: 10px 25px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ================= RESPONSIVE MARCAS ================= */
@media (max-width: 900px) {
    .brands-grid {
        gap: 30px;
    }
    
    .brand-content {
        padding: 30px 25px;
    }
}

@media (max-width: 768px) {
    .brands-grid {
        grid-template-columns: 1fr; /* 1 sola columna en móviles */
    }
    
    .brand-img {
        height: 200px;
    }
}

/* ================= BOTÓN FLOTANTE WHATSAPP ================= */
.whatsapp-float-btn {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25D366;
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 999; /* Por encima de la página, pero debajo de los modales oscuros */
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s;
    /* Animación sutil de latido */
    animation: pulse-wa 2.5s infinite;
}

.whatsapp-float-btn:hover {
    background-color: #20b858;
    color: var(--white);
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
    animation: none; /* Detenemos el latido cuando el usuario pone el cursor encima */
}

/* Animación de latido (Pulse) */
@keyframes pulse-wa {
    0% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.6);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    }
}

/* Ajuste para móviles */
@media (max-width: 768px) {
    .whatsapp-float-btn {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 28px;
    }
}


/* ================= VISTA DE CONTACTO ================= */
.contact-page{
    background: url("assets/cat-vino.png") center/cover no-repeat fixed;
}
.contact-page-overlay{
    background-color: rgba(255, 255, 255, 0.5);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}
.z-index-5{
    z-index: 5;
    position: relative;
}
.contact-page-main {
    position: relative;
    z-index: 10;
    max-width: 1000px; /* Un poco más angosto para que el formulario no se vea estirado */
    margin: 0 auto;
    padding-top: 40px;
    padding-bottom: 80px;
}

/* Layout Principal */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.3fr; /* La columna del formulario es ligeramente más ancha */
    gap: 0; /* Quitamos el gap para unirlos visualmente */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.05);
    border: 1px solid #eee;
    margin-top: 40px;
}

/* --- Panel Izquierdo (Info) --- */
.contact-info-panel {
    background-color: var(--bg-light);
    padding: 50px 40px;
    border-right: 1px solid #eee;
}

.contact-panel-title {
    font-family: 'Playfair Display', serif;
    font-size: 26px;
    color: var(--black-bg);
    margin-bottom: 35px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
}

.info-icon {
    width: 45px;
    height: 45px;
    background-color: var(--white);
    border: 1px solid #ddd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--red-primary);
    font-size: 18px;
    flex-shrink: 0;
}

.info-text h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    color: var(--black-bg);
    margin-bottom: 5px;
}

.info-text p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
}

.info-text .muted {
    font-size: 12px;
    color: #999;
}

.contact-divider {
    border: none;
    border-top: 1px solid #ddd;
    margin: 40px 0;
}

/* Redes en el panel */
.contact-socials h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    color: var(--black-bg);
    margin-bottom: 15px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--white);
    border: 1px solid #ddd;
    color: var(--text-main);
    border-radius: 50%;
    font-size: 16px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-links a:hover {
    background-color: var(--red-primary);
    border-color: var(--red-primary);
    color: var(--white);
    transform: translateY(-3px);
}

/* --- Panel Derecho (Formulario) --- */
.contact-form-panel {
    background-color: var(--white);
    padding: 50px 60px;
}

.contact-form-title {
    font-family: 'Playfair Display', serif;
    font-size: 26px;
    color: var(--black-bg);
    margin-bottom: 35px;
}

/* Inputs del Formulario */
.luxury-form .form-group {
    margin-bottom: 25px;
}

.luxury-form label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-input, .contact-textarea {
    width: 100%;
    padding: 15px 18px;
    background-color: #fafafa;
    border: 1px solid #eaeaea;
    border-radius: 6px;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    color: var(--black-bg);
    outline: none;
    transition: all 0.3s ease;
}

.contact-textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-input::placeholder, .contact-textarea::placeholder {
    color: #bbb;
}

/* Efecto focus elegante */
.contact-input:focus, .contact-textarea:focus {
    background-color: var(--white);
    border-color: var(--black-bg);
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
}

.btn-send {
    padding: 18px;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 10px;
}

/* Mensaje de Éxito */
.success-message {
    text-align: center;
    padding: 40px 20px;
    background-color: #f6fcf8;
    border: 1px solid #d1e7dd;
    border-radius: 8px;
    color: var(--green-italy);
    margin-bottom: 30px;
}

.success-message i {
    font-size: 48px;
    margin-bottom: 15px;
}

.success-message h3 {
    font-size: 20px;
    color: var(--black-bg);
    margin-bottom: 10px;
}

.success-message p {
    font-size: 14px;
    color: var(--text-muted);
}

/* ================= RESPONSIVE CONTACTO ================= */
@media (max-width: 900px) {
    .contact-layout {
        grid-template-columns: 1fr;
    }
    
    .contact-info-panel {
        border-right: none;
        border-bottom: 1px solid #eee;
    }
}

@media (max-width: 600px) {
    .contact-info-panel {
        padding: 40px 25px;
    }
    
    .contact-form-panel {
        padding: 40px 25px;
    }
}

/* ================= VISTA DE NOSOTROS (ABOUT) ================= */

/* --- Hero Banner --- */
.about-hero {
    position: relative;
    height: 60vh;
    min-height: 500px;
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Efecto Parallax sutil */
    display: flex;
    align-items: center;
}

.about-hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 100%);
    z-index: 1;
}

.about-hero-content {
    position: relative;
    z-index: 2;
    color: var(--white);
    max-width: 800px;
}

.breadcrumbs-light a, .breadcrumbs-light .divider, .breadcrumbs-light .current {
    color: rgba(255, 255, 255, 0.7);
}
.breadcrumbs-light a:hover {
    color: var(--white);
}
.breadcrumbs-light .current {
    color: var(--white);
    font-weight: 700;
}

.about-title-main {
    font-family: 'Playfair Display', serif;
    font-size: 56px;
    margin: 20px 0;
    line-height: 1.1;
}

.about-subtitle-main {
    font-size: 18px;
    color: #e0e0e0;
    line-height: 1.6;
    font-weight: 300;
    max-width: 600px;
}

/* --- Historia --- */
.about-story-section {
    padding: 100px 0;
    max-width: 1400px;
    margin: 0 auto;
}

.story-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.section-tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    color: var(--red-primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.story-text-col h2 {
    font-family: 'Playfair Display', serif;
    font-size: 38px;
    color: var(--black-bg);
    margin-bottom: 30px;
    line-height: 1.2;
}

.story-text-col p {
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 20px;
}

.story-img-col {
    position: relative;
}

.story-img-col img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
}

.img-caption-elegant {
    position: absolute;
    bottom: -30px;
    right: 20px;
    background-color: var(--white);
    padding: 15px 25px;
    font-size: 12px;
    font-style: italic;
    color: var(--text-muted);
    border: 1px solid #eee;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

/* --- Pilares / Valores --- */
.about-values-section {
    background-color: var(--bg-light);
    padding: 100px 0;
}

.values-header {
    text-align: center;
    margin-bottom: 60px;
}

.values-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 36px;
    color: var(--black-bg);
    margin-bottom: 15px;
}

.values-header p {
    color: var(--text-muted);
    font-size: 16px;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.value-card {
    background-color: var(--white);
    padding: 50px 40px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid #eee;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.value-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.06);
}

.value-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 25px auto;
    background-color: #fcf6f6;
    color: var(--red-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.value-card h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    color: var(--black-bg);
    margin-bottom: 15px;
}

.value-card p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.7;
}

/* --- Promesa / Cierre --- */
.about-promise-section {
    padding: 120px 0;
    text-align: center;
}

.promise-content {
    max-width: 800px;
    margin: 0 auto;
}

.quote-icon-large {
    font-size: 40px;
    color: #e0e0e0;
    margin-bottom: 25px;
}

.promise-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    color: var(--black-bg);
    line-height: 1.4;
    font-style: italic;
    margin-bottom: 30px;
}

.promise-signature {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 13px;
    color: var(--text-muted);
}

/* ================= RESPONSIVE NOSOTROS ================= */
@media (max-width: 1024px) {
    .story-grid {
        gap: 40px;
    }
}

@media (max-width: 900px) {
    .values-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .story-grid {
        grid-template-columns: 1fr;
    }
    
    .story-img-col {
        order: -1; /* Pone la imagen arriba en móviles */
    }
    
    .img-caption-elegant {
        position: relative;
        bottom: 0;
        right: 0;
        margin-top: -20px;
        border-radius: 0 0 8px 8px;
        text-align: center;
    }
}

@media (max-width: 600px) {
    .about-title-main {
        font-size: 40px;
    }
    
    .about-hero {
        padding: 0 20px;
    }
    
    .promise-content h2 {
        font-size: 24px;
    }
}

/* ================= VISTA TÉRMINOS Y CONDICIONES ================= */
.legal-page-main {
    max-width: 1000px; /* Ancho optimizado para lectura */
    margin: 0 auto;
    padding-top: 40px;
    padding-bottom: 80px;
}

.legal-header {
    margin-bottom: 50px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

.legal-header .page-title-large {
    font-size: 36px;
    margin-bottom: 10px;
}

.legal-last-update {
    font-size: 13px;
    color: var(--text-muted);
    font-family: 'Montserrat', sans-serif;
}

/* Layout con Sidebar Sticky */
.legal-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 60px;
    align-items: start;
}

/* --- Menú Lateral --- */
.legal-sidebar {
    position: sticky;
    top: 200px; /* Distancia desde arriba al hacer scroll */
    background-color: var(--bg-light);
    padding: 30px 20px;
    border-radius: 8px;
    border: 1px solid #eee;
}

.legal-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.legal-nav a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    transition: all 0.3s ease;
    display: block;
    padding-left: 10px;
    border-left: 2px solid transparent;
}

.legal-nav a:hover, .legal-nav a.active {
    color: var(--black-bg);
    border-left-color: var(--red-primary);
}

/* --- Contenido Textual --- */
.legal-content {
    color: var(--text-main);
}

.legal-section {
    margin-bottom: 50px;
    /* Evita que el ancla quede pegada al borde superior de la pantalla */
    scroll-margin-top: 100px; 
}

.legal-section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    color: var(--black-bg);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px dashed #eaeaea;
}

.legal-section p {
    font-size: 15px;
    line-height: 1.8; /* Interlineado amplio para lectura cómoda */
    margin-bottom: 20px;
    color: #444; /* Un gris muy oscuro, menos agresivo que el negro puro */
}

/* Listas dentro de legales */
.legal-list {
    margin-left: 20px;
    margin-bottom: 20px;
}

.legal-list li {
    font-size: 15px;
    line-height: 1.8;
    color: #444;
    margin-bottom: 10px;
    position: relative;
    list-style-type: disc;
}

/* ================= RESPONSIVE LEGALES ================= */
@media (max-width: 900px) {
    .legal-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .legal-sidebar {
        position: relative;
        top: 0;
        padding: 20px;
    }
    
    .legal-nav ul {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .legal-nav a {
        background-color: var(--white);
        padding: 8px 15px;
        border: 1px solid #ddd;
        border-radius: 20px;
        border-left: 1px solid #ddd; /* Sobrescribimos el borde izquierdo */
    }
    
    .legal-nav a.active, .legal-nav a:hover {
        background-color: var(--black-bg);
        color: var(--white);
        border-color: var(--black-bg);
    }
}

/* ================= VISTA LIBRO DE RECLAMACIONES ================= */
.claims-page-main {
    max-width: 900px; /* Ancho optimizado para un formulario legal */
    margin: 0 auto;
    padding-top: 40px;
    padding-bottom: 80px;
}

/* Caja de Info Legal de la Empresa */
.claims-company-info {
    background-color: var(--bg-light);
    border: 1px solid #eaeaea;
    border-radius: 8px;
    padding: 30px 40px;
    margin-bottom: 40px;
}

.info-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 14px;
}

.info-row:last-child {
    margin-bottom: 0;
}

.info-label {
    font-weight: 700;
    color: var(--black-bg);
    min-width: 140px;
}

.info-value {
    color: var(--text-main);
}

/* Formulario y Secciones */
.claims-form-wrapper {
    background-color: var(--white);
    padding: 50px;
    border-radius: 12px;
    border: 1px solid #eaeaea;
    box-shadow: 0 10px 30px rgba(0,0,0,0.02);
}

.claims-section {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid #f0f0f0;
}

.claims-section:last-of-type {
    border-bottom: none;
    margin-bottom: 20px;
    padding-bottom: 0;
}

.claims-section-title {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    color: var(--black-bg);
    margin-bottom: 25px;
}

/* Radios Personalizados Elegantes */
.custom-radio-group {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
    margin-top: 5px;
}

.custom-radio {
    display: flex;
    align-items: center;
    cursor: pointer;
    position: relative;
    font-size: 14px;
    color: var(--text-main);
}

.custom-radio input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.radio-mark {
    height: 20px;
    width: 20px;
    background-color: var(--white);
    border: 1px solid #ccc;
    border-radius: 50%;
    margin-right: 10px;
    position: relative;
    transition: all 0.2s ease;
}

/* Círculo interior al seleccionar */
.radio-mark:after {
    content: "";
    position: absolute;
    display: none;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--red-primary);
}

.custom-radio input:checked ~ .radio-mark {
    border-color: var(--red-primary);
}

.custom-radio input:checked ~ .radio-mark:after {
    display: block;
}

/* Textos de ayuda legales */
.claims-note {
    background-color: #f9f9f9;
    border-left: 3px solid var(--gold-accent);
    padding: 15px 20px;
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 15px;
    line-height: 1.6;
}

/* Footer del Formulario */
.claims-footer {
    text-align: center;
    margin-top: 30px;
}

.claims-declaration {
    font-size: 12px;
    color: #999;
    margin-bottom: 25px;
    line-height: 1.5;
}

/* Textareas reutilizados de checkout-input pero asegurando que se vean bien */
textarea.checkout-input {
    resize: vertical;
    padding-top: 15px;
    line-height: 1.5;
}

/* ================= RESPONSIVE LIBRO DE RECLAMOS ================= */
@media (max-width: 768px) {
    .claims-form-wrapper {
        padding: 30px 20px;
    }
    
    .info-row {
        flex-direction: column;
        gap: 5px;
    }
    
    .info-label {
        min-width: auto;
    }
}