:root {
    /* Base */
    --bg: #ffffff;
    --bg-soft: #ededed;
    --bg-card: #ffffff;

    /* Texto */
    --text: #121212;
    --text-secondary: #6b5d63;
    --text-muted: #9c8f95;

    /* Marca — magenta Juleriaque */
    --primary: #c51753;
    --primary-dark: #ab0d2e;
    --primary-soft: #fbe9f0;

    /* Acento — berry profundo */
    --gold: #b98a2f;
    --gold-light: #f5ecd9;

    /* Badges de producto */
    --badge-sale: #4a0a1a;
    --badge-sale-text: #ffffff;
    --badge-cuotas-bg: #dce6ed;
    --badge-cuotas-text: #000000;

    /* Semantica */
    --success: #1e8e5a;
    --success-soft: #e7f4ee;
    --danger: #c62828;
    --danger-soft: #fdebeb;

    /* Sistema */
    --blue: #c51753;
    --black: #000000;
    --white: #ffffff;
    --gray: #6b7280;
    --gray-dark: #64748b;
    --red: #c62828;
    --green: #1e8e5a;
    --radius: 12px;
    --radius-sm: 8px;
    --radius-full: 999px;
    --radius-pill: 50px;
    --shadow-sm: 0 1px 3px rgba(18,18,18,.06);
    --shadow: 0 6px 18px rgba(18,18,18,.10);
    --shadow-md: 0 10px 26px rgba(18,18,18,.12);
    --shadow-lg: 0 16px 40px rgba(18,18,18,.16);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text);
    background: var(--bg);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

h1, h2, h3, .logo, .stat-value {
    font-family: 'Bebas Neue', 'Arial Narrow', sans-serif;
    font-weight: 400;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; display: block; }

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 16px;
    width: 100%;
}

/* ---- BUTTONS ---- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 20px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid transparent;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    font-family: inherit;
    white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn-gold {
    background: #fbbf24;
    color: #1e293b;
    border-color: #fbbf24;
}
.btn-gold:hover {
    background: #f59e0b;
    border-color: #f59e0b;
    color: #1e293b;
}
.btn-primary {
    background: var(--blue);
    color: var(--white);
}
.btn-primary:hover { background: #152a7a; }
.btn-outline {
    background: transparent;
    border-color: #e2e8f0;
    color: #64748b;
}
.btn-outline:hover { background: #f1f5f9; }
.btn-danger {
    background: var(--red);
    color: var(--white);
    border-color: var(--red);
}
.btn-danger:hover { background: #dc2626; }
.btn-success {
    background: var(--green);
    color: var(--white);
    border-color: var(--green);
}
.btn-success:hover { background: #16a34a; }
.btn-sm { padding: 6px 14px; font-size: 0.8rem; }
.btn-lg { padding: 14px 28px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-disabled { opacity: 0.5; pointer-events: none; }
.btn-link-gold { background: none; border: none; color: #f59e0b; padding: 0; }
.btn-link-gold:hover { color: #d97706; }

/* ---- FORMS ---- */
.form-group { margin-bottom: 14px; }
.form-group label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: #475569;
}
.form-control {
    width: 100%;
    padding: 10px 12px;
    font-size: 0.85rem;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius);
    background: var(--white);
    font-family: inherit;
    transition: border-color 0.2s;
}
.form-control:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(29,52,154,0.1);
}
.form-control-sm { padding: 6px 10px; font-size: 0.8rem; }
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
.form-section {
    background: var(--white);
    padding: 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 16px;
}
.form-section h4 { margin-bottom: 12px; font-size: 0.95rem; }
.radio-label, .checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    cursor: pointer;
}
.radio-label input[type="radio"],
.checkbox-label input[type="checkbox"] { width: auto; }

/* ---- VARIANT SELECTOR ---- */
.variant-group { margin: 16px 0 8px; }
.variant-label { font-size: 0.85rem; font-weight: 600; color: var(--black); margin-bottom: 8px; display: block; }
.variant-label .variant-selected { font-weight: 400; color: #64748b; }
.variant-options { display: flex; flex-wrap: wrap; gap: 8px; }
.variant-btn {
    padding: 8px 16px;
    border: 2px solid #e2e8f0;
    border-radius: var(--radius);
    background: var(--white);
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.15s;
    font-family: inherit;
}
.variant-btn:hover { border-color: var(--blue); color: var(--blue); }
.variant-btn.selected { border-color: var(--blue); background: #eff6ff; color: var(--blue); font-weight: 600; }
.variant-btn-color {
    position: relative;
    padding-left: 28px;
}
.variant-btn-color::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--swatch, #ccc);
    border: 1px solid #e2e8f0;
}
.variant-btn-color.selected::before { border-color: var(--blue); }

/* ---- HEADER & NAV ---- */
.promo-bar {
    background: var(--black);
    color: var(--gray);
    text-align: center;
    font-size: 0.78rem;
    padding: 8px 16px;
}
.header {
    background: var(--white);
    border-bottom: 1px solid #e2e8f0;
    position: sticky;
    top: 0;
    z-index: 100;
}
.header-inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
    max-width: 1280px;
    margin: 0 auto;
}
.logo {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--black);
    letter-spacing: -0.5px;
    justify-self: start;
}
.logo:hover { text-decoration: none; }

/* ---- SEARCH ---- */
.search-box {
    justify-self: center;
    max-width: 680px;
    width: 100%;
    position: relative;
}
.search-form { display: flex; }
.search-input {
    flex: 1;
    padding: 10px 16px;
    border: 2px solid #e2e8f0;
    border-right: none;
    border-radius: var(--radius) 0 0 var(--radius);
    font-size: 0.9rem;
    outline: none;
}
.search-input:focus { border-color: var(--blue); }
.search-btn {
    padding: 10px 18px;
    background: var(--black);
    color: var(--white);
    border: none;
    border-radius: 0 var(--radius) var(--radius) 0;
    cursor: pointer;
    font-size: 0.9rem;
}
.search-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border: 1px solid #e2e8f0;
    border-top: none;
    border-radius: 0 0 var(--radius) var(--radius);
    max-height: 400px;
    overflow-y: auto;
    display: none;
    z-index: 50;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.search-dropdown.open { display: block; }
.search-dropdown.active { display: block; }
.search-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-bottom: 1px solid #f1f5f9;
    cursor: pointer;
    transition: background 0.15s;
}
.search-item:hover { background: #f8fafc; }
.search-item img { width: 40px; height: 40px; object-fit: cover; border-radius: 4px; }
.search-item-info { flex: 1; }
.search-item-name { font-size: 0.85rem; font-weight: 500; }
.search-item-price { font-size: 0.8rem; color: var(--blue); font-weight: 600; }

/* ---- NAV ICONS ---- */
.nav-icons {
    display: flex;
    align-items: center;
    gap: 16px;
    justify-self: end;
}
.nav-icon {
    color: var(--gray);
    font-size: 0.82rem;
    display: flex;
    align-items: center;
    gap: 4px;
    position: relative;
}
.nav-icon:hover { color: var(--black); text-decoration: none; }
.cart-icon { position: relative; }
.cart-count {
    position: absolute;
    top: -8px;
    right: -10px;
    background: var(--red);
    color: var(--white);
    font-size: 0.65rem;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ---- MAIN NAV ---- */
.main-nav {
    background: var(--white);
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.main-nav .container { display: flex; gap: 0; justify-content: center; }
.nav-link {
    display: block;
    padding: 12px 18px;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--gray-dark);
    transition: all 0.15s;
}
.nav-link:hover { background: #f8fafc; color: var(--black); text-decoration: none; }
.nav-link-destaque { color: var(--red); font-weight: 600; }
.nav-link-wrapper { position: relative; display: block; }
.has-dropdown > .nav-link::after {
    content: ' ▾';
    font-size: 0.7rem;
}
.nav-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    border: 1px solid #e2e8f0;
    border-radius: var(--radius);
    min-width: 200px;
    z-index: 50;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.nav-link-wrapper:hover .nav-dropdown { display: block; }
.nav-dropdown-link {
    display: block;
    padding: 10px 16px;
    font-size: 0.82rem;
    color: #475569;
    border-bottom: 1px solid #f1f5f9;
}
.nav-dropdown-link:hover { background: #f8fafc; text-decoration: none; }
.nav-dropdown-link:last-child { border-bottom: none; }

/* ---- MARQUEE ---- */
.marquee-bar {
    overflow: hidden;
    padding: 6px 0;
    font-size: 0.82rem;
    font-weight: 600;
}
.marquee-track {
    display: flex;
    animation: marquee 20s linear infinite;
    width: max-content;
}
.marquee-item { padding: 0 24px; white-space: nowrap; }
@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ---- HERO ---- */
.hero {
    background: linear-gradient(135deg, #1e293b, #0f172a);
    color: var(--white);
    padding: 64px 0;
    text-align: center;
}
.hero h1 { font-size: 2.5rem; margin-bottom: 12px; }
.hero p { font-size: 1.1rem; color: #94a3b8; max-width: 600px; margin: 0 auto 24px; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---- SECTIONS ---- */
.section { padding: 48px 0; }
.section-header {
    text-align: center;
    margin-bottom: 32px;
}
.section-header h2 { font-size: 1.5rem; margin-bottom: 8px; }
.section-header p { color: var(--gray); font-size: 0.9rem; }

/* ---- BRANDS ---- */
.section-brands { background: var(--white); padding: 32px 0; }
.brands-slider { overflow: hidden; }
.brands-track {
    display: flex;
    gap: 32px;
    align-items: center;
    animation: brandScroll 25s linear infinite;
}
.brand-item { flex-shrink: 0; }
.brand-logo { max-height: 40px; opacity: 0.6; filter: grayscale(1); transition: all 0.3s; }
.brand-logo:hover { opacity: 1; filter: grayscale(0); }
@keyframes brandScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ---- PRODUCT GRID ---- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}
.product-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    transition: box-shadow 0.2s, transform 0.2s;
}
.product-card:hover {
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    transform: translateY(-1px);
}
.product-card-image {
    display: block;
    position: relative;
    background: #f8fafc;
    overflow: hidden;
    aspect-ratio: 1 / 1;
}
.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s;
}
.img-hover { display: none; }
.product-badge {
    position: absolute;
    top: 6px;
    left: 6px;
    background: var(--red);
    color: var(--white);
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 3px;
    line-height: 1.2;
}
.product-card-body { padding: 6px 8px 8px; }
.product-card-title {
    font-size: 0.75rem;
    font-weight: 500;
    margin-bottom: 2px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
}
.product-card-title a { color: #1e293b; }
.product-card-title a:hover { color: var(--blue); }
.product-marca { font-size: 0.6rem; color: #94a3b8; margin-bottom: 1px; text-transform: uppercase; letter-spacing: 0.3px; }
.product-card-price { margin: 3px 0 5px; display: flex; align-items: baseline; gap: 4px; flex-wrap: wrap; }
.current-price { font-size: 0.85rem; font-weight: 700; color: var(--blue); }
.old-price { font-size: 0.65rem; color: #94a3b8; text-decoration: line-through; }
.product-card-actions { display: flex; gap: 4px; }
.product-card-actions .btn { flex: 1; padding: 4px 6px; font-size: 0.65rem; font-weight: 600; border-radius: 4px; }

/* Cuotas en card */
.product-card-cuotas { font-size: 0.74rem; color: var(--primary); font-weight: 600; margin-top: 3px; }
.product-card-cuotas .cuotas-badge { display: inline-block; padding: 1px 7px; background: var(--badge-cuotas-bg); color: var(--badge-cuotas-text); border-radius: var(--radius-sm); margin-left: 4px; }

/* ---- PRODUCT DETAIL ---- */
.breadcrumb {
    font-size: 0.8rem;
    color: #94a3b8;
    padding: 16px 0;
}
.breadcrumb a { color: #94a3b8; }
.breadcrumb a:hover { color: var(--blue); }
.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-bottom: 40px;
}
.product-gallery { position: sticky; top: 100px; align-self: start; }
.gallery-main {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 12px;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}
.gallery-main img { max-width: 100%; max-height: 100%; object-fit: contain; }
.gallery-thumbs { display: flex; gap: 8px; }
.gallery-thumbs .thumb {
    width: 70px;
    height: 70px;
    border: 2px solid #e2e8f0;
    border-radius: 4px;
    cursor: pointer;
    overflow: hidden;
    opacity: 0.6;
    transition: all 0.2s;
}
.gallery-thumbs .thumb:hover { opacity: 0.8; }
.gallery-thumbs .thumb.active { border-color: var(--blue); opacity: 1; }
.gallery-thumbs .thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-info h1 { font-size: 1.5rem; margin-bottom: 8px; }
.product-rating { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.estrellas { color: #fbbf24; font-size: 0.9rem; }
.rating-text { font-size: 0.8rem; color: #94a3b8; }
.product-price { margin: 16px 0; }
.product-price .current-price { font-size: 1.8rem; }
.product-price .old-price { font-size: 1rem; }
.discount-badge {
    display: inline-block;
    background: #dcfce7;
    color: #16a34a;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 3px;
    margin-left: 8px;
}
.product-stock { margin: 12px 0; font-size: 0.85rem; }
.in-stock { color: var(--green); }
.out-stock { color: var(--red); }
.sku { font-size: 0.78rem; color: #94a3b8; margin-bottom: 8px; }
.product-short-desc { font-size: 0.9rem; color: #64748b; margin-bottom: 16px; line-height: 1.5; }
.stock-notify { margin-top: 12px; }
.product-actions { margin: 16px 0; display: flex; gap: 10px; flex-wrap: wrap; }
.quantity-selector { display: flex; align-items: center; gap: 0; }
.qty-input {
    width: 60px;
    text-align: center;
    padding: 10px 8px;
    border: 1px solid #e2e8f0;
    font-size: 0.9rem;
    outline: none;
}
.qty-btn {
    padding: 10px 14px;
    border: 1px solid #e2e8f0;
    background: var(--white);
    cursor: pointer;
    font-size: 1rem;
    user-select: none;
}
.qty-btn:first-child { border-radius: var(--radius) 0 0 var(--radius); }
.qty-btn:last-child { border-radius: 0 var(--radius) var(--radius) 0; }
.qty-btn:hover { background: #f1f5f9; }
.product-description { margin-top: 40px; }
.product-description h2 { font-size: 1.2rem; margin-bottom: 12px; }
.product-video { position: relative; width: 100%; aspect-ratio: 16 / 9; max-width: 640px; margin-top: 40px; }
.product-video h2 { font-size: 1.2rem; margin-bottom: 12px; }
.product-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: var(--radius); background: #000; }
.product-video-portrait { aspect-ratio: 9 / 16; max-width: 420px; }
.product-video-ig { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); color: #fff; border-radius: var(--radius); font-weight: 600; text-decoration: none; }
.description-content {
    font-size: 0.9rem;
    line-height: 1.7;
    color: #475569;
}

/* ---- REVIEWS ---- */
.resumen-resenas {
    background: var(--white);
    padding: 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin: 24px 0;
    display: flex;
    align-items: center;
    gap: 20px;
}
.promedio-estrellas { text-align: center; }
.promedio-numero { font-size: 2rem; font-weight: 700; color: #fbbf24; }
.promedio-total { font-size: 0.8rem; color: #94a3b8; }
.estrellas-grandes { font-size: 1.5rem; color: #fbbf24; }
.form-resena { margin: 20px 0; }
.input-estrellas { display: flex; gap: 4px; font-size: 1.5rem; margin-bottom: 8px; }
.estrella-input { cursor: pointer; color: #e2e8f0; transition: color 0.15s; }
.estrella-input.active { color: #fbbf24; }
.lista-resenas { margin-top: 20px; }
.resena-card {
    background: var(--white);
    padding: 16px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 12px;
}
.resena-header { display: flex; justify-content: space-between; margin-bottom: 8px; }
.resena-usuario { font-weight: 600; font-size: 0.85rem; }
.resena-fecha { font-size: 0.78rem; color: #94a3b8; }

/* ---- CART ---- */
.empty-state { text-align: center; padding: 64px 16px; }
.empty-state h2 { margin-bottom: 12px; }
.empty-state p { color: var(--gray); margin-bottom: 20px; }
.cart-layout { display: grid; grid-template-columns: 1fr 360px; gap: 24px; align-items: start; }
.cart-items { display: flex; flex-direction: column; gap: 12px; }
.cart-item {
    display: flex;
    gap: 16px;
    background: var(--white);
    padding: 16px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    align-items: center;
}
.cart-item-img { width: 80px; height: 80px; object-fit: cover; border-radius: 4px; flex-shrink: 0; }
.cart-item-info { flex: 1; }
.cart-item-info h4 { font-size: 0.9rem; margin-bottom: 4px; }
.cart-item-price { font-size: 0.85rem; color: var(--blue); font-weight: 600; }
.cart-item-qty { display: flex; align-items: center; gap: 0; }
.cart-item-qty .qty-btn { padding: 6px 10px; }
.cart-item-qty .qty-input { width: 40px; padding: 6px 4px; }
.cart-item-subtotal { font-size: 0.9rem; font-weight: 700; min-width: 80px; text-align: right; }
.cart-item-remove { color: var(--red); font-size: 0.78rem; cursor: pointer; background: none; border: none; }
.cart-summary {
    background: var(--white);
    padding: 24px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    position: sticky;
    top: 100px;
}
.cart-summary h3 { margin-bottom: 16px; font-size: 1.1rem; }
.summary-line { display: flex; justify-content: space-between; font-size: 0.85rem; padding: 8px 0; border-bottom: 1px solid #f1f5f9; }
.summary-line.total { font-weight: 700; font-size: 1.1rem; border-bottom: none; padding-top: 12px; }
.summary-line.discount { color: var(--green); }
.envio-free-msg { font-size: 0.78rem; color: var(--green); margin-top: 4px; }

/* ---- CHECKOUT ---- */
.checkout-layout { display: grid; grid-template-columns: 1fr 380px; gap: 24px; align-items: start; }
.checkout-form { background: var(--white); padding: 24px; border-radius: var(--radius); box-shadow: var(--shadow); }
.checkout-summary { background: var(--white); padding: 24px; border-radius: var(--radius); box-shadow: var(--shadow); position: sticky; top: 100px; }
.checkout-summary h3 { margin-bottom: 16px; }
.checkout-item { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid #f1f5f9; }
.checkout-item img { width: 50px; height: 50px; object-fit: cover; border-radius: 4px; }
.checkout-item-info { flex: 1; }
.checkout-item-info h4 { font-size: 0.82rem; }
.coupon-form { display: flex; gap: 8px; margin: 12px 0; }

/* ---- AUTH / PROFILE ---- */
.auth-form {
    max-width: 400px;
    margin: 48px auto;
    background: var(--white);
    padding: 32px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.auth-form h2 { text-align: center; margin-bottom: 20px; }
.profile-page { max-width: 720px; margin: 0 auto; padding: 32px 16px; }
.profile-section { background: var(--white); padding: 24px; border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 20px; }

/* ---- ORDERS ---- */
.orders-list { display: flex; flex-direction: column; gap: 12px; }
.order-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}
.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}
.order-number { font-weight: 600; font-size: 0.9rem; }
.order-date { font-size: 0.78rem; color: #94a3b8; }
.order-body { padding: 14px 18px; display: flex; justify-content: space-between; align-items: center; }
.order-total { font-weight: 700; font-size: 1rem; }
.order-method { font-size: 0.8rem; color: #64748b; }
.order-actions { display: flex; gap: 8px; }

/* ---- BADGES ---- */
.badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.badge-pendiente { background: #fef3c7; color: #b45309; }
.badge-pagado { background: #dbeafe; color: #1d4ed8; }
.badge-preparando { background: #e0e7ff; color: #4338ca; }
.badge-enviado { background: #dcfce7; color: #16a34a; }
.badge-entregado { background: #dcfce7; color: #16a34a; }
.badge-cancelado { background: #fee2e2; color: #dc2626; }
.badge-active { background: #dcfce7; color: #16a34a; }
.badge-inactive { background: #f1f5f9; color: #64748b; }
.badge-success { background: #dcfce7; color: #16a34a; }
.badge-warning { background: #fef3c7; color: #b45309; }
.badge-danger { background: #fee2e2; color: #dc2626; }

/* ---- FOOTER ---- */
.footer {
    background: var(--black);
    color: var(--white);
    padding: 40px 0 20px;
    margin-top: auto;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 32px;
    margin-bottom: 24px;
}
.footer-col h4 {
    color: var(--white);
    margin-bottom: 12px;
    font-size: 0.95rem;
}
.footer-col a {
    display: block;
    color: #94a3b8;
    margin-bottom: 6px;
    font-size: 0.85rem;
}
.footer-col a:hover { color: var(--white); }
.footer-col p { font-size: 0.85rem; color: #94a3b8; margin-bottom: 4px; }
.footer-col-content { font-size: 0.85rem; color: #94a3b8; line-height: 1.5; white-space: pre-line; }
.footer-col-content a { display: block; color: #94a3b8; margin-bottom: 6px; font-size: 0.85rem; }
.footer-col-content a:hover { color: var(--white); }
.footer-col-content div { margin-bottom: 6px; }
.footer-separator { border: none; border-top: 1px solid #333; margin: 0 16px; max-width: 1280px; }
.footer-bottom { text-align: center; padding: 20px 16px 0; }
.footer-imagen { max-height: 60px; width: auto; opacity: 0.7; transition: opacity 0.2s; }
.footer-imagen:hover { opacity: 1; }
.footer-social { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.footer-social a { display: inline-flex; color: #94a3b8; transition: color 0.2s; margin-bottom: 0; }
.footer-social a:hover { color: var(--white); }
.footer-social svg { width: 22px; height: 22px; }
.footer-social a[href*="facebook"]:hover { color: #1877F2; }
.footer-social a[href*="instagram"]:hover { color: #E4405F; }
.footer-social a[href*="twitter"]:hover,
.footer-social a[href*="x.com"]:hover { color: #ffffff; }
.footer-social a[href*="youtube"]:hover { color: #FF0000; }
.footer-social a[href*="tiktok"]:hover { color: #ffffff; }

/* ---- PAGINATION ---- */
.pagination { display: flex; justify-content: center; gap: 4px; margin-top: 24px; }
.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius);
    font-size: 0.85rem;
    color: #64748b;
    transition: all 0.15s;
}
.page-link:hover { background: #f1f5f9; text-decoration: none; }
.page-link.active { background: var(--blue); color: var(--white); border-color: var(--blue); }

/* ---- PRODUCTS SIDEBAR ---- */
.products-layout { display: grid; grid-template-columns: 240px 1fr; gap: 24px; align-items: start; }
.products-sidebar {
    background: var(--white);
    padding: 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    position: sticky;
    top: 100px;
}
.products-sidebar h3 { font-size: 0.9rem; margin-bottom: 12px; }
.category-list { list-style: none; }
.category-list li { margin-bottom: 6px; }
.category-list a { font-size: 0.85rem; color: #64748b; display: block; padding: 4px 0; }
.category-list a:hover { color: var(--blue); }
.category-list a.active { color: var(--blue); font-weight: 600; }
.result-count { font-size: 0.85rem; color: var(--gray); margin-bottom: 16px; }

/* ---- MISC ---- */
.page-content { max-width: 720px; margin: 0 auto; padding: 32px 16px; line-height: 1.7; }
.page-content h1 { margin-bottom: 16px; }
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 14px 20px;
    border-radius: var(--radius);
    font-size: 0.85rem;
    font-weight: 500;
    z-index: 9999;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    animation: toastIn 0.3s ease;
    max-width: 360px;
}
.toast-success { background: #dcfce7; color: #16a34a; border: 1px solid #bbf7d0; }
.toast-error { background: #fee2e2; color: #dc2626; border: 1px solid #fecaca; }
@keyframes toastIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #1e293b;
    color: #fff;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    z-index: 9999;
    font-size: 0.85rem;
    flex-wrap: wrap;
}
.cookie-banner p { margin: 0; }
.cookie-banner a { color: #fbbf24; text-decoration: underline; }

.text-muted { color: #94a3b8; }
.text-danger { color: var(--red); }
.d-block { display: block; }
.mt-2 { margin-top: 8px; }

/* ---- ADMIN ---- */
.admin-layout {
    display: flex;
    min-height: calc(100vh - 60px);
}
.admin-sidebar {
    width: 220px;
    background: var(--black);
    color: var(--white);
    flex-shrink: 0;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}
.sidebar-brand { padding: 20px 16px; border-bottom: 1px solid #333; }
.sidebar-brand a { color: var(--white); font-size: 1.2rem; font-weight: 800; letter-spacing: 1px; }
.sidebar-link {
    display: block;
    padding: 12px 16px;
    color: #94a3b8;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s;
    text-decoration: none;
}
.sidebar-link:hover { background: #333; color: var(--white); text-decoration: none; }
.sidebar-logout { color: #ef4444 !important; }
.admin-main {
    flex: 1;
    padding: 24px;
    min-width: 0;
}
.admin-main h2 { margin-bottom: 20px; }
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}
.stat-card {
    background: var(--white);
    padding: 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
}
.stat-value { display: block; font-size: 1.5rem; font-weight: 700; color: #1d349a; }
.stat-label { display: block; font-size: 0.78rem; color: var(--gray-dark); margin-top: 4px; }
.dashboard-grid { display: grid; gap: 20px; }
.dashboard-card { background: var(--white); padding: 20px; border-radius: var(--radius); box-shadow: var(--shadow); }
.admin-form { max-width: 800px; }
.list-actions { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }

/* ---- ADMIN TABLE ---- */
.table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}
.table th, .table td { padding: 12px 14px; text-align: left; font-size: 0.82rem; border-bottom: 1px solid #f1f5f9; }
.table th { background: #f8fafc; font-weight: 600; color: #64748b; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.5px; }
.table td { vertical-align: middle; }
.table tr:hover td { background: #f8fafc; }
.table .actions { display: flex; gap: 6px; }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th, .admin-table td { padding: 10px 12px; text-align: left; font-size: 0.82rem; border-bottom: 1px solid #e2e8f0; }
.admin-table th { background: #f8fafc; font-weight: 600; color: #64748b; }

/* ---- IMG PREVIEW ---- */
.img-preview-wrap { position: relative; border: 1px solid #e2e8f0; border-radius: var(--radius); padding: 4px; text-align: center; background: var(--white); display: inline-block; }
.actions { display: flex; gap: 6px; }

/* ---- FOOTER BUILDER (admin) ---- */
.footer-builder { margin-bottom: 8px; }
.footer-builder-row {
    display: flex;
    gap: 8px;
    align-items: center;
    padding: 8px 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    margin-bottom: 6px;
    border-radius: 6px;
    cursor: grab;
    transition: background 0.2s, border-color 0.2s;
    user-select: none;
}
.footer-builder-row:hover { background: #f1f5f9; }
.footer-builder-row.dragging { opacity: 0.4; background: #e2e8f0; }
.footer-builder-row.drag-over { border-color: var(--blue); background: #eff6ff; }
.drag-handle { cursor: grab; color: #94a3b8; font-size: 1.1rem; line-height: 1; padding: 0 4px; user-select: none; }
.btn-add-row { display: inline-flex; align-items: center; gap: 4px; margin-top: 4px; font-size: 0.85rem; }

/* ---- SLIDER BUILDER (admin) ---- */
.slide-row {
    background: var(--white);
    border: 1px solid #e2e8f0;
    border-radius: var(--radius);
    margin-bottom: 12px;
    padding: 16px;
    cursor: grab;
}
.slide-row.dragging { opacity: 0.4; }
.slide-row.drag-over { border-color: var(--blue); }
.slide-row-inner { display: flex; gap: 16px; align-items: start; }
.drag-handle { cursor: grab; color: #94a3b8; font-size: 1.1rem; line-height: 1; padding: 0 4px; user-select: none; }
.slide-preview { width: 120px; height: 68px; border-radius: 4px; overflow: hidden; background: #f1f5f9; flex-shrink: 0; }
.slide-preview img { width: 100%; height: 100%; object-fit: cover; }
.slide-no-img { width: 120px; height: 68px; display: flex; align-items: center; justify-content: center; color: #94a3b8; font-size: 0.75rem; }
.slide-file-input { font-size: 0.78rem; }
.slide-fields { flex: 1; }
.btn-add-row { margin-top: 8px; }

/* ---- MAINTENANCE ---- */
.maintenance-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: #fff;
    text-align: center;
    padding: 24px;
    margin: 0;
}
.maintenance-content { max-width: 480px; }
.maintenance-icon { width: 80px; height: 80px; color: #94a3b8; animation: spin 3s linear infinite; }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.maintenance-content h1 { font-size: 1.5rem; margin: 20px 0 10px; color: #1e293b; }
.maintenance-content p { color: #64748b; font-size: 1rem; line-height: 1.6; }

/* ---- ESTRELLAS ADMIN ---- */
.estrellas-admin { color: #fbbf24; font-size: 0.9rem; }

/* ---- CONFIG TABS ---- */
.config-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 24px;
    overflow-x: auto;
    flex-wrap: nowrap;
    background: #f1f5f9;
    border-radius: 8px;
    padding: 4px;
}
.config-tab {
    padding: 10px 18px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s;
    white-space: nowrap;
    background: none;
    border: none;
    user-select: none;
    font-family: inherit;
}
.config-tab:hover { color: #1e293b; background: #e2e8f0; }
.config-tab.active { color: #1d349a; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,0.1); }
.tab-content { display: none; }
.tab-content.active { display: block; }

/* ---- FOOTER COLUMNS INLINE DOTS ---- */
.footer-cols-inline {
    display: inline-flex;
    gap: 5px;
    align-items: center;
}
.col-dot {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 700;
    background: #f1f5f9;
    color: #94a3b8;
    border: 2px solid #e2e8f0;
    user-select: none;
    line-height: 1;
}
.col-dot.active {
    background: #3b82f6;
    color: #fff;
    border-color: #3b82f6;
}
.col-dot[data-col="2"].active { background: #10b981; border-color: #10b981; }
.col-dot[data-col="3"].active { background: #f59e0b; border-color: #f59e0b; }
.col-dot[data-col="4"].active { background: #ef4444; border-color: #ef4444; }
.col-dot.col-dot-auto {
    border-style: dashed;
    border-color: #94a3b8;
    background: transparent;
    opacity: 0.45;
    font-size: 0.6rem;
}
.form-section-col {
    border-left: 3px solid #e2e8f0;
    padding-left: 14px;
    margin-bottom: 20px;
    transition: border-color 0.3s;
}
.form-section-col[data-col="1"] { border-left-color: #3b82f6; }
.form-section-col[data-col="2"] { border-left-color: #10b981; }
.form-section-col[data-col="3"] { border-left-color: #f59e0b; }
.form-section-col[data-col="4"] { border-left-color: #ef4444; }

/* ---- RESPONSIVE ---- */
@media (max-width: 1200px) {
    .product-grid { grid-template-columns: repeat(4, 1fr); gap: 10px; }
}
@media (max-width: 992px) {
    .product-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
}
@media (max-width: 768px) {
    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .product-detail, .cart-layout, .checkout-layout, .products-layout { grid-template-columns: 1fr; }
    .admin-sidebar { width: 60px; }
    .sidebar-link { font-size: 0; padding: 12px 8px; text-align: center; }
    .sidebar-link::first-letter { font-size: 1.1rem; }
    .sidebar-brand a { font-size: 0; }
    .sidebar-brand a::first-letter { font-size: 1.4rem; }
    .hero h1 { font-size: 1.75rem; }
    .hero { padding: 48px 0; }
    .header-inner { display: flex; flex-wrap: wrap; gap: 12px; }
    .search-box { order: 3; max-width: 100%; flex-basis: 100%; }
    .search-box { order: 3; max-width: 100%; flex-basis: 100%; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-col-social { grid-column: 1 / -1; }
    .form-row { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 6px; }
    .product-card-body { padding: 4px 5px 6px; }
    .product-card-title { font-size: 0.68rem; }
    .current-price { font-size: 0.78rem; }
    .product-card-actions .btn { font-size: 0.58rem; padding: 3px 4px; }
    .hero-actions { flex-direction: column; }
}

/* ---- HAMBURGER MENU ---- */
.hamburger-btn {
    display: none;
    position: relative;
    width: 28px;
    height: 22px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}
.hamburger-line {
    display: block;
    width: 100%;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    transition: all 0.3s;
    transform-origin: center;
}
.hamburger-btn.active .hamburger-line:nth-child(1) { transform: rotate(45deg) translate(6px, 6px); }
.hamburger-btn.active .hamburger-line:nth-child(2) { opacity: 0; }
.hamburger-btn.active .hamburger-line:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); }

.nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 199;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}
.nav-overlay.show { display: block; opacity: 1; pointer-events: all; }

@media (max-width: 768px) {
    .hamburger-btn { display: flex; }
    .main-nav {
        position: fixed;
        top: 0;
        left: -280px;
        height: 100%;
        width: 280px;
        background: #fff;
        border-right: 1px solid #e2e8f0;
        z-index: 200;
        transition: left 0.3s ease;
        overflow-y: auto;
        display: block !important;
        padding-top: 60px;
        box-shadow: none;
    }
    .main-nav.open {
        left: 0;
        box-shadow: 4px 0 12px rgba(0,0,0,0.1);
    }
    .main-nav .container {
        flex-direction: column;
        gap: 0;
        padding: 0;
        max-width: 100%;
        align-items: stretch;
        justify-content: flex-start !important;
    }
    .main-nav .nav-link {
        padding: 14px 20px;
        font-size: 0.9rem;
        border-bottom: 1px solid #f1f5f9;
        display: block;
    }
    .nav-link:hover { background: #f8fafc; }
    .nav-link-destaque { color: var(--red); }
    .nav-link-wrapper { display: block; }
    .has-dropdown > .nav-link::after { display: none; }
    .has-dropdown > .nav-link { position: relative; }
    .has-dropdown > .nav-link::after {
        content: ' ▾';
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
    }
    .nav-dropdown {
        position: static;
        display: none;
        box-shadow: none;
        border: none;
        border-radius: 0;
        min-width: auto;
        background: #f9fafb;
    }
    .nav-link-wrapper.open .nav-dropdown { display: block; }
    .nav-dropdown .nav-dropdown-link { padding-left: 40px; }
}

/* ---- MINI CART ---- */
.mini-cart {
    position: fixed;
    top: 0;
    right: -400px;
    width: 385px;
    max-width: 90vw;
    height: 100%;
    background: #fff;
    z-index: 300;
    box-shadow: -4px 0 12px rgba(0,0,0,0.1);
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.mini-cart.open { right: 0; }
.mini-cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #e2e8f0;
    flex-shrink: 0;
}
.mini-cart-header h3 { font-size: 1.1rem; }
.mini-cart-close { background: none; border: none; font-size: 1.5rem; cursor: pointer; padding: 0 4px; color: #64748b; }
.mini-cart-close:hover { color: #1e293b; }
.mini-cart-body { flex: 1; overflow-y: auto; padding: 12px 16px; }
.mini-cart-empty { text-align: center; padding: 48px 0; color: #94a3b8; }
.mini-cart-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
    align-items: flex-start;
}
.mini-cart-item img { width: 56px; height: 56px; object-fit: cover; border-radius: 4px; flex-shrink: 0; }
.mini-cart-item-info { flex: 1; min-width: 0; }
.mini-cart-item-name { font-size: 0.82rem; font-weight: 500; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 4px; color: #1e293b; }
.mini-cart-item-meta { font-size: 0.7rem; color: #94a3b8; }
.mini-cart-item-qty { display: flex; align-items: center; gap: 6px; margin-top: 6px; }
.mini-cart-item-qty button { width: 24px; height: 24px; border-radius: 50%; border: 1px solid #e2e8f0; background: #fff; cursor: pointer; font-size: 1rem; line-height: 1; display: flex; align-items: center; justify-content: center; }
.mini-cart-item-qty button:hover { background: #f1f5f9; }
.mini-cart-item-qty span { font-size: 0.85rem; min-width: 20px; text-align: center; }
.mini-cart-item-price { font-weight: 700; color: var(--blue); text-align: right; white-space: nowrap; }
.mini-cart-item-remove { color: var(--red); cursor: pointer; background: none; border: none; font-size: 0.78rem; margin-left: 8px; }
.mini-cart-footer { flex-shrink: 0; border-top: 1px solid #e2e8f0; padding: 16px 20px; }
.mini-cart-total { display: flex; justify-content: space-between; font-size: 1rem; font-weight: 700; margin-bottom: 12px; }
.mini-cart-footer .btn { width: 100%; margin-bottom: 8px; }
.mini-cart-freebar { height: 4px; background: #e2e8f0; border-radius: 2px; margin-bottom: 8px; overflow: hidden; }
.mini-cart-freebar-fill { height: 100%; background: var(--green); transition: width 0.3s; }
.mini-cart-freebar-text { font-size: 0.75rem; color: var(--green); margin-bottom: 8px; }
.mini-cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0, 0, 0.5);
    z-index: 299;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}
.mini-cart-overlay.show { opacity: 1; pointer-events: all; }

/* ============================================================
   THEME ESTETIC BEAUTY — overrides (design system alta conversion)
   ============================================================ */

/* Tipografia body */
body { font-family: 'Montserrat', system-ui, sans-serif; }

/* Botones: pill (radius 50px) + altura tactil minima */
.btn { min-height: 46px; padding: 12px 22px; font-weight: 600; border-radius: var(--radius-pill); }
.btn-sm { min-height: 36px; padding: 8px 16px; border-radius: var(--radius-pill); }
.btn-lg { min-height: 52px; padding: 14px 28px; font-size: 0.95rem; border-radius: var(--radius-pill); }
.btn-primary { background: var(--primary); border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.btn-gold { background: var(--gold); border-color: var(--gold); color: #fff; }
.btn-gold:hover { background: #a57a28; border-color: #a57a28; color: #fff; }
.btn:active { transform: scale(0.97); }

/* Badge de oferta: granate (estilo Juleriaque) */
.product-badge { background: var(--badge-sale); color: var(--badge-sale-text); font-weight: 700; letter-spacing: 0.02em; }

/* Badge de cuotas en card */
.cuotas-badge { display: inline-block; margin-top: 4px; padding: 2px 8px; background: var(--badge-cuotas-bg); color: var(--badge-cuotas-text); border-radius: var(--radius-sm); font-size: 0.72rem; font-weight: 600; }

/* Precio: color texto, nunca azul */
.current-price { color: var(--text) !important; font-weight: 700; }
.old-price { color: var(--text-muted); }

/* Grid de productos: max 4 columnas */
.product-grid { grid-template-columns: repeat(4, 1fr) !important; }
@media (max-width: 992px) { .product-grid { grid-template-columns: repeat(3, 1fr) !important; } }
@media (max-width: 768px) { .product-grid { grid-template-columns: repeat(2, 1fr) !important; } }
@media (max-width: 480px) { .product-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 10px; } }

/* Cards: sombra elevada + hover premium (zoom + gradiente + CTA reveal) */
.product-card { border-radius: var(--radius); overflow: hidden; background: var(--bg-card); border: 1px solid #f0ecec; transition: transform 0.25s ease, box-shadow 0.25s ease; }
.product-card:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(197, 23, 83, 0.18), var(--shadow-lg); }
.product-card-image { border-radius: var(--radius-sm) var(--radius-sm) 0 0; overflow: hidden; }
.product-card-image img { transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94); will-change: transform; }
.product-card-image::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(to top, rgba(18, 18, 18, 0.35) 0%, rgba(18, 18, 18, 0) 40%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}
.card-hover-cta {
    position: absolute;
    left: 50%;
    bottom: 14px;
    z-index: 2;
    transform: translate(-50%, 10px);
    background: rgba(255, 255, 255, 0.96);
    color: var(--text);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    padding: 9px 18px;
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow-sm);
    opacity: 0;
    transition: opacity 0.28s ease, transform 0.28s ease, background 0.2s ease, color 0.2s ease;
    pointer-events: none;
    white-space: nowrap;
}
@media (hover: hover) and (pointer: fine) {
    .product-card:hover .product-card-image img { transform: scale(1.04); filter: brightness(1.08); }
    .product-card:hover .product-card-image::after { opacity: 1; }
    .product-card:hover .card-hover-cta { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
    .card-hover-cta:hover { background: var(--primary); color: #ffffff; text-decoration: none; }
}
.product-card-image:focus-visible img { transform: scale(1.04); filter: brightness(1.08); }
.product-card-image:focus-visible::after { opacity: 1; }
.product-card-image:focus-visible .card-hover-cta { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
@media (prefers-reduced-motion: reduce) {
    .product-card-image img,
    .product-card-image::after,
    .card-hover-cta { transition: none; }
}
.product-card-body { padding: 12px; }

/* Secciones con fondo gris Juleriaque */
.section-brands { background: var(--bg-soft) !important; }
.section { background: var(--bg); }

/* Promo bar: unica, negra estilo Juleriaque */
.promo-bar { background: var(--black); color: #fff; text-align: center; font-size: 0.85rem; font-weight: 500; padding: 9px 12px; }
.marquee-bar { display: none !important; }

/* Logo */
.logo { font-family: 'Bebas Neue', 'Arial Narrow', sans-serif; font-size: 1.6rem; letter-spacing: 0.06em; text-transform: uppercase; }

/* Categoria pills (home) */
.cat-pills { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 24px 0; }
.cat-pill { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; background: var(--bg-soft); border: 1px solid #eee1e6; border-radius: var(--radius-full); font-size: 0.85rem; font-weight: 600; color: var(--text); text-decoration: none; transition: all 0.2s; }
.cat-pill:hover { background: var(--primary); color: #fff; border-color: var(--primary); text-decoration: none; }

/* Sellos de confianza */
.trust-bar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; padding: 22px 0; border-bottom: 1px solid #f0e6ea; }
.trust-item { display: flex; align-items: center; gap: 10px; font-size: 0.82rem; color: var(--text-secondary); }
.trust-item svg { flex-shrink: 0; color: var(--primary); }
@media (max-width: 768px) { .trust-bar { grid-template-columns: repeat(2, 1fr); } }

/* Bloque mayorista */
.mayorista-block { background: var(--bg-soft); border: 1px solid var(--gold-light); border-radius: var(--radius); padding: 28px; margin: 32px 0; }
.mayorista-block h2 { color: var(--text); margin-bottom: 10px; }
.mayorista-block ul { list-style: none; padding: 0; margin: 0 0 16px; }
.mayorista-block li { padding: 4px 0; color: var(--text-secondary); }
.mayorista-block li::before { content: "✓ "; color: var(--success); font-weight: 700; }

/* PDP: mini sellos sobre CTA */
.pdp-sellos { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 12px 0; font-size: 0.78rem; color: var(--text-secondary); }
.pdp-sellos span { display: inline-flex; align-items: center; gap: 5px; }

/* Focus visible accesible */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }

/* Sticky add-to-cart mobile (PDP) */
.sticky-addcart { display: none; }
@media (max-width: 768px) {
    .sticky-addcart.show { display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 250; background: #fff; border-top: 1px solid #f0e6ea; padding: 10px 14px; align-items: center; gap: 12px; box-shadow: 0 -4px 16px rgba(43,36,38,.08); }
    .sticky-addcart .sac-price { font-weight: 700; color: var(--text); }
    .sticky-addcart .btn { flex: 1; }
    .sticky-addcart.show + .main-content, body:has(.sticky-addcart.show) .main-content { padding-bottom: 74px; }
}

/* Progress bar envio gratis (carrito) */
.freebar-track { height: 8px; background: #f0e6ea; border-radius: var(--radius-full); overflow: hidden; }
.freebar-fill { height: 100%; background: var(--primary); border-radius: var(--radius-full); transition: width 0.3s; }

/* Footer */
.footer { background: #171213; color: #d8cdd2; }
.footer h4 { color: #fff; font-family: 'Marcellus', serif; }
.footer a { color: #d8cdd2; }
.footer a:hover { color: #fff; }

/* Thumbs y galeria PDP */
.gallery-thumbs .thumb { border: 2px solid transparent; border-radius: var(--radius-sm); }
.gallery-thumbs .thumb.active { border-color: var(--primary); }

/* Accordion envio abierto en desktop */
@media (min-width: 769px) {
    .shipping-accordion-body { max-height: none !important; }
    .shipping-accordion-body.open { max-height: none !important; }
}

/* ============================================================
   MOBILE PERFECTION � 90% de visitas en celular
   ============================================================ */
html { -webkit-text-size-adjust: 100%; }

@media (max-width: 768px) {
    /* Productos ANTES que filtros */
    .products-layout { display: flex; flex-direction: column; }
    .products-sidebar { order: 2; margin-top: 20px; }
    .products-main { order: 1; }

    /* Header: area tactil 44px */
    .nav-icon { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
    .logo { font-size: 1.25rem; }
    .promo-bar { font-size: 0.74rem; line-height: 1.35; padding: 8px 10px; }

    /* Hero */
    .hero { padding: 40px 0; }
    .hero h1 { font-size: 1.7rem; }
    .hero p { font-size: 0.95rem; }

    /* Trust bar */
    .trust-bar { gap: 10px; padding: 18px 0; }
    .trust-item { font-size: 0.72rem; gap: 7px; }
    .trust-item svg { width: 18px; height: 18px; }

    /* Pills */
    .cat-pill { padding: 8px 14px; font-size: 0.78rem; }

    /* PDP */
    .product-detail { gap: 20px; }
    .gallery-main img { border-radius: var(--radius-sm); }
    .product-info h1 { font-size: 1.5rem; }
    .product-info .product-marca { font-size: 0.85rem; }
    .current-price { font-size: 1.3rem; }
}

@media (max-width: 480px) {
    /* Cards: texto legible + boton full */
    .product-card-title { font-size: 0.74rem; line-height: 1.25; }
    .product-card-body { padding: 6px; }
    .product-card .product-marca { font-size: 0.62rem; margin-bottom: 2px; }
.current-price { font-size: 0.85rem; }
    .old-price { font-size: 0.68rem; }
    .product-card-cuotas { font-size: 0.64rem; }
    .product-card-cuotas .cuotas-badge { padding: 1px 5px; font-size: 0.6rem; }
    .product-card-actions { gap: 6px; }
    .product-card-actions .btn { font-size: 0.7rem; padding: 9px 6px; width: 100%; min-height: 40px; }

    /* Hero actions full width */
    .hero-actions { width: 100%; }
    .hero-actions .btn { width: 100%; max-width: 340px; margin: 0 auto; }

    /* PDP */
    .pdp-sellos { gap: 6px 10px; font-size: 0.7rem; }
    .quantity-selector .qty-btn { width: 44px; height: 44px; font-size: 1.1rem; }
    .qty-input { width: 52px; height: 44px; }
    .product-actions { flex-direction: column; }
    .product-actions .btn-lg { width: 100%; font-size: 0.92rem; min-height: 50px; }

    /* Slider overlay (si el banner tapa algo) */
    .slider-overlay { padding: 0 5% 0 5%; }
    .slider-overlay h2 { font-size: 1.25rem; }
    .slider-overlay p { font-size: 0.78rem; max-width: 88%; }

    /* Carrito/checkout */
    .cart-layout, .checkout-layout { gap: 16px; }
    .checkout-summary { margin-top: 4px; }
    .btn-block { width: 100%; }

    /* Footer */
    .footer-grid { gap: 16px; }
    .footer h4 { font-size: 0.95rem; }
}

/* ============================================================
   VIDEOS DE CLIENTES (UGC social proof)
   ============================================================ */
.section-videos { background: var(--bg); }
.videos-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 20px;
}
.video-card {
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid #f0ecec;
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.video-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.video-embed { position: relative; width: 100%; aspect-ratio: 9 / 16; background: #000; }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-caption { padding: 10px 12px; font-size: 0.8rem; color: var(--text-secondary); }
.video-caption strong { color: var(--text); }
.video-thumb { display: block; text-decoration: none; }
.video-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.video-play { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 52px; height: 52px; display: flex; align-items: center; justify-content: center; background: rgba(197, 23, 83, 0.92); border-radius: 50%; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35); transition: transform 0.2s ease; }
.video-thumb:hover .video-play { transform: translate(-50%, -50%) scale(1.1); }
.video-play svg { width: 22px; height: 22px; fill: #fff; margin-left: 3px; }
.video-watch { position: absolute; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.7); color: #fff; font-size: 0.8rem; font-weight: 600; padding: 6px 10px; text-align: center; }
@media (max-width: 992px) { .videos-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .videos-grid { gap: 10px; } .video-caption { font-size: 0.72rem; padding: 8px; } }

/* ============================================================
   PDP CRO (estilo casaperfecta)
   ============================================================ */
.pdp-descuentos { margin: 12px 0; padding: 12px 14px; background: var(--primary-soft); border: 1px solid #f2d6e1; border-radius: var(--radius); }
.pdp-descuentos-t { font-weight: 700; font-size: 0.9rem; }
.pdp-descuentos-st { font-size: 0.78rem; color: var(--text-secondary); margin-bottom: 8px; }
.pdp-descuentos-table { width: 100%; border-collapse: collapse; }
.pdp-descuentos-table td { padding: 5px 6px; font-size: 0.8rem; border-top: 1px solid #f2d6e1; }
.pdp-descuentos-table td.off { font-weight: 700; color: var(--primary); white-space: nowrap; }
.pdp-pago { margin: 10px 0; padding: 10px 14px; background: var(--success-soft); border: 1px solid #c9e7d6; border-radius: var(--radius); font-size: 0.85rem; font-weight: 600; color: var(--success); }
.pdp-ultimas { display: inline-block; background: var(--badge-sale); color: #fff; font-size: 0.66rem; font-weight: 700; letter-spacing: 0.04em; padding: 3px 8px; border-radius: var(--radius-full); margin-bottom: 4px; }
.pdp-garantia { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding: 12px 14px; background: #fafafa; border: 1px dashed #e0e0e0; border-radius: var(--radius); }
.pdp-garantia-ico { width: 26px; height: 26px; color: var(--success); flex-shrink: 0; }
.pdp-garantia-t { font-size: 0.85rem; font-weight: 700; }
.pdp-garantia-p { font-size: 0.78rem; color: var(--text-secondary); }

/* Menu de marcas como botones (desktop) */
@media (min-width: 769px) {
    .main-nav .container { gap: 4px; padding: 9px 0; }
    .main-nav .nav-link {
        background: var(--bg-soft);
        border: 1px solid #eee1e6;
        border-radius: 0;
        padding: 4px 10px;
        font-size: 0.7rem;
        font-weight: 600;
        color: var(--text);
        transition: all 0.2s;
    }
    .main-nav .nav-link:hover { background: var(--primary); border-color: var(--primary); color: #fff; }
    .main-nav .nav-link-destaque { background: var(--primary); border-color: var(--primary); color: #fff; }
    .main-nav .nav-link-destaque:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: #fff; }
}
