/* =============================================================
   Ventas Baratas — Estilos principales
   Paleta:
     --c-primary    #FF9A00  Naranja  (CTA, header)
     --c-secondary  #8A2BE2  Morado   (acentos)
     --c-magenta    #C6007E
     --c-lime       #8CC63F
     --c-white      #FFFFFF
   ============================================================= */

:root {
    --c-primary: #FF9A00;
    --c-primary-dark: #E68800;
    --c-primary-light: #FFB94A;
    --c-secondary: #8A2BE2;
    --c-secondary-dark: #6A1FB0;
    --c-magenta: #C6007E;
    --c-lime: #8CC63F;
    --c-white: #FFFFFF;
    --c-bg: #EBEBEB;
    --c-surface: #FFFFFF;
    --c-text: #1A1A1A;
    --c-text-muted: #6B7280;
    --c-border: #E5E5E5;
    --c-success: #00A650;
    --c-danger:  #E11D48;
    --c-warning: #F59E0B;
    --shadow-sm: 0 1px 2px rgba(0,0,0,.05);
    --shadow:    0 2px 8px rgba(0,0,0,.08);
    --shadow-lg: 0 8px 24px rgba(0,0,0,.12);
    --radius: 6px;
    --radius-lg: 12px;
    --max-w: 1280px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    color: var(--c-text);
    background: var(--c-bg);
    line-height: 1.45;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--c-secondary); }
button { font-family: inherit; cursor: pointer; }
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 16px; }
.main { padding-bottom: 32px; }

/* ============================ Header ============================ */
.site-header { background: var(--c-primary); color: #1a1a1a; position: sticky; top: 0; z-index: 50; }
.site-header__top { background: var(--c-primary); }
/* Fila compacta: altura ajustada a los elementos, sin padding excesivo */
.site-header__row { display: flex; align-items: center; gap: 10px; padding: 7px 0; }
.site-logo { display: block; flex-shrink: 0; }
.site-logo img { height: 40px; width: auto; }

/* Buscador: flex:1 + sin max-width para que llene el espacio disponible */
.site-search { flex: 1; display: flex; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm); position: relative; min-width: 0; }
.site-search input { flex: 1; border: 0; padding: 9px 14px; font-size: 14px; outline: none; background: transparent; min-width: 0; }
.site-search button { border: 0; background: transparent; padding: 0 14px; color: #555; flex-shrink: 0; cursor: pointer; }
.site-search button:hover { color: var(--c-secondary); }

/* ============================ Search dropdown ============================ */
.search-drop {
    position: absolute; top: calc(100% + 6px); left: 0; right: 0;
    background: #fff; border-radius: var(--radius-lg);
    box-shadow: 0 8px 32px rgba(0,0,0,.18); z-index: 200;
    overflow: hidden; border: 1px solid rgba(0,0,0,.07);
    animation: sdrop-in .12s ease;
}
@keyframes sdrop-in { from { opacity:0; transform:translateY(-6px) } to { opacity:1; transform:none } }
.search-drop__list { list-style: none; margin: 0; padding: 4px 0; max-height: 432px; overflow-y: auto; }
.search-drop__item { border-bottom: 1px solid #f3f3f3; }
.search-drop__item:last-child { border-bottom: none; }
.search-drop__link {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 14px; text-decoration: none; color: inherit; transition: background .1s;
}
.search-drop__link:hover, .search-drop__link.is-active { background: #fff8f0; color: inherit; }
.search-drop__img {
    width: 48px; height: 48px; object-fit: contain; flex-shrink: 0;
    border-radius: 6px; border: 1px solid #eee; background: #fafafa;
}
.search-drop__img--ph { display: block; width: 48px; height: 48px; flex-shrink: 0; border-radius: 6px; background: #f0f0f0; }
.search-drop__info { display: flex; flex-direction: column; min-width: 0; }
.search-drop__name { font-size: 13px; color: #222; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.3; }
.search-drop__name mark { background: #fff3cd; color: inherit; border-radius: 2px; padding: 0 2px; font-weight: 700; font-style: normal; }
.search-drop__price { font-size: 13px; font-weight: 700; color: var(--c-primary); margin-top: 3px; }
.search-drop__empty { padding: 18px 14px; text-align: center; color: #888; font-size: 13px; }
.search-drop__footer {
    display: block; padding: 11px 14px; font-size: 13px;
    color: var(--c-secondary); border-top: 1px solid #eee;
    text-align: center; font-weight: 600; background: #fafafa;
    transition: background .1s;
}
.search-drop__footer:hover { background: #f0eaf9; color: var(--c-secondary); }
.search-drop__loading { padding: 14px; text-align: center; color: #aaa; font-size: 13px; }

.site-header__actions { display: flex; align-items: center; gap: 12px; color: #1a1a1a; flex-shrink: 0; }
.action-link { font-size: 14px; font-weight: 500; }
.action-link:hover { color: #fff; }
.action-form { display: inline; }
.action-form button { background: transparent; border: 0; color: inherit; padding: 0; font: inherit; }
.action-cart { position: relative; color: inherit; }
.action-cart:hover { color: #fff; }
.action-link--icon { display:flex; align-items:center; color:inherit; opacity:.85; transition:opacity .15s; }
.action-link--icon:hover { opacity:1; color:#fff; }
.cart-badge { position: absolute; top: -6px; right: -8px; background: var(--c-secondary); color: #fff; font-size: 11px; padding: 1px 6px; border-radius: 999px; font-weight: 700; }

/* ── Barra de categorías con separación visual estilo Walmart ─ */
.site-header__nav {
    background: rgba(0,0,0,.13);
    border-top: 1px solid rgba(0,0,0,.12);
    box-shadow: 0 2px 6px rgba(0,0,0,.12);
}
.site-header__nav-row { padding: 0; }
.site-cats {
    list-style: none; margin: 0; padding: 0;
    display: flex; gap: 0;
    overflow-x: auto; scrollbar-width: none;
}
.site-cats::-webkit-scrollbar { display: none; }
.site-cats a {
    display: inline-block;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255,255,255,.90);
    white-space: nowrap;
    position: relative;
    transition: color .15s, background .15s;
}
.site-cats a::after {
    content: '';
    position: absolute;
    bottom: 0; left: 50%; right: 50%;
    height: 2.5px;
    background: #fff;
    border-radius: 2px 2px 0 0;
    transition: left .18s, right .18s;
}
.site-cats a:hover {
    color: #fff;
    background: rgba(0,0,0,.10);
}
.site-cats a:hover::after { left: 10px; right: 10px; }
.site-cats a:hover { background: rgba(255,255,255,.4); color: var(--c-secondary-dark); }

/* Tienda link — acceso directo destacado en la barra de nav */
.site-cats__tienda {
    background: rgba(255,122,0,.18) !important;
    border-radius: 20px !important;
    color: #fff !important;
    padding: 6px 14px !important;
    border: 1.5px solid rgba(255,122,0,.55) !important;
    transition: background .15s, border-color .15s !important;
}
.site-cats__tienda:hover {
    background: rgba(255,122,0,.38) !important;
    border-color: rgba(255,122,0,.9) !important;
    color: #fff !important;
}
.site-cats__tienda.active {
    background: var(--c-primary) !important;
    border-color: var(--c-primary) !important;
    color: #fff !important;
}
.site-cats__tienda::after { display: none !important; }
@media (max-width: 768px) {
    .site-cats__tienda {
        border-radius: 0 !important;
        border: none !important;
        border-bottom: 1px solid var(--c-border) !important;
        background: rgba(255,122,0,.12) !important;
        color: var(--c-primary) !important;
    }
    .site-cats__tienda.active { background: rgba(255,122,0,.22) !important; }
}

/* ============================ Hero ============================ */
.hero {
    position: relative; overflow: hidden;
    max-width: var(--bmw-hero, var(--max-w)); margin: 12px auto 0;
    border-radius: var(--radius-lg); box-shadow: var(--shadow);
}
.hero__slider { position: relative; height: var(--bh-hero, 380px); }
.hero__slide {
    position: absolute; inset: 0; display: flex; align-items: center;
    opacity: 0; transition: opacity .6s ease; padding: 40px 56px; overflow: hidden;
}
.hero__slide.is-active { opacity: 1; z-index: 1; }
.hero__slide-img {
    /* Imagen cubre el 95% del slide — solo 5% de gradiente del color en el borde izquierdo */
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,.9) 4%, #000 7%);
    mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,.9) 4%, #000 7%);
}
/* Videos no necesitan la máscara de gradiente — se ven sin cortes */
.hero__slide-img--video {
    -webkit-mask-image: none;
    mask-image: none;
}
.hero__slide-text { position: relative; z-index: 1; max-width: 440px; text-shadow: 0 1px 8px rgba(0,0,0,.45); }
.hero__slide-text h2 { font-size: 42px; margin: 0 0 10px; font-weight: 900; line-height: 1.05; }
.hero__slide-text p  { font-size: 18px; margin: 0 0 20px; opacity: .9; }
.hero__nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: rgba(255,255,255,.85); color: #333; border: 0;
    width: 36px; height: 72px; font-size: 22px; z-index: 2;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: opacity .2s; cursor: pointer;
}
.hero:hover .hero__nav { opacity: 1; }
.hero__nav--prev { left: 0; border-radius: 0 4px 4px 0; }
.hero__nav--next { right: 0; border-radius: 4px 0 0 4px; }
.hero__dots { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; z-index: 2; }
.hero__dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.5); border: 0; cursor: pointer; padding: 0; transition: all .2s; }
.hero__dot.is-active { background: #fff; transform: scale(1.3); }

/* ============================ Home shortcuts ============================ */
.home-shortcuts {
    background: #fff; border-radius: var(--radius-lg);
    max-width: var(--max-w); margin: 10px auto 0;
    box-shadow: var(--shadow-sm); overflow: hidden;
}
/* Wrapper: scroll + pin como hermanos flex */
.home-shortcuts__wrap { display: flex; overflow: hidden; }
.home-shortcuts__scroll { flex: 1 1 0; display: flex; overflow-x: auto; scrollbar-width: none; min-width: 0; }
.home-shortcuts__scroll::-webkit-scrollbar { display: none; }
/* Compatibilidad con la clase antigua (por si hay caché) */
.home-shortcuts__list { display: flex; overflow-x: auto; scrollbar-width: none; }
.home-shortcuts__list::-webkit-scrollbar { display: none; }
.home-shortcut {
    display: flex; align-items: center; gap: 10px; padding: 13px 18px;
    min-width: 130px; flex-shrink: 0; border-right: 1px solid var(--c-border);
    text-decoration: none; color: inherit; transition: background .15s;
}
.home-shortcut:last-child { border-right: 0; }
.home-shortcut:hover { background: #FAFAFA; }
.home-shortcut__icon { font-size: 24px; flex-shrink: 0; }
.home-shortcut__texts { display: flex; flex-direction: column; }
.home-shortcut__title { font-size: 12px; font-weight: 600; color: #1a1a1a; white-space: nowrap; }
.home-shortcut__sub { font-size: 11px; color: var(--c-text-muted); white-space: nowrap; }

/* ── Pin section: CTAs finales con fondo azul ───────────────── */
.home-shortcuts__pin {
    display: flex; flex-shrink: 0;
    background: #1a52b2;
    border-left: 1px solid rgba(0,0,0,.10);
    box-shadow: -3px 0 8px rgba(0,0,0,.08);
}
.home-shortcut--pin {
    background: transparent; color: #fff;
    border-right-color: rgba(255,255,255,.15);
    min-width: 112px;
}
.home-shortcut--pin:hover { background: rgba(255,255,255,.12); }
.home-shortcut--pin:last-child { border-right: 0; }
.home-shortcut__pin-icon {
    flex-shrink: 0; display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,.90);
}
.home-shortcut__pin-label {
    font-size: 11px; color: rgba(255,255,255,.65); white-space: nowrap; font-weight: 400; line-height: 1.3;
}
.home-shortcut__pin-main {
    font-size: 13px; font-weight: 700; color: #fff; white-space: nowrap; margin-top: 1px; line-height: 1.3;
}
/* Badge del carrito */
.sc-cart-badge {
    position: absolute; top: -7px; right: -9px;
    background: #FF9A00; color: #fff;
    font-size: 10px; font-weight: 700; line-height: 1;
    min-width: 17px; height: 17px; border-radius: 9px; padding: 0 3px;
    display: flex; align-items: center; justify-content: center;
    border: 2px solid #1a52b2;
}
.sc-cart-badge--zero { opacity: .60; }

/* ============================ Strip banners ============================ */
.strip-banners { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; max-width: var(--bmw-strip, var(--max-w)); margin: 10px auto 0; }
.strip-banner {
    padding: 32px 22px; border-radius: var(--radius-lg);
    display: flex; align-items: center; gap: 14px;
    box-shadow: var(--shadow-sm); transition: transform .15s, box-shadow .15s; min-height: var(--bh-strip, 144px);
    position: relative; overflow: hidden;
}
.strip-banner:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.strip-banner strong { font-size: 15px; font-weight: 700; display: block; }
.strip-banner span { font-size: 13px; opacity: .85; }
/* Video de fondo en strip-banner */
.strip-banner__video {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover; object-position: center;
    display: block; z-index: 0;
}
.strip-banner__content {
    position: relative; z-index: 1;
    display: flex; align-items: center; gap: 14px; width: 100%;
}
/* Overlay oscuro suave para que el texto sea legible sobre el video */
.strip-banner--video::after {
    content: '';
    position: absolute; inset: 0;
    background: rgba(0,0,0,.35); z-index: 0;
    border-radius: inherit;
}

/* ============================ Categorías strip ============================ */
.cat-strip {
    background: #fff; border-radius: var(--radius-lg);
    max-width: var(--max-w); margin: 10px auto 0;
    padding: 16px 20px; box-shadow: var(--shadow-sm);
}
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 14px; }
.section-head h2 { font-size: 20px; font-weight: 600; margin: 0; color: #1a1a1a; }
.section-head a { font-size: 14px; color: var(--c-secondary); }
.section-head a:hover { text-decoration: underline; }
.section-title { font-size: 20px; font-weight: 600; margin: 0 0 14px; color: #1a1a1a; }
.cat-strip__list { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.cat-strip__list::-webkit-scrollbar { display: none; }
.cat-item {
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    padding: 8px 12px; border-radius: var(--radius); transition: background .15s;
    text-align: center; flex-shrink: 0; min-width: 78px; text-decoration: none; color: inherit;
}
.cat-item:hover { background: #FFF4E5; }
.cat-item__icon { width: 56px; height: 56px; border-radius: 50%; background: #F5F5F5; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.cat-item__icon img { width: 65%; height: 65%; object-fit: contain; }
.cat-item__placeholder { font-size: 20px; font-weight: 700; color: var(--c-primary); }
.cat-item__name { font-size: 12px; font-weight: 500; color: #333; line-height: 1.2; max-width: 68px; }

/* ── Cat-strip: tooltip on hover (tablet/PC), names visible on mobile ── */
@media (min-width: 768px) {
    .cat-item__name { display: none; }
    .cat-item {
        position: relative;
        /* Ensure overflow doesn't clip the tooltip */
    }
    .cat-item::after {
        content: attr(data-tooltip);
        position: absolute;
        top: calc(100% + 7px);
        left: 50%;
        transform: translateX(-50%) translateY(-4px);
        background: #1a1a1a;
        color: #fff;
        font-size: 12px;
        font-weight: 500;
        white-space: nowrap;
        padding: 5px 10px;
        border-radius: 6px;
        pointer-events: none;
        opacity: 0;
        transition: opacity .15s ease, transform .15s ease;
        z-index: 60;
        box-shadow: 0 4px 12px rgba(0,0,0,.25);
    }
    .cat-item::before {
        content: '';
        position: absolute;
        top: calc(100% + 1px);
        left: 50%;
        transform: translateX(-50%);
        border: 5px solid transparent;
        border-bottom-color: #1a1a1a;
        pointer-events: none;
        opacity: 0;
        transition: opacity .15s ease;
        z-index: 60;
    }
    .cat-item:hover::after { opacity: 1; transform: translateX(-50%) translateY(0); }
    .cat-item:hover::before { opacity: 1; }
    /* Allow tooltip to overflow the list container */
    .cat-strip__list { overflow-x: auto; overflow-y: visible; }
    .cat-strip { overflow: visible; }
}

/* ============================ Home section (carousel wrapper) ============================ */
.home-section {
    background: #fff; border-radius: var(--radius-lg);
    max-width: var(--max-w); margin: 10px auto 0;
    padding: 20px 24px 16px; box-shadow: var(--shadow-sm);
}
.prod-carousel { position: relative; margin: 0 -6px; }
.prod-carousel__track {
    display: flex; overflow-x: auto;
    scroll-snap-type: x mandatory; scrollbar-width: none;
    align-items: stretch;
    padding: 4px 6px 12px;
    gap: 10px;
}
.prod-carousel__track::-webkit-scrollbar { display: none; }

/* ── Carousel: 6 per view, equal-height cards ─────────────── */
.prod-carousel__track .product-card-wrap {
    flex-shrink: 0;
    scroll-snap-align: start;
    width: calc((100% - 50px) / 6); /* (100% - 5×10px gaps) / 6 */
    min-width: 155px;
    display: flex;
    flex-direction: column;
}
.prod-carousel__track .product-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: unset;
}
.prod-carousel__track .product-card__body {
    flex: 1;
    display: flex;
    flex-direction: column;
}
.prod-carousel__track .product-card__media {
    flex-shrink: 0; /* image area never compresses */
}
.prod-carousel__track .product-card__name {
    flex: 1; /* grows to push rating/badges to bottom */
}
.prod-carousel__btn {
    position: absolute; top: 42%; transform: translateY(-50%);
    width: 34px; height: 34px; border-radius: 50%;
    background: #fff; border: 1px solid var(--c-border);
    box-shadow: var(--shadow); font-size: 18px;
    display: flex; align-items: center; justify-content: center;
    z-index: 5; cursor: pointer; color: #333; transition: box-shadow .15s;
    opacity: 0; transition: opacity .2s, box-shadow .15s;
}
.prod-carousel:hover .prod-carousel__btn { opacity: 1; }
.prod-carousel__btn:hover { box-shadow: var(--shadow-lg); }
.prod-carousel__btn--prev { left: -17px; }
.prod-carousel__btn--next { right: -17px; }
.prod-carousel__btn[data-hidden] { visibility: hidden; }

/* ============================ Promo grid ============================ */
.promo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; max-width: var(--bmw-promo-grid, var(--max-w)); margin: 10px auto 0; }
.promo-tile {
    border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16/9;
    min-height: var(--bh-promo-grid, 0);
    position: relative; display: block; background: #f0f0f0;
    box-shadow: var(--shadow-sm); transition: transform .15s, box-shadow .15s;
}
.promo-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.promo-tile__img { width: 100%; height: 100%; object-fit: cover; display: block; }
.promo-tile__text {
    position: absolute; inset: 0; padding: 16px 20px;
    display: flex; flex-direction: column; justify-content: flex-end;
    background: linear-gradient(to top, rgba(0,0,0,.55) 0%, transparent 65%);
    color: #fff;
}
.promo-tile__text strong { font-size: 15px; font-weight: 700; line-height: 1.2; display: block; }
.promo-tile__text span { font-size: 12px; opacity: .9; margin-top: 2px; display: block; }

/* ============================ Product card (ML-style) ============================ */
.product-row { background: #fff; border-radius: var(--radius-lg); padding: 20px; margin-top: 10px; box-shadow: var(--shadow-sm); }
.product-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.product-grid--lg { grid-template-columns: repeat(4, 1fr); }
.product-card {
    background: #fff; border-radius: var(--radius); overflow: hidden;
    display: block; color: inherit; text-decoration: none;
    border: 1px solid transparent; transition: box-shadow .15s, border-color .15s;
}
.product-card:hover { box-shadow: var(--shadow-lg); border-color: #ddd; color: inherit; }
.product-card__media {
    position: relative; aspect-ratio: 1/1; background: #fff;
    display: flex; align-items: center; justify-content: center; overflow: hidden; padding: 12px;
}
.product-card__media img { width: 100%; height: 100%; object-fit: contain; }
.product-card__placeholder { color: var(--c-text-muted); font-weight: 700; letter-spacing: 1px; }
.product-card__body { padding: 0 10px 12px; }
.product-card__compare { font-size: 12px; color: var(--c-text-muted); text-decoration: line-through; line-height: 1.4; }
.product-card__price-row { display: flex; align-items: baseline; gap: 5px; }
.product-card__price { font-size: 20px; font-weight: 300; color: #1a1a1a; line-height: 1.3; }
.product-card__price--sale { color: #FF4500 !important; font-weight: 700 !important; }
.product-card__discount { font-size: 12px; color: var(--c-success); font-weight: 600; }
.product-card__name { font-size: 13px; color: #555; margin-top: 5px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-card__free-ship { font-size: 12px; color: var(--c-success); font-weight: 500; margin-top: 4px; }
.product-card__rating { font-size: 12px; color: var(--c-text-muted); margin-top: 3px; }
.product-card__rating span { color: var(--c-text-muted); }

/* ============================ Home responsive ============================ */
@media (max-width: 1100px) { .prod-carousel__track .product-card-wrap { width: calc((100% - 40px) / 5); } }
@media (max-width: 900px) {
    .strip-banners { grid-template-columns: repeat(2, 1fr); }
    .promo-grid { grid-template-columns: repeat(2, 1fr); }
    .prod-carousel__track .product-card-wrap { width: calc((100% - 30px) / 4); min-width: 150px; }
    .hero__slider { height: 300px; }
    .hero__slide { padding: 30px 36px; }
    .hero__slide-text h2 { font-size: 32px; }
    .hero__slide-text p { font-size: 16px; }
}
@media (max-width: 768px) {
    /* Promo editorial: colapsa a 2 columnas */
    .promo-editorial {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto auto;
        min-height: auto;
    }
    .pe-card--1 { grid-column: 1 / 3; grid-row: 1; min-height: 180px; }
    .pe-card--2 { grid-column: 1 / 3; grid-row: 2; min-height: 130px; }
    .pe-card--3 { grid-column: 1;     grid-row: 3; min-height: 120px; }
    .pe-card--4 { grid-column: 2;     grid-row: 3; min-height: 120px; }
    .pe-card--5 { display: none; }
    .pe-card__title { font-size: 16px; }
    .pe-card--1 .pe-card__title, .pe-card--5 .pe-card__title { font-size: 18px; }
    /* Cat promo split */
    .cat-promo-split { grid-template-columns: 1fr; }
    .cps-banner { min-height: 220px; }
    .cps-banner__heading { font-size: 24px; }
    .cps-products { padding: 20px; }
    .cps-products__grid--3 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
    .strip-banners { grid-template-columns: 1fr; }
    .promo-grid { grid-template-columns: 1fr; }
    .prod-carousel__track .product-card-wrap { width: calc((100% - 8px) / 2.3); min-width: 140px; }
    .hero__slider { height: 220px; }
    .hero__slide { padding: 20px 24px; }
    .hero__slide-text h2 { font-size: 22px; }
    .hero__slide-text p { font-size: 13px; margin-bottom: 12px; }
    .home-shortcut { min-width: 110px; padding: 10px 12px; }
    .home-shortcut--pin { min-width: 96px; }
    .cat-item { min-width: 68px; padding: 6px 8px; }
}

/* ============================ Badges ============================ */
.badge { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 600; background: #f0f0f0; color: #555; }
.badge--ok { background: #DCFCE7; color: #166534; }
.badge--out { background: #FEE2E2; color: #991B1B; }
.badge--accent { background: rgba(138,43,226,.15); color: var(--c-secondary-dark); }
.badge--discount { position: absolute; top: 8px; left: 8px; background: var(--c-secondary); color: #fff; font-size: 12px; padding: 4px 8px; }

/* ============================ Botones ============================ */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 18px; border-radius: var(--radius); border: 0; font-weight: 600; font-size: 14px; cursor: pointer; text-decoration: none; transition: background .15s, transform .1s; }
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--c-primary); color: #1a1a1a; }
.btn--primary:hover { background: var(--c-primary-dark); color: #fff; }
.btn--secondary { background: var(--c-secondary); color: #fff; }
.btn--secondary:hover { background: var(--c-secondary-dark); color: #fff; }
.btn--ghost { background: #fff; color: var(--c-text); border: 1px solid var(--c-border); }
.btn--ghost:hover { background: #fafafa; }
.btn--sm { padding: 6px 12px; font-size: 12px; }
.btn--lg { padding: 14px 24px; font-size: 16px; }
.btn--block { display: flex; width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ============================ Alerts ============================ */
.alert { padding: 12px 16px; border-radius: var(--radius); margin: 12px 0; font-size: 14px; }
.alert--success { background: #DCFCE7; color: #166534; }
.alert--error   { background: #FEE2E2; color: #991B1B; }
.alert--info    { background: #DBEAFE; color: #1E40AF; }

/* ============================ Forms ============================ */
.form { display: flex; flex-direction: column; gap: 12px; }
.form label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: #444; font-weight: 500; }
.form input[type="text"],
.form input[type="email"],
.form input[type="password"],
.form input[type="tel"],
.form input[type="number"],
.form input[type="url"],
.form input[type="search"],
.form textarea,
.form select {
    padding: 10px 12px; border: 1px solid var(--c-border); border-radius: var(--radius); font-size: 14px; outline: none; background: #fff; font-family: inherit;
}
.form input:focus, .form textarea:focus, .form select:focus { border-color: var(--c-secondary); box-shadow: 0 0 0 3px rgba(138,43,226,.15); }
.form .check { flex-direction: row; align-items: center; gap: 8px; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.form--inline { flex-direction: row; align-items: end; gap: 12px; }
.form-actions { display: flex; gap: 12px; justify-content: flex-end; margin-top: 8px; }

/* ============================ Breadcrumb ============================ */
.breadcrumb { font-size: 13px; color: var(--c-text-muted); margin: 12px 0; }
.breadcrumb a { color: var(--c-secondary); }

/* ─── Category hero banner ──────────────────────────────────── */
.cat-hero {
    background-size: cover; background-position: center;
    min-height: 160px; display: flex; align-items: flex-end;
    position: relative; margin-bottom: 0;
    border-radius: 0;
}
.cat-hero::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.55) 0%, rgba(0,0,0,.1) 60%, transparent 100%);
}
.cat-hero__inner {
    position: relative; z-index: 1;
    display: flex; align-items: center; gap: 12px;
    padding: 20px 0 20px;
}
.cat-hero__icon { font-size: 32px; filter: drop-shadow(0 2px 4px rgba(0,0,0,.4)); }
.cat-hero__title {
    color: #fff; font-size: 28px; font-weight: 700; margin: 0;
    text-shadow: 0 2px 8px rgba(0,0,0,.4);
}
@media (max-width: 640px) {
    .cat-hero { min-height: 110px; }
    .cat-hero__title { font-size: 22px; }
}

/* ============================ Catalog ============================ */
.catalog { background: #fff; border-radius: var(--radius-lg); padding: 20px; margin-top: 16px; box-shadow: var(--shadow-sm); }
.catalog__title { font-size: 24px; margin: 8px 0 16px; }

/* ============================ Product detail (ML-style) ============================ */
.pd-page { padding-top: 12px; padding-bottom: 24px; }
.pd-breadcrumb { font-size: 12px; color: var(--c-text-muted); margin-bottom: 10px; }
.pd-breadcrumb a { color: var(--c-text-muted); }
.pd-breadcrumb a:hover { color: var(--c-secondary); }

/* 4-col desktop: [48px thumbs] [460px image] [1fr info] [296px buybox] */
.pd-main {
    display: grid;
    grid-template-columns: 48px minmax(0, 460px) 1fr 296px;
    gap: 16px 20px;
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    box-shadow: var(--shadow-sm);
    align-items: start;
}
.pd-gallery { display: contents; }
.pd-gallery__thumbs { display: flex; flex-direction: column; gap: 6px; grid-column: 1; grid-row: 1; }
.pd-gallery__thumb { width: 48px; height: 48px; background: #fff; border: 1px solid var(--c-border); border-radius: 4px; padding: 3px; cursor: pointer; transition: border-color .15s; }
.pd-gallery__thumb:hover, .pd-gallery__thumb.is-active { border-color: var(--c-secondary); }
.pd-gallery__thumb img { width: 100%; height: 100%; object-fit: contain; }
.pd-gallery__main { grid-column: 2; grid-row: 1; aspect-ratio: 1/1; background: #fff; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.pd-gallery__main img { width: 100%; height: 100%; object-fit: contain; }

.pd-info { grid-column: 3; grid-row: 1; padding-left: 4px; }
.pd-buybox { grid-column: 4; grid-row: 1; }

.pd-meta { color: var(--c-text-muted); font-size: 12px; margin-bottom: 4px; }
.pd-name { font-size: 22px; font-weight: 600; line-height: 1.3; margin: 0 0 8px; color: #1a1a1a; }
.pd-rating { display: flex; align-items: center; gap: 6px; font-size: 13px; margin-bottom: 14px; color: var(--c-text-muted); }
.pd-rating__value { color: #333; font-weight: 600; }
.pd-rating__stars { color: #ccc; letter-spacing: 1px; }
.pd-rating__stars .pd-star.is-on { color: var(--c-primary); }
.pd-rating__stars--lg { font-size: 22px; letter-spacing: 2px; }
.pd-rating__count { color: var(--c-text-muted); }

.pd-price-block { margin-bottom: 16px; }
.pd-price-compare { color: var(--c-text-muted); text-decoration: line-through; font-size: 14px; }
.pd-price-row { display: flex; align-items: baseline; gap: 10px; margin: 2px 0 4px; }
.pd-price { font-size: 36px; font-weight: 700; color: #1a1a1a; line-height: 1; }
.pd-price-discount { color: var(--c-success); font-size: 13px; font-weight: 700; background: rgba(0,166,80,.1); padding: 3px 8px; border-radius: 4px; }
.pd-installments { font-size: 14px; color: var(--c-text); }
.pd-installments strong { font-weight: 600; color: var(--c-secondary); }
.pd-link-small { color: var(--c-secondary); font-size: 13px; }
.pd-link { color: var(--c-secondary); }

.pd-variant { margin: 14px 0; }
.pd-variant__label { font-size: 14px; margin-bottom: 8px; }
.pd-variant__chips  { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }

/* ── Text chips (talla, modelo, etc.) ── */
.pd-variant-chip {
    padding: 6px 16px;
    border: 2px solid #ddd;
    border-radius: 20px;
    background: #fff;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: border-color .15s, background .15s, color .15s;
    line-height: 1.3;
}
.pd-variant-chip:hover:not(.is-active) { border-color: #bbb; }
.pd-variant-chip.is-active {
    border-color: var(--c-secondary);
    background: rgba(138,43,226,.07);
    color: var(--c-secondary);
    font-weight: 700;
}
.pd-variant-chip.is-unavailable { opacity: .45; text-decoration: line-through; cursor: not-allowed; }

/* ── Square buttons (talla cuadrada) ── */
.pd-variant-btn {
    width: 44px; height: 44px;
    border: 2px solid #ddd;
    border-radius: 6px;
    background: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: border-color .15s, background .15s;
}
.pd-variant-btn:hover:not(.is-active) { border-color: #bbb; }
.pd-variant-btn.is-active {
    border-color: var(--c-secondary);
    background: rgba(138,43,226,.07);
    color: var(--c-secondary);
}

/* ── Color swatches ── */
.pd-variant-swatch {
    position: relative;
    width: 36px; height: 36px;
    border-radius: 50%;
    border: 3px solid transparent;
    outline: 2px solid rgba(0,0,0,.15);
    outline-offset: 0;
    background: none;
    cursor: pointer;
    padding: 0;
    transition: transform .15s, outline-color .15s, border-color .15s;
    overflow: visible;
}
.pd-variant-swatch__circle {
    display: block;
    width: 100%; height: 100%;
    border-radius: 50%;
    pointer-events: none;
}
.pd-variant-swatch:hover:not(.is-active) { outline-color: rgba(0,0,0,.35); transform: scale(1.1); }
.pd-variant-swatch.is-active {
    border-color: var(--c-secondary);
    outline-color: var(--c-secondary);
    transform: scale(1.15);
}
/* Tooltip */
.pd-variant-swatch__tip {
    position: absolute;
    bottom: calc(100% + 7px);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,.78);
    color: #fff;
    font-size: 11px;
    white-space: nowrap;
    padding: 3px 8px;
    border-radius: 4px;
    pointer-events: none;
    opacity: 0;
    transition: opacity .15s;
    z-index: 10;
}
.pd-variant-swatch:hover .pd-variant-swatch__tip,
.pd-variant-swatch.is-active .pd-variant-swatch__tip { opacity: 1; }

.pd-keypoints { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--c-border); }
.pd-keypoints h3 { font-size: 15px; margin: 0 0 6px; }
.pd-keypoints ul { margin: 0 0 8px; padding-left: 16px; }
.pd-keypoints li { font-size: 13px; color: #555; padding: 2px 0; }

/* Buy box */
.pd-buybox { background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius); padding: 16px; height: fit-content; align-self: start; }
.pd-buybox__row { display: flex; gap: 10px; padding: 9px 0; font-size: 13px; border-bottom: 1px solid var(--c-border); }
.pd-buybox__row:last-of-type { border-bottom: 0; }
.pd-buybox__row strong { display: block; color: #1a1a1a; }
.pd-buybox__row--free strong { color: var(--c-success); }
.pd-buybox__icon, .pd-buybox__icon-free { font-size: 18px; flex-shrink: 0; }
.pd-buybox__icon-free { color: var(--c-success); }

.pd-buybox__stock { padding: 10px 0; font-size: 14px; }
.pd-buybox__qty-row { display: flex; align-items: center; gap: 8px; margin-top: 6px; font-size: 14px; }
.pd-qty { padding: 6px 8px; border: 1px solid var(--c-border); border-radius: 4px; width: 60px; }

.pd-buybox__actions { display: flex; flex-direction: column; gap: 8px; margin: 12px 0; }
/* Comprar ahora → naranja primario; Agregar al carrito → naranja suave */
.pd-buybox__actions .btn--secondary { background: var(--c-primary); color: #fff; border-color: var(--c-primary); }
.pd-buybox__actions .btn--secondary:hover { background: #e68900; border-color: #e68900; }
.pd-buybox__actions .btn--ghost { background: #FFF3E0; color: var(--c-primary); border-color: var(--c-primary); }
.pd-buybox__actions .btn--ghost:hover { background: #FFE0B2; }

.pd-buybox__seller { padding-top: 10px; border-top: 1px solid var(--c-border); font-size: 13px; }

.pd-buybox__perks { margin-top: 10px; display: flex; flex-direction: column; gap: 8px; }
.pd-perk { display: flex; gap: 8px; align-items: flex-start; font-size: 12px; }
.pd-perk span { font-size: 16px; flex-shrink: 0; }
.pd-perk strong { display: block; color: #1a1a1a; font-size: 13px; }
.pd-perk small { color: var(--c-text-muted); }

/* Secciones inferiores */
.pd-section { background: #fff; border-radius: var(--radius-lg); padding: 20px 24px; margin-top: 12px; box-shadow: var(--shadow-sm); }
.pd-section h2 { font-size: 18px; font-weight: 600; margin: 0 0 14px; color: #1a1a1a; }

.pd-hscroll { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.pd-hscroll > * { scroll-snap-align: start; min-width: 180px; max-width: 200px; flex-shrink: 0; }

.pd-attrs { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 0; border: 1px solid var(--c-border); border-radius: var(--radius); overflow: hidden; }
.pd-attr { display: flex; padding: 10px 16px; border-bottom: 1px solid var(--c-border); font-size: 14px; }
.pd-attr:last-child { border-bottom: 0; }
.pd-attr:nth-child(odd) { background: #FAFAFA; }
.pd-attr__name { flex: 0 0 150px; color: #666; }
.pd-attr__value { flex: 1; color: #1a1a1a; }

.pd-description { position: relative; }
.pd-description__inner { max-height: 180px; overflow: hidden; font-size: 14px; color: #444; line-height: 1.65; mask-image: linear-gradient(to bottom, #000 65%, transparent); -webkit-mask-image: linear-gradient(to bottom, #000 65%, transparent); }
.pd-description.is-expanded .pd-description__inner { max-height: none; mask-image: none; -webkit-mask-image: none; }
.pd-description__toggle { background: transparent; border: 0; color: var(--c-secondary); font-size: 14px; font-weight: 600; margin-top: 10px; cursor: pointer; padding: 0; }

.pd-payments { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-bottom: 8px; }
.pd-payments__group h4 { margin: 0 0 8px; font-size: 13px; color: #444; }
.pd-payments__icons { display: flex; flex-wrap: wrap; gap: 5px; }
.pd-pay-card { display: inline-block; padding: 3px 8px; border: 1px solid var(--c-border); border-radius: 4px; font-size: 11px; font-weight: 700; background: #fff; color: #444; letter-spacing: .3px; }

.pd-qa-form { display: flex; gap: 8px; margin-bottom: 12px; }
.pd-qa-form input { flex: 1; padding: 9px 12px; border: 1px solid var(--c-border); border-radius: var(--radius); font-size: 14px; }
.pd-qa-list { display: flex; flex-direction: column; gap: 0; margin-top: 12px; }
.pd-qa { padding: 12px 0; border-top: 1px solid var(--c-border); }
.pd-qa__q { font-size: 14px; font-weight: 500; color: #1a1a1a; }
.pd-qa__a { font-size: 14px; color: #555; margin-top: 5px; padding-left: 14px; border-left: 3px solid var(--c-border); }

.pd-reviews { display: grid; grid-template-columns: 180px 1fr; gap: 24px; padding-bottom: 16px; border-bottom: 1px solid var(--c-border); }
.pd-reviews__summary { text-align: center; }
.pd-reviews__big { font-size: 68px; font-weight: 300; color: #1a1a1a; line-height: 1; }
.pd-reviews__bars { display: flex; flex-direction: column; gap: 6px; }
.pd-bar-row { display: grid; grid-template-columns: 28px 1fr 32px; align-items: center; gap: 8px; font-size: 13px; color: var(--c-text-muted); }
.pd-bar { height: 4px; background: #E8E8E8; border-radius: 999px; overflow: hidden; }
.pd-bar__fill { display: block; height: 100%; background: var(--c-primary); border-radius: 999px; }

.pd-reviews-list { display: flex; flex-direction: column; gap: 14px; margin-top: 16px; }
.pd-review { padding-bottom: 14px; border-bottom: 1px solid var(--c-border); }
.pd-review p { margin: 5px 0; font-size: 14px; color: #444; }
.pd-review__meta { font-size: 12px; color: var(--c-text-muted); }

.pd-section--seo .pd-seo-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px 14px; }
.pd-section--seo a { color: var(--c-secondary); font-size: 13px; }
.pd-section--seo a:hover { text-decoration: underline; }

/* Responsive product detail */
@media (max-width: 1200px) {
    .pd-main { grid-template-columns: 48px minmax(0, 400px) 1fr; }
    .pd-buybox { grid-column: 2 / 4; grid-row: 2; }
}
@media (max-width: 900px) {
    .pd-main { grid-template-columns: 48px 1fr; gap: 12px; }
    .pd-gallery__main { grid-column: 2; }
    .pd-info { grid-column: 1 / 3; grid-row: 2; padding-left: 0; }
    .pd-buybox { grid-column: 1 / 3; grid-row: 3; }
}
@media (max-width: 640px) {
    .pd-main { grid-template-columns: 1fr; padding: 14px; }
    .pd-gallery__thumbs { flex-direction: row; overflow-x: auto; grid-column: 1; grid-row: 2; }
    .pd-gallery__main { grid-column: 1; grid-row: 1; }
    .pd-info { grid-column: 1; grid-row: 3; }
    .pd-buybox { grid-column: 1; grid-row: 4; }
    .pd-reviews { grid-template-columns: 1fr; }
    .pd-section--seo .pd-seo-grid { grid-template-columns: repeat(2, 1fr); }
    .pd-name { font-size: 17px; }
    .pd-price { font-size: 28px; }
    .pd-attr { flex-direction: column; gap: 2px; }
    .pd-attr__name { flex: 0; }
}

/* ============================ Cart ============================ */
.cart { background: #fff; border-radius: var(--radius-lg); padding: 24px; margin-top: 16px; box-shadow: var(--shadow-sm); }
.cart h1 { font-size: 24px; margin: 0 0 16px; }
.cart__grid { display: grid; grid-template-columns: 1fr 320px; gap: 24px; }
.cart__items { display: flex; flex-direction: column; gap: 12px; }
.cart-item { display: grid; grid-template-columns: 80px 1fr auto auto; gap: 12px; align-items: center; border: 1px solid var(--c-border); border-radius: var(--radius); padding: 12px; }
.cart-item__media { width: 80px; height: 80px; background: #f7f7f7; border-radius: var(--radius); overflow: hidden; }
.cart-item__media img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.cart-item__name { font-weight: 500; }
.cart-item__price { color: var(--c-text-muted); font-size: 14px; margin: 4px 0; }
.cart-item__qty { display: flex; align-items: center; gap: 6px; }
.cart-item__qty input { width: 64px; padding: 6px; border: 1px solid var(--c-border); border-radius: var(--radius); text-align: center; }
.cart-item__total { font-weight: 700; }
.cart-item__remove button { background: transparent; border: 0; color: var(--c-danger); font-size: 18px; }
.cart__summary { background: #FAFAFA; padding: 16px; border-radius: var(--radius); height: fit-content; position: sticky; top: 80px; }
.cart__summary h2 { font-size: 18px; margin: 0 0 12px; }
.cart__row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--c-border); }
.cart__row.muted { color: var(--c-text-muted); font-size: 13px; }

/* ============================ Auth ============================ */
.layout-auth { background: var(--c-bg); min-height: 100vh; }
.auth-wrap { max-width: 420px; margin: 40px auto; padding: 0 16px; }
.auth-logo { display: flex; justify-content: center; margin-bottom: 24px; }
.auth-logo img { height: 60px; }
.auth-card { background: #fff; padding: 32px; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.auth-card h1 { margin: 0 0 16px; font-size: 22px; }
.auth-foot { text-align: center; margin-top: 16px; font-size: 14px; }
.auth-foot a { color: var(--c-secondary); font-weight: 600; }

/* ============================ Account ============================ */
.account { background: #fff; border-radius: var(--radius-lg); padding: 24px; margin-top: 16px; box-shadow: var(--shadow-sm); }
.account__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.card { background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius); padding: 16px; }
.card--link { transition: box-shadow .15s; }
.card--link:hover { box-shadow: var(--shadow); }
.card h3 { margin: 0 0 8px; font-size: 16px; }
.card p  { margin: 0; color: var(--c-text-muted); font-size: 14px; }
.muted { color: var(--c-text-muted); }

/* ============================ Tables ============================ */
.table { width: 100%; border-collapse: collapse; background: #fff; }
.table thead { background: #FAFAFA; }
.table th, .table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--c-border); font-size: 14px; }
.table th { font-weight: 600; color: #444; }

/* ============================ Footer (sf) ============================ */
.sf { background: #fafafa; border-top: 3px solid var(--c-primary,#8A2BE2); margin-top: 0; }

/* Newsletter strip */
.sf__newsletter { background: #f3eeff; padding: 22px 0; border-bottom: 1px solid #e5d6fa; }
.sf__newsletter-inner { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.sf__nl-text { flex: 1 1 240px; }
.sf__nl-text strong { display: block; font-size: 14px; font-weight: 700; color: #1a1a1a; margin-bottom: 2px; }
.sf__nl-text span { font-size: 12px; color: #777; }
.sf__nl-form { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.sf__nl-input { border: 1px solid #d0bef5; border-radius: 8px; padding: 9px 14px; font-size: 13px; outline: none; background: #fff; width: 230px; transition: border-color .2s; color: #333; }
.sf__nl-input:focus { border-color: var(--c-primary,#8A2BE2); }
.sf__nl-btn { white-space: nowrap; }
.sf__nl-msg { font-size: 12px; margin: 0; color: #555; width: 100%; }

/* Main body */
.sf__body { padding: 48px 0 36px; }
.sf__grid { display: grid; grid-template-columns: 1.8fr 1fr 1fr 1fr; gap: 40px; }

/* Brand column */
.sf__logo-link { display: inline-block; }
.sf__logo { height: auto; max-height: 44px; object-fit: contain; display: block; margin-bottom: 10px; }
.sf__tagline { font-size: 13px; color: #888; margin: 0 0 16px; line-height: 1.5; }

/* Social icons */
.sf__social { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.sf__social-link { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: #ede8f7; color: var(--c-primary,#8A2BE2); text-decoration: none; transition: background .2s, color .2s, transform .15s; }
.sf__social-link:hover { background: var(--c-primary,#8A2BE2); color: #fff; transform: translateY(-2px); }

/* Payment badges */
.sf__payments { margin-top: 4px; }
.sf__payments-label { display: block; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: #aaa; margin-bottom: 8px; }
.sf__payment-badges { display: flex; gap: 5px; flex-wrap: wrap; }
.sf__badge { background: #fff; border: 1px solid #e0e0e0; border-radius: 5px; padding: 4px 8px; font-size: 10px; font-weight: 700; color: #555; letter-spacing: .03em; box-shadow: 0 1px 2px rgba(0,0,0,.04); }

/* Navigation columns */
.sf__col-title { font-size: 11px; font-weight: 800; color: #1a1a1a; text-transform: uppercase; letter-spacing: .09em; margin: 0 0 14px; padding-bottom: 10px; border-bottom: 2px solid #ede8f7; }
.sf__links { list-style: none; margin: 0; padding: 0; }
.sf__links li { padding: 5px 0; }
.sf__links a { font-size: 13px; color: #666; text-decoration: none; transition: color .15s, padding-left .15s; display: inline-block; }
.sf__links a:visited { color: #666; }
.sf__links a:hover,
.sf__links a:focus-visible { color: var(--c-secondary,#FF6B35); padding-left: 4px; outline: none; }

/* Trust strip */
.sf__trust { background: #fff; border-top: 1px solid #ede8f7; border-bottom: 1px solid #ede8f7; padding: 16px 0; }
.sf__trust-inner { display: flex; align-items: center; justify-content: center; gap: clamp(12px,3vw,40px); flex-wrap: wrap; }
.sf__trust-item { display: flex; align-items: center; gap: 8px; color: #444; }
.sf__trust-item svg { color: var(--c-primary,#8A2BE2); flex-shrink: 0; }
.sf__trust-item span { font-size: 12px; font-weight: 600; white-space: nowrap; }
.sf__trust-sep { width: 1px; height: 24px; background: #e0daea; flex-shrink: 0; }

/* Legal bottom bar */
.sf__bottom { background: #f0ecf9; padding: 14px 0; border-top: 1px solid #e0d9f0; }
.sf__bottom-inner { text-align: center; }
.sf__copyright { font-size: 12px; color: #555; margin: 0 0 5px; }
.sf__copyright strong { color: #333; }
.sf__copyright a { color: var(--c-primary,#8A2BE2); text-decoration: none; }
.sf__copyright a:hover { text-decoration: underline; }
.sf__legal-text { font-size: 11px; color: #999; margin: 0; line-height: 1.7; }
.sf__legal-text strong { color: #777; }
.sf__legal-text a { color: var(--c-primary,#8A2BE2); }

/* Responsive */
@media (max-width: 1024px) { .sf__grid { grid-template-columns: 1.4fr 1fr 1fr; } .sf__brand { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; } .sf__payments { margin-top: 0; } }
@media (max-width: 720px) { .sf__grid { grid-template-columns: 1fr 1fr; gap: 24px; } .sf__brand { grid-column: 1 / -1; display: block; } }
@media (max-width: 480px) { .sf__newsletter-inner { flex-direction: column; align-items: stretch; } .sf__nl-form { flex-direction: column; } .sf__nl-input { width: 100%; } .sf__trust-sep { display: none; } .sf__trust-item span { font-size: 11px; } }
@media (max-width: 400px) { .sf__grid { grid-template-columns: 1fr; } }

/* ============================ Empty states ============================ */
.empty-state { text-align: center; padding: 48px 16px; background: #FAFAFA; border-radius: var(--radius); }
.empty-state h2 { margin: 0 0 12px; }
.empty-state p { color: var(--c-text-muted); margin: 0 0 16px; }
.error-page { text-align: center; padding: 80px 16px; }
.error-page h1 { font-size: 96px; margin: 0; color: var(--c-secondary); }

/* ============================ Menu toggle ============================ */
.site-menu-toggle { display: none; background: transparent; border: 0; color: #1a1a1a; padding: 8px; cursor: pointer; }
.site-menu-toggle:hover { color: #fff; }
.site-cats__mobile-only { display: none; }
.action-link--desktop { display: inline; }

/* ============================ Checkout ============================ */
.checkout { background: #fff; border-radius: var(--radius-lg); padding: 24px; margin-top: 16px; box-shadow: var(--shadow-sm); }
.checkout h1 { font-size: 24px; margin: 0 0 16px; }
.checkout__grid { display: grid; grid-template-columns: 1fr 360px; gap: 24px; align-items: start; }
.checkout__col { display: flex; flex-direction: column; gap: 16px; }
.checkout__col .card { padding: 20px; }
.checkout__col .card h3 { margin: 0 0 12px; font-size: 16px; }
.checkout__summary { background: #FAFAFA; padding: 20px; border-radius: var(--radius); position: sticky; top: 80px; }
.checkout__summary h3 { margin: 0 0 12px; font-size: 16px; }
.checkout__items { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; max-height: 320px; overflow-y: auto; }
.checkout__item { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--c-border); }
.checkout__item-media { position: relative; width: 56px; height: 56px; background: #fff; border-radius: var(--radius); overflow: hidden; flex-shrink: 0; }
.checkout__item-media img { width: 100%; height: 100%; object-fit: contain; padding: 2px; }
.checkout__item-qty { position: absolute; top: -6px; right: -6px; background: var(--c-secondary); color: #fff; font-size: 11px; padding: 1px 6px; border-radius: 999px; font-weight: 700; }
.checkout__item-info { flex: 1; min-width: 0; }
.checkout__item-name { font-size: 13px; line-height: 1.3; }
.checkout__item-line { font-size: 13px; font-weight: 600; margin-top: 2px; }
.cart__row--total { border-top: 2px solid var(--c-text); border-bottom: none; padding-top: 10px; margin-top: 4px; font-size: 18px; font-weight: 700; }

/* Cart qty controls */
.cart-item__qty-ctrl { display: flex; align-items: center; margin-top: 6px; }
.qty-btn { width: 28px; height: 28px; border: 1px solid var(--c-border); background: #fff; font-size: 16px; line-height: 1; cursor: pointer; transition: background .15s, border-color .15s; }
.qty-btn--minus { border-radius: var(--radius) 0 0 var(--radius); }
.qty-btn--plus  { border-radius: 0 var(--radius) var(--radius) 0; }
.qty-btn:hover  { background: #f3f3f3; border-color: #aaa; }
.qty-btn:disabled { opacity: .4; cursor: not-allowed; }
.qty-val { min-width: 36px; text-align: center; border-top: 1px solid var(--c-border); border-bottom: 1px solid var(--c-border); height: 28px; line-height: 26px; font-size: 14px; font-weight: 600; }
.cart-item__del { background: transparent; border: 0; color: var(--c-danger); font-size: 18px; cursor: pointer; padding: 4px 6px; transition: opacity .15s; }
.cart-item__del:hover { opacity: .7; }

.payment-methods { display: flex; flex-direction: column; gap: 8px; }
.payment-method { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--c-border); border-radius: var(--radius); cursor: pointer; transition: border-color .15s, background .15s; }
.payment-method:has(input:checked) { border-color: var(--c-primary); background: #FFF8EC; }
.payment-method input { margin: 0; }
.payment-method strong { display: block; }
.payment-method span { display: block; font-size: 12px; color: var(--c-text-muted); }
.payment-method--disabled { opacity: .55; cursor: not-allowed; }

.success-card { background: #fff; max-width: 640px; margin: 32px auto; padding: 32px; border-radius: var(--radius-lg); box-shadow: var(--shadow); text-align: center; }
.success-card__icon { width: 72px; height: 72px; line-height: 72px; border-radius: 50%; background: var(--c-success); color: #fff; font-size: 36px; margin: 0 auto 16px; }
.success-card__summary { margin: 24px 0; text-align: left; background: #FAFAFA; padding: 16px; border-radius: var(--radius); }
.success-card__summary h3 { margin: 0 0 12px; font-size: 16px; }
.success-card__actions { display: flex; justify-content: center; gap: 12px; margin-top: 16px; }

.form-preview { display: flex; flex-direction: column; gap: 4px; }
.form-preview small { color: var(--c-text-muted); font-size: 12px; }

/* ============================ Benefits grid (legacy) ============================ */
.benefits-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.benefit-card { display: flex; align-items: center; gap: 14px; padding: 16px 20px; border-right: 1px solid var(--c-border); text-decoration: none; color: inherit; transition: background .15s; min-height: 82px; }
.benefit-card:last-child { border-right: 0; }
.benefit-card:hover { background: #FAFAFA; }
.benefit-card__icon { font-size: 28px; flex-shrink: 0; }
.benefit-card__img { width: 48px; height: 48px; object-fit: contain; flex-shrink: 0; border-radius: 8px; }
.benefit-card__title { font-size: 13px; font-weight: 600; color: #1a1a1a; line-height: 1.3; }
.benefit-card__sub { font-size: 11px; color: var(--c-text-muted); margin-top: 2px; line-height: 1.3; }

/* ============================ Promo Editorial Grid ============================ */
.promo-editorial {
    display: grid;
    grid-template-columns: 2.2fr 1.1fr 1.1fr 1.4fr;
    grid-template-rows: 1fr 1fr;
    gap: 8px;
    max-width: var(--max-w); margin: 12px auto 0;
    min-height: 340px;
}
.pe-card {
    position: relative; display: block; text-decoration: none;
    border-radius: 12px; overflow: hidden; background: #f0f0f0;
    transition: transform .22s, box-shadow .22s;
}
.pe-card:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(0,0,0,.15); }
/* Posicionamiento en el grid */
.pe-card--1 { grid-column: 1; grid-row: 1 / 3; }
.pe-card--2 { grid-column: 2 / 4; grid-row: 1; }
.pe-card--3 { grid-column: 2; grid-row: 2; }
.pe-card--4 { grid-column: 3; grid-row: 2; }
.pe-card--5 { grid-column: 4; grid-row: 1 / 3; }
/* Imagen de fondo */
.pe-card__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.pe-card__overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.55) 0%, rgba(0,0,0,.08) 55%, transparent 100%); }
/* Contenido */
.pe-card__body {
    position: absolute; inset: 0; padding: 18px 20px;
    display: flex; flex-direction: column; justify-content: flex-end;
}
.pe-card--light .pe-card__body { justify-content: flex-start; }
.pe-card__label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; opacity: .70; margin-bottom: 4px; white-space: nowrap; }
.pe-card__title { font-size: 18px; font-weight: 800; line-height: 1.2; margin-bottom: 5px; }
.pe-card--1 .pe-card__title, .pe-card--5 .pe-card__title { font-size: 22px; }
.pe-card__sub { font-size: 12px; line-height: 1.4; margin-bottom: 14px; }
.pe-card__cta { font-size: 13px; font-weight: 600; text-decoration: underline; }
/* Botón pill para tarjetas oscuras */
.pe-card__cta-pill {
    display: inline-block; padding: 7px 20px;
    border: 2px solid #fff; border-radius: 30px;
    color: #fff; font-size: 13px; font-weight: 600;
    width: fit-content; transition: background .2s, color .2s;
}
.pe-card:hover .pe-card__cta-pill { background: #fff; color: #1a1a2e; }

/* ============================ Cat Promo Split ============================ */
.cat-promo-split {
    display: grid; grid-template-columns: 1fr 1fr; gap: 0;
    max-width: var(--max-w); margin: 12px auto 0;
    background: #fff; border-radius: 12px; overflow: hidden;
    box-shadow: var(--shadow-sm);
    min-height: 280px;
}
/* Banner izquierdo */
.cps-banner {
    position: relative; display: block; text-decoration: none;
    overflow: hidden; min-height: 280px;
}
.cps-banner__img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cps-banner__overlay {
    position: absolute; inset: 0;
    background: linear-gradient(145deg, rgba(0,0,0,.50) 0%, rgba(0,0,0,.15) 55%, transparent 100%);
}
.cps-banner__content {
    position: absolute; inset: 0; padding: 32px 36px;
    display: flex; flex-direction: column; justify-content: flex-end;
}
.cps-banner__heading {
    font-size: 30px; font-weight: 800; color: #fff; line-height: 1.15;
    margin: 0 0 22px; text-shadow: 0 1px 6px rgba(0,0,0,.30);
}
.cps-banner__cta {
    display: inline-block; padding: 9px 26px;
    border: 2.5px solid #fff; border-radius: 30px;
    color: #fff; font-weight: 700; font-size: 14px;
    width: fit-content; transition: background .2s, color .2s;
}
.cps-banner:hover .cps-banner__cta { background: #fff; color: #1a1a2e; }
/* Panel derecho */
.cps-products { padding: 28px 32px; display: flex; flex-direction: column; }
.cps-products__header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 2px; gap: 12px; }
.cps-products__title { font-size: 20px; font-weight: 700; color: var(--c-heading); margin: 0; line-height: 1.2; }
.cps-products__see-all { font-size: 13px; color: var(--c-secondary); text-decoration: underline; white-space: nowrap; margin-top: 4px; }
.cps-products__sub { font-size: 13px; color: var(--c-text-muted); margin: 4px 0 20px; }
.cps-products__grid { display: grid; gap: 14px; flex: 1; }
.cps-products__grid--3 { grid-template-columns: repeat(3, 1fr); }
.cps-products__grid--2 { grid-template-columns: repeat(2, 1fr); }
/* Tarjeta de producto */
.cps-prod { display: flex; flex-direction: column; }
.cps-prod__img-wrap {
    position: relative; aspect-ratio: 1; background: #f8f9fa;
    border-radius: 10px; overflow: hidden; margin-bottom: 10px; display: block;
}
.cps-prod__img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.cps-prod__img-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 32px; }
.cps-prod__wish {
    position: absolute; top: 6px; right: 6px;
    background: rgba(255,255,255,.85); border: none; border-radius: 50%;
    width: 28px; height: 28px; display: flex; align-items: center;
    justify-content: center; cursor: pointer; font-size: 14px;
    transition: background .15s, transform .15s;
}
.cps-prod__wish:hover { background: #fff; transform: scale(1.12); }
.cps-prod__add {
    display: flex; align-items: center; justify-content: center; gap: 5px;
    padding: 7px 12px; border: 1.5px solid #d1d5db; border-radius: 22px;
    background: #fff; font-size: 12px; font-weight: 600; color: #374151;
    cursor: pointer; text-decoration: none; margin-bottom: 8px;
    transition: border-color .15s, background .15s;
}
.cps-prod__add:hover { border-color: var(--c-primary); background: #fff9f0; }
.cps-prod__prices { display: flex; align-items: baseline; gap: 5px; }
.cps-prod__price { font-size: 15px; font-weight: 700; color: #16a34a; }
.cps-prod__old-price { font-size: 11px; color: var(--c-text-muted); text-decoration: line-through; }
.cps-prod__name {
    font-size: 11px; color: var(--c-text-muted); line-height: 1.4; margin-top: 4px;
    text-decoration: none; display: -webkit-box;
    -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.cps-prod__name:hover { color: var(--c-secondary); }

/* ============================ Full-width banner ============================ */
.fullwidth-banner {
    display: block; max-width: var(--bmw-fullwidth, var(--max-w)); margin: 10px auto 0;
    border-radius: var(--radius-lg); overflow: hidden; position: relative;
    box-shadow: var(--shadow-sm); min-height: 80px;
}
.fullwidth-banner__img { width: 100%; height: var(--bh-fullwidth, 140px); object-fit: cover; display: block; }
.fullwidth-banner__overlay {
    position: absolute; inset: 0; padding: 20px 48px;
    display: flex; align-items: center; gap: 24px;
}
.fullwidth-banner__overlay h3 { font-size: 28px; font-weight: 900; margin: 0; line-height: 1.1; }
.fullwidth-banner__overlay p { font-size: 14px; margin: 0; opacity: .85; }
.fullwidth-banner__overlay .btn { flex-shrink: 0; }
.fullwidth-banner--solid {
    display: flex; align-items: center; padding: 24px 48px; gap: 24px;
}

/* ============================ Oferta del día ============================ */
.oferta-dia { display: grid; grid-template-columns: 260px 1fr; gap: 0; }
.oferta-dia__featured {
    border-right: 1px solid var(--c-border); padding: 16px 20px;
    display: flex; flex-direction: column; align-items: center; text-align: center;
}
.oferta-dia__tag {
    display: inline-flex; align-items: center; gap: 5px; align-self: flex-start;
    background: var(--c-danger); color: #fff; font-size: 11px; font-weight: 700;
    padding: 3px 10px; border-radius: 4px; margin-bottom: 10px;
    text-transform: uppercase; letter-spacing: .5px;
}
.oferta-dia__img { width: 180px; height: 180px; object-fit: contain; margin: 0 auto 12px; display: block; }
.oferta-dia__discount { font-size: 13px; color: var(--c-success); font-weight: 600; }
.oferta-dia__compare { font-size: 13px; color: var(--c-text-muted); text-decoration: line-through; }
.oferta-dia__price { font-size: 30px; font-weight: 300; color: #1a1a1a; line-height: 1.1; margin: 4px 0; }
.oferta-dia__name { font-size: 13px; color: #555; line-height: 1.3; margin: 6px 0 10px; max-width: 200px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.oferta-dia__timer { font-size: 12px; color: var(--c-text-muted); margin-top: 6px; }
.oferta-dia__timer strong { color: var(--c-danger); font-variant-numeric: tabular-nums; font-size: 14px; }
.oferta-dia__carousel { overflow: hidden; padding: 0 8px 0 4px; }
.oferta-dia__carousel .prod-carousel { margin: 0 -4px; }
.oferta-dia__carousel .prod-carousel__track .product-card-wrap { width: calc((100% - 30px) / 4); min-width: 148px; }

/* ============================ Brand promo ============================ */
.brand-promo { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; max-width: var(--bmw-brand-promo, var(--max-w)); margin: 10px auto 0; }
.brand-tile {
    border-radius: var(--radius-lg); overflow: hidden; position: relative;
    display: block; background: #111; box-shadow: var(--shadow-sm);
    transition: transform .15s, box-shadow .15s; min-height: var(--bh-brand-promo, 130px);
}
.brand-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.brand-tile__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .65; }
.brand-tile__text {
    position: relative; z-index: 1; padding: 22px 24px;
    display: flex; flex-direction: column; justify-content: center; color: #fff;
}
.brand-tile__eyebrow { font-size: 11px; opacity: .75; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 4px; }
.brand-tile__name { font-size: 22px; font-weight: 900; line-height: 1.05; }
.brand-tile__cta { font-size: 12px; opacity: .85; margin-top: 8px; text-decoration: underline; align-self: flex-start; display: inline-block; }

/* ============================ Footer promo ============================ */
.footer-promo { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; max-width: var(--bmw-footer-promo, var(--max-w)); margin: 10px auto 0; }
.footer-promo-tile {
    border-radius: var(--radius-lg); overflow: hidden; position: relative;
    display: block; background: #1a1a1a; box-shadow: var(--shadow-sm);
    transition: transform .15s, box-shadow .15s; min-height: var(--bh-footer-promo, 120px);
}
.footer-promo-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.footer-promo-tile__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.footer-promo-tile__text {
    position: relative; z-index: 1; padding: 20px 24px;
    display: flex; flex-direction: column; justify-content: center; color: #fff; height: 100%; min-height: var(--bh-footer-promo, 120px);
}
.footer-promo-tile__text strong { font-size: 17px; font-weight: 900; display: block; line-height: 1.1; }
.footer-promo-tile__text span { font-size: 12px; margin-top: 4px; opacity: .85; display: block; }
.footer-promo-tile__text .btn { margin-top: 12px; align-self: flex-start; padding: 6px 14px; font-size: 12px; }

/* ============================ Tables responsive ============================ */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius); }
.table-wrap .table { min-width: 560px; }

/* ============================ Touch: carousel buttons always visible ============================ */
@media (hover: none) {
    .prod-carousel__btn { opacity: 1; }
}

/* ============================ Breakpoint 1024px ============================ */
@media (max-width: 1024px) {
    .product-grid { grid-template-columns: repeat(4, 1fr); }
    .product-grid--lg { grid-template-columns: repeat(3, 1fr); }
    .cart__grid { grid-template-columns: 1fr; }
    .cart__summary { position: static; }
}

/* ============================ Breakpoint 768px (tablet / mobile) ============================ */
@media (max-width: 768px) {

    /* ── Header ── */
    .site-menu-toggle { display: inline-flex; align-items: center; }
    .site-header__row { flex-wrap: wrap; gap: 8px; }
    .site-header__row > .site-logo { margin-right: auto; }
    .site-header__row > .site-logo img { height: 32px; }
    .site-search { order: 99; width: 100%; max-width: none; }
    .action-link--desktop { display: none; }

    /* ── Mobile nav drawer ── */
    .site-header__nav {
        display: none; background: #fff;
        border-top: 1px solid var(--c-border);
        position: absolute; top: 100%; left: 0; right: 0;
        max-height: 70vh; overflow-y: auto;
        box-shadow: var(--shadow-lg); z-index: 100;
    }
    .site-header__nav.is-open { display: block; }
    .site-cats { flex-direction: column; gap: 0; }
    .site-cats li { width: 100%; }
    .site-cats a { display: block; padding: 12px 16px; border-bottom: 1px solid var(--c-border); border-radius: 0; color: #1a1a1a; }
    .site-cats__mobile-only { display: block; }
    body.menu-open { overflow: hidden; }

    /* ── Hero ── */
    .hero { margin: 0; border-radius: 0; }
    .hero__slider { height: 200px; }
    .hero__slide { padding: 16px 20px; }
    /* .hero__slide-img usa inset:0 (full coverage) — sin override mobile */
    .hero__slide-text h2 { font-size: 20px; }
    .hero__slide-text p  { font-size: 13px; margin-bottom: 10px; }
    .hero__nav { display: none; }

    /* ── Home sections ── */
    .home-shortcuts { border-radius: 0; margin-top: 0; }
    .home-shortcut { min-width: 100px; padding: 10px 12px; }
    .home-shortcut__icon { font-size: 20px; }
    .home-shortcut--pin { min-width: 90px; padding: 10px 12px; }
    .home-shortcut__pin-label { display: none; }
    .home-shortcut__pin-main { font-size: 12px; }
    .strip-banners { grid-template-columns: 1fr; border-radius: 0; margin-top: 8px; padding: 0; }
    .strip-banner { border-radius: 0; }
    .cat-strip { border-radius: 0; padding: 12px 16px; margin-top: 8px; }
    .cat-item { min-width: 64px; padding: 6px 8px; }
    .cat-item__icon { width: 48px; height: 48px; }
    .home-section { border-radius: 0; padding: 16px; margin-top: 8px; }
    .home-section .section-head h2 { font-size: 17px; }
    .promo-grid { grid-template-columns: 1fr; border-radius: 0; margin-top: 8px; padding: 0; }

    /* ── New ML sections ── */
    .benefits-grid { grid-template-columns: repeat(2, 1fr); }
    .benefit-card { border-right: 0; border-bottom: 1px solid var(--c-border); }
    .benefit-card:nth-child(odd) { border-right: 1px solid var(--c-border); }
    .fullwidth-banner { border-radius: 0; margin: 8px auto 0; }
    .fullwidth-banner__overlay { padding: 14px 20px; gap: 12px; }
    .fullwidth-banner__overlay h3 { font-size: 18px; }
    .oferta-dia { grid-template-columns: 1fr; }
    .oferta-dia__featured { border-right: 0; border-bottom: 1px solid var(--c-border); flex-direction: row; text-align: left; padding: 12px 16px; gap: 14px; align-items: flex-start; }
    .oferta-dia__img { width: 110px; height: 110px; margin: 0; flex-shrink: 0; }
    .oferta-dia__tag { align-self: auto; }
    .oferta-dia__carousel .prod-carousel__track .product-card-wrap { width: calc((100% - 8px) / 2.4); }
    .brand-promo { grid-template-columns: 1fr 1fr; gap: 8px; margin: 8px 0 0; }
    .footer-promo { grid-template-columns: 1fr 1fr; gap: 8px; margin: 8px 0 0; }
    .brand-tile, .footer-promo-tile { border-radius: var(--radius); }

    /* ── Carousel on mobile ── */
    .prod-carousel { margin: 0 -4px; }
    .prod-carousel__track { padding: 4px 4px 8px; }
    .prod-carousel__track .product-card-wrap { width: calc((100% - 8px) / 2.4); min-width: 140px; }
    .prod-carousel__btn { width: 28px; height: 28px; font-size: 14px; }
    .prod-carousel__btn--prev { left: -14px; }
    .prod-carousel__btn--next { right: -14px; }

    /* ── Product grid (catalog) ── */
    .product-row { border-radius: 0; padding: 16px; margin-top: 8px; }
    .product-grid, .product-grid--lg { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .product-card__price { font-size: 17px; }
    .product-card__name { font-size: 12px; }

    /* ── Cart ── */
    .cart-item { grid-template-columns: 64px 1fr; gap: 8px; }
    .cart-item__total, .cart-item__del { grid-column: 2; }
    .cart-item__qty input { width: 52px; }
    /* Reviews grid: 1 col on tablet too */
    .pd-reviews { grid-template-columns: 1fr; }
    /* Q&A form: wrap on narrow */
    .pd-qa-form { flex-wrap: wrap; }
    .pd-qa-form input { min-width: 0; flex: 1 1 200px; }
    /* Success card buttons wrap */
    .success-card__actions { flex-wrap: wrap; }

    /* ── Checkout ── */
    .checkout__grid { grid-template-columns: 1fr; }
    .checkout__summary { position: static; }
}

/* ============================ Breakpoint 480px (small phones) ============================ */
@media (max-width: 480px) {
    .promo-editorial { grid-template-columns: 1fr; gap: 6px; }
    .pe-card--1,.pe-card--2,.pe-card--3,.pe-card--4 { grid-column: 1 !important; grid-row: auto !important; min-height: 140px; }
    .cat-promo-split { border-radius: 0; }
    .cps-products__grid--3 { grid-template-columns: repeat(2, 1fr); }
    .cps-products__grid--3 .cps-prod:last-child { display: none; }
    .hero__slider { height: 170px; }
    .hero__slide-text { max-width: 65%; }
    .hero__slide-text h2 { font-size: 17px; }
    .hero__slide-text p  { display: none; }
    .auth-card { padding: 20px 16px; }
    .pd-section { padding: 14px 16px; }
    .brand-promo, .footer-promo { grid-template-columns: 1fr; }
    .oferta-dia__featured { flex-direction: column; align-items: center; text-align: center; }
    .oferta-dia__img { width: 140px; height: 140px; }
    .oferta-dia__tag { align-self: flex-start; }
    .fullwidth-banner__overlay { flex-direction: column; align-items: flex-start; gap: 8px; padding: 12px 16px; }
    .fullwidth-banner__overlay h3 { font-size: 16px; }
}

/* =============================================================
   Admin Bar — frontend overlay for logged-in admins
   ============================================================= */
.admin-bar {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 40px;
    background: #1a1a2e;
    color: #fff;
    z-index: 99999;
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 0 10px;
    font-size: 12px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1;
    box-shadow: 0 2px 8px rgba(0,0,0,.35);
}
body.has-admin-bar { padding-top: 40px; }
.admin-bar__left, .admin-bar__center, .admin-bar__right {
    display: flex; align-items: center; gap: 2px;
}
.admin-bar__center { flex: 1; justify-content: center; }
.admin-bar__right  { margin-left: auto; }
.admin-bar__logo {
    display: flex; align-items: center; gap: 6px;
    color: #fff; font-weight: 700; font-size: 13px;
    text-decoration: none; padding: 5px 8px; border-radius: 4px;
    transition: background .15s; white-space: nowrap;
}
.admin-bar__logo:hover { background: rgba(255,255,255,.1); color: #FF9A00; }
.admin-bar__sep {
    width: 1px; height: 18px;
    background: rgba(255,255,255,.12); margin: 0 6px; flex-shrink: 0;
}
.admin-bar__page {
    font-size: 12px; color: #a0a0c0;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    max-width: 200px; display: flex; align-items: center; gap: 6px;
}
.admin-bar__page--muted { color: #5a5a7a; }
.admin-bar__badge {
    font-size: 10px; padding: 2px 6px;
    border-radius: 3px; font-weight: 600; white-space: nowrap;
}
.admin-bar__badge--draft { background: #f59e0b; color: #1a1a2e; }
.admin-bar__btn {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 5px 9px; border: none; border-radius: 4px;
    background: transparent; color: #a0a0c0;
    font-size: 12px; font-family: inherit; cursor: pointer;
    text-decoration: none; transition: background .15s, color .15s;
    white-space: nowrap; line-height: 1;
}
.admin-bar__btn:hover { background: rgba(255,255,255,.1); color: #fff; }
.admin-bar__btn--edit {
    background: rgba(138,43,226,.25); color: #c084fc;
    border: 1px solid rgba(138,43,226,.4);
}
.admin-bar__btn--edit:hover { background: rgba(138,43,226,.4); color: #fff; border-color: #8A2BE2; }
.admin-bar__btn--toggle { color: #7a7a9a; }
.admin-bar__btn--toggle.is-on { color: #4ade80; }
.admin-bar__btn--toggle.is-on:hover { background: rgba(74,222,128,.1); }
.admin-bar__btn--construction { color: #7a7a9a; }
.admin-bar__btn--construction.is-on {
    color: #fb923c; background: rgba(251,146,60,.12);
    border: 1px solid rgba(251,146,60,.3); border-radius: 4px;
    animation: construction-pulse 2s ease-in-out infinite;
}
@keyframes construction-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .75; } }
.admin-bar__close {
    border: none; background: transparent; color: #5a5a7a;
    cursor: pointer; padding: 5px 6px; border-radius: 4px;
    line-height: 1; transition: background .15s, color .15s; margin-left: 4px;
}
.admin-bar__close:hover { background: rgba(255,255,255,.1); color: #fff; }
@media (max-width: 768px) {
    .admin-bar__page { max-width: 100px; }
    .admin-bar__btn svg { display: block; }
    .admin-bar__btn .admin-bar__btn-label,
    .admin-bar__btn:not(.admin-bar__btn--edit) span:last-child { display: none; }
}

/* ─── Catalog layout (sidebar + grid) ──────────────────────── */
.catalog-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 24px;
    align-items: start;
}
.catalog-sidebar {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-lg);
    padding: 18px 16px;
    position: sticky;
    top: 80px;
}
.filter-group { margin-bottom: 20px; }
.filter-group:last-child { margin-bottom: 0; }
.filter-group__title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--c-text-muted);
    margin: 0 0 10px;
}
.filter-check {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    cursor: pointer;
    margin-bottom: 6px;
    line-height: 1.3;
}
.filter-check input[type=checkbox],
.filter-check input[type=radio] { accent-color: var(--c-secondary); width: 14px; height: 14px; }
.filter-input {
    width: 100%;
    padding: 6px 9px;
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    font-size: 13px;
    font-family: inherit;
    background: var(--c-surface);
    color: var(--c-text);
}
.filter-input:focus { outline: none; border-color: var(--c-secondary); }
.filter-price-row {
    display: flex;
    gap: 6px;
    align-items: center;
    margin-bottom: 8px;
}
.filter-price-row .filter-input { flex: 1; }
.filter-pills { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.filter-pill {
    font-size: 11px;
    padding: 3px 9px;
    border-radius: 99px;
    border: 1px solid var(--c-border);
    background: var(--c-surface);
    cursor: pointer;
    color: var(--c-text-muted);
    transition: background .12s, border-color .12s, color .12s;
}
.filter-pill:hover { border-color: var(--c-secondary); color: var(--c-secondary); }
.catalog-main { min-width: 0; }

/* Mobile filter trigger (JS-injected) */
.catalog-filter-trigger {
    display: none;
    align-items: center; gap: 6px;
    background: #fff; border: 1px solid var(--c-border);
    border-radius: 6px; padding: 8px 14px;
    font-size: 13px; font-weight: 600; cursor: pointer;
    margin-bottom: 12px; color: var(--c-text);
    transition: border-color .15s, color .15s;
}
.catalog-filter-trigger:hover { border-color: var(--c-secondary); color: var(--c-secondary); }
.catalog-filter-close {
    display: none;
    width: 100%; margin-bottom: 16px; padding: 9px;
    background: none; border: 1px solid var(--c-border);
    border-radius: 6px; font-size: 13px; cursor: pointer; color: var(--c-text);
}
.catalog-filter-backdrop {
    display: none;
    position: fixed; inset: 0; z-index: 799;
    background: rgba(0,0,0,.45);
}
.catalog-filter-backdrop.is-visible { display: block; }

@media (max-width: 860px) {
    /* ── Product grid 3-col on tablet ── */
    .product-grid     { grid-template-columns: repeat(3, 1fr); }
    .product-grid--lg { grid-template-columns: repeat(3, 1fr); }
    .catalog-layout { grid-template-columns: 1fr; }
    .catalog-filter-trigger { display: flex; }
    .catalog-sidebar {
        position: static;
        display: none;
    }
    .catalog-sidebar.is-open {
        display: block !important;
        position: fixed; top: 0; left: 0; bottom: 0;
        width: min(320px, 88vw);
        z-index: 800; overflow-y: auto;
        background: #fff; padding: 16px;
        border-radius: 0; border-right: 1px solid var(--c-border);
        box-shadow: 4px 0 24px rgba(0,0,0,.15);
        animation: filterSlideIn .2s ease-out;
    }
    .catalog-filter-close { display: block; }
}
@keyframes filterSlideIn {
    from { transform: translateX(-100%); }
    to   { transform: translateX(0); }
}

/* ─── Footer newsletter strip ───────────────────────────────── */
.footer-newsletter {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    border-top: 1px solid rgba(255,255,255,.12);
    padding: 20px 0 18px;
    margin-bottom: 20px;
}
.footer-newsletter__text {
    flex: 1 1 260px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.footer-newsletter__text strong { font-size: 15px; }
.footer-newsletter__text span   { font-size: 13px; opacity: .75; }
.footer-newsletter__form {
    flex: 1 1 320px;
    display: flex;
    gap: 8px;
}
.footer-newsletter__input {
    flex: 1;
    background: rgba(255,255,255,.08) !important;
    border-color: rgba(255,255,255,.2) !important;
    color: #fff !important;
    font-size: 13px;
}
.footer-newsletter__input::placeholder { color: rgba(255,255,255,.45); }
.footer-newsletter__btn { white-space: nowrap; }
.footer-newsletter__msg { font-size: 13px; margin: 0; }
@media (max-width: 640px) {
    .footer-newsletter { flex-direction: column; align-items: stretch; }
    .footer-newsletter__form { flex-direction: column; }
}

/* ─── WhatsApp floating button ──────────────────────────────── */
.wa-float {
    position: fixed; bottom: 24px; right: 24px; z-index: 9990;
    width: 56px; height: 56px; border-radius: 50%;
    background: var(--wa-bg, #25D366); color: #fff;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 16px rgba(0,0,0,.22);
    text-decoration: none; transition: transform .2s, box-shadow .2s;
    animation: wa-pulse 2.5s infinite;
}
.wa-float svg { width: 30px; height: 30px; }
.wa-float:hover {
    transform: scale(1.12); box-shadow: 0 6px 24px rgba(0,0,0,.32);
    animation: none;
}
@keyframes wa-pulse {
    0%,100% { box-shadow: 0 4px 16px rgba(0,0,0,.22); }
    50%      { box-shadow: 0 4px 24px rgba(0,0,0,.3), 0 0 0 8px rgba(0,0,0,.08); }
}
@media (max-width: 640px) { .wa-float { bottom: 16px; right: 16px; width: 50px; height: 50px; } .wa-float svg { width: 26px; height: 26px; } }

/* ─── Back to top button ─────────────────────────────────────── */
#back-top {
    position: fixed; bottom: 88px; right: 24px; z-index: 9989;
    width: 40px; height: 40px; border-radius: 50%;
    background: rgba(26,26,46,.75); color: #fff; border: none;
    font-size: 18px; font-weight: 700; line-height: 1;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    opacity: 0; pointer-events: none;
    transition: opacity .25s, background .2s, transform .2s;
    backdrop-filter: blur(6px);
}
#back-top:hover { background: var(--c-secondary); transform: translateY(-3px); }
@media (max-width: 640px) { #back-top { bottom: 76px; right: 16px; width: 36px; height: 36px; font-size: 15px; } }

/* ─── Social share buttons (producto) ───────────────────────── */
.pd-share-btn {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 5px 10px; border-radius: 6px; font-size: 12px; font-weight: 600;
    text-decoration: none; cursor: pointer; border: none; transition: all .15s;
}
.pd-share-btn--wa  { background: #25D366; color: #fff; }
.pd-share-btn--wa:hover  { background: #1ebe5b; }
.pd-share-btn--fb  { background: #1877F2; color: #fff; }
.pd-share-btn--fb:hover  { background: #0f65d4; }
.pd-share-btn--copy { background: #f0eaf8; color: #8A2BE2; }
.pd-share-btn--copy:hover { background: #e3d4f5; }

/* ─── Flash sale badge (producto) ───────────────────────────── */
.pd-flash-badge {
    display: flex; align-items: center; justify-content: space-between;
    background: linear-gradient(135deg, #FF4500, #FF6B00);
    color: #fff; border-radius: 8px; padding: 8px 14px;
    font-size: 13px; font-weight: 700; margin: 10px 0;
    gap: 10px; box-shadow: 0 2px 8px rgba(255,69,0,.25);
}
.pd-flash-badge span:first-child {
    font-size: 14px; letter-spacing: .04em;
}
.pd-flash-badge__timer {
    font-size: 13px; font-weight: 600;
    background: rgba(0,0,0,.18); border-radius: 4px;
    padding: 3px 8px; letter-spacing: .03em;
}

/* ─── Social proof — personas viendo ────────────────────────── */
.pd-social-proof {
    display: flex; align-items: center; gap: 7px;
    font-size: 13px; color: #555; margin: 8px 0 4px;
}
.pd-social-proof__dot {
    display: inline-block; width: 8px; height: 8px; border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 0 rgba(34,197,94,.6);
    animation: sp-pulse 2s infinite;
    flex-shrink: 0;
}
@keyframes sp-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(34,197,94,.5); }
    70%  { box-shadow: 0 0 0 6px rgba(34,197,94,0); }
    100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); }
}

/* ─── Wishlist button (producto) ─────────────────────────────── */
.pd-wishlist-btn {
    display: flex; align-items: center; gap: 8px; width: 100%;
    background: none; border: 1.5px solid var(--c-border);
    border-radius: var(--radius); padding: 9px 14px; cursor: pointer;
    font-size: 13px; color: var(--c-text-muted); transition: all .15s;
    margin-top: 6px;
}
.pd-wishlist-btn:hover, .pd-wishlist-btn.is-saved {
    border-color: #e91e63; color: #e91e63; background: #fff0f5;
}
.wish-icon { font-size: 16px; }

/* ─── Estilos display precio con flash sale ──────────────────── */
.pd-price-sale { color: #FF4500 !important; }
.pd-price-original-flash {
    text-decoration: line-through; color: var(--c-text-muted);
    font-size: 13px; margin-bottom: 2px;
}

/* ─── Newsletter CTA (pre-footer) ───────────────────────────── */
.nl-cta {
    background: linear-gradient(135deg, #8A2BE2 0%, #6A1FB0 40%, #C6007E 100%);
    color: #fff;
    padding: 52px 0;
    margin-top: 32px;
}
.nl-cta__inner {
    display: grid;
    grid-template-columns: auto 1fr 1fr;
    gap: 32px;
    align-items: center;
}
.nl-cta__icon {
    font-size: 56px;
    line-height: 1;
    flex-shrink: 0;
}
.nl-cta__title {
    font-size: 24px;
    font-weight: 800;
    margin: 0 0 8px;
    color: #fff;
    line-height: 1.2;
}
.nl-cta__sub {
    font-size: 14px;
    color: rgba(255,255,255,.82);
    margin: 0 0 14px;
    line-height: 1.5;
}
.nl-cta__perks {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.nl-perk {
    font-size: 12px;
    font-weight: 600;
    background: rgba(255,255,255,.15);
    border-radius: 20px;
    padding: 4px 12px;
    color: #fff;
}
.nl-cta__inputs {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.nl-cta__input {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid rgba(255,255,255,.25);
    border-radius: 8px;
    background: rgba(255,255,255,.12);
    color: #fff;
    font-size: 14px;
    outline: none;
    transition: border-color .15s;
}
.nl-cta__input::placeholder { color: rgba(255,255,255,.55); }
.nl-cta__input:focus { border-color: rgba(255,255,255,.7); background: rgba(255,255,255,.18); }
.nl-cta__btn { width: 100%; padding: 13px; font-size: 15px; font-weight: 700; }
.nl-cta__legal { font-size: 11px; color: rgba(255,255,255,.55); margin: 8px 0 0; text-align: center; }
.nl-cta__success {
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    padding: 24px; background: rgba(255,255,255,.15); border-radius: 12px;
    text-align: center; font-size: 15px; font-weight: 600;
}
.nl-cta__success-icon { font-size: 36px; }

@media (max-width: 900px) {
    .nl-cta__inner { grid-template-columns: auto 1fr; }
    .nl-cta__form-wrap { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
    .nl-cta { padding: 36px 0; }
    .nl-cta__inner { grid-template-columns: 1fr; text-align: center; }
    .nl-cta__icon { display: none; }
    .nl-cta__perks { justify-content: center; }
}

/* ─── Flash Promo — 2-col video banners ─────────────────────── */
.flash-promo {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-top: 12px;
}
.flash-promo__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 14px;
}
.flash-tile {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: block;
    aspect-ratio: 16 / 9;
    min-height: 220px;
    background: #0f0f1a;
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease;
}
.flash-tile:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(0,0,0,.22); }
.flash-tile__media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.flash-tile__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.78) 0%, rgba(0,0,0,.3) 55%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 22px 20px;
    gap: 7px;
}
.flash-tile__badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--c-primary);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 4px;
    align-self: flex-start;
    text-transform: uppercase;
    letter-spacing: .05em;
}
.flash-tile__title {
    font-size: 22px;
    font-weight: 800;
    line-height: 1.2;
    color: #fff;
    text-shadow: 0 1px 6px rgba(0,0,0,.4);
}
.flash-tile__sub {
    font-size: 13px;
    color: rgba(255,255,255,.85);
    margin-top: -2px;
}
.flash-tile__cta { align-self: flex-start; margin-top: 4px; }

@media (max-width: 767px) {
    .flash-promo__grid { grid-template-columns: 1fr; }
    .flash-tile { min-height: 190px; aspect-ratio: 16 / 9; }
    .flash-tile__title { font-size: 18px; }
    .flash-promo { border-radius: 0; padding: 14px 16px; margin-top: 8px; }
}

/* ─── Video banners — mismos estilos que img en cada bloque ─── */

/* Hero: video rellena el slide igual que el background-image */
.hero__slide-img video {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover; object-position: center;
    display: block;
}

/* Fullwidth banner */
.fullwidth-banner__img,
.fullwidth-banner video.fullwidth-banner__img {
    max-height: 260px; width: 100%; object-fit: cover; display: block;
}

/* Promo grid tiles */
.promo-tile__img,
.promo-tile video.promo-tile__img {
    width: 100%; height: 100%;
    object-fit: cover; display: block;
    position: absolute; inset: 0;
}

/* Brand promo tiles */
.brand-tile__img,
.brand-tile video.brand-tile__img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover; display: block;
    opacity: .45;
}

/* Footer promo tiles */
.footer-promo-tile__img,
.footer-promo-tile video.footer-promo-tile__img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover; display: block;
    opacity: .55;
}

/* =============================================================
   MOBILE RESPONSIVE IMPROVEMENTS
   ============================================================= */

/* ── 1. Variant swatches — 44px minimum touch target (≤768px) ── */
@media (max-width: 768px) {
    .pd-variant-swatch { width: 44px; height: 44px; }
    .pd-variant-btn { min-height: 44px; padding: 6px 14px; }
    .pd-wishlist-btn { min-height: 44px; }
    .pd-qty { min-height: 44px; width: 72px; }
    .pd-buybox__actions .btn { min-height: 48px; font-size: 15px; }
    .form-actions { flex-wrap: wrap; }
    .form-actions .btn { flex: 1 1 140px; min-height: 44px; }
}

/* ── 2. Safe-area insets (notch / home-indicator devices) ── */
@supports (padding: env(safe-area-inset-bottom)) {
    .sf { padding-bottom: calc(0px + env(safe-area-inset-bottom)); }
    .wa-float {
        bottom: calc(24px + env(safe-area-inset-bottom));
        right:  calc(24px + env(safe-area-inset-right));
    }
    #back-top { bottom: calc(88px + env(safe-area-inset-bottom)); }
    .site-header {
        padding-left:  env(safe-area-inset-left);
        padding-right: env(safe-area-inset-right);
    }
    @media (max-width: 640px) {
        .wa-float {
            bottom: calc(16px + env(safe-area-inset-bottom));
            right:  calc(16px + env(safe-area-inset-right));
        }
        #back-top { bottom: calc(76px + env(safe-area-inset-bottom)); }
    }
}

/* ── 3. iOS zoom prevention — 16px on inputs at 480px ── */
@media (max-width: 480px) {
    .form input[type="text"],
    .form input[type="email"],
    .form input[type="password"],
    .form input[type="tel"],
    .form input[type="number"],
    .form input[type="url"],
    .form input[type="search"],
    .form textarea,
    .form select,
    .filter-input,
    .site-search__input { font-size: 16px; }

    /* Filter price inputs — stack vertically */
    .filter-price-row { flex-direction: column; gap: 8px; }
    .filter-price-row span { display: none; }
    .filter-price-row .filter-input { width: 100%; }

    /* Filter pills — horizontal scroll */
    .filter-pills { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 4px; }
    .filter-pills::-webkit-scrollbar { display: none; }

    /* Cat strip pills — horizontal scroll */
    .cat-strip__row { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 4px; }
    .cat-strip__row::-webkit-scrollbar { display: none; }

    /* Cart item tighter */
    .cart-item { grid-template-columns: 56px 1fr; padding: 10px 8px; }
    .cart-item__media { width: 56px; height: 56px; }
    .cart-item__qty input { width: 56px; min-height: 38px; }

    /* Checkout card padding */
    .checkout .card { padding: 14px; }
    .checkout__col .card h3 { font-size: 14px; }

    /* Product detail */
    .pd-name { font-size: 16px; }
    .pd-price { font-size: 26px; }
    .pd-share { gap: 5px; }
    .pd-share-btn { padding: 5px 8px; font-size: 11px; }

    /* Flash tile smaller */
    .flash-tile { min-height: 150px; }
    .flash-tile__title { font-size: 16px; }

    /* Benefits 1-col on tiny screens */
    .benefits-grid { grid-template-columns: 1fr; }
    .benefit-card { border-right: 0; border-bottom: 1px solid var(--c-border); }
    .benefit-card:nth-child(odd) { border-right: 0; }
    .benefit-card:last-child { border-bottom: 0; }

    /* Product grid sort bar */
    .product-row__head { flex-direction: column; align-items: flex-start; gap: 8px; }
    .product-row__head select { width: 100%; }

    /* Buttons — minimum 44px touch on non-sm */
    .btn:not(.btn--sm) { min-height: 44px; }

    /* Hero CTA buttons */
    .hero__slide-text .btn { min-height: 40px; padding: 10px 16px; }

    /* nl-cta icon hidden on very small */
    .nl-cta__icon { font-size: 40px; }

    /* Pagination compact */
    .pagination { gap: 2px; }
    .pagination a, .pagination span {
        min-width: 30px; height: 30px; padding: 0 4px; font-size: 12px;
    }
}

/* ── 4. Extra small screens 360px ── */
@media (max-width: 360px) {
    .container { padding: 0 10px; }
    .product-grid, .product-grid--lg { grid-template-columns: repeat(2, 1fr); gap: 6px; }
    .product-card__price { font-size: 15px; }
    .product-card__name  { font-size: 11px; }
    .cart-item { grid-template-columns: 48px 1fr; }
    .cart-item__media { width: 48px; height: 48px; }
    .pd-price { font-size: 22px; }
    .auth-card { padding: 16px 12px; }
    .hero__slider { height: 150px; }
    .hero__slide-text h2 { font-size: 14px; }
    .home-shortcut { min-width: 80px; padding: 8px 10px; }
    .home-shortcut__icon { font-size: 18px; }
    .home-shortcut__label { font-size: 10px; }
    .home-shortcut--pin { min-width: 72px; padding: 8px 10px; gap: 7px; }
    .home-shortcut__pin-icon svg { width: 17px; height: 17px; }
    .home-shortcut__pin-main { font-size: 11px; }
    .cat-item { min-width: 58px; }
    .cat-item__icon { width: 42px; height: 42px; }
}

/* ═══════════════════════════════════════════════════════════════
   Cart floating tab + sidebar drawer
   ═══════════════════════════════════════════════════════════════ */

/* ── Tab (pestaña fija al borde derecho) ─────────────────── */
.cart-tab {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 9985;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    /* color / bg se inyectan via CSS vars desde PHP inline style */
    background: var(--tab-bg, var(--c-primary));
    color: var(--tab-color, #fff);
    border: none;
    padding: 22px 10px;
    border-radius: 10px 0 0 10px;
    cursor: pointer;
    box-shadow: -4px 0 20px rgba(0,0,0,.22);
    transition: transform .25s ease, filter .15s, box-shadow .2s;
    line-height: 1;
    outline-offset: 3px;
    min-height: 130px;
}
.cart-tab:hover,
.cart-tab:focus-visible {
    filter: brightness(.88);
    transform: translateY(-50%) translateX(-5px);
    box-shadow: -6px 0 28px rgba(0,0,0,.32);
}
.cart-tab__count {
    min-width: 22px;
    height: 22px;
    background: #fff;
    color: var(--tab-bg, var(--c-primary));
    border-radius: 999px;
    font-size: 11px;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    position: static !important;
    top: auto !important;
    right: auto !important;
}
.cart-tab__label {
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 5px;
    text-transform: uppercase;
    writing-mode: vertical-rl;
    text-orientation: upright;
    color: inherit;
    line-height: 1;
    margin: 0;
}
.cart-tab__icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: inherit;
}
.cart-tab__icon svg { pointer-events: none; }

/* ── Overlay ──────────────────────────────────────────────── */
.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);
    z-index: 9991;
    opacity: 0;
    transition: opacity .3s ease;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}
.cart-overlay.is-visible { opacity: 1; }

/* ── Sidebar drawer ───────────────────────────────────────── */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 400px;
    max-width: 100vw;
    height: 100dvh;
    height: 100vh;
    z-index: 9992;
    background: var(--c-surface);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform .32s cubic-bezier(.4,0,.2,1);
    box-shadow: -6px 0 40px rgba(0,0,0,.18);
    will-change: transform;
}
.cart-sidebar.is-open { transform: translateX(0); }

/* Header */
.cart-sidebar__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 18px;
    background: linear-gradient(135deg, var(--c-secondary) 0%, #6A1FB0 100%);
    color: #fff;
    flex-shrink: 0;
    gap: 8px;
}
.cart-sidebar__title {
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}
.cart-sidebar__close {
    background: rgba(255,255,255,.18);
    border: none;
    color: #fff;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s;
    flex-shrink: 0;
    line-height: 1;
}
.cart-sidebar__close:hover { background: rgba(255,255,255,.32); }

/* Body — scrollable items */
.cart-sidebar__body {
    flex: 1;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 8px 0;
}
.cart-sidebar__loading {
    text-align: center;
    color: var(--c-text-muted);
    padding: 48px 20px;
    font-size: 14px;
}
.cart-sidebar__empty {
    text-align: center;
    padding: 52px 24px;
    color: var(--c-text-muted);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.cart-sidebar__empty svg { opacity: .25; margin-bottom: 4px; }
.cart-sidebar__empty p { margin: 0; font-size: 15px; }

/* Cart item row */
.cs-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 16px;
    border-bottom: 1px solid #f0f0f0;
    transition: background .12s;
}
.cs-item:last-child { border-bottom: none; }
.cs-item:hover { background: #fafafa; }
.cs-item__img {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid var(--c-border);
    display: block;
}
.cs-item__placeholder {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    flex-shrink: 0;
    background: linear-gradient(135deg,#f0e6ff 0%,#ffe0b2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    font-weight: 800;
    color: var(--c-secondary);
    border: 1px solid var(--c-border);
    text-transform: uppercase;
    letter-spacing: .5px;
}
.cs-item__body { flex: 1; min-width: 0; }
.cs-item__name {
    display: block;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 3px;
    color: var(--c-text);
    transition: color .12s;
}
.cs-item__name:hover { color: var(--c-secondary); }
.cs-item__price {
    font-size: 12px;
    color: var(--c-text-muted);
    margin-bottom: 7px;
    line-height: 1.4;
}
.cs-item__price strong { color: var(--c-text); }
.cs-item__price .sale  { color: #e74c3c; font-weight: 700; }
.cs-item__price .orig  { text-decoration: line-through; font-size: 11px; color: #ccc; }

/* Qty stepper */
.cs-item__qty {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--c-border);
    border-radius: 6px;
    overflow: hidden;
}
.cs-item__qty-btn {
    background: #f5f5f5;
    border: none;
    width: 26px;
    height: 26px;
    cursor: pointer;
    font-size: 17px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--c-text);
    transition: background .1s;
}
.cs-item__qty-btn:hover:not(:disabled) { background: #e8e8e8; }
.cs-item__qty-btn:disabled { opacity: .35; cursor: default; }
.cs-item__qty-val {
    min-width: 28px;
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    background: #fff;
    padding: 0 4px;
    line-height: 26px;
    user-select: none;
}

/* Right column: line total + delete */
.cs-item__right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between;
    gap: 8px;
    flex-shrink: 0;
    padding-top: 2px;
    min-height: 60px;
}
.cs-item__total {
    font-size: 13px;
    font-weight: 700;
    color: var(--c-secondary);
    white-space: nowrap;
}
.cs-item__del {
    background: none;
    border: none;
    color: #d0d0d0;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    padding: 2px 4px;
    border-radius: 4px;
    transition: color .12s, background .12s;
}
.cs-item__del:hover { color: #e74c3c; background: #fff0f0; }

/* Footer */
.cart-sidebar__foot {
    border-top: 2px solid var(--c-border);
    padding: 14px 18px 18px;
    background: #fff;
    flex-shrink: 0;
}
.cs-totals { margin-bottom: 14px; }
.cs-totals__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    padding: 4px 0;
    color: var(--c-text-muted);
}
.cs-totals__row.is-total {
    font-size: 16px;
    font-weight: 700;
    color: var(--c-text);
    border-top: 1px solid var(--c-border);
    margin-top: 6px;
    padding-top: 10px;
}
.cs-totals__row.is-discount { color: #27ae60; font-weight: 600; }
.cs-totals__shipping { font-size: 11px; color: #aaa; padding: 2px 0 6px; }

/* ── Mobile ───────────────────────────────────────────────── */
@media (max-width: 640px) {
    .cart-sidebar { width: 100vw; }
    .cart-tab {
        padding: 16px 9px;
        min-height: 110px;
        border-radius: 8px 0 0 8px;
    }
    .cart-tab__label { font-size: 10px; letter-spacing: 4px; }
}

/* =============================================================
   Features v78: Fecha estimada, Bundles
   ============================================================= */

/* Fecha estimada de entrega */
.pd-delivery-estimate {
    background: #f0fff4;
    border-left: 4px solid #4ade80;
    border-radius: 6px;
    padding: 12px 14px;
    margin: 14px 0;
    font-size: 13px;
    line-height: 1.5;
}

/* Bundles "Comprado frecuentemente junto a" */
.pd-bundle-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 14px;
}
.pd-bundle-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: inherit;
    border: 1px solid var(--c-border, #eee);
    border-radius: 10px;
    padding: 10px 12px;
    width: 130px;
    transition: box-shadow .15s, border-color .15s;
    background: #fff;
}
.pd-bundle-card:hover {
    box-shadow: 0 2px 10px rgba(0,0,0,.10);
    border-color: var(--c-primary, #FF9A00);
}
.pd-bundle-card__img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 6px;
    background: #f7f7f7;
}
.pd-bundle-card__placeholder {
    width: 80px;
    height: 80px;
    background: #f3f4f6;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: #aaa;
}
.pd-bundle-card__name {
    font-size: 11px;
    text-align: center;
    color: var(--c-text, #333);
    line-height: 1.3;
    max-height: 2.6em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.pd-bundle-card__price {
    font-size: 13px;
    font-weight: 700;
    color: var(--c-primary, #FF9A00);
}

/* =============================================================
   PRODUCT PAGE — nuevas funciones (qty discount, gallery zoom hint)
   ============================================================= */
/* Qty discount table */
.pd-qty-discount { margin:12px 0;padding:12px 14px;background:linear-gradient(135deg,#f9f5ff,#fff);border:1.5px solid #d9ccf5;border-radius:10px }
.pd-qty-discount__title { font-size:12px;font-weight:700;color:#7c3aed;margin-bottom:8px }
.pd-qty-discount__table { width:100%;border-collapse:collapse;font-size:12px }
.pd-qty-discount__table thead tr { color:#888 }
.pd-qty-discount__table th { text-align:left;padding:3px 6px;font-weight:600 }
.pd-qty-discount__table td { padding:4px 6px }
.pd-qty-discount__table td:last-child { text-align:right;font-weight:600;color:#7c3aed }
.pd-qty-discount__tier { background:#f9f5ff }
.pd-qty-discount__tier td:first-child { font-weight:600;color:#7c3aed }
.pd-qty-discount__badge { background:#7c3aed;color:#fff;border-radius:4px;padding:1px 7px;font-size:11px;font-weight:700 }

/* Gallery zoom hint overlay */
.pd-gallery__main { position:relative }
.pd-gallery__zoom-hint { position:absolute;bottom:10px;right:10px;background:rgba(0,0,0,.5);color:#fff;font-size:11px;border-radius:20px;padding:4px 10px;display:flex;align-items:center;gap:4px;pointer-events:none;opacity:.7 }

/* Variant chip adj price */
.pd-variant-chip__adj { font-size:11px;opacity:.7 }

/* pd-bar-row star as link */
.pd-bar-row__star--link { background:none;border:none;cursor:pointer;font-size:inherit;color:inherit;padding:0;font-family:inherit }
.pd-bar-row__star--link:hover { text-decoration:underline;color:#7c3aed }

/* Delivery estimate block */
.pd-delivery-estimate { background:#f0fdf4;border:1px solid #bbf7d0;border-radius:8px;padding:10px 12px;font-size:13px;color:#166534;margin-bottom:10px }

/* =============================================================
   ACCOUNT PAGES — sidebar + main layout
   ============================================================= */
.account-layout {
    max-width: 1080px;
    margin: 0 auto;
    padding: 32px 16px 48px;
    display: flex;
    gap: 24px;
    align-items: flex-start;
}
.account-layout__sidebar {
    width: 230px;
    flex-shrink: 0;
    position: sticky;
    top: 80px;
}
.account-layout__main { flex: 1; min-width: 0; }

@media (max-width: 700px) {
    .account-layout {
        flex-direction: column;
        gap: 16px;
        padding: 16px 16px 32px;
    }
    .account-layout__sidebar {
        width: 100%;
        position: static;
        top: auto;
    }
}
@media (max-width: 480px) {
    .account-layout { padding: 12px 12px 24px; }
}

/* =============================================================
   RESPONSIVE IMPROVEMENTS — targeted fixes
   ============================================================= */

/* ── Cart tab: reduce on small phones ───────────────────── */
@media (max-width: 480px) {
    .cart-tab {
        padding: 16px 8px;
        min-height: 100px;
        border-radius: 8px 0 0 8px;
    }
    .cart-tab__label { font-size: 10px; letter-spacing: 4px; }
}
@media (max-width: 360px) {
    .cart-tab { padding: 12px 7px; min-height: 84px; }
    .cart-tab__label { letter-spacing: 3px; font-size: 9px; }
    .cart-tab__icon svg { width: 18px; height: 18px; }
}

/* ── Cart-tab safe-area (notch / curved-edge devices) ─────── */
@supports (right: env(safe-area-inset-right)) {
    .cart-tab { right: env(safe-area-inset-right, 0); }
}

/* ── Product grid: 3-col between 1024 and 860 already ────── */
/* (860px breakpoint added above) */

/* ── Strip banners: intermediate 2-col at 900–768 (already) ─ */

/* ── Checkout summary: show order first on mobile ────────── */
@media (max-width: 768px) {
    .checkout__summary { order: -1; }
}

/* ── Catalog sort toolbar ─────────────────────────────────── */
.product-row__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}
@media (max-width: 520px) {
    .product-row__head { flex-direction: column; align-items: flex-start; }
    .product-row__head select { width: 100%; }
}

/* ── Success card: wrap buttons on small screens ─────────── */
@media (max-width: 480px) {
    .success-card { margin: 16px; padding: 24px 16px; }
    .success-card__actions { flex-direction: column; }
    .success-card__actions .btn { width: 100%; }
}

/* ── Pagination: smaller on mobile ───────────────────────── */
.pagination { display: flex; flex-wrap: wrap; gap: 4px; }

/* ── Footer columns: already handled in .sf responsive rules ─ */

/* ── Auth wrap padding on small screens ──────────────────── */
@media (max-width: 420px) {
    .auth-wrap { margin: 24px auto; }
}

/* ── Breadcrumb overflow ──────────────────────────────────── */
.breadcrumb { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ── Table: ensure horizontal scroll wrapper available ────── */
.overflow-x { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ── Product detail: buybox sticky on desktop ────────────── */
@media (min-width: 901px) {
    .pd-buybox { position: sticky; top: 80px; }
}

/* ── Catalog hero banner: tighter on mobile ──────────────── */
@media (max-width: 480px) {
    .cat-hero { min-height: 90px; }
    .cat-hero__title { font-size: 19px; }
    .cat-hero__icon { font-size: 24px; }
}

/* ── Newsletter CTA icon: keep visible at 480-900 ─────────── */
@media (max-width: 900px) and (min-width: 481px) {
    .nl-cta__icon { font-size: 44px; }
}

/* ── Checkout grid: summary order already set above ─────────
   Make summary sticky again when single-column ≥ 769px.   ── */
@media (min-width: 769px) {
    .checkout__summary { position: sticky; top: 80px; order: unset; }
}

/* ── Cart sidebar: full width on mobile ──────────────────── */
@media (max-width: 440px) {
    .cart-sidebar { width: 100vw; }
}

/* ── Product card: tighter body padding on mobile ─────────── */
@media (max-width: 480px) {
    .product-card__body { padding: 0 8px 10px; }
    .product-card__price { font-size: 16px; }
}

/* ── Form rows: always stack on tiny screens ─────────────── */
@media (max-width: 400px) {
    .form-row { grid-template-columns: 1fr; }
}

/* ── Cart floating tab: hide on very small landscape phones ─
   (landscape phone < 380px height — uncommon but safe)      */
@media (max-height: 380px) and (orientation: landscape) {
    .cart-tab { display: none; }
}

/* ══════════════════════════════════════════════════════════
   Page builder — block typography & helpers
   ══════════════════════════════════════════════════════════ */

/* .page-text — rich-text container (TinyMCE output, hero_simple, text, two_col) */
.page-text { line-height: 1.7; color: var(--c-text); }
.page-text h1, .page-text h2, .page-text h3,
.page-text h4, .page-text h5, .page-text h6 {
    color: var(--c-heading);
    font-weight: 700;
    line-height: 1.3;
    margin: 1.4em 0 .5em;
}
.page-text h1 { font-size: 2rem; }
.page-text h2 { font-size: 1.5rem; }
.page-text h3 { font-size: 1.2rem; }
.page-text p  { margin: 0 0 1em; }
.page-text ul, .page-text ol { margin: 0 0 1em 1.5em; }
.page-text li { margin-bottom: .35em; }
.page-text a  { color: var(--c-primary); text-decoration: underline; }
.page-text a:hover { color: var(--c-secondary); }
.page-text strong { font-weight: 700; }
.page-text em     { font-style: italic; }
.page-text img    { max-width: 100%; height: auto; border-radius: var(--radius); }
.page-text blockquote {
    border-left: 4px solid var(--c-primary);
    margin: 1.2em 0; padding: .6em 1em;
    background: #f9f5ff; border-radius: 0 var(--radius) var(--radius) 0;
    color: var(--c-text-muted); font-style: italic;
}
.page-text table { width: 100%; border-collapse: collapse; margin-bottom: 1em; }
.page-text th, .page-text td { border: 1px solid var(--c-border); padding: 8px 12px; text-align: left; }
.page-text th { background: #f5f0ff; font-weight: 600; }
.page-text code { background: #f3f4f6; padding: 1px 5px; border-radius: 3px; font-family: monospace; font-size: .88em; }
.page-text pre  { background: #1a1a2e; color: #e8e8f0; padding: 16px; border-radius: var(--radius); overflow-x: auto; }

/* .page-block — outer wrapper added by page/show.php */
.page-block { position: relative; }

/* .section-pad — generic vertical padding used by contact_form block */
.section-pad { padding-top: 48px; padding-bottom: 48px; }
@media (max-width: 640px) {
    .section-pad { padding-top: 32px; padding-bottom: 32px; }
}

/* ══════════════════════════════════════════════════════════════
   WALMART-STYLE ARCHITECTURE COMPONENTS
   ══════════════════════════════════════════════════════════════ */

/* ── Product card: "Ahora" prefix ──────────────────────────── */
.product-card__ahora {
    font-size: 11px; font-weight: 600; color: var(--c-text-muted);
    text-transform: uppercase; letter-spacing: .4px; line-height: 1;
    align-self: center;
}

/* ── Product card: variant indicator ──────────────────────── */
.product-card__opciones {
    font-size: 11px; color: var(--c-secondary); font-weight: 600;
    margin-top: 3px; letter-spacing: .2px;
}

/* ── Product card: "Nuevo" badge (reuses badge--discount pos) ─ */
.badge--new { background: #10b981 !important; color: #fff !important; }

/* ── Product card: agotado overlay ────────────────────────── */
.product-card__agotado {
    position: absolute; inset: 0;
    background: rgba(255,255,255,.78); backdrop-filter: blur(1px);
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 700; color: #dc2626; letter-spacing: .5px;
    border-radius: var(--radius); z-index: 1;
}
.product-card--out { opacity: .85; }
.product-card--out:hover { box-shadow: none; border-color: transparent; }

/* ── Product card: quick-add button ───────────────────────── */
.product-card__quick-add,
.product-card__quick-add-form .product-card__quick-add {
    display: block; width: 100%;
    padding: 7px 10px; margin-top: 8px;
    border-radius: 8px; font-size: 13px; font-weight: 600;
    text-align: center; cursor: pointer; text-decoration: none;
    transition: background .15s, color .15s, border-color .15s;
    border: 1.5px solid #8A2BE2; color: #8A2BE2; background: transparent;
    box-sizing: border-box; line-height: 1.4;
}
.product-card__quick-add:hover,
.product-card__quick-add-form .product-card__quick-add:hover {
    background: #8A2BE2; color: #fff;
}
.product-card__quick-add--opts { color: #8A2BE2; border-color: #8A2BE2; }
.product-card__quick-add--opts:hover { background: #8A2BE2; color: #fff; }
.product-card__quick-add--out {
    border-color: #ddd; color: #bbb; cursor: default;
    font-weight: 400; font-size: 12px;
}
.product-card__quick-add-form { margin: 0; }

/* ── Flash Deals Block ────────────────────────────────────── */
.flash-deals-block {
    background: linear-gradient(135deg, #1a0a3a 0%, #2D0A5E 100%);
    border-radius: 12px; overflow: hidden; padding: 0; margin-bottom: 28px;
}
.flash-deals-block__head {
    display: flex; align-items: center; gap: 16px;
    padding: 14px 20px 12px; flex-wrap: wrap;
}
.flash-deals-block__title-wrap { flex: 1; min-width: 0; }
.flash-deals-block__title {
    margin: 0; font-size: 18px; font-weight: 800;
    color: #fff; letter-spacing: -.3px;
}
.flash-deals-block__timer-wrap {
    display: flex; align-items: center; gap: 8px;
    background: rgba(255,255,255,.12); border-radius: 8px;
    padding: 6px 12px;
}
.flash-deals-block__timer-label { font-size: 11px; color: rgba(255,255,255,.7); white-space: nowrap; }
.flash-deals-block__segs { display: flex; align-items: center; gap: 3px; }
.flash-deals-block__seg {
    background: #fff; color: #1a0a3a; border-radius: 5px;
    font-size: 16px; font-weight: 800; font-variant-numeric: tabular-nums;
    min-width: 28px; text-align: center; padding: 2px 5px; line-height: 1.3;
}
.flash-deals-block__sep { color: rgba(255,255,255,.6); font-size: 16px; font-weight: 700; }
.flash-deals-block__link {
    font-size: 13px; color: rgba(255,255,255,.85); font-weight: 600;
    text-decoration: none; white-space: nowrap; flex-shrink: 0;
}
.flash-deals-block__link:hover { color: #fff; text-decoration: underline; }
.flash-deals-block__products {
    background: #fff; padding: 6px 8px 8px; border-radius: 0 0 12px 12px;
}
.flash-deals-block .prod-carousel { margin: 0 -4px; }
.flash-deals-block .prod-carousel__btn { background: rgba(255,255,255,.95); }

/* ── Social Trending Block ────────────────────────────────── */
.social-trending {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.social-card {
    display: flex; flex-direction: row; gap: 12px; align-items: flex-start;
    background: #fff; border-radius: 12px; overflow: hidden;
    border: 1px solid var(--c-border); padding: 12px;
    text-decoration: none; color: inherit;
    transition: box-shadow .15s, border-color .15s;
}
.social-card:hover { box-shadow: var(--shadow-lg); border-color: #ddd; color: inherit; }
.social-card--out { opacity: .8; }
.social-card__media {
    position: relative; width: 90px; height: 90px; flex-shrink: 0;
    background: #f8f5ff; border-radius: 8px; overflow: hidden;
    display: flex; align-items: center; justify-content: center;
}
.social-card__media img { width: 100%; height: 100%; object-fit: contain; }
.social-card__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.social-card__name {
    font-size: 13px; color: #333; font-weight: 500; line-height: 1.35;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.social-card__compare { font-size: 12px; color: var(--c-text-muted); text-decoration: line-through; }
.social-card__price-row { display: flex; align-items: baseline; gap: 5px; }
.social-card__price { font-size: 18px; font-weight: 700; color: #1a1a1a; }
.social-card__signal { font-size: 11px; color: var(--c-text-muted); margin-top: 3px; }
.social-card__cta {
    font-size: 12px; color: var(--c-secondary); font-weight: 600; margin-top: 4px;
}

/* ── Seasonal Tiles Block ─────────────────────────────────── */
.seasonal-tiles {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 12px;
    min-height: 300px;
}
.seasonal-tiles--1\+3 .seasonal-tile--0 {
    grid-row: 1 / 3;
}
.seasonal-tile {
    position: relative; display: flex; align-items: flex-end;
    border-radius: 12px; overflow: hidden; padding: 20px;
    text-decoration: none; color: #fff;
    transition: transform .2s, box-shadow .2s;
    min-height: 140px;
}
.seasonal-tile:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(0,0,0,.22); }
.seasonal-tile__img {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; opacity: .35;
}
.seasonal-tile__body {
    position: relative; z-index: 1;
    display: flex; flex-direction: column; gap: 4px;
}
.seasonal-tile__title { font-size: 16px; font-weight: 800; line-height: 1.2; }
.seasonal-tile__sub   { font-size: 13px; opacity: .88; line-height: 1.3; }
.seasonal-tile__cta   {
    display: inline-block; margin-top: 8px; padding: 5px 14px;
    border-radius: 20px; font-size: 12px; font-weight: 700;
    opacity: .95;
}

/* ── Responsive adjustments ────────────────────────────────── */
@media (max-width: 900px) {
    .social-trending { grid-template-columns: 1fr; }
    .social-card__media { width: 72px; height: 72px; }
}
@media (max-width: 640px) {
    .flash-deals-block__head { gap: 10px; padding: 12px 14px 10px; }
    .flash-deals-block__title { font-size: 15px; }
    .flash-deals-block__seg { font-size: 14px; min-width: 24px; }
    .seasonal-tiles { grid-template-columns: 1fr 1fr; min-height: 200px; }
    .seasonal-tile { min-height: 110px; padding: 14px; }
    .seasonal-tile__title { font-size: 14px; }
    .seasonal-tiles--1\+3 .seasonal-tile--0 { grid-row: auto; }
}

/* ============================================================
   Video Shelf — carrusel estilo TikTok/Reels (9:16)
   ============================================================ */
.video-shelf {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 14px;
}
@media (min-width: 900px) {
    .video-shelf { grid-template-columns: repeat(6, 1fr); }
}
@media (min-width: 641px) and (max-width: 899px) {
    .video-shelf { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 640px) {
    .video-shelf { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}

/* Card */
.video-card {
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
    display: flex;
    flex-direction: column;
    transition: transform .18s ease, box-shadow .18s ease;
}
.video-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,.14);
}

/* Media area — 9:16 */
.video-card__media {
    position: relative;
    width: 100%;
    aspect-ratio: 9 / 16;
    background: #111;
    overflow: hidden;
    cursor: pointer;
}
.video-card__media img,
.video-card__thumb {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity .2s ease;
    z-index: 1;
}
.video-card__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    z-index: 2;
    transition: opacity .25s ease;
    pointer-events: none;   /* clicks pasan al wrapper .video-card__media */
}
/* Hover: mostrar video, ocultar thumbnail */
.video-card__media:hover .video-card__thumb { opacity: 0; }
.video-card__media:hover .video-card__video { opacity: 1; }

/* Play icon */
.video-card__play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    pointer-events: none;
    transition: opacity .2s ease;
}
.video-card__play-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(0,0,0,.55);
    color: #fff;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 3px;
    backdrop-filter: blur(2px);
    transition: transform .15s ease;
}
.video-card__media:hover .video-card__play { opacity: 0; }

/* Iframe embed (YouTube/Vimeo) — pre-insertado en el DOM, CSS toggle de opacidad */
.video-card__iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    z-index: 4;
    opacity: 0;                 /* invisible por defecto              */
    transition: opacity .25s ease;
    pointer-events: none;       /* el hover sigue en .video-card__media */
    border-radius: inherit;
}
/* En hover: mostrar iframe, ocultar thumbnail y play-icon */
.video-card__media:hover .video-card__iframe  { opacity: 1; }

/* Embed link legacy — ya no se usa pero se mantiene por si acaso */
.video-card__embed-link {
    display: block;
    position: absolute;
    inset: 0;
}
.video-card__placeholder-media {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #1a1a3a 0%, #2d1b69 100%);
}

/* Discount badge */
.video-card__media .badge--discount {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 4;
    font-size: 10px;
    font-weight: 700;
    background: var(--c-danger, #e11d48);
    color: #fff;
    padding: 2px 6px;
    border-radius: 4px;
}

/* Body */
.video-card__body {
    padding: 10px 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1;
}
.video-card__title {
    font-size: 12px;
    font-weight: 600;
    color: var(--c-text, #1a1a2e);
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.video-card__creator {
    font-size: 11px;
    color: var(--c-text-muted, #888);
}
.video-card__compare {
    font-size: 11px;
    color: var(--c-text-muted, #888);
    text-decoration: line-through;
    margin-top: 2px;
}
.video-card__price {
    font-size: 13px;
    font-weight: 700;
    color: var(--c-primary, #FF9A00);
}
.video-card__cta {
    margin-top: 6px;
    display: block;
    text-align: center;
    background: var(--c-primary, #FF9A00);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 6px 8px;
    border-radius: 6px;
    text-decoration: none;
    transition: opacity .15s;
}
.video-card__cta:hover { opacity: .88; }
.video-card__name-only {
    font-size: 11px;
    color: var(--c-text-muted, #888);
    margin-top: 2px;
}


/* ══════════════════════════════════════════════════════════
   Delivery Bar + Modal
   ══════════════════════════════════════════════════════════ */

/* ── Botón de entrega inline en header (estilo Walmart) ─────── */
.dlv-header-btn {
    display: flex;
    align-items: center;
    gap: 9px;
    flex-shrink: 0;
    background: rgba(0,0,0,.14);
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    padding: 6px 10px;
    min-width: 148px;
    max-width: 205px;
    transition: background .15s, border-color .15s;
    text-align: left;
}
.dlv-header-btn:hover {
    background: rgba(0,0,0,.25);
    border-color: rgba(255,255,255,.35);
}
.dlv-header-btn__icon {
    flex-shrink: 0;
    opacity: .85;
}
.dlv-header-btn__text {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
    flex: 1;
}
/* Línea 1: pregunta pequeña (siempre visible) */
.dlv-header-btn__q {
    font-size: 10px;
    font-weight: 400;
    opacity: .70;
    white-space: nowrap;
    line-height: 1.2;
}
/* Línea 2: modo + ubicación (bold, con ellipsis) */
.dlv-header-btn__info {
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
    color: #fff;
}
.dlv-header-btn__info--cta { color: #FFD166; }
/* Chevron */
.dlv-header-btn__chevron {
    flex-shrink: 0;
    opacity: .55;
    transition: transform .18s, opacity .15s;
}
.dlv-header-btn:hover .dlv-header-btn__chevron { opacity: 1; }
.dlv-header-btn[aria-expanded="true"] .dlv-header-btn__chevron {
    transform: rotate(180deg);
    opacity: 1;
}
/* En móvil pequeño: solo icono */
@media (max-width: 600px) {
    .dlv-header-btn__text,
    .dlv-header-btn__chevron { display: none; }
    .dlv-header-btn {
        padding: 7px;
        min-width: unset;
        max-width: unset;
        border-radius: 50%;
    }
}

/* Fix: Chrome UA no pone !important en [hidden]; forzar para overlay y modal */
.dlv-overlay[hidden],
.dlv-modal[hidden] { display: none !important; }

/* ── Overlay ──────────────────────────────────────────────── */
.dlv-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,.50);
    z-index: 1100;
    backdrop-filter: blur(2px);
    animation: dlvFadeIn .18s ease;
}
@keyframes dlvFadeIn { from { opacity:0; } to { opacity:1; } }

/* ── Modal ────────────────────────────────────────────────── */
.dlv-modal {
    position: fixed;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1101;
    background: #fff;
    border-radius: 18px;
    width: min(480px, calc(100vw - 32px));
    max-height: 86vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 24px 72px rgba(0,0,0,.25);
    overflow: hidden;
    animation: dlvSlideIn .22s cubic-bezier(.22,1,.36,1);
}
@keyframes dlvSlideIn {
    from { opacity:0; transform:translate(-50%,-48%) scale(.97); }
    to   { opacity:1; transform:translate(-50%,-50%) scale(1); }
}

.dlv-modal__hd {
    display: flex; align-items: center;
    justify-content: space-between;
    padding: 16px 20px 14px;
    border-bottom: 1px solid var(--c-border);
    flex-shrink: 0;
}
.dlv-modal__title { font-weight: 700; font-size: 15px; }
.dlv-modal__close {
    background: none; border: none; cursor: pointer;
    color: var(--c-text-muted); padding: 6px;
    border-radius: 50%; transition: background .12s, color .12s;
    display: flex; align-items: center; flex-shrink: 0;
}
.dlv-modal__close:hover { background: #f3f4f6; color: var(--c-heading); }

/* Tabs */
.dlv-modal__tabs {
    display: flex;
    border-bottom: 1px solid var(--c-border);
    flex-shrink: 0;
}
.dlv-modal__tab {
    flex: 1;
    display: flex; flex-direction: column;
    align-items: center; gap: 4px;
    padding: 10px 6px;
    background: none; border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 11px; font-weight: 600;
    color: var(--c-text-muted);
    transition: color .15s, border-color .15s, background .15s;
    margin-bottom: -1px;
    line-height: 1.2;
}
.dlv-modal__tab-ico { font-size: 20px; line-height: 1; }
.dlv-modal__tab:hover { color: var(--c-secondary); background: #faf8ff; }
.dlv-modal__tab.is-active {
    color: var(--c-secondary);
    border-bottom-color: var(--c-secondary);
    font-weight: 700;
    background: #faf8ff;
}

/* Body */
.dlv-modal__body {
    flex: 1;
    overflow-y: auto;
    padding: 16px 20px;
    scroll-behavior: smooth;
}

/* Loading spinner */
.dlv-modal__loading {
    display: flex; align-items: center; justify-content: center;
    gap: 10px;
    color: var(--c-text-muted); padding: 36px 0; font-size: 13px;
}
.dlv-spinner {
    display: inline-block;
    width: 18px; height: 18px;
    border: 2.5px solid var(--c-border);
    border-top-color: var(--c-secondary);
    border-radius: 50%;
    animation: dlvSpin .7s linear infinite;
    flex-shrink: 0;
}
@keyframes dlvSpin { to { transform: rotate(360deg); } }

/* Mode banners */
.dlv-mode-banner {
    display: flex; align-items: flex-start; gap: 10px;
    padding: 11px 14px; border-radius: 10px;
    font-size: 13px; line-height: 1.55;
    margin-bottom: 16px;
}
.dlv-mode-banner--envio         { background: #eff6ff; color: #1e40af; }
.dlv-mode-banner--contraentrega { background: #fefce8; color: #713f12; }
.dlv-mode-banner--retiro        { background: #f0fdf4; color: #14532d; }
.dlv-mode-banner__ico           { font-size: 20px; line-height: 1; flex-shrink: 0; margin-top: 1px; }

/* Section title */
.dlv-modal__section-title {
    font-size: 11px; font-weight: 700; text-transform: uppercase;
    letter-spacing: .05em; color: var(--c-text-muted);
    margin: 0 0 10px;
}

/* Misc text */
.dlv-modal__hint  { font-size:13px; color:var(--c-text-muted); margin:0 0 12px; }
.dlv-modal__empty { font-size:13px; color:var(--c-text-muted); text-align:center; padding:28px 0; }
.dlv-modal__error { color:var(--c-danger); font-size:13px; text-align:center; padding:28px 0; }

/* Inline error (inside body or form) */
.dlv-modal__err-inline {
    background: #fef2f2; border: 1px solid #fecaca;
    color: #dc2626; font-size: 12px;
    border-radius: 7px; padding: 8px 12px;
    margin-bottom: 10px;
}

/* Address/pickup lists */
.dlv-modal__list { display:flex; flex-direction:column; gap:8px; margin-bottom:12px; }
.dlv-modal__item {
    display: flex; align-items: flex-start; gap: 12px;
    padding: 12px 14px;
    border: 1.5px solid var(--c-border);
    border-radius: 10px; cursor: pointer;
    transition: border-color .15s, background .15s, box-shadow .15s;
}
.dlv-modal__item:hover { border-color: #c4b5fd; }
.dlv-modal__item:has(input:checked) {
    border-color: var(--c-secondary);
    background: #f5f0ff;
    box-shadow: 0 0 0 3px rgba(138,43,226,.08);
}
.dlv-modal__item input[type=radio] {
    margin-top: 3px; accent-color: var(--c-secondary); flex-shrink: 0;
}
.dlv-modal__item-info     { display:flex; flex-direction:column; gap:3px; min-width:0; }
.dlv-modal__item-info strong { font-size:13px; font-weight:600; }
.dlv-modal__item-info span   { font-size:12px; color:var(--c-text-muted); word-break:break-word; }
.dlv-modal__item-info small  { font-size:11px; color:var(--c-text-muted); }
.dlv-pickup-note             { color:#555 !important; }

/* Address label chip */
.dlv-addr-label {
    display: inline-block; font-size: 10px; font-weight: 700;
    text-transform: uppercase; letter-spacing: .04em;
    background: #ede9fe; color: #6d28d9;
    border-radius: 4px; padding: 1px 5px; margin-bottom: 2px;
}

/* "Gratis" badge on pickup point */
.dlv-badge-free {
    display: inline-block; font-size: 10px; font-weight: 700;
    background: #dcfce7; color: #16a34a;
    border-radius: 4px; padding: 1px 5px; margin-left: 4px;
    vertical-align: 1px;
}

/* Add address link */
.dlv-modal__addlink {
    display: inline-flex; align-items: center;
    background: none; border: none;
    color: var(--c-secondary); font-size: 13px; font-weight: 600;
    cursor: pointer; padding: 6px 0;
    transition: opacity .12s;
}
.dlv-modal__addlink:hover { opacity: .75; }

/* Guest note */
.dlv-guest-note {
    display: flex; align-items: flex-start; gap: 12px;
    background: #f0fdf4; border: 1px solid #bbf7d0;
    border-radius: 10px; padding: 14px 16px;
    color: #15803d; font-size: 13px;
}
.dlv-guest-note svg { flex-shrink:0; margin-top:2px; }
.dlv-guest-note p   { margin:3px 0 0; font-size:12px; opacity:.8; }

/* Address form */
.dlv-modal__addr-form {
    border-top: 1px dashed var(--c-border);
    padding-top: 16px; margin-top: 12px;
}
.dlv-addr-form      { display:flex; flex-direction:column; gap:10px; }
.dlv-form-row       { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.dlv-form-field     { display:flex; flex-direction:column; gap:4px; font-size:12px; font-weight:600; color:var(--c-heading); }
.dlv-form-inp       { padding:8px 10px; border:1.5px solid var(--c-border); border-radius:7px; font-size:13px; width:100%; box-sizing:border-box; transition:border-color .15s,box-shadow .15s; }
.dlv-form-inp:focus { outline:none; border-color:var(--c-secondary); box-shadow:0 0 0 3px rgba(138,43,226,.10); }
.dlv-save-btn       { margin-top:4px; }

/* Footer */
.dlv-modal__ft {
    padding: 12px 20px 14px;
    border-top: 1px solid var(--c-border);
    flex-shrink: 0;
    display: flex; flex-direction: column; gap: 8px;
}
.dlv-modal__confirm-btn { width: 100%; }

/* Mobile bottom sheet */
@media (max-width: 520px) {
    .dlv-modal {
        border-radius: 20px 20px 0 0;
        bottom: 0; top: auto; left: 0; right: 0;
        transform: none; width: 100%; max-height: 92vh;
        animation: dlvSheetUp .25s cubic-bezier(.22,1,.36,1);
    }
    @keyframes dlvSheetUp {
        from { transform:translateY(100%); opacity:.6; }
        to   { transform:translateY(0); opacity:1; }
    }
    .dlv-form-row { grid-template-columns: 1fr; }
}

/* ================================================================
   FAQ Page
   ================================================================ */

/* Hero */
.faq-hero { background: linear-gradient(135deg, #f5f0ff 0%, #fef3f9 100%); padding: 56px 0 48px; text-align: center; border-bottom: 1px solid #ede5f9; }
.faq-hero__inner { max-width: 680px; margin: 0 auto; }
.faq-hero__badge { display: inline-flex; align-items: center; gap: 6px; background: #ede5f9; color: var(--c-primary,#8A2BE2); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; padding: 5px 12px; border-radius: 20px; margin-bottom: 16px; }
.faq-hero__title { font-size: clamp(26px, 5vw, 40px); font-weight: 900; color: #1a1a1a; margin: 0 0 12px; line-height: 1.15; }
.faq-hero__sub { font-size: 16px; color: #666; margin: 0 0 28px; line-height: 1.5; }

/* Search */
.faq-search-wrap { position: relative; }
.faq-search-box { position: relative; display: flex; align-items: center; }
.faq-search-icon { position: absolute; left: 16px; color: #aaa; pointer-events: none; flex-shrink: 0; }
.faq-search-input { width: 100%; padding: 14px 48px 14px 46px; font-size: 15px; border: 2px solid #e0d5f5; border-radius: 12px; outline: none; background: #fff; color: #333; transition: border-color .2s, box-shadow .2s; box-shadow: 0 2px 12px rgba(138,43,226,.06); }
.faq-search-input:focus { border-color: var(--c-primary,#8A2BE2); box-shadow: 0 0 0 4px rgba(138,43,226,.1); }
.faq-search-input::placeholder { color: #bbb; }
.faq-search-clear { position: absolute; right: 12px; background: none; border: none; cursor: pointer; padding: 6px; color: #999; border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: color .15s, background .15s; }
.faq-search-clear:hover { color: #333; background: #f0f0f0; }
.faq-search-count { font-size: 12px; color: #888; margin: 8px 0 0; text-align: left; min-height: 18px; }

/* Stats bar */
.faq-stats { background: #fff; border-bottom: 1px solid #f0ebff; padding: 10px 0; }
.faq-stats__inner { display: flex; align-items: center; justify-content: center; gap: 24px; flex-wrap: wrap; }
.faq-stat { font-size: 13px; color: #888; }
.faq-stat strong { color: var(--c-primary,#8A2BE2); font-weight: 700; }
.faq-stat-sep { width: 4px; height: 4px; background: #ddd; border-radius: 50%; }

/* Layout */
.faq-main { display: grid; grid-template-columns: 256px 1fr; gap: 40px; padding-top: 40px; padding-bottom: 60px; align-items: start; }

/* Pills (mobile) */
.faq-pills { display: none; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.faq-pill { background: #f5f0ff; color: #555; border: 1.5px solid #e5d5fa; border-radius: 20px; padding: 6px 14px; font-size: 13px; font-weight: 600; cursor: pointer; transition: background .15s, color .15s, border-color .15s; display: inline-flex; align-items: center; gap: 5px; }
.faq-pill:hover { background: #ede5f9; color: #333; }
.faq-pill.is-active { background: var(--c-primary,#8A2BE2); color: #fff; border-color: var(--c-primary,#8A2BE2); }
.faq-pill__count { font-size: 10px; font-weight: 700; background: rgba(0,0,0,.12); border-radius: 10px; padding: 1px 6px; }
.faq-pill.is-active .faq-pill__count { background: rgba(255,255,255,.25); }

/* Sidebar nav */
.faq-sidebar { position: sticky; top: 90px; }
.faq-cat-nav { background: #fff; border: 1px solid #ede8f7; border-radius: 14px; overflow: hidden; box-shadow: 0 2px 12px rgba(138,43,226,.06); }
.faq-cat-nav__title { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: #aaa; padding: 16px 18px 8px; }
.faq-cat-nav__list { list-style: none; margin: 0; padding: 0 0 8px; }
.faq-cat-btn { width: 100%; background: none; border: none; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 10px 18px; text-align: left; border-radius: 0; transition: background .15s; color: #555; }
.faq-cat-btn:hover { background: #f9f6ff; color: #333; }
.faq-cat-btn.is-active { background: #f3eeff; color: var(--c-primary,#8A2BE2); font-weight: 700; }
.faq-cat-btn.is-active .faq-cat-btn__icon { color: var(--c-primary,#8A2BE2); }
.faq-cat-btn__icon { flex-shrink: 0; color: #bbb; display: flex; align-items: center; transition: color .15s; }
.faq-cat-btn__label { flex: 1; font-size: 13px; }
.faq-cat-btn__count { font-size: 11px; font-weight: 700; background: #f0ebfa; color: #888; border-radius: 10px; padding: 2px 7px; }
.faq-cat-btn.is-active .faq-cat-btn__count { background: #e0d5fa; color: var(--c-primary,#8A2BE2); }

/* Sidebar contact */
.faq-sidebar-contact { border-top: 1px solid #f0ebff; padding: 16px 18px; margin-top: 4px; }
.faq-sidebar-contact__title { font-size: 12px; font-weight: 700; color: #888; margin: 0 0 10px; }
.faq-sidebar-contact__link { display: flex; align-items: center; gap: 7px; font-size: 12px; color: #555; text-decoration: none; padding: 5px 0; transition: color .15s; }
.faq-sidebar-contact__link:hover { color: var(--c-primary,#8A2BE2); }
.faq-sidebar-contact__link--wa { color: #25D366; font-weight: 600; }
.faq-sidebar-contact__link--wa:hover { color: #1da851; }

/* Sections */
.faq-section { margin-bottom: 40px; }
.faq-section__header { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 2px solid #f0ebff; }
.faq-section__icon { width: 36px; height: 36px; background: #f3eeff; border-radius: 10px; display: flex; align-items: center; justify-content: center; color: var(--c-primary,#8A2BE2); flex-shrink: 0; }
.faq-section__title { font-size: 18px; font-weight: 800; color: #1a1a1a; margin: 0; flex: 1; }
.faq-section__count { font-size: 11px; color: #aaa; font-weight: 600; white-space: nowrap; }

/* Accordion items */
.faq-accordion { display: flex; flex-direction: column; gap: 8px; }
.faq-item { background: #fff; border: 1.5px solid #ede8f7; border-radius: 12px; overflow: hidden; transition: border-color .2s, box-shadow .2s; }
.faq-item:hover { border-color: #d5c5f5; }
.faq-item.is-open { border-color: var(--c-primary,#8A2BE2); box-shadow: 0 4px 20px rgba(138,43,226,.1); }
.faq-item__q { width: 100%; background: none; border: none; cursor: pointer; display: flex; align-items: center; gap: 12px; padding: 18px 20px; text-align: left; }
.faq-item__q-text { flex: 1; font-size: 15px; font-weight: 600; color: #1a1a1a; line-height: 1.4; }
.faq-item__toggle { flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; background: #f3eeff; display: flex; align-items: center; justify-content: center; transition: background .2s, transform .2s; }
.faq-item.is-open .faq-item__toggle { background: var(--c-primary,#8A2BE2); transform: rotate(0deg); }
.faq-item__plus { display: block; color: var(--c-primary,#8A2BE2); }
.faq-item__minus { display: none; color: #fff; }
.faq-item.is-open .faq-item__plus { display: none; }
.faq-item.is-open .faq-item__minus { display: block; }
.faq-item__body { border-top: 1px solid #f0ebff; }
.faq-item__a { padding: 18px 20px 14px; font-size: 14px; color: #444; line-height: 1.7; }
.faq-item__a strong { color: #1a1a1a; }
.faq-item__a a { color: var(--c-primary,#8A2BE2); text-decoration: underline; }
.faq-item__a a:hover { color: var(--c-secondary,#FF6B35); }
.faq-item__a ul, .faq-item__a ol { padding-left: 20px; margin: 8px 0; }
.faq-item__a li { margin-bottom: 4px; }
.faq-item__footer { display: flex; align-items: center; gap: 8px; padding: 10px 20px 14px; font-size: 12px; color: #aaa; }
.faq-vote { background: none; border: 1px solid #e0e0e0; border-radius: 20px; padding: 4px 12px; font-size: 12px; color: #888; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; transition: border-color .15s, color .15s, background .15s; }
.faq-vote:hover { border-color: var(--c-primary,#8A2BE2); color: var(--c-primary,#8A2BE2); background: #f3eeff; }
.faq-voted { color: var(--c-primary,#8A2BE2); font-weight: 600; }

/* Highlight de búsqueda */
.faq-highlight { background: #fff3a3; color: #333; border-radius: 2px; padding: 0 2px; font-style: normal; }

/* Sin resultados */
.faq-no-results { text-align: center; padding: 60px 20px; color: #aaa; }
.faq-no-results svg { display: block; margin: 0 auto 16px; }
.faq-no-results p { font-size: 15px; margin: 0 0 16px; color: #888; }
.faq-no-results strong { color: #555; }

/* CTA */
.faq-cta { background: linear-gradient(135deg, var(--c-primary,#8A2BE2) 0%, #5e1ba3 100%); color: #fff; padding: 60px 0; text-align: center; }
.faq-cta__inner { max-width: 560px; margin: 0 auto; }
.faq-cta__icon { width: 72px; height: 72px; background: rgba(255,255,255,.15); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; color: #fff; }
.faq-cta__title { font-size: 28px; font-weight: 900; margin: 0 0 10px; }
.faq-cta__sub { font-size: 15px; opacity: .85; margin: 0 0 28px; line-height: 1.5; }
.faq-cta__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 20px; }
.faq-cta__btn { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; padding: 12px 24px; border-radius: 10px; text-decoration: none; transition: transform .15s, box-shadow .15s; }
.faq-cta__btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,.2); }
.btn--success { background: #25D366; color: #fff; border: none; }
.btn--success:hover { background: #1da851; }
.btn--outline { background: rgba(255,255,255,.15); color: #fff; border: 2px solid rgba(255,255,255,.5); }
.btn--outline:hover { background: rgba(255,255,255,.25); border-color: #fff; }
.faq-cta__note { font-size: 12px; opacity: .65; margin: 0; }
.faq-cta__note a { color: rgba(255,255,255,.85); text-decoration: underline; }
.faq-cta__note a:hover { color: #fff; }

/* Responsive */
@media (max-width: 900px) {
    .faq-main { grid-template-columns: 1fr; }
    .faq-sidebar { position: static; }
    .faq-cat-nav { display: none; }
    .faq-pills { display: flex; }
}
@media (max-width: 600px) {
    .faq-hero { padding: 36px 0 28px; }
    .faq-hero__title { font-size: 24px; }
    .faq-hero__sub { font-size: 14px; margin-bottom: 20px; }
    .faq-search-input { font-size: 14px; padding: 12px 42px 12px 40px; }
    .faq-main { padding-top: 24px; padding-bottom: 40px; }
    .faq-section__title { font-size: 16px; }
    .faq-item__q { padding: 14px 16px; }
    .faq-item__q-text { font-size: 14px; }
    .faq-item__a { padding: 14px 16px 10px; font-size: 13px; }
    .faq-cta { padding: 44px 0; }
    .faq-cta__title { font-size: 22px; }
    .faq-cta__actions { flex-direction: column; align-items: center; }
}

/* ================================================================
   CONTACT PAGE  (.ct-*) — layout reuses .faq-* classes
   ================================================================ */

/* ── Channel pills in hero (always flex, unlike faq-pills) ────── */
.ct-channel-pills { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 8px; }
a.faq-pill { cursor: pointer; }
.ct-pill--wa,
.ct-pill--wa:hover { background: #25D366 !important; color: #fff !important; border-color: #25D366 !important; }
.ct-pill--wa .faq-pill__count { background: rgba(255,255,255,.25) !important; color: #fff !important; }

/* ── Mobile: show form first, sidebar below ───────────────────── */
@media (max-width: 900px) {
    .ct-contact-layout .faq-sidebar { order: 2; }
    .ct-contact-layout .faq-content { order: 1; }
}

/* ── Anchor links styled as faq-cat-btn ───────────────────────── */
a.faq-cat-btn { text-decoration: none; }
.ct-cat-btn--wa:hover { background: #e6fdef; }
.ct-cat-btn--wa .faq-cat-btn__icon { color: #25D366; }
.ct-cat-btn--wa .faq-cat-btn__count { background: #e6fdef; color: #25D366; }
.ct-cat-btn--wa:hover .faq-cat-btn__icon { color: #25D366; }

/* ── Hours (inside faq-sidebar-contact) ───────────────────────── */
.ct-hours { display: flex; flex-direction: column; gap: 6px; margin-bottom: 4px; }
.ct-hours__row { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: #444; }
.ct-hours__row--off span { color: #bbb; }
.ct-hours__row--off span:last-child { color: #e74c3c; font-weight: 600; }
.ct-hours__note { font-size: 11px; color: #bbb; margin: 6px 0 0; }

/* ── Social icons ─────────────────────────────────────────────── */
.ct-social-row { display: flex; gap: 8px; flex-wrap: wrap; }
.ct-social-btn { width: 32px; height: 32px; border-radius: 50%; background: #f0ebfa; color: #888; display: flex; align-items: center; justify-content: center; text-decoration: none; transition: background .15s, color .15s; }
.ct-social-btn:hover { background: #e0d5fa; color: var(--c-secondary, #8A2BE2); }
.ct-social-btn--wa { background: #e6fdef; color: #25D366; }
.ct-social-btn--wa:hover { background: #25D366; color: #fff; }

/* ── Form card ────────────────────────────────────────────────── */
.ct-form-card { background: #fff; border: 1.5px solid #ede8f7; border-radius: 12px; overflow: hidden; padding: 28px; }

/* ── Form grid & fields ───────────────────────────────────────── */
.ct-form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.ct-label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 700; color: #333; }
.ct-label--full { grid-column: 1 / -1; }
.ct-required { color: #e74c3c; }
.ct-optional  { font-size: 11px; font-weight: 400; color: #aaa; margin-left: 4px; }

.ct-input {
    width: 100%; padding: 10px 13px;
    border: 1.5px solid #ddd8f0; border-radius: 9px;
    font-size: 14px; color: #333; background: #fafafe;
    transition: border-color .2s, box-shadow .2s;
    outline: none; box-sizing: border-box; line-height: 1.4;
}
.ct-input:focus { border-color: var(--c-secondary, #8A2BE2); box-shadow: 0 0 0 3px rgba(138,43,226,.1); background: #fff; }
.ct-input.is-invalid { border-color: #e74c3c; box-shadow: 0 0 0 3px rgba(231,76,60,.08); }
.ct-input::placeholder { color: #bbb; }
.ct-select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23aaa'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 32px; cursor: pointer; }
.ct-textarea { resize: vertical; min-height: 130px; font-family: inherit; }
.ct-char-count { font-size: 11px; color: #aaa; text-align: right; margin-top: 2px; }
.ct-field-err  { font-size: 12px; color: #e74c3c; min-height: 16px; }

.ct-form__footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 22px; flex-wrap: wrap; }
.ct-form__privacy { font-size: 12px; color: #aaa; margin: 0; display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.ct-form__privacy a { color: #999; text-decoration: underline; }
.ct-form__privacy a:hover { color: var(--c-secondary, #8A2BE2); }

/* ── Submit button ────────────────────────────────────────────── */
.ct-submit { display: inline-flex; align-items: center; gap: 8px; padding: 12px 26px; font-size: 15px; font-weight: 700; border-radius: 10px; cursor: pointer; position: relative; overflow: hidden; transition: background .15s, transform .12s; }
.ct-submit__icon { display: flex; align-items: center; transition: transform .15s; }
.ct-submit:not(.is-loading):hover .ct-submit__icon { transform: translateX(3px); }
.ct-submit__spinner { display: none; }
.ct-submit.is-loading .ct-submit__text,
.ct-submit.is-loading .ct-submit__icon { opacity: 0; }
.ct-submit.is-loading .ct-submit__spinner { display: block; position: absolute; top: 50%; left: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px; border: 2.5px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: ctSpin .7s linear infinite; }
@keyframes ctSpin { to { transform: rotate(360deg); } }

/* ── Alerts & success ─────────────────────────────────────────── */
.ct-alert { border-radius: 10px; padding: 12px 16px; font-size: 14px; font-weight: 500; margin-bottom: 18px; }
.ct-alert--success { background: #e6fdef; color: #15803d; border-left: 4px solid #25D366; }
.ct-alert--error   { background: #fef2f2; color: #dc2626; border-left: 4px solid #e74c3c; }

.ct-success { text-align: center; padding: 32px 20px 20px; }
.ct-success__icon   { margin: 0 auto 20px; display: flex; align-items: center; justify-content: center; }
.ct-success__title  { font-size: 22px; font-weight: 900; color: #1a1a1a; margin: 0 0 10px; }
.ct-success__body   { font-size: 15px; color: #555; margin: 0 0 24px; line-height: 1.55; }
.ct-success__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 640px) {
    .ct-channel-pills { gap: 8px; }
    .ct-form-card { padding: 18px 14px; }
    .ct-form__grid { grid-template-columns: 1fr; }
    .ct-form__footer { flex-direction: column; align-items: flex-start; }
    .ct-submit { width: 100%; justify-content: center; }
    .ct-success__actions { flex-direction: column; align-items: center; }
    .ct-success__actions .btn { width: 100%; justify-content: center; }
}
@media (max-width: 480px) {
    .ct-input { font-size: 16px; } /* iOS zoom prevention */
}

/* ══ Sobre Nosotros (sn-*) ═════════════════════════════════════════════════
   Reutiliza clases faq-* para layout — solo estilos de contenido específicos
   ═══════════════════════════════════════════════════════════════════════════ */
.sn-card {
    background: #fff;
    border: 1.5px solid #ede8f7;
    border-radius: 12px;
    padding: 28px 32px;
}
.sn-prose { font-size: 15px; color: #444; line-height: 1.78; }
.sn-prose p { margin: 0 0 14px; }
.sn-prose p:last-child { margin-bottom: 0; }
.sn-prose strong { color: #1a1a2e; }

/* Grid de valores (2×2) */
.sn-values {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 20px;
}
.sn-value {
    background: #f8f5ff;
    border: 1.5px solid #ede8f7;
    border-radius: 10px;
    padding: 20px 22px;
}
.sn-value__icon {
    width: 38px; height: 38px;
    background: var(--c-secondary, #8A2BE2);
    color: #fff;
    border-radius: 9px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 12px;
}
.sn-value__title { font-size: 14px; font-weight: 700; color: #1a1a2e; margin: 0 0 6px; }
.sn-value__body  { font-size: 13px; color: #555; margin: 0; line-height: 1.55; }

/* Lista de características (íconos naranja) */
.sn-features { display: flex; flex-direction: column; gap: 18px; margin-top: 20px; }
.sn-feature  { display: flex; gap: 16px; align-items: flex-start; }
.sn-feature__icon {
    flex-shrink: 0;
    width: 42px; height: 42px;
    background: linear-gradient(135deg, #FF9A00, #e08800);
    color: #fff;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
}
.sn-feature__title { font-size: 15px; font-weight: 700; color: #1a1a2e; margin: 0 0 5px; }
.sn-feature__desc  { font-size: 13.5px; color: #555; margin: 0; line-height: 1.55; }

@media (max-width: 640px) {
    .sn-values { grid-template-columns: 1fr; }
    .sn-card   { padding: 20px 16px; }
}
@media (max-width: 480px) {
    .sn-feature { flex-direction: column; }
    .sn-feature__icon { width: 36px; height: 36px; }
}

/* ══ Políticas / Términos (pol-*) ══════════════════════════════════════════
   Usado en politicas_static.php — reutiliza faq-* para layout y sn-* para tarjetas
   ═══════════════════════════════════════════════════════════════════════════ */

/* Sub-encabezados dentro de sn-card */
.pol-subhead {
    font-size: 14px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 22px 0 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid #f0eaff;
}
.sn-card > .pol-subhead:first-child { margin-top: 0; }

/* Listas dentro de sección pol */
.pol-list {
    padding-left: 20px;
    margin: 4px 0 0;
    font-size: 14px;
    color: #444;
    line-height: 1.75;
}
.pol-list li { margin-bottom: 6px; }
.pol-list li:last-child { margin-bottom: 0; }
.pol-list strong { color: #1a1a2e; }

/* Cajas de alerta (color coded) */
.pol-alert {
    border-radius: 10px;
    padding: 14px 18px;
    margin: 20px 0;
    font-size: 14px;
    line-height: 1.65;
    color: #333;
}
.pol-alert strong {
    display: block;
    margin-bottom: 5px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    opacity: .65;
}
.pol-alert--purple { background: #f3ecff; border-left: 4px solid #8A2BE2; }
.pol-alert--green  { background: #edfff3; border-left: 4px solid #16a34a; }
.pol-alert--orange { background: #fff7ed; border-left: 4px solid #ea580c; }
.pol-alert--blue   { background: #eff6ff; border-left: 4px solid #2563eb; }

/* Pasos numerados */
.pol-steps {
    counter-reset: polstep;
    padding: 0;
    list-style: none;
    margin: 14px 0 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.pol-steps li {
    counter-increment: polstep;
    display: flex;
    gap: 14px;
    font-size: 14px;
    line-height: 1.65;
    color: #444;
}
.pol-steps li::before {
    content: counter(polstep);
    min-width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--c-secondary, #8A2BE2);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 12px;
    flex-shrink: 0;
    margin-top: 3px;
}

/* Tabla de plazos */
.pol-table-wrap { overflow-x: auto; margin: 14px 0 0; border-radius: 10px; border: 1.5px solid #ede8f7; }
.pol-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.pol-table th {
    background: var(--c-secondary, #8A2BE2);
    color: #fff;
    padding: 10px 14px;
    text-align: left;
    font-weight: 700;
    white-space: nowrap;
}
.pol-table td {
    padding: 10px 14px;
    border-bottom: 1px solid #f0eaff;
    vertical-align: top;
    color: #444;
}
.pol-table tr:last-child td { border-bottom: none; }
.pol-table tr:nth-child(even) td { background: #faf8ff; }
