/* Mejoras Mercado Libre para carrito */
.cart-item-ml {
    display: grid;
    grid-template-columns: 80px 1fr auto;
    gap: 1rem;
    align-items: center;
    border-bottom: 1px solid var(--light-border);
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    position: relative;
}
.cart-item-ml:last-child {
    border-bottom: none;
    margin-bottom: 0;
}
.cart-item-ml .cart-item-info {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}
.cart-item-ml .cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.3rem;
}
.ml-btn {
    background: #f7f3ed;
    border: 1px solid #d9d9d9;
    color: #222;
    border-radius: 6px;
    width: 32px;
    height: 32px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s, border 0.2s;
}
.ml-btn:hover {
    background: #e8dcc8;
    border-color: #9b7e5c;
}
.ml-qty {
    font-size: 1.1rem;
    min-width: 24px;
    text-align: center;
    display: inline-block;
}
.ml-remove {
    background: none;
    border: none;
    color: #d32f2f;
    cursor: pointer;
    margin-left: 0.7rem;
    padding: 0.2rem;
    display: flex;
    align-items: center;
    transition: color 0.2s;
}
.ml-remove:hover {
    color: #b71c1c;
}
.ml-remove svg {
    display: block;
}
/* Toast mensajes siempre al frente */
.toast-container {
    position: fixed !important;
    top: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999 !important;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    align-items: center;
    width: auto;
    min-width: 220px;
    max-width: 90vw;
}
.toast {
    background: #222;
    color: #fff;
    padding: 1rem 2.2rem;
    border-radius: 8px;
    font-size: 1rem;
    box-shadow: 0 6px 24px rgba(0,0,0,0.18);
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
    pointer-events: auto;
    position: relative;
    min-width: 180px;
    max-width: 90vw;
    text-align: center;
}
.toast-show {
    opacity: 1;
    transform: translateY(0);
}
.toast-success {
    background: var(--green-strong, #1F7A34);
}
.toast-error {
    background: #d32f2f;
}
.toast-info {
    background: #222;
}
/* Carrito estilo Mercado Libre */
.cart-item-ml {
    display: grid;
    grid-template-columns: 64px 1fr auto;
    gap: 1rem;
    align-items: center;
    border-bottom: 1px solid var(--light-border);
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    position: relative;
}
.cart-item-ml:last-child {
    border-bottom: none;
    margin-bottom: 0;
}
.cart-item-ml .cart-item-info {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}
.cart-item-ml .cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.3rem;
}
.cart-item-ml .remove-btn {
    background: none;
    border: none;
    color: #d32f2f;
    cursor: pointer;
    margin-left: 0.7rem;
    padding: 0.2rem;
    display: flex;
    align-items: center;
    transition: color 0.2s;
}
.cart-item-ml .remove-btn:hover {
    color: #b71c1c;
}
.cart-item-ml .remove-btn svg {
    display: block;
}
/* ============================================
   MB SKIN & HEALTH - ESTILOS COMPLETOS
   Estética minimalista premium estilo Zara
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --noir: #0A0A0A;
    --warm-beige: #E8DCC8;
    --bronze: #9B7E5C;
    --bronze-strong: #6D4F2A;
    --cream: #F7F3ED;
    --white: #FFFFFF;
    --gray: #5A5A5A;
    --light-border: #D9D9D9;
    --green-strong: #1F7A34;
    
    --font-display: 'Cinzel', serif;
    --font-body: 'Lato', sans-serif;
    
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: var(--font-body);
    color: var(--noir);
    background: var(--white);
    line-height: 1.6;
}

/* ANNOUNCEMENT BAR */
.announcement-bar {
    background: var(--noir);
    color: var(--white);
    text-align: center;
    padding: 0.6rem;
    font-size: 0.7rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-weight: 300;
}

/* HEADER */
header {
    position: sticky;
    top: 0;
    background: var(--white);
    z-index: 1000;
    border-bottom: 1px solid var(--light-border);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 3rem;
    max-width: 1600px;
    margin: 0 auto;
}

.logo {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: 3px;
    color: var(--noir);
    text-decoration: none;
}

.nav-menu {
    display: flex;
    gap: 3rem;
    list-style: none;
}

.nav-menu a {
    color: var(--noir);
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: color 0.3s var(--ease);
    position: relative;
    cursor: pointer;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--noir);
    transition: width 0.3s var(--ease);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.nav-icons {
    display: flex;
    gap: 1.5rem;
}

.mobile-bottom-bar,
.mobile-cart-fab {
    display: none;
}

.mobile-bottom-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--white);
    border-top: 1px solid var(--light-border);
    box-shadow: 0 -12px 24px rgba(0,0,0,0.08);
    z-index: 1600;
    padding: 0.6rem 0.8rem calc(0.6rem + env(safe-area-inset-bottom));
    gap: 0.4rem;
    justify-content: space-between;
}

.mobile-bar-item {
    flex: 1;
    background: none;
    border: none;
    padding: 0.7rem 0.4rem;
    font-family: var(--font-body);
    font-size: 0.75rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--gray);
    cursor: pointer;
}

.mobile-bar-item:focus-visible {
    outline: 2px solid var(--bronze);
    outline-offset: 2px;
}

.mobile-cart-fab {
    position: fixed;
    right: 1.1rem;
    bottom: calc(76px + env(safe-area-inset-bottom));
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--noir);
    color: var(--white);
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 24px rgba(0,0,0,0.2);
    z-index: 1650;
    cursor: pointer;
}

.mobile-cart-fab .fab-count {
    position: absolute;
    top: -6px;
    right: -6px;
    background: var(--bronze);
    color: var(--white);
    font-size: 0.65rem;
    padding: 0.15rem 0.4rem;
    border-radius: 999px;
    min-width: 18px;
    text-align: center;
}

.icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--noir);
    position: relative;
    padding: 0.5rem;
    transition: transform 0.2s var(--ease);
}

.icon-btn:hover {
    transform: scale(1.1);
}

.cart-count {
    position: absolute;
    top: -6px;
    right: -6px;
    background: var(--bronze);
    color: var(--white);
    font-size: 0.65rem;
    padding: 0.1rem 0.4rem;
    border-radius: 50%;
    min-width: 18px;
    text-align: center;
}

/* HERO GRANDE (el que te encantó) */
.hero {
    height: 75vh;
    min-height: 600px;
    background: linear-gradient(135deg, var(--warm-beige) 0%, var(--cream) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at 30% 40%, rgba(155,126,92,0.08) 0%, transparent 60%),
                radial-gradient(circle at 70% 60%, rgba(232,220,200,0.15) 0%, transparent 60%);
}

.hero-content {
    text-align: center;
    z-index: 2;
    max-width: 700px;
    padding: 2rem;
}

.hero h1 {
    font-family: var(--font-display);
    font-size: 4rem;
    font-weight: 500;
    letter-spacing: 4px;
    margin-bottom: 1.5rem;
    color: var(--noir);
}

.hero p {
    font-size: 0.95rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gray);
    margin-bottom: 2.5rem;
    font-weight: 300;
}


/* HERO BANNER PARA PROMOS DINÁMICAS (carousel) */
.hero-banner {
    width: 100%;
    overflow: hidden;
    position: relative;
    height: 400px;  /* Ajusta alto según tus promos */
}

.hero-banner .carousel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 0;  /* Sin gap para full-width */
}

.hero-banner .banner-item {
    flex: 0 0 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    scroll-snap-align: start;
    position: relative;
    min-width: 100%;  /* Full width para carousel */
}

.hero-banner .banner-content {
    text-align: center;
    color: var(--white);
    z-index: 2;
    max-width: 600px;
    padding: 2rem;
}

.hero-banner .banner-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.3);  /* Overlay para legibilidad */
}

/* Scrollbar hidden */
.hero-banner .carousel::-webkit-scrollbar {
    display: none;
}

/* Dots o navegación si querés (opcional) */
.hero-banner .carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.hero-banner .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
}

.hero-banner .dot.active {
    background: var(--white);
}

/* CATEGORIES SECTION (nueva, abajo) */
.categories-section {
    padding: 2rem 0;
    border-bottom: 1px solid var(--light-border);
}

.categories-nav {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.categories-nav .category-link {
    color: var(--gray);
    text-decoration: none;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: color 0.3s var(--ease);
}

.categories-nav .category-link:hover,
.categories-nav .category-link.active {
    color: var(--noir);
}

/* ... resto del CSS igual ... */

.cta-btn {
    display: inline-block;
    padding: 1.1rem 3.5rem;
    background: var(--noir);
    color: var(--white);
    text-decoration: none;
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: all 0.4s var(--ease);
    font-weight: 500;
}

.cta-btn:hover {
    background: var(--bronze);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

/* PROMO BANNER (fondo negro premium) */
.promo-banner-section {
    height: 60vh;
    min-height: 500px;
    background: var(--noir);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.promo-banner-section.has-carousel {
    display: block;
    padding: 0;
}

.promo-banner-section.has-carousel .carousel {
    height: 100%;
}

.promo-banner-section::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><rect fill="%239B7E5C" opacity="0.05" width="1200" height="600"/></svg>');
}

.promo-banner-section.has-carousel::before {
    display: none;
}

.promo-banner-section.has-carousel .carousel {
    position: relative;
    z-index: 2;
}

.promo-banner-section .banner-content {
    color: var(--white);
}

.promo-content {
    text-align: center;
    color: var(--white);
    z-index: 2;
    max-width: 600px;
    padding: 2rem;
}

.promo-tag {
    font-size: 0.8rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--bronze);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.promo-content h2 {
    font-family: var(--font-display);
    font-size: 3.8rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    letter-spacing: 4px;
}

.promo-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    opacity: 0.9;
    font-weight: 300;
}

.promo-products {
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: 0.85;
    margin-top: 1rem;
}

.promo-product-list {
    text-transform: none;
    letter-spacing: 0.5px;
}

.promo-link {
    color: var(--white);
    text-decoration: none;
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    border-bottom: 1px solid var(--white);
    padding-bottom: 0.4rem;
    transition: all 0.3s var(--ease);
}

.promo-link:hover {
    border-color: var(--bronze);
    color: var(--bronze);
}

/* CATEGORIES NAV (opcional, si lo movés abajo del hero) */
.categories-section {
    padding: 4rem 3rem 2rem;
    max-width: 1600px;
    margin: 0 auto;
}

.section-title {
    font-family: var(--font-display);
    font-size: 2.4rem;
    text-align: center;
    margin-bottom: 3rem;
    letter-spacing: 4px;
    font-weight: 500;
}

.categories-nav {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--light-border);
}

.category-btn {
    background: none;
    border: none;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--gray);
    cursor: pointer;
    padding: 0.6rem 0;
    position: relative;
    transition: color 0.3s var(--ease);
    font-family: var(--font-body);
}

.category-btn.active,
.category-btn:hover {
    color: var(--noir);
}

.category-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--bronze);
    transition: width 0.3s var(--ease), left 0.3s var(--ease);
}

.category-btn.active::after,
.category-btn:hover::after {
    width: 100%;
    left: 0;
}

/* PRODUCTS GRID */
.products-section {
    padding: 4rem 0 6rem;
}

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

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 3rem;
}

.product-card {
    cursor: pointer;
    transition: transform 0.4s var(--ease);
}

.product-card:hover {
    transform: translateY(-12px);
}

.product-image {
    position: relative;
    width: 100%;
    aspect-ratio: 3/4;
    background: var(--cream);
    margin-bottom: 1.2rem;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease);
}

.product-card:hover .product-image img {
    transform: scale(1.08);
}

.product-badge {
    position: absolute;
    top: 1.2rem;
    left: 1.2rem;
    background: var(--bronze-strong);
    color: var(--white);
    padding: 0.4rem 1rem;
    font-size: 0.7rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-weight: 500;
}

.product-info {
    padding: 0 0.6rem;
}

.product-category {
    font-size: 0.75rem;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 0.6rem;
}

.product-name {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0.8rem;
    color: var(--noir);
    letter-spacing: 0.5px;
}

.product-price {
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--noir);
}

.add-to-cart-btn {
    width: 100%;
    padding: 0.9rem;
    margin-top: 1.2rem;
    background: var(--noir);
    color: var(--white);
    border: none;
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s var(--ease);
}

.add-to-cart-btn:hover {
    background: var(--bronze);
}

/* CART SIDEBAR */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -450px;
    width: 450px;
    height: 100vh;
    background: var(--white);
    box-shadow: -5px 0 30px rgba(0,0,0,0.15);
    z-index: 2000;
    transition: right 0.4s var(--ease);
    display: flex;
    flex-direction: column;
}

.cart-sidebar.active {
    right: 0;
}

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

.cart-header h3 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    letter-spacing: 2px;
}

.close-btn {
    background: none;
    border: none;
    font-size: 2.5rem;
    cursor: pointer;
    color: var(--gray);
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 2rem;
}

.empty-cart {
    text-align: center;
    padding: 4rem 0;
    color: var(--gray);
}

.cart-item {
    display: grid;
    grid-template-columns: 90px 1fr auto;
    gap: 1.2rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--light-border);
}

.cart-item-image {
    width: 90px;
    height: 110px;
    background: var(--cream);
    object-fit: cover;
}

.cart-item-info h4 {
    font-size: 1rem;
    margin-bottom: 0.6rem;
}

.cart-item-price {
    font-size: 0.9rem;
    color: var(--gray);
    margin-bottom: 0.8rem;
}

.quantity-control {
    display: flex;
    gap: 1rem;
    align-items: center;
}

 qty-btn {
    width: 28px;
    height: 28px;
    border: 1px solid var(--light-border);
    background: var(--white);
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s var(--ease);
}

 qty-btn:hover {
    background: var(--noir);
    color: var(--white);
    border-color: var(--noir);
}

.cart-footer {
    padding: 2rem;
    border-top: 1px solid var(--light-border);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

/* MODALS / OVERLAY */
.modal {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 3000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--white);
    padding: 3rem;
    max-width: 520px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    border-radius: 4px;
}

.modal-large {
    max-width: 900px;
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    font-size: 2.2rem;
    cursor: pointer;
    color: var(--gray);
}

.overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1999;
}

.overlay.active {
    display: block;
}

/* USER MENU */
.user-menu {
    position: fixed;
    top: 0;
    left: 0;
    background: var(--white);
    border: 1px solid var(--light-border);
    box-shadow: 0 12px 24px rgba(0,0,0,0.12);
    border-radius: 8px;
    padding: 0.6rem 0;
    min-width: 220px;
    z-index: 1600;
    display: none;
}

.user-menu.active {
    display: block;
}

.user-menu-item {
    padding: 0.8rem 1.2rem;
    font-size: 0.9rem;
    color: var(--noir);
    cursor: pointer;
    transition: background 0.2s var(--ease);
}

.user-menu-item:hover {
    background: var(--cream);
}

.toast-container {
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    z-index: 2000;
    pointer-events: none;
}

.toast {
    position: absolute;
    background: var(--noir);
    color: var(--white);
    padding: 0.75rem 1rem;
    border-radius: 10px;
    font-size: 0.85rem;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
    pointer-events: auto;
}

.toast-show {
    opacity: 1;
    transform: translateY(0);
}

.toast-success {
    background: var(--noir);
}

.toast-error {
    background: #a33232;
}

/* FORMS (auth y checkout) */
.form-group {
    margin-bottom: 1.6rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.6rem;
    font-size: 0.9rem;
    color: var(--gray);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.9rem 1rem;
    border: 1px solid var(--light-border);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: border-color 0.3s var(--ease);
}

.delivery-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.8rem;
}

.delivery-option {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.8rem 1rem;
    border: 1px solid var(--light-border);
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--noir);
}

.pickup-info {
    border: 1px dashed var(--light-border);
    border-radius: 8px;
    padding: 0.9rem 1rem;
    margin-bottom: 1.2rem;
    background: var(--cream);
}

.checkbox-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.9rem;
    color: var(--gray);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--bronze);
}

.profile-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--light-border);
}

.profile-section h3 {
    font-family: var(--font-display);
    letter-spacing: 2px;
    font-size: 1rem;
    margin-bottom: 1.2rem;
}

.profile-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.address-list {
    display: grid;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.address-card {
    border: 1px solid var(--light-border);
    border-radius: 10px;
    padding: 1rem 1.2rem;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.address-actions {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.address-badge {
    display: inline-block;
    margin-top: 0.6rem;
    background: var(--cream);
    color: var(--bronze-strong);
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    font-size: 0.7rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.address-form {
    border-top: 1px solid var(--light-border);
    padding-top: 1.2rem;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.address-search {
    position: relative;
}

.address-results {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: var(--white);
    border: 1px solid var(--light-border);
    border-radius: 8px;
    max-height: 220px;
    overflow: auto;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
    z-index: 20;
}

.address-result-item {
    width: 100%;
    text-align: left;
    border: none;
    border-bottom: 1px solid var(--light-border);
    background: transparent;
    padding: 0.6rem 0.75rem;
    font-size: 0.85rem;
    cursor: pointer;
    font-family: var(--font-body);
}

.address-result-item:last-child {
    border-bottom: none;
}

.address-result-item:hover,
.address-result-item:focus {
    background: var(--cream);
}

/* BOTONES GENERALES */
.btn {
    padding: 1rem 2.5rem;
    border: none;
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s var(--ease);
    font-family: var(--font-body);
    font-weight: 500;
}

.btn-primary {
    background: var(--noir);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--bronze);
}

.btn-secondary {
    background: var(--white);
    color: var(--noir);
    border: 1px solid var(--noir);
}

.btn-secondary:hover {
    background: var(--noir);
    color: var(--white);
}

.btn-block {
    width: 100%;
}

/* FOOTER */
footer {
    background: var(--noir);
    color: var(--white);
    padding: 4rem 3rem 2rem;
    margin-top: 6rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 3rem;
    max-width: 1600px;
    margin: 0 auto;
}

.footer-col h3,
.footer-col h4 {
    font-family: var(--font-display);
    margin-bottom: 1.2rem;
    font-weight: 500;
    letter-spacing: 1px;
}

.footer-col p,
.footer-col a {
    color: rgba(255,255,255,0.75);
    font-size: 0.95rem;
    margin-bottom: 0.8rem;
    display: block;
    text-decoration: none;
}

.footer-col a:hover {
    color: var(--bronze);
}

.footer-bottom {
    text-align: center;
    padding-top: 3rem;
    border-top: 1px solid rgba(255,255,255,0.12);
    font-size: 0.9rem;
    color: rgba(255,255,255,0.6);
}

/* LOADING SPINNER */
.loading {
    text-align: center;
    padding: 6rem 0;
    grid-column: 1 / -1;
}

.spinner {
    border: 4px solid var(--light-border);
    border-top: 4px solid var(--bronze);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 1.5rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    nav {
        padding: 1rem 2rem;
    }
    .nav-menu {
        gap: 2rem;
    }
    .hero {
        height: 70vh;
    }
    .hero h1 {
        font-size: 4rem;
    }
    .promo-banner-section {
        height: 50vh;
    }
    .promo-content h2 {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    body {
        padding-bottom: calc(96px + env(safe-area-inset-bottom));
    }
    nav {
        flex-wrap: wrap;
        padding: 0.9rem 1.2rem;
    }
    .logo {
        font-size: 1.05rem;
        letter-spacing: 2px;
    }
    .nav-menu {
        order: 3;
        width: 100%;
        justify-content: center;
        gap: 1.5rem;
        margin-top: 1rem;
    }
    .nav-icons {
        gap: 0.6rem;
    }
    .icon-btn {
        width: 44px;
        height: 44px;
        border-radius: 12px;
        background: transparent;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    .cart-count {
        top: 4px;
        right: 8px;
    }
    main {
        padding-bottom: calc(96px + env(safe-area-inset-bottom));
    }
    .mobile-bottom-bar,
    .mobile-cart-fab {
        display: flex;
    }
    .mobile-bottom-bar {
        display: flex;
    }
    .user-menu {
        min-width: 200px;
    }
    .announcement-bar {
        padding: 0.45rem 0.6rem;
        font-size: 0.65rem;
        letter-spacing: 1px;
    }
    .hero {
        height: 60vh;
        min-height: 420px;
    }
    .hero h1 {
        font-size: 2.4rem;
        letter-spacing: 2px;
    }
    .hero p {
        font-size: 0.75rem;
        letter-spacing: 1.5px;
    }
    .cta-btn {
        padding: 0.9rem 2.2rem;
        font-size: 0.7rem;
    }
    .promo-banner-section {
        height: auto;
        min-height: 0;
    }
    .promo-banner-section.has-carousel .carousel {
        height: auto;
    }
    .promo-banner-section.has-carousel .banner-item {
        min-height: 320px;
        padding: 2rem 1.5rem 2.6rem;
    }
    .promo-banner-section.has-carousel .banner-media {
        object-fit: contain;
        background: var(--noir);
    }
    .banner-content {
        padding: 1.6rem;
        max-width: 90%;
    }
    .banner-content h2 {
        font-size: 2.4rem;
        letter-spacing: 2px;
    }
    .banner-content p {
        font-size: 0.95rem;
    }
    .carousel-dots {
        bottom: 12px;
    }
    .promo-tag {
        letter-spacing: 2px;
    }
    .categories-section {
        padding: 1.2rem 0 1.6rem;
    }
    .categories-nav {
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.8rem 1.2rem;
        overflow-x: visible;
        padding: 0 1.2rem;
    }
    .categories-nav .category-link {
        white-space: nowrap;
        font-size: 0.75rem;
    }
    .products-section {
        padding: 2.5rem 0 4rem;
    }
    .container {
        padding: 0 1.2rem;
    }
    .products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.2rem;
    }
    .product-card {
        background: var(--white);
        border: 1px solid var(--light-border);
        border-radius: 12px;
        padding: 0.8rem;
        box-shadow: 0 6px 16px rgba(0,0,0,0.06);
    }
    .product-image {
        aspect-ratio: 1 / 1;
        margin-bottom: 0.7rem;
        border-radius: 10px;
    }
    .product-category {
        display: none;
    }
    .product-name {
        font-size: 0.85rem;
        margin-bottom: 0.5rem;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        min-height: 2.6em;
    }
    .product-price,
    .discounted-price {
        font-size: 1rem;
    }
    .original-price {
        font-size: 0.8rem;
    }
    .product-info {
        padding: 0 0.2rem;
    }
    .add-to-cart-btn {
        padding: 0.65rem;
        font-size: 0.65rem;
        letter-spacing: 1.5px;
    }
    .cart-sidebar {
        width: 100%;
        right: -100%;
    }
    .cart-header {
        padding: 1.2rem 1.2rem 1rem;
    }
    .cart-items {
        padding: 1.2rem;
        padding-bottom: 7.5rem;
    }
    .cart-item {
        grid-template-columns: 64px 1fr auto;
        gap: 0.8rem;
    }
    .cart-item-image {
        width: 64px;
        height: 86px;
    }
    .qty-btn {
        width: 36px;
        height: 36px;
    }
    .cart-footer {
        position: sticky;
        bottom: 0;
        background: var(--white);
        box-shadow: 0 -8px 20px rgba(0,0,0,0.08);
    }
    .modal {
        align-items: flex-end;
    }
    .modal-content {
        width: 100%;
        max-width: none;
        border-radius: 16px 16px 0 0;
        padding: 1.5rem 1.2rem;
        max-height: 90dvh;
    }
    .modal-large {
        max-width: none;
    }
    .modal-close {
        top: 0.6rem;
        right: 0.8rem;
    }
    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .btn {
        min-height: 48px;
    }
    footer {
        padding: 3rem 1.5rem 2rem;
        margin-top: 4rem;
    }
    .footer-content {
        gap: 2rem;
    }
}

@media (max-width: 520px) {
    .promo-banner-section.has-carousel .banner-item {
        min-height: 260px;
        padding: 1.4rem 1rem 2.2rem;
    }
    .banner-content h2 {
        font-size: 2rem;
    }
    .banner-item.text-banner .discount {
        font-size: 1.4rem;
    }
    .hero {
        height: 55vh;
        min-height: 360px;
    }
    .hero h1 {
        font-size: 2.1rem;
    }
    .products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.9rem;
    }
    .banner-content {
        padding: 1.2rem;
    }
    .banner-content h2 {
        font-size: 1.9rem;
    }
    .cart-item {
        grid-template-columns: 48px 1fr auto;
    }
    .cart-item-image {
        width: 48px;
        height: 64px;
    }
    .banner-item.text-banner .banner-content {
        padding: 1.2rem 1rem;
        max-width: 100%;
    }
    .banner-item.text-banner h2 {
        font-size: 2rem;
        letter-spacing: 2px;
    }
    .banner-item.text-banner .discount {
        font-size: 1.6rem;
        margin: 1rem 0;
    }
    .banner-item.text-banner .promo-products {
        font-size: 0.8rem;
        letter-spacing: 1px;
    }
}

/* Mejoras para promos flexibles */
.banner-item {
    position: relative;
    flex: 0 0 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    scroll-snap-align: start;
    overflow: hidden;
    background-color: var(--noir);
}

.banner-media {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.banner-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.45);  /* Overlay oscuro solo cuando hay imagen */
    z-index: 1;
}

.banner-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 700px;
    padding: 2rem;
}

.banner-content h2 {
    font-family: var(--font-display);
    font-size: 3.5rem;
    margin-bottom: 1rem;
    letter-spacing: 3px;
}

.banner-content p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    opacity: 0.95;
}

_discount {
    font-size: 2rem;
    font-weight: 700;
    color: var(--bronze);
    margin: 1rem 0;
}

.promo-priority {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--bronze-strong);
    color: white;
    padding: 0.4rem 1rem;
    font-size: 0.8rem;
    border-radius: 4px;
}

/* Carousel base */
.carousel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    height: 100%;
    scroll-behavior: smooth;
}

.carousel::-webkit-scrollbar {
    display: none;
}

.carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 3;
}

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

.dot.active {
    background: var(--white);
    transform: scale(1.3);
}

/* ============================================
   PROMO BANNERS - ESTILOS MEJORADOS
   ============================================ */

.hero-banner {
    width: 100%;
    position: relative;
    height: 500px;
    overflow: hidden;
    background: var(--noir);
}

.banner-item {
    flex: 0 0 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    scroll-snap-align: start;
}

/* Banner con imagen */
.banner-item.image-banner {
    background-size: cover;
    background-position: center;
    background-color: var(--noir);
}

.banner-item.image-banner .banner-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.6));
    z-index: 1;
}

.banner-item.image-banner .banner-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    max-width: 800px;
    padding: 2rem;
}

.banner-item.image-banner h2 {
    font-family: var(--font-display);
    font-size: 4rem;
    margin-bottom: 1rem;
    letter-spacing: 4px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.banner-item.image-banner .promo-description {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    font-weight: 300;
}

_discount-badge {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    background: var(--bronze);
    color: white;
    padding: 1.5rem 2.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

_discount-badge .discount-number {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1;
}

_discount-badge .discount-label {
    font-size: 1.2rem;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.promo-products {
    margin-top: 2rem;
}

.products-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.product-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: center;
}

.product-tag {
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    padding: 0.6rem 1.2rem;
    border-radius: 30px;
    font-size: 0.95rem;
    border: 1px solid rgba(255,255,255,0.3);
}

/* Banner de texto (sin imagen) */
.banner-item.text-banner {
    background: var(--noir);
    color: white;
}

.banner-item.text-banner .banner-content {
    text-align: center;
    max-width: 700px;
    padding: 2rem;
}

.banner-item.text-banner h2 {
    font-family: var(--font-display);
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    letter-spacing: 3px;
}

.banner-item.text-banner .discount {
    font-size: 2.5rem;
    color: var(--bronze);
    font-weight: 700;
    margin: 1.5rem 0;
}

/* ============================================
   PRECIOS CON DESCUENTO EN PRODUCTOS
   ============================================ */

.product-price-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin: 0.8rem 0;
}

.original-price {
    text-decoration: line-through;
    color: var(--gray);
    font-size: 0.95rem;
}

_discounted-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: #28a745;
}

_discount-badge-small {
    background: var(--green-strong);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
}

.promo-badge {
    position: absolute;
    top: 1.2rem;
    right: 1.2rem;
    background: #dc3545;
    color: white;
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 4px;
    z-index: 10;
}

/* ============================================
   CARRITO CON DESCUENTOS
   ============================================ */

.cart-item-price .original-price-small {
    text-decoration: line-through;
    color: var(--gray);
    font-size: 0.85rem;
    margin-right: 0.5rem;
}

.cart-item-savings {
    color: var(--green-strong);
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 0.3rem;
}

.total-savings {
    color: var(--green-strong);
    font-size: 0.9rem;
    margin-top: 0.5rem;
    font-weight: 600;
}

/* ============================================
   CHECKOUT - RESUMEN CON DESCUENTOS
   ============================================ */

.checkout-discount-row {
    display: flex;
    justify-content: space-between;
    color: #28a745;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.summary-row.discount {
    color: #28a745;
}

/* ============================================
   PRODUCT MODAL
   ============================================ */

.product-modal .modal-content {
    max-width: 980px;
}

.product-modal-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 2rem;
    align-items: start;
}

.product-modal-main {
    background: var(--cream);
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid var(--light-border);
    aspect-ratio: 4 / 5;
}

.product-modal-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.product-modal-thumbs {
    margin-top: 0.9rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(64px, 1fr));
    gap: 0.6rem;
}

.product-modal-thumb {
    border: 1px solid var(--light-border);
    border-radius: 10px;
    padding: 0.2rem;
    background: var(--white);
    cursor: pointer;
    transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.product-modal-thumb img {
    width: 100%;
    height: 64px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

.product-modal-thumb.active {
    border-color: var(--bronze);
    box-shadow: 0 0 0 2px rgba(155, 126, 92, 0.25);
}

.product-modal-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.product-modal-category {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.75rem;
    color: var(--gray);
}

.product-modal-name {
    font-family: var(--font-display);
    font-size: 2.2rem;
    letter-spacing: 2px;
}

.product-modal-price {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.product-modal-price .original-price {
    font-size: 1rem;
}

.product-modal-price .discounted-price,
.product-modal-price .product-price {
    font-size: 1.4rem;
    font-weight: 700;
}

.product-modal-description {
    color: var(--gray);
    font-size: 0.95rem;
}

@media (max-width: 900px) {
    .product-modal-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .product-modal-main {
        aspect-ratio: 1 / 1;
    }

    .product-modal-name {
        font-size: 1.8rem;
    }
}

/* ===== FILTRO MARCAS ===== */
.brands-nav {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 0;
    scrollbar-width: none;
    border-top: 1px solid var(--light-border);
    padding: 0;
}
.brands-nav::-webkit-scrollbar { display: none; }

.brand-filter-btn {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.5rem;
    border: none;
    border-right: 1px solid var(--light-border);
    background: transparent;
    font-family: var(--font-body);
    font-size: 0.72rem;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: var(--gray);
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    white-space: nowrap;
}
.brand-filter-btn:hover { background: var(--cream); color: var(--noir); }
.brand-filter-btn.active { background: var(--noir); color: white; }

.brand-filter-logo {
    height: 16px;
    width: auto;
    object-fit: contain;
    filter: grayscale(100%) opacity(0.5);
    transition: filter 0.2s;
}
.brand-filter-btn:hover .brand-filter-logo { filter: grayscale(0%) opacity(1); }
.brand-filter-btn.active .brand-filter-logo { filter: brightness(0) invert(1); }