/*
 * Sovengrid · acabado de la tienda (cierre integral 18/11/2026)
 * ÚNICA hoja de acabado. Se carga la última del <head> (partial store.partials.sg-acabado-assets) y sustituye a
 * sg-cierre-movil.css y sg-activation-modes.css. Solo presentación: no cambia formularios, límites, precios ni stock.
 * Índice: 1 tokens · 2 botones · 3 selectores (activación, dispositivos, duración, opción) · 4 ficha · 5 barra de compra
 *         6 tarjetas · 7 carrito · 8 mercado/moneda · 9 checkout · 10 flotantes, cookies, cabecera · 11 respuesta visual
 */

/* 1 ── Tokens ────────────────────────────────────────────────────────────────────────────────────────────────── */
:root {
    --sgx-ink: #14161a;
    --sgx-text: #2a2d33;
    --sgx-muted: #667085;
    --sgx-line: #e3e5e9;
    --sgx-line-strong: #c9ced6;
    --sgx-surface: #ffffff;
    --sgx-soft: #f7f8fa;
    --sgx-soft-2: #f1f3f6;
    --sgx-cta: #1f5ad6;
    --sgx-cta-hover: #1849b3;
    --sgx-cta-soft: #eef3fd;
    --sgx-success: #1f7a4a;
    --sgx-warn: #8b5b13;
    --sgx-danger: #b42318;
    --sgx-r-control: 12px;
    --sgx-r-card: 16px;
    --sgx-shadow-1: 0 1px 2px rgba(16, 24, 40, .05);
    --sgx-shadow-2: 0 1px 2px rgba(16, 24, 40, .04), 0 4px 14px rgba(16, 24, 40, .06);
    --sgx-focus: 0 0 0 3px rgba(31, 90, 214, .28);
    --sgx-ease: cubic-bezier(.2, .7, .2, 1);
}

/* 2 ── Sistema de botones ───────────────────────────────────────────────────────────────────────────────────── */
/* Principal del recorrido de compra: añadir, continuar, pagar, ver producto. Mismo azul Sovengrid, radio y altura. */
.sg-commercial-product .sg-primary-button,
.sg-product-card-primary,
.sg-cart-mobile-checkout:not(.is-disabled),
.sg-cart-summary a.bg-neutral-900,
.sg-checkout-submit,
.sg-mobile-purchase-bar__button {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    border: 1px solid var(--sgx-cta) !important;
    border-radius: var(--sgx-r-control) !important;
    background: var(--sgx-cta) !important;
    color: #fff !important;
    font-size: 15px !important;
    font-weight: 650 !important;
    letter-spacing: 0;
    box-shadow: 0 1px 2px rgba(31, 90, 214, .22);
    transition: background-color .16s var(--sgx-ease), box-shadow .16s var(--sgx-ease), transform .12s var(--sgx-ease);
}
.sg-product-card-primary { min-height: 42px; font-size: 14px !important; }
:is(.sg-commercial-product .sg-primary-button, .sg-product-card-primary, .sg-cart-mobile-checkout, .sg-cart-summary a.bg-neutral-900, .sg-checkout-submit, .sg-mobile-purchase-bar__button):hover:not(:disabled) {
    background: var(--sgx-cta-hover) !important;
    border-color: var(--sgx-cta-hover) !important;
    box-shadow: 0 2px 8px rgba(31, 90, 214, .26);
}
:is(.sg-commercial-product .sg-primary-button, .sg-product-card-primary, .sg-cart-mobile-checkout, .sg-cart-summary a.bg-neutral-900, .sg-checkout-submit, .sg-mobile-purchase-bar__button):active:not(:disabled) { transform: translateY(1px); }
.sg-cart-mobile-checkout.is-disabled { border-radius: var(--sgx-r-control) !important; }

/* Secundario: «Comprar ahora» en ficha, «Aplicar» cupón. Contorno sobrio, misma altura. */
.sg-commercial-product .sg-secondary-button,
.sg-cart-coupon__form button {
    min-height: 48px;
    border: 1px solid var(--sgx-line-strong) !important;
    border-radius: var(--sgx-r-control) !important;
    background: #fff !important;
    color: var(--sgx-ink) !important;
    font-weight: 650 !important;
    transition: border-color .16s var(--sgx-ease), background-color .16s var(--sgx-ease);
}
.sg-cart-coupon__form button { min-height: 44px; }
:is(.sg-commercial-product .sg-secondary-button, .sg-cart-coupon__form button):hover:not(:disabled) { border-color: var(--sgx-ink) !important; background: var(--sgx-soft) !important; }

/* Eliminar: acción destructiva discreta (texto rojo, sin bloque rojo). */
.sg-cart-remove-form button {
    min-height: 40px;
    border: 1px solid transparent !important;
    border-radius: 10px !important;
    background: transparent !important;
    color: var(--sgx-danger) !important;
    font-weight: 600 !important;
}
.sg-cart-remove-form button:hover { background: #fef3f2 !important; border-color: #fbd5d1 !important; }

/* Acciones utilitarias de la ficha (comparar, guardar, comparar opciones): píldoras de 38 px. */
.sg-product-utility-actions :is(a, button) {
    min-height: 38px;
    border-radius: 999px !important;
    border-color: var(--sgx-line) !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    box-shadow: none !important;
}
.sg-product-utility-actions :is(a, button):hover { border-color: var(--sgx-line-strong) !important; background: var(--sgx-soft) !important; }

/* Foco visible y coherente en toda la tienda. */
/* Contenedores con foco programático (tabindex=-1, p. ej. paneles y diálogos) no muestran anillo: solo los controles. */
.sg-store-page :is(a, button, input, select, textarea, summary, [tabindex]:not([tabindex="-1"])):focus-visible {
    outline: none !important;
    box-shadow: var(--sgx-focus) !important;
    border-radius: 10px;
}

/* 3 ── Selectores de opción (ficha, vista rápida, carrito) ──────────────────────────────────────────────────── */
.sg-commercial-product .sg-selection-block { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--sgx-line); }
.sg-commercial-product .sg-selection-heading { align-items: baseline; margin-bottom: 10px; }
.sg-commercial-product .sg-selection-heading h2 { font-size: 15px; font-weight: 700; color: var(--sgx-ink); letter-spacing: -.005em; }
.sg-commercial-product .sg-selection-heading span { font-size: 12.5px; color: var(--sgx-muted); }

/* Rejilla según cantidad de opciones: 2 → 2, 3 → 3, 4 → 2×2 (sin la «huérfana»), 5+ → 3. */
.sg-commercial-product .sg-mode-grid { display: grid; gap: 10px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sg-commercial-product .sg-mode-grid:has(> :nth-child(2):last-child),
.sg-commercial-product .sg-mode-grid:has(> :nth-child(4):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sg-commercial-product .sg-mode-grid:has(> :only-child) { grid-template-columns: minmax(0, 1fr); }

/* Tarjeta de opción: nombre, descripción, indicador de selección; sin acentos de color por modalidad. */
.sg-commercial-product .sg-mode-button,
.sg-office-choice-option,
.sg-account-duration-option,
.sg-qv-mode-option {
    position: relative;
    display: flex !important;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    min-height: 0 !important;
    padding: 13px 40px 13px 14px !important;
    border: 1px solid var(--sgx-line) !important;
    border-left-width: 1px !important;
    border-radius: var(--sgx-r-control) !important;
    background: var(--sgx-surface) !important;
    box-shadow: none !important;
    color: var(--sgx-text) !important;
    text-align: left !important;
    cursor: pointer;
    transition: border-color .15s var(--sgx-ease), background-color .15s var(--sgx-ease), box-shadow .15s var(--sgx-ease);
}
.sg-commercial-product .sg-mode-button strong,
.sg-office-choice-option strong,
.sg-account-duration-option strong { display: block; width: 100%; text-align: left !important; font-size: 14px !important; font-weight: 650 !important; line-height: 1.3; color: var(--sgx-ink); }
.sg-commercial-product .sg-mode-button small,
.sg-office-choice-option small,
.sg-account-duration-option small { display: block; width: 100%; text-align: left !important; margin-top: 3px !important; font-size: 12px !important; line-height: 1.4 !important; color: var(--sgx-muted) !important; }
/* Indicador tipo radio arriba a la derecha. */
.sg-commercial-product .sg-mode-button::before,
.sg-office-choice-option::before,
.sg-account-duration-option::before,
.sg-qv-mode-option::before {
    content: "";
    position: absolute;
    top: 14px;
    right: 14px;
    width: 16px;
    height: 16px;
    border: 1.5px solid var(--sgx-line-strong);
    border-radius: 999px;
    background: #fff;
    transition: border-color .15s var(--sgx-ease), box-shadow .15s var(--sgx-ease);
}
:is(.sg-commercial-product .sg-mode-button, .sg-office-choice-option, .sg-account-duration-option, .sg-qv-mode-option):hover {
    border-color: var(--sgx-line-strong) !important;
    background: var(--sgx-soft) !important;
}
:is(.sg-commercial-product .sg-mode-button.is-active, .sg-office-choice-option.is-active, .sg-account-duration-option.is-active, .sg-qv-mode-option.is-active, .sg-qv-mode-option[aria-pressed="true"]) {
    border-color: var(--sgx-ink) !important;
    background: var(--sgx-soft) !important;
    box-shadow: inset 0 0 0 1px var(--sgx-ink) !important;
}
:is(.sg-commercial-product .sg-mode-button.is-active, .sg-office-choice-option.is-active, .sg-account-duration-option.is-active, .sg-qv-mode-option.is-active, .sg-qv-mode-option[aria-pressed="true"])::before {
    border-color: var(--sgx-ink);
    box-shadow: inset 0 0 0 4px #fff;
    background: var(--sgx-ink);
}

/* Dispositivos / duración: control segmentado alineado a la izquierda, sin bloque negro. */
.sg-commercial-product .sg-device-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
    justify-content: stretch !important;
    align-items: stretch !important;
    gap: 8px !important;
    min-height: 0 !important;
    max-width: 520px;
}
.sg-commercial-product .sg-device-button {
    width: auto !important;
    min-height: 56px !important;
    padding: 9px 10px !important;
    border: 1px solid var(--sgx-line) !important;
    border-radius: var(--sgx-r-control) !important;
    background: var(--sgx-surface) !important;
    color: var(--sgx-text) !important;
    text-align: center;
    box-shadow: none !important;
    transition: border-color .15s var(--sgx-ease), background-color .15s var(--sgx-ease), box-shadow .15s var(--sgx-ease);
}
.sg-commercial-product .sg-device-button strong { font-size: 18px !important; font-weight: 700 !important; line-height: 1.1 !important; color: var(--sgx-ink) !important; }
.sg-commercial-product .sg-device-button small { margin-top: 3px !important; font-size: 11.5px !important; color: var(--sgx-muted) !important; }
.sg-commercial-product .sg-device-button:hover { border-color: var(--sgx-line-strong) !important; background: var(--sgx-soft) !important; }
.sg-commercial-product .sg-device-button.is-active {
    border-color: var(--sgx-ink) !important;
    background: var(--sgx-soft) !important;
    box-shadow: inset 0 0 0 1px var(--sgx-ink) !important;
    color: var(--sgx-ink) !important;
}
.sg-commercial-product .sg-device-button.is-active small { color: var(--sgx-text) !important; }
.sg-commercial-product .sg-device-single {
    width: fit-content !important;
    min-height: 0 !important;
    justify-content: flex-start !important;
    gap: 8px !important;
    padding: 10px 14px !important;
    border: 1px solid var(--sgx-line) !important;
    border-radius: var(--sgx-r-control) !important;
    background: var(--sgx-soft) !important;
}
.sg-commercial-product .sg-device-single strong { font-size: 16px !important; }

/* Agotado / no disponible: opción visible y atenuada, superficie plana y estado en texto (sin rayado ni pastilla). */
:is(.sg-commercial-product .sg-mode-button, .sg-commercial-product .sg-device-button, .sg-office-choice-option, .sg-account-duration-option)[data-sg-stock-state="sold_out"],
:is(.sg-office-choice-option, .sg-account-duration-option).sg-option-sold-out {
    background: #f7f8fa !important;
    border-style: solid !important;
    border-color: var(--sgx-line) !important;
}
:is(.sg-commercial-product .sg-mode-button, .sg-commercial-product .sg-device-button)[data-sg-stock-state="sold_out"] :is(strong, small) { color: #8a909b !important; }
.sg-commercial-product :is(.sg-mode-button, .sg-device-button, .sg-device-single, .sg-account-duration-option, .sg-office-choice-option)[data-sg-stock-state="sold_out"]::after,
.sg-commercial-product :is(.sg-account-duration-option, .sg-office-choice-option).sg-option-sold-out::after {
    margin: 5px 0 0 !important;
    padding: 0 !important;
    border-radius: 0 !important;
    background: none !important;
    color: #6b7280 !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    letter-spacing: 0;
}
.sg-commercial-product .sg-device-button[data-sg-stock-state="sold_out"]::after { margin-inline: auto !important; }

/* Detalle de la opción elegida: superficie suave en lugar de borde negro grueso. */
.sg-commercial-product .sg-variant-detail {
    margin-top: 18px !important;
    padding: 16px 18px 14px !important;
    border: 1px solid var(--sgx-line) !important;
    border-radius: var(--sgx-r-card) !important;
    background: var(--sgx-soft) !important;
}
.sg-commercial-product .sg-variant-detail h2 { font-size: 16px !important; color: var(--sgx-ink); }
.sg-commercial-product .sg-variant-detail > p { font-size: 13.5px; }
.sg-commercial-product .sg-variant-meta { border-top-color: var(--sgx-line) !important; }
.sg-commercial-product .sg-variant-meta > span { border-bottom-color: var(--sgx-line) !important; }
.sg-commercial-product .sg-variant-meta__delivery { text-align: left !important; }

/* Pasos de compra: 2×2 compactos (en la columna central quedaban 4 columnas estrechas). */
.sg-commercial-product .sg-purchase-steps--four { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 0 !important; border: 1px solid var(--sgx-line); border-radius: var(--sgx-r-card); overflow: hidden; }
.sg-commercial-product .sg-purchase-steps--four > div { padding: 12px 14px !important; border: 0 !important; border-bottom: 1px solid var(--sgx-line) !important; }
.sg-commercial-product .sg-purchase-steps--four > div:nth-child(odd) { border-right: 1px solid var(--sgx-line) !important; }
.sg-commercial-product .sg-purchase-steps--four > div:nth-last-child(-n + 2) { border-bottom: 0 !important; }

/* Vista rápida: mismas opciones que la ficha. */
.sg-qv-mode-grid { gap: 10px !important; }

/* Selector de opción del carrito: misma identidad (radio, borde, seleccionada). */
.sg-cart-variant-picker { border-radius: var(--sgx-r-control) !important; border-color: var(--sgx-line) !important; }
.sg-cart-variant-option { border-radius: 10px !important; }
.sg-cart-variant-option.is-current { background: var(--sgx-soft) !important; box-shadow: inset 0 0 0 1px var(--sgx-ink); }

@media (max-width: 640px) {
    .sg-commercial-product .sg-mode-grid,
    .sg-commercial-product .sg-mode-grid:has(> :nth-child(4):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 8px; }
    .sg-commercial-product .sg-mode-grid:has(> :only-child) { grid-template-columns: minmax(0, 1fr) !important; }
    .sg-commercial-product .sg-mode-button { padding: 11px 34px 11px 12px !important; }
    .sg-commercial-product .sg-mode-button::before { top: 12px; right: 11px; width: 15px; height: 15px; }
    .sg-commercial-product .sg-mode-button strong { font-size: 13.5px !important; }
    .sg-commercial-product .sg-mode-button small { font-size: 11.5px !important; display: -webkit-box !important; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
    .sg-commercial-product .sg-device-grid { grid-template-columns: repeat(auto-fit, minmax(84px, 1fr)); max-width: none; }
    .sg-commercial-product .sg-device-button { min-height: 52px !important; }
    .sg-commercial-product .sg-selection-heading { display: block; }
    .sg-commercial-product .sg-selection-heading span { display: block; margin-top: 2px; text-align: left; }
    .sg-commercial-product .sg-variant-detail { padding: 14px !important; }
    .sg-commercial-product .sg-purchase-steps--four > div { padding: 11px 12px !important; }
}

/* 4 ── Ficha: primera pantalla útil en móvil (imagen contenida, precio junto al título) ───────────────────────── */
.sg-hero-price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 10px;
    margin: 6px 0 2px;
}
.sg-hero-price__amount { font-size: 24px; font-weight: 750; letter-spacing: -.01em; color: var(--sgx-ink); }
.sg-hero-price__option { font-size: 13px; color: var(--sgx-muted); }
.sg-hero-price[data-state="sold_out"] .sg-hero-price__amount,
.sg-hero-price[data-state="unavailable"] .sg-hero-price__amount,
.sg-hero-price[data-state="price_pending"] .sg-hero-price__amount { color: #8a909b; text-decoration: line-through; text-decoration-thickness: 1px; }
.sg-hero-price:not([data-state="available"]) .sg-hero-price__option { color: #5b6472; font-weight: 600; }
@media (max-width: 640px) {
    /* Imagen de la ficha en móvil a todo el ancho (hasta 430 px) y en 4:5, la proporción real de las portadas (22/11).
       Antes era un cuadrado de 280 px que dejaba la portada en 222 × 278 con franjas laterales. */
    .sg-commercial-product .sg-product-image { width: min(100%, 430px) !important; aspect-ratio: 4 / 5 !important; margin-inline: auto !important; border-radius: var(--sgx-r-card); overflow: hidden; }
}
/* Estado de la opción elegida: texto compacto con punto, el mismo desde el primer HTML (sin pastilla ni halo). */
.sg-commercial-product .sg-product-status {
    display: inline-flex !important;
    align-items: center;
    gap: 7px;
    margin: 0 0 6px;
    padding: 0 !important;
    border: 0 !important;
    background: none !important;
    color: #1f6f43;
    font-size: 12.5px !important;
    font-weight: 600 !important;
    line-height: 1.3;
    letter-spacing: 0;
    text-transform: none;
}
.sg-product-status__dot { flex: none; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.sg-commercial-product .sg-product-status:is([data-sg-selection-state="sold_out"], [data-sg-selection-state="unavailable"], [data-sg-selection-state="price_pending"]) { color: #5b6472; }
.sg-product-status:is([data-sg-selection-state="sold_out"], [data-sg-selection-state="unavailable"]) .sg-product-status__dot { background: #9aa1ac; }
.sg-product-status[data-sg-selection-state="price_pending"] .sg-product-status__dot { box-sizing: border-box; background: transparent; border: 1.5px solid #9aa1ac; }
.sg-selection-state-note {
    margin: 0 0 10px;
    padding: 10px 12px;
    border: 1px solid #e3e7ee;
    border-radius: 10px;
    background: #f7f8fa;
    color: #374151;
    font-size: 12.5px;
    line-height: 1.45;
}
.sg-selection-state-note[hidden] { display: none !important; }
.sg-alert--notice { background: #f6f7f9; border: 1px solid #d8dde4; color: #334155; }

/* Panel «Tu selección»: elevación discreta para que destaque como zona de compra. */
.sg-commercial-product .sg-purchase-panel { border-radius: var(--sgx-r-card) !important; border-color: var(--sgx-line) !important; box-shadow: var(--sgx-shadow-2); }

/* 5 ── Barra de compra móvil (sticky): opción, precio y botón legibles ─────────────────────────────────────────── */
@media (max-width: 1023px) {
    .sg-mobile-purchase-bar {
        border-top: 1px solid var(--sgx-line) !important;
        background: rgba(255, 255, 255, .97) !important;
        box-shadow: 0 -6px 18px rgba(16, 24, 40, .08) !important;
        backdrop-filter: saturate(1.2) blur(6px);
    }
    .sg-mobile-purchase-bar__inner {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: 10px !important;
        padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px)) !important;
    }
    .sg-mobile-purchase-bar__selection { display: grid !important; gap: 2px; min-width: 0; }
    .sg-mobile-purchase-bar__variant-trigger {
        display: flex !important;
        align-items: center;
        gap: 6px;
        min-height: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        background: none !important;
        box-shadow: none !important;
        text-align: left;
    }
    .sg-mobile-purchase-bar__variant-copy { display: grid; min-width: 0; }
    .sg-mobile-purchase-bar__variant { overflow: hidden; font-size: 12.5px !important; font-weight: 600 !important; color: var(--sgx-text) !important; white-space: nowrap; text-overflow: ellipsis; }
    .sg-mobile-purchase-bar__variant-hint { font-size: 11.5px !important; font-weight: 600 !important; color: var(--sgx-cta) !important; }
    .sg-mobile-purchase-bar__price { order: -1; font-size: 18px !important; font-weight: 750 !important; line-height: 1.15; color: var(--sgx-ink) !important; }
    .sg-mobile-purchase-bar__button { min-height: 46px !important; padding: 0 18px !important; white-space: nowrap; }
}

/* 6 ── Tarjetas del catálogo ─────────────────────────────────────────────────────────────────────────────────── */
.sg-catalog-card {
    border-color: var(--sgx-line) !important;
    border-radius: var(--sgx-r-card) !important;
    box-shadow: var(--sgx-shadow-1);
    transition: border-color .18s var(--sgx-ease), box-shadow .18s var(--sgx-ease), transform .18s var(--sgx-ease);
}
@media (hover: hover) {
    .sg-catalog-card:hover { border-color: var(--sgx-line-strong) !important; box-shadow: var(--sgx-shadow-2); transform: translateY(-1px); }
}
.sg-catalog-card .sg-product-media--card { background: var(--sgx-soft) !important; border-bottom-color: var(--sgx-line) !important; }
/* Fila comparar / vista rápida / favorito: tres iconos iguales, centrados y equidistantes. */
.sg-product-card-tools {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    justify-items: center !important;
    align-items: center;
    gap: 6px !important;
    margin-top: 10px;
}
.sg-product-card-tools > :is(form, button, a) { justify-self: center !important; display: inline-flex !important; justify-content: center; margin: 0 !important; }
.sg-product-card-tools .sg-card-icon-button {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    padding: 0 !important;
    border: 1px solid var(--sgx-line) !important;
    border-radius: 999px !important;
    background: #fff !important;
    color: var(--sgx-text) !important;
    transition: border-color .15s var(--sgx-ease), background-color .15s var(--sgx-ease), color .15s var(--sgx-ease);
}
.sg-product-card-tools .sg-card-icon-button:hover { border-color: var(--sgx-line-strong) !important; background: var(--sgx-soft) !important; }
.sg-product-card-tools .sg-card-icon-button :is(.sg-card-tool-label) { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sg-product-card-tools .sg-card-icon-button svg { width: 18px; height: 18px; }
.sg-product-card-tools .sg-card-icon-button:is([aria-pressed="true"], .is-active, .is-saved, .is-compared) { border-color: var(--sgx-ink) !important; color: var(--sgx-ink) !important; background: var(--sgx-soft) !important; }

/* Móvil: rejilla de 2 columnas compacta en todos los anchos (antes ≤380 px pasaba a 1 columna con tarjetas de ~630 px). */
@media (max-width: 640px) {
    .sg-catalog-products-grid,
    body.sg-home-v33-restored .sg-home-v33-featured > .grid.grid-cols-2,
    body.sg-home-v33-restored .sg-home-v33-combo > .grid.grid-cols-2,
    .sg-shop-shell .sg-catalog-products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 10px !important; }
    .sg-shop-shell .sg-catalog-products-grid > .col-span-2 { grid-column: 1 / -1 !important; }
    .sg-catalog-card .sg-catalog-card__body { padding: 10px 10px 12px !important; }
    .sg-catalog-card .sg-catalog-card__meta { display: none !important; }
    .sg-catalog-card .sg-catalog-card__title { margin-top: 0 !important; font-size: 13.5px !important; line-height: 1.3 !important; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: calc(2 * 1.3em); }
    .sg-catalog-card .sg-catalog-card__summary { display: none !important; }
    .sg-catalog-card .sg-catalog-card__price { padding-top: 6px !important; }
    .sg-card-price__amount { font-size: 17px !important; }
    .sg-card-price__meta { font-size: 11px !important; }
    .sg-product-card-tools { gap: 2px !important; margin-top: 8px; }
    .sg-product-card-tools .sg-card-icon-button { width: 36px !important; height: 36px !important; min-width: 36px !important; min-height: 36px !important; }
    .sg-product-card-tools .sg-card-icon-button svg { width: 16px; height: 16px; }
    .sg-product-card-primary { min-height: 38px !important; margin-top: 8px; font-size: 13px !important; padding: 0 8px !important; }
}

/* Tableta: 3 columnas (con 2, cada tarjeta medía ~650 px de alto). */
@media (min-width: 641px) and (max-width: 1023px) {
    .sg-catalog-products-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 14px !important; }
    .sg-catalog-card .sg-catalog-card__body { padding: 14px !important; }
    .sg-catalog-card .sg-catalog-card__title { font-size: 15px !important; }
}

/* 7 ── Carrito ───────────────────────────────────────────────────────────────────────────────────────────────── */
.sg-cart-card { border-color: var(--sgx-line) !important; border-radius: var(--sgx-r-card) !important; box-shadow: var(--sgx-shadow-1); }
.sg-cart-summary { border: 1px solid var(--sgx-line) !important; border-radius: var(--sgx-r-card) !important; box-shadow: var(--sgx-shadow-2); background: #fff; padding: 22px !important; }
@media (max-width: 767px) { .sg-cart-summary { padding: 16px !important; } }
.sg-cart-product-media { border-radius: 12px !important; background: var(--sgx-soft); }
.sg-cart-line-total strong { font-size: 17px; color: var(--sgx-ink); }

/* Bloques de confianza: los cuatro completos en escritorio, el resumen en móvil. */
.sg-assurance-mobile { display: none; }
@media (max-width: 767px) {
    .sg-assurance-desktop { display: none; }
    .sg-assurance-mobile { display: block; }
}
.sg-assurance-desktop .sg-order-assurance { margin-bottom: 18px; }
.sg-assurance-desktop .sg-order-assurance__item { border-radius: 14px !important; border-color: var(--sgx-line) !important; background: var(--sgx-soft) !important; box-shadow: none !important; }
.sg-order-assurance--compact,
main .sg-order-assurance.sg-order-assurance--compact {
    display: flex !important;
    grid-template-columns: none !important;
    align-items: center;
    gap: 10px;
    margin: 0 0 14px;
    border: 1px solid var(--sgx-line);
    border-radius: 12px;
    background: var(--sgx-soft);
    padding: 9px 12px;
    min-height: 0;
}
.sg-order-assurance--compact__icon { display: inline-flex; width: 28px; height: 28px; flex: 0 0 28px; align-items: center; justify-content: center; border-radius: 999px; background: #fff; color: #4f4f4b; }
.sg-order-assurance--compact__icon svg { width: 15px; height: 15px; }
.sg-order-assurance--compact__body { display: flex; min-width: 0; flex-wrap: wrap; align-items: center; gap: 2px 7px; color: #686864; font-size: 11.5px; line-height: 1.45; }
.sg-order-assurance--compact__body > strong:first-child { color: #20201f; }
.sg-order-assurance--compact__body [data-sg-availability-status].is-open { color: #17643f; }
.sg-order-assurance--compact__body [data-sg-availability-status].is-closed { color: #8b5b13; }
.sg-order-assurance--compact__body time { color: #8a8a86; font-variant-numeric: tabular-nums; }

/* Escritorio: una sola fila de acciones por producto → [cantidad] … [subtotal] [eliminar]. */
@media (min-width: 641px) {
    .sg-cart-card { display: grid !important; grid-template-columns: minmax(0, 1fr) auto auto; column-gap: 18px; align-items: center; }
    .sg-cart-card > .sg-cart-product-head { grid-column: 1 / -1; }
    .sg-cart-card > .sg-cart-actions { display: contents !important; }
    .sg-cart-card > .sg-cart-actions > .sg-cart-quantity-form { grid-column: 1; grid-row: 2; margin-top: 16px; display: flex !important; align-items: center; gap: 12px; flex-wrap: wrap; }
    .sg-cart-card > .sg-cart-actions > .sg-cart-quantity-form > label { margin: 0 !important; font-size: 13px; }
    .sg-cart-card > .sg-cart-actions > .sg-cart-quantity-form > p { flex-basis: 100%; margin-top: 0 !important; }
    .sg-cart-card > .sg-cart-line-total { grid-column: 2; grid-row: 2; margin-top: 16px !important; padding: 0 !important; border: 0 !important; display: flex !important; gap: 10px; align-items: baseline; }
    .sg-cart-card > .sg-cart-line-total span { font-size: 13px; color: var(--sgx-muted); }
    .sg-cart-card > .sg-cart-actions > .sg-cart-remove-form { grid-column: 3; grid-row: 2; margin-top: 16px; }
    .sg-cart-card > .sg-cart-requirements { grid-column: 1 / -1; }
    .sg-cart-card .sg-cart-product-head > .min-w-0 > .rounded-xl { font-weight: 500 !important; font-size: 13px; background: var(--sgx-soft) !important; }
}

/* Móvil: producto → [cantidad | precio | eliminar] → variante → aviso → subtotal. */
@media (max-width: 640px) {
    .sg-cart-card { display: grid !important; grid-template-columns: 64px 50px minmax(0, 1fr) auto; column-gap: .6rem; row-gap: 0; align-items: start; padding: 14px !important; }
    .sg-cart-card > .sg-cart-product-head,
    .sg-cart-card > .sg-cart-product-head > .min-w-0,
    .sg-cart-card > .sg-cart-actions,
    .sg-cart-card > .sg-cart-actions > .sg-cart-quantity-form { display: contents !important; }
    .sg-cart-card .sg-cart-product-media { grid-column: 1; grid-row: 1 / span 4; width: 64px; height: 64px; }
    .sg-cart-card .sg-cart-product-head > .min-w-0 > h2 { grid-column: 2 / -1; grid-row: 1; font-size: 1.02rem; line-height: 1.3; }
    .sg-cart-card .sg-cart-product-head > .min-w-0 > .mt-1.text-sm { grid-column: 2 / -1; grid-row: 2; margin-top: .15rem; }
    .sg-cart-card .sg-cart-product-head > .min-w-0 > .mt-2.text-sm { grid-column: 2 / -1; grid-row: 3; margin-top: .25rem; font-size: .8rem; }
    .sg-cart-card .sg-cart-product-head > .min-w-0 > .mt-1.text-xs { grid-column: 2 / -1; grid-row: 4; }
    .sg-cart-card .sg-cart-quantity-form > label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
    .sg-cart-card .sg-cart-quantity-stepper { grid-column: 1 / 3; grid-row: 5; margin-top: .9rem; width: 122px !important; grid-template-columns: 40px 42px 40px !important; }
    .sg-cart-card .sg-cart-product-price { grid-column: 3; grid-row: 5; margin-top: .9rem; padding-top: 0 !important; text-align: right !important; align-self: center; }
    .sg-cart-card .sg-cart-product-price > .text-sm { font-size: .7rem; white-space: nowrap; }
    .sg-cart-card .sg-cart-product-price > .mt-1 { margin-top: 0; font-size: 1rem; white-space: nowrap; }
    .sg-cart-card .sg-cart-mobile-quantity-readout { display: none !important; }
    .sg-cart-card .sg-cart-remove-form { grid-column: 4; grid-row: 5; margin-top: .9rem; width: auto !important; align-self: center; }
    .sg-cart-card .sg-cart-remove-form button { width: auto !important; min-height: 44px; padding: .5rem .55rem !important; font-size: .8rem; }
    .sg-cart-card .sg-cart-quantity-status,
    .sg-cart-card .sg-cart-quantity-form > p { grid-column: 1 / -1; grid-row: 6; }
    .sg-cart-card .sg-cart-quantity-status:empty { display: none; }
    .sg-cart-card .sg-cart-product-head > .min-w-0 > .sg-cart-variant-form { grid-column: 1 / -1; grid-row: 7; margin-top: .9rem; }
    .sg-cart-card .sg-cart-product-head > .min-w-0 > .rounded-xl { grid-column: 1 / -1; grid-row: 8; margin-top: .75rem; font-weight: 500 !important; font-size: .8rem; }
    .sg-cart-card > .sg-cart-line-total { grid-column: 1 / -1; grid-row: 9; margin-top: .9rem !important; }
    .sg-cart-card > .sg-cart-requirements { grid-column: 1 / -1; grid-row: 10; }
    .sg-cart-mobile-summary-head { border-radius: var(--sgx-r-card) !important; border: 1px solid var(--sgx-line) !important; box-shadow: var(--sgx-shadow-1); }
}

/* 8 ── Mercado / moneda de compra ────────────────────────────────────────────────────────────────────────────── */
.sg-cart-currency-switch { display: flex !important; flex-direction: column !important; align-items: stretch !important; gap: 8px !important; }
@media (max-width: 767px) { .sg-cart-currency-switch.sg-cart-currency-switch--desktop { display: none !important; } }
.sg-cart-currency-switch__label { display: block; font-size: 12px; font-weight: 650; color: #3a3a37; }
.sg-cart-currency-switch__options { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.sg-cart-currency-switch__options a {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    min-height: 56px;
    padding: 6px 4px !important;
    border: 1px solid var(--sgx-line) !important;
    border-radius: 10px !important;
    background: #fff !important;
    text-decoration: none !important;
    transition: border-color .15s var(--sgx-ease), background-color .15s var(--sgx-ease);
}
.sg-cart-currency-switch__options a:hover { border-color: var(--sgx-line-strong) !important; background: var(--sgx-soft) !important; }
.sg-cart-currency-switch__options a.is-active { border-color: var(--sgx-ink) !important; background: var(--sgx-soft) !important; box-shadow: inset 0 0 0 1px var(--sgx-ink); }
.sg-market-option__flag { display: block; width: 22px; height: 15px; margin-bottom: 3px; border-radius: 3px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .12); background-size: cover; background-position: center; }
.sg-market-option--bob .sg-market-option__flag { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 3 2'%3E%3Cpath fill='%23d52b1e' d='M0 0h3v.667H0z'/%3E%3Cpath fill='%23f9e300' d='M0 .667h3v.666H0z'/%3E%3Cpath fill='%23007934' d='M0 1.333h3V2H0z'/%3E%3C/svg%3E"); }
.sg-market-option--brl .sg-market-option__flag { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 15'%3E%3Cpath fill='%23009c3b' d='M0 0h22v15H0z'/%3E%3Cpath fill='%23ffdf00' d='M11 1.6 20.2 7.5 11 13.4 1.8 7.5z'/%3E%3Ccircle cx='11' cy='7.5' r='3.6' fill='%23002776'/%3E%3C/svg%3E"); }
.sg-market-option--usd .sg-market-option__flag { box-shadow: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 15'%3E%3Cg fill='none' stroke='%232f5b8f' stroke-width='1.2'%3E%3Ccircle cx='11' cy='7.5' r='6.4'/%3E%3Cellipse cx='11' cy='7.5' rx='2.8' ry='6.4'/%3E%3Cpath d='M4.6 7.5h12.8M5.6 4.2h10.8M5.6 10.8h10.8'/%3E%3C/g%3E%3C/svg%3E"); }
.sg-market-option__code { font-size: 13px; font-weight: 750; color: var(--sgx-ink); letter-spacing: .02em; }
.sg-market-option__region { font-size: 10.5px; font-weight: 500; color: #6b6b67; line-height: 1.2; }
.sg-market-hint { margin: 0 !important; font-size: 11.5px; line-height: 1.45; color: #6b6b67; }
.sg-market-hint strong { color: #2a2a28; font-weight: 650; }

/* 9 ── Checkout ──────────────────────────────────────────────────────────────────────────────────────────────── */
.sg-checkout-page :is(input[type="text"], input[type="email"], input[type="tel"], select, textarea) { border-radius: 10px !important; border-color: var(--sgx-line-strong) !important; }
.sg-payment-option { border-radius: var(--sgx-r-card) !important; border-color: var(--sgx-line) !important; transition: border-color .15s var(--sgx-ease), box-shadow .15s var(--sgx-ease), background-color .15s var(--sgx-ease); }
.sg-payment-option.is-selected { border-color: var(--sgx-ink) !important; box-shadow: inset 0 0 0 1px var(--sgx-ink) !important; background: #fff !important; }
@media (max-width: 640px) {
    /* El radio y el icono ocupaban la columna izquierda y estrechaban todo el contenido del medio de pago. */
    .sg-payment-option { padding: 14px !important; }
    /* La fila es una rejilla radio | icono | contenido: se quita el icono y quedan dos columnas. */
    .sg-payment-option > .flex { display: grid !important; grid-template-columns: 18px minmax(0, 1fr) !important; column-gap: 10px !important; }
    .sg-payment-option .sg-payment-icon { display: none !important; }
    .sg-payment-option > .flex > .min-w-0.flex-1 { grid-column: 2; min-width: 0; }
    .sg-payment-option .sg-payment-option__details { margin-left: -28px; }
    .sg-payment-option .sg-payment-option__details select { width: 100% !important; max-width: 100% !important; }
}
/* Prefijo telefónico: «+591 Bolivia» se cortaba en «+591 Boliv». */
.sg-checkout-page select[data-phone-dial] { min-width: 132px; padding-right: 30px !important; text-overflow: ellipsis; }

/* 10 ── Cabecera móvil, flotantes, cookies ───────────────────────────────────────────────────────────────────── */
.sg-mobile-search-trigger { display: none !important; }
@media (max-width: 1023px) {
    /* Junto al botón de menú (izquierda): el logotipo está centrado en absoluto y el grupo derecho no tiene sitio. */
    .sg-mobile-search-trigger { display: inline-flex !important; position: absolute !important; left: 60px; top: 50%; transform: translateY(-50%); z-index: 2; align-items: center; justify-content: center; width: 40px !important; height: 40px !important; border: 0; border-radius: 999px; background: transparent; color: var(--sgx-ink); }
    .sg-mobile-search-trigger svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; }
    .sg-mobile-search-trigger:active { background: var(--sgx-soft-2); }
}
@media (max-width: 640px) {
    /* «Volver arriba» apilado sobre el soporte y ambos por encima de la barra de compra cuando está visible. */
    .sg-back-to-top-floating { left: auto !important; right: 12px !important; bottom: calc(66px + env(safe-area-inset-bottom, 0px)) !important; width: 40px !important; height: 40px !important; }
    body:has(.sg-mobile-purchase-bar.is-visible) .sg-support-bot { bottom: calc(92px + env(safe-area-inset-bottom, 0px)) !important; }
    body:has(.sg-mobile-purchase-bar.is-visible) .sg-back-to-top-floating { bottom: calc(146px + env(safe-area-inset-bottom, 0px)) !important; }
    /* Aviso de cookies compacto: una línea de texto y acciones en la misma fila (antes ~108 px sobre la barra). */
    .sg-meta-cookie-notice { left: 8px !important; right: 8px !important; width: auto !important; max-width: none !important; transform: none !important; padding: 10px 12px !important; border-radius: 14px !important; gap: 8px !important; }
    .sg-meta-cookie-notice__text { font-size: 12px !important; line-height: 1.4 !important; }
    .sg-meta-cookie-notice__actions { gap: 10px !important; }
    .sg-meta-cookie-notice__actions :is(button, a) { min-height: 36px !important; font-size: 12.5px !important; }
    body:has(.sg-mobile-purchase-bar.is-visible) .sg-meta-cookie-notice { bottom: calc(84px + env(safe-area-inset-bottom, 0px)) !important; }
}

/* 11 ── Respuesta visual de acciones (sg-acabado.js) ─────────────────────────────────────────────────────────── */
[data-sgx-state] { position: relative; }
[data-sgx-state="busy"] { cursor: progress !important; pointer-events: none; } /* evita el doble clic mientras espera al servidor */
[data-sgx-state="busy"] > * { opacity: .55; }
[data-sgx-state="busy"]::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 999px;
    animation: sgx-spin .7s linear infinite;
    opacity: .9;
}
:is(.sg-card-icon-button, .sov-store-navbar__utility)[data-sgx-state="busy"]::after { width: 14px; height: 14px; margin: -7px 0 0 -7px; }
[data-sgx-state="done"] { box-shadow: 0 0 0 3px rgba(31, 122, 74, .22) !important; }
[data-sgx-state="error"] { box-shadow: 0 0 0 3px rgba(180, 35, 24, .25) !important; }
@keyframes sgx-spin { to { transform: rotate(360deg); } }
body:has(.sg-mobile-purchase-bar.is-visible) [data-store-toast] { bottom: calc(96px + env(safe-area-inset-bottom, 0px)) !important; }
.sgx-pending-note { display: block; margin-top: 6px; font-size: 12px; color: var(--sgx-muted); }

@media (prefers-reduced-motion: reduce) {
    [data-sgx-state="busy"]::after { animation: none; border-right-color: currentColor; opacity: .5; }
        .sg-catalog-card, .sg-catalog-card:hover { transition: none; transform: none; }
    :is(.sg-commercial-product .sg-primary-button, .sg-product-card-primary, .sg-checkout-submit, .sg-mobile-purchase-bar__button):active { transform: none; }
}

/* 12 ── Vista rápida: versión compacta de la ficha (mismos tokens, estados y jerarquía) ───────────────────────── */
.sg-qv-panel { border-radius: 20px !important; box-shadow: 0 24px 64px rgba(16, 24, 40, .22) !important; }
@media (prefers-reduced-motion: no-preference) {
    [role="dialog"] .sg-qv-panel { animation: sgx-qv-in .22s var(--sgx-ease) both; }
    @keyframes sgx-qv-in { from { opacity: 0; transform: translateY(8px) scale(.985); } to { opacity: 1; transform: none; } }
}
.sg-qv-product-actions :is(button, a) { white-space: nowrap; min-height: 38px !important; padding: 0 14px !important; border-radius: 999px !important; border-color: var(--sgx-line) !important; font-size: 13px !important; font-weight: 600 !important; }
.sg-qv-product-actions :is(button, a):hover { background: var(--sgx-soft) !important; border-color: var(--sgx-line-strong) !important; }
.sg-qv-configurator { gap: 16px !important; padding-top: 16px !important; border-top-color: var(--sgx-line) !important; }
.sg-qv-selector-block + .sg-qv-selector-block { padding-top: 16px !important; border-top-color: var(--sgx-line) !important; }
.sg-qv-selector-copy h3 { margin: 0 !important; font-size: 15px !important; font-weight: 700 !important; color: var(--sgx-ink) !important; }
.sg-qv-selector-copy p { margin: 2px 0 0 !important; font-size: 12.5px !important; color: var(--sgx-muted) !important; }

/* Modalidad: misma tarjeta que la ficha (nombre, descripción, indicador). */
.sg-qv-mode-grid { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 10px !important; margin-top: 10px !important; }
.sg-qv-mode-grid:has(> :nth-child(2):last-child),
.sg-qv-mode-grid:has(> :nth-child(4):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
.sg-qv-mode-grid:has(> :only-child) { grid-template-columns: minmax(0, 1fr) !important; }
.sg-qv-mode-option > span { display: block; width: 100%; font-size: 14px !important; font-weight: 650 !important; line-height: 1.3 !important; color: var(--sgx-ink) !important; }
.sg-qv-mode-option > small { display: block; width: 100%; margin-top: 3px !important; font-size: 12px !important; line-height: 1.4 !important; color: var(--sgx-muted) !important; white-space: normal !important; overflow: visible !important; text-overflow: clip !important; -webkit-line-clamp: unset !important; }
.sg-qv-mode-option.is-selected { border-color: var(--sgx-ink) !important; background: var(--sgx-soft) !important; box-shadow: inset 0 0 0 1px var(--sgx-ink) !important; }
.sg-qv-mode-option.is-selected::before { border-color: var(--sgx-ink); box-shadow: inset 0 0 0 4px #fff; background: var(--sgx-ink); }
.sg-qv-mode-option.is-selected > :is(span, small) { color: inherit; }
.sg-qv-mode-option.is-selected > small { color: var(--sgx-text) !important; }

/* Dispositivos / duración / ejes: control segmentado como en la ficha. */
.sg-qv-device-grid { display: grid !important; grid-template-columns: repeat(auto-fit, minmax(104px, 1fr)) !important; gap: 8px !important; max-width: 560px; margin-top: 10px !important; }
.sg-qv-device-option {
    min-height: 46px !important;
    padding: 8px 10px !important;
    border: 1px solid var(--sgx-line) !important;
    border-radius: var(--sgx-r-control) !important;
    background: var(--sgx-surface) !important;
    color: var(--sgx-text) !important;
    box-shadow: none !important;
    transition: border-color .15s var(--sgx-ease), background-color .15s var(--sgx-ease), box-shadow .15s var(--sgx-ease);
}
.sg-qv-device-grid:has(> :only-child) { grid-template-columns: minmax(0, 220px) !important; }
.sg-qv-device-option strong { font-size: 14px !important; font-weight: 650 !important; line-height: 1.25 !important; color: var(--sgx-ink) !important; }
.sg-qv-device-option:hover { border-color: var(--sgx-line-strong) !important; background: var(--sgx-soft) !important; }
.sg-qv-device-option.is-selected { border-color: var(--sgx-ink) !important; background: var(--sgx-soft) !important; box-shadow: inset 0 0 0 1px var(--sgx-ink) !important; color: var(--sgx-ink) !important; }
.sg-qv-device-option.is-selected strong { color: var(--sgx-ink) !important; }

/* Agotado / no disponible: visible, atenuado y con estado en texto, igual que en la ficha. */
:is(.sg-qv-mode-option, .sg-qv-device-option).is-unavailable {
    background: #f7f8fa !important;
    border-style: solid !important;
    border-color: var(--sgx-line) !important;
    opacity: 1 !important;
}
:is(.sg-qv-mode-option, .sg-qv-device-option).is-unavailable :is(span, small, strong) { color: #8a909b !important; }
:is(.sg-qv-mode-option, .sg-qv-device-option).is-unavailable::after {
    content: "Agotado";
    display: inline-block;
    margin-top: 5px;
    padding: 0;
    border-radius: 0;
    background: none;
    color: #6b7280;
    font-size: 11px;
    font-weight: 600;
}
:lang(en) :is(.sg-qv-mode-option, .sg-qv-device-option).is-unavailable::after { content: "Out of stock"; }
:lang(pt) :is(.sg-qv-mode-option, .sg-qv-device-option).is-unavailable::after { content: "Esgotado"; }
/* Opción sin suministro confirmado (p. ej. MAK 10 equipos): «No disponible», no «Agotado». */
:is(.sg-qv-mode-option, .sg-qv-device-option).is-unavailable[data-sgx-display-state="unavailable"]::after,
:is(.sg-qv-mode-option, .sg-qv-device-option).is-unavailable[data-sg-qv-state="unavailable"]::after { content: "No disponible"; }
:lang(en) :is(.sg-qv-mode-option, .sg-qv-device-option).is-unavailable:is([data-sgx-display-state="unavailable"], [data-sg-qv-state="unavailable"])::after { content: "Not available"; }
:lang(pt) :is(.sg-qv-mode-option, .sg-qv-device-option).is-unavailable:is([data-sgx-display-state="unavailable"], [data-sg-qv-state="unavailable"])::after { content: "Indisponível"; }
.sg-qv-device-option.is-unavailable { display: flex !important; flex-direction: column; align-items: center; justify-content: center; }

/* Opción elegida: superficie suave, precio protagonista, estado y acción principal azul. */
.sg-qv-variant-card { border: 1px solid var(--sgx-line) !important; border-radius: var(--sgx-r-card) !important; background: var(--sgx-soft) !important; box-shadow: none !important; padding: 16px !important; }
.sg-qv-variant-head h3 { font-size: 15px !important; line-height: 1.35 !important; color: var(--sgx-ink) !important; }
.sg-qv-section-label { font-size: 11px !important; letter-spacing: .06em !important; color: var(--sgx-muted) !important; }
.sg-qv-price { font-size: 22px !important; font-weight: 750 !important; color: var(--sgx-ink) !important; white-space: nowrap; }
.sg-qv-option-item { border-color: var(--sgx-line) !important; border-radius: 10px !important; background: #fff !important; }
.sg-qv-description { font-size: 13.5px !important; color: var(--sgx-text) !important; }
.sg-qv-status { border-color: #cfe6d8 !important; background: #f1f8f4 !important; color: var(--sgx-success) !important; font-weight: 650 !important; }
.sg-qv-actions { gap: 10px !important; }
.sg-qv-primary {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-height: 46px !important;
    padding: 0 20px !important;
    border: 1px solid var(--sgx-cta) !important;
    border-radius: var(--sgx-r-control) !important;
    background: var(--sgx-cta) !important;
    color: #fff !important;
    font-size: 14.5px !important;
    font-weight: 650 !important;
    box-shadow: 0 1px 2px rgba(31, 90, 214, .22);
}
.sg-qv-primary:hover { background: var(--sgx-cta-hover) !important; border-color: var(--sgx-cta-hover) !important; }
.sg-qv-compare-form button { min-height: 46px !important; border-radius: var(--sgx-r-control) !important; border: 1px solid var(--sgx-line-strong) !important; background: #fff !important; color: var(--sgx-ink) !important; font-weight: 600 !important; }

@media (max-width: 640px) {
    .sg-qv-panel { border-radius: 18px 18px 0 0 !important; }
    .sg-qv-mode-grid, .sg-qv-mode-grid:has(> :nth-child(4):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 8px !important; }
    .sg-qv-mode-grid:has(> :only-child) { grid-template-columns: minmax(0, 1fr) !important; }
    .sg-qv-mode-option { padding: 11px 32px 11px 12px !important; }
    .sg-qv-mode-option::before { top: 12px !important; right: 10px !important; width: 15px !important; height: 15px !important; }
    .sg-qv-mode-option > span { font-size: 13.5px !important; }
    .sg-qv-mode-option > small { font-size: 11.5px !important; }
    .sg-qv-device-grid { grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)) !important; max-width: none; }
    .sg-qv-device-option strong { font-size: 13px !important; }
    .sg-qv-variant-card { padding: 14px !important; }
    .sg-qv-price { font-size: 19px !important; }
    .sg-qv-actions { display: grid !important; grid-template-columns: 1fr; }
    .sg-qv-actions > *, .sg-qv-actions .sg-qv-primary, .sg-qv-compare-form, .sg-qv-compare-form button { width: 100% !important; }
    /* Columna estrecha junto a la imagen: «Guardar producto» y «Ver producto completo» no caben en una fila sin
       recortarse (se pisaban a 375 px). Se apilan a ancho completo y el texto puede partirse si es largo. */
    .sg-qv-product-actions { display: grid !important; grid-template-columns: minmax(0, 1fr); gap: 8px !important; }
    .sg-qv-product-actions > *, .sg-qv-product-actions .sg-qv-wishlist button { width: 100% !important; min-width: 0; }
    .sg-qv-product-actions :is(button, a) { white-space: normal; text-align: center; line-height: 1.25; padding: 8px 14px !important; }
}

/* 13 ── Catálogo con filtros automáticos (sg-acabado.js §6) ───────────────────────────────────────────────────── */
/* Con JS activo los filtros se aplican solos: «Aplicar» sobra en la columna de escritorio (sigue en la hoja móvil
   como «cerrar y ver resultados», y sin JS todo queda como antes). */
.sgx-catalog-live [data-sgx-catalog-rail] [data-shop-filter-form] button[type="submit"],
.sgx-catalog-live [data-sgx-catalog-head] [data-shop-sort-form] button { display: none !important; }
/* Carga: esqueleto sobre las tarjetas actuales; misma altura y posición, sin saltos. */
.is-sgx-loading .sg-catalog-products-grid > * { position: relative; pointer-events: none; }
.is-sgx-loading .sg-catalog-products-grid > *::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    border-radius: var(--sgx-r-card);
    background: linear-gradient(100deg, rgba(247, 248, 250, .92) 30%, rgba(236, 239, 243, .96) 50%, rgba(247, 248, 250, .92) 70%);
    background-size: 220% 100%;
    animation: sgx-skeleton 1.1s linear infinite;
}
.is-sgx-loading .sg-shop-results-head p:first-child { opacity: .45; }
@keyframes sgx-skeleton { from { background-position: 120% 0; } to { background-position: -120% 0; } }
@media (prefers-reduced-motion: reduce) {
    .is-sgx-loading .sg-catalog-products-grid > *::after { animation: none; background: rgba(243, 245, 248, .9); }
}

/* 14 ── Prefijo telefónico (customer.partials.phone-dial-select) ───────────────────────────────────────────────── */
/* El control muestra solo «+591»; el <select> nativo transparente encima conserva la lista completa, el teclado y el
   selector del móvil. El ancho deja de recortar nombres de país. */
.sg-dial { position: relative !important; display: inline-flex !important; align-items: center; align-self: stretch; flex: 0 0 auto; min-width: 92px; width: 96px !important; min-height: 46px; padding: 0 !important; overflow: hidden; }
.sg-dial__code { flex: 1; padding: 0 26px 0 12px; font-size: 15px; font-weight: 600; color: var(--sgx-ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.sg-dial.is-empty .sg-dial__code { color: var(--sgx-muted); font-weight: 500; font-size: 14px; }
.sg-dial__chevron { position: absolute; right: 11px; top: 50%; width: 7px; height: 7px; margin-top: -5px; border-right: 1.6px solid var(--sgx-muted); border-bottom: 1.6px solid var(--sgx-muted); transform: rotate(45deg); pointer-events: none; }
.sg-dial__select { position: absolute !important; inset: 0; width: 100% !important; height: 100% !important; margin: 0 !important; padding: 0 !important; border: 0 !important; opacity: 0; cursor: pointer; font-size: 16px; }
.sg-dial:focus-within { border-color: var(--sgx-cta) !important; box-shadow: var(--sgx-focus) !important; }

/* 15 ── Mi cuenta: blanco predominante, grises fríos, azul Sovengrid para acción y selección ──────────────────── */
body.sg-account-page { background: #f7f8fa !important; }
.sg-account-page :is(.sg-account-hero, .sg-account-sidebar, .sg-account-content) {
    background: #fff !important;
    border: 1px solid var(--sgx-line) !important;
    border-radius: 18px !important;
    box-shadow: var(--sgx-shadow-1) !important;
}
/* El menú ya cabe en pantalla: sin barra de desplazamiento propia dentro del lateral. */
.sg-account-sidebar { max-height: none !important; overflow: visible !important; scrollbar-gutter: auto !important; }
.sg-account-wallet-card { border: 1px solid var(--sgx-line) !important; border-radius: 14px !important; background: linear-gradient(180deg, #f8faff, #f3f6fc) !important; box-shadow: none !important; }
.sg-account-wallet-card:hover { border-color: #cdd8f0 !important; }
.sg-account-wallet-action { background: #fff !important; border: 1px solid var(--sgx-line) !important; color: var(--sgx-cta) !important; }
@media (min-width: 1024px) { .sg-account-nav { display: grid !important; gap: 2px !important; } } /* en móvil sigue oculto (lg:block) */
.sg-account-nav > a,
.sg-account-mobile-menu nav > a {
    min-height: 40px !important;
    padding: 8px 12px !important;
    border: 0 !important;
    border-radius: 10px !important;
    background: transparent !important;
    color: var(--sgx-text) !important;
    font-weight: 500 !important;
    box-shadow: none !important;
    transition: background-color .15s var(--sgx-ease), color .15s var(--sgx-ease);
}
.sg-account-nav > a::before { display: none !important; }
:is(.sg-account-nav, .sg-account-mobile-menu nav) > a:hover { background: var(--sgx-soft) !important; }
:is(.sg-account-nav, .sg-account-mobile-menu nav) > a:is([aria-current="page"], .sg-account-nav-active) {
    background: var(--sgx-soft) !important;
    color: var(--sgx-ink) !important;
    font-weight: 650 !important;
    box-shadow: inset 0 0 0 1px var(--sgx-line) !important;
}
.sg-account-logout { min-height: 40px !important; border-radius: 10px !important; color: var(--sgx-muted) !important; }
.sg-account-logout:hover { background: #fef3f2 !important; color: var(--sgx-danger) !important; }
.sg-account-mobile-menu summary { border-color: var(--sgx-line) !important; border-radius: 12px !important; }
/* Acciones: principal azul, secundaria con contorno frío. */
.sg-account-page :is(.sg-dashboard-button.is-primary, .sg-account-content :is(a, button).bg-neutral-900, .sg-account-content :is(a, button).bg-neutral-950, .sg-account-content button[type="submit"].bg-black) {
    background: var(--sgx-cta) !important;
    border-color: var(--sgx-cta) !important;
    color: #fff !important;
    border-radius: 10px !important;
}
.sg-account-page .sg-dashboard-button.is-primary:hover { background: var(--sgx-cta-hover) !important; }
.sg-account-page .sg-dashboard-button:not(.is-primary) { border-color: var(--sgx-line-strong) !important; border-radius: 10px !important; background: #fff !important; }
/* Superficies interiores y separadores fríos (antes tonos crema #f7f7f5 / #ececea). */
.sg-account-page .sg-account-content :is(.border-dashed) { border-style: solid !important; border-color: var(--sgx-line) !important; background: var(--sgx-soft) !important; }
.sg-account-page .sg-account-content :is(.bg-neutral-50, .bg-stone-50, .bg-amber-50\/40) { background: var(--sgx-soft) !important; }
.sg-account-page .sg-account-content hr, .sg-account-page .sg-account-content .border-t, .sg-account-page .sg-account-content .border-b { border-color: var(--sgx-line) !important; }
/* Aviso genérico (éxito, privacidad, avisos de pedido): neutro frío. Los errores llevan --error y role="alert"
   (antes todo .sg-account-notice salía verde y «Correo o contraseña inválidos» parecía un éxito). */
.sg-account-notice { border-color: var(--sgx-line) !important; background: #fff !important; color: var(--sgx-text) !important; border-radius: 12px !important; }
.sg-account-notice--error { border-color: #f4c7c3 !important; background: #fef3f2 !important; color: var(--sgx-danger) !important; }
@media (max-width: 1023px) {
    .sg-account-page :is(.sg-account-hero, .sg-account-sidebar, .sg-account-content) { border-radius: 16px !important; }
}
/* Ajustes tras revisar capturas: menú compacto (sin márgenes de space-y), tarjeta de saldo con aire, vacíos sobrios. */
.sg-account-nav > * + * { margin-top: 0 !important; }
.sg-account-wallet-card { padding: 14px 16px !important; }
.sg-account-page :is(.sg-dashboard-empty, .sg-dashboard-muted-empty, .sg-dashboard-support-empty, .sg-download-library-v3__empty, .sg-orders-v4__empty) {
    border: 1px solid var(--sgx-line) !important;
    border-radius: 14px !important;
    background: var(--sgx-soft) !important;
}
.sg-account-page .sg-download-library-v3__empty { min-height: 0 !important; padding: 28px 20px !important; }
.sg-account-page .sg-dashboard-support-empty { padding: 12px 14px !important; }
@media (max-width: 1023px) {
    /* En móvil el lateral solo contiene el desplegable «Sección actual»: sin el marco exterior duplicado. */
    .sg-account-page .sg-account-sidebar { border: 0 !important; box-shadow: none !important; background: transparent !important; padding: 0 !important; }
}
/* Crema residual del CSS compilado (sg-account-dashboard / sg-account-core), localizada en la cascada final de cada
   sección: iconos de accesos y soporte, hover de accesos y menú, sección de soporte, acciones del pie y bordes cálidos.
   Los avisos semánticos (éxito, advertencia, error) no se tocan. */
/* Iconos de Mi cuenta (partial dashboard-icon): cuadro discreto azul muy claro con filo fino, icono de 20 px en azul
   Sovengrid y plano tonal al 14 %. Mismo tamaño y radio en accesos, soporte y vacíos; en el pie, versión neutra. */
.sg-account-page :is(.sg-dashboard-shortcut__icon, .sg-dashboard-support-icon, .sg-dashboard-empty__icon) {
    display: grid !important; place-items: center !important;
    width: 40px !important; height: 40px !important; flex: 0 0 40px !important; align-self: center !important;
    border: 1px solid #dbe4f6 !important; border-radius: 11px !important;
    background: linear-gradient(180deg, #f6f9ff 0%, #ecf2fd 100%) !important;
    color: var(--sgx-cta) !important; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9) !important;
    transition: border-color .15s var(--sgx-ease), background-color .15s var(--sgx-ease);
}
.sg-account-page .sg-dashboard-support-icon { align-self: flex-start !important; }
.sg-account-page .sg-dashboard-icon { width: 20px !important; height: 20px !important; display: block; }
.sg-account-page .sg-dashboard-icon .sg-ic-tone { fill: currentColor; fill-opacity: .14; }
.sg-account-page .sg-dashboard-shortcut:hover .sg-dashboard-shortcut__icon { border-color: #b9cbef !important; background: #e6eefc !important; }
.sg-account-page .sg-dashboard-footer-actions a > span { display: inline-grid !important; place-items: center !important; width: 30px !important; height: 30px !important; border: 1px solid var(--sgx-line) !important; border-radius: 9px !important; color: var(--sgx-text) !important; }
.sg-account-page .sg-dashboard-footer-actions .sg-dashboard-icon { width: 16px !important; height: 16px !important; }
.sg-account-page :is(.sg-dashboard-shortcuts, .sg-dashboard-shortcut, .sg-account-store-link, .sg-dashboard-support-section, .sg-dashboard-latest, .sg-dashboard-footer-actions, .sg-dashboard-support-icon) { border-color: var(--sgx-line) !important; }
.sg-account-page .sg-dashboard-shortcut:hover { background: var(--sgx-soft) !important; border-color: var(--sgx-line-strong) !important; }
.sg-account-page .sg-dashboard-support-section { background: #fff !important; }
.sg-account-page .sg-dashboard-footer-actions a > span { background: var(--sgx-soft) !important; }
.sg-account-page .sg-account-nav button:hover { background: var(--sgx-soft) !important; }
.sg-account-page :is(.sg-account-hero, .sg-account-sidebar) .bg-neutral-50 { background: var(--sgx-soft) !important; }

/* 16 ── Precio en tarjetas: importe protagonista, moneda y «Desde» en segundo plano, metadatos en una línea ─────── */
.sg-card-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 5px; line-height: 1.15; }
.sg-card-price__from { font-size: 12px; font-weight: 600; color: var(--sgx-muted); }
.sg-card-price__amount { font-size: 21px; font-weight: 750; letter-spacing: -.01em; color: var(--sgx-ink); font-variant-numeric: tabular-nums; }
.sg-card-price__currency { font-size: 12px; font-weight: 650; letter-spacing: .03em; color: var(--sgx-muted); }
.sg-card-price__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-top: 4px; font-size: 12px; color: var(--sgx-muted); }
.sg-card-price__before { text-decoration: line-through; color: #8a909b; }
.sg-card-price__discount { padding: 1px 6px; border-radius: 6px; background: var(--sgx-cta-soft); color: var(--sgx-cta); font-weight: 650; }
.sg-card-price__options::before { content: "·"; margin-right: 8px; color: #b3b9c4; }
.sg-card-price__meta > .sg-card-price__options:first-child::before { content: none; margin: 0; }
@media (max-width: 640px) { .sg-card-price__options::before { content: none; margin: 0; } .sg-card-price__meta { gap: 2px 6px; } }

/* 17 ── Combos: actualización parcial (sg-acabado.js §7) ──────────────────────────────────────────────────────── */
.sg-combo-summary { transition: opacity .18s var(--sgx-ease); }
.sg-combo-summary.is-sgx-loading { opacity: .55; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .sg-combo-summary { transition: none; } }

/* 18 ── Logos de pago: los SVG (Binance, NOWPayments) no traen el margen interno de los PNG/WebP; se iguala el peso
   visual con un margen proporcional para que ningún logo parezca más grande que el resto. */
img[src*="/images/payments/"][src$=".svg"] { box-sizing: border-box; padding: 4% 11%; object-fit: contain; }

/* 19 ── Opciones «Agotado» solo informativas (sg-acabado.js §9): visibles, no seleccionables ─────────────────────── */
.is-sgx-display-only { cursor: not-allowed !important; }
.is-sgx-display-only:hover { transform: none !important; box-shadow: none !important; }
/* Variante sin suministro confirmado (p. ej. MAK 10 equipos): la etiqueta dice «No disponible», no «Agotado». */
.sg-commercial-product .sg-device-button[data-sg-stock-state="sold_out"][data-sgx-display-state="unavailable"]::after { content: "No disponible"; }
:lang(en) .sg-commercial-product .sg-device-button[data-sg-stock-state="sold_out"][data-sgx-display-state="unavailable"]::after { content: "Not available"; }
:lang(pt) .sg-commercial-product .sg-device-button[data-sg-stock-state="sold_out"][data-sgx-display-state="unavailable"]::after { content: "Indisponível"; }

/* 20 ── Sin barras laterales decorativas (cierre visual 19/11) ─────────────────────────────────────────────────────
   Avisos, notas y selecciones que usaban un borde izquierdo grueso o una sombra interior lateral con fondo teñido
   pasan a superficie neutra con borde fino completo. Los estados con función (éxito, revisión, error, acción
   pendiente) conservan su color en el borde y en el texto, no en una barra. Solo presentación. */
.sg-current-delivery-mini {
    border: 1px solid var(--sgx-line) !important;
    border-radius: 10px !important;
    background: #fff !important;
}
.sg-commercial-product [data-sg-tab-warranty] {
    border-left: 0 !important;
    background: none !important;
    padding-left: 0 !important;
}
.sg-commercial-product .sg-faq[open] { box-shadow: none !important; background: var(--sgx-soft) !important; }
.sg-review-message { border: 1px solid var(--sgx-line) !important; border-radius: 10px; background: var(--sgx-soft) !important; }
:is(.sg-review-name-options, .sg-review-country-options) input:checked + span { box-shadow: inset 0 0 0 1px #111827 !important; }

/* Combos: selección por contorno (como el resto de opciones), resúmenes y requisitos como tarjetas neutras. */
.sg-combo-product.is-selected { border-left-width: 1px !important; border-left-style: solid !important; border-color: #0f766e !important; box-shadow: inset 0 0 0 1px #0f766e !important; }
:is(.sg-combo-variant-option, .sg-combo-category-choice).is-active { box-shadow: inset 0 0 0 1px currentColor !important; border-color: #111827 !important; }
:is(.sg-combo-requirements, .sg-combo-summary__status, .sg-combo-category-current) {
    border: 1px solid var(--sgx-line) !important;
    border-radius: 10px;
    background: var(--sgx-soft) !important;
}

/* Carrito: cupón aplicado (éxito real) con borde verde discreto, sin franja. */
.sg-cart-coupon-applied { border: 1px solid #cfe3d6 !important; border-radius: 10px; background: #fff !important; }

/* Comparador: guías y avisos neutros; la advertencia se lee en su texto. */
:is(.sg-compare-guidance, .sg-compare-bundle-delta, .sg-compare-warnings article) {
    border: 1px solid var(--sgx-line) !important;
    background: var(--sgx-soft) !important;
}

/* Mis pedidos: «requiere acción» con borde ámbar completo y fino (estado real), sin franja interior. */
.sg-order-row-v4.needs-action { box-shadow: none !important; border-color: #e4d6bf !important; }
.sg-order-guidance-v4__row { border-left: 0 !important; padding-left: 0 !important; }

/* Entrega y credenciales del pedido: notas como texto, estados con borde completo. */
.sg-access-panel__privacy { border-left: 0 !important; padding-left: 0 !important; }
.sg-account-replacement__error { border-left: 0 !important; padding-left: 0 !important; color: #991b1b; }
.sg-account-replacement__status { border: 1px solid #dbe3ee !important; border-radius: 10px; padding: .45rem .75rem !important; }
.sg-account-replacement__status.is-review { border-color: #e4d6bf !important; }
.sg-account-replacement__status.is-muted { border-color: var(--sgx-line) !important; }

/* Activación telefónica: saldo e indicaciones del lector sin reglas verticales. */
.sg-cid-page .border-l-2 { border-left-width: 0 !important; padding-left: 0 !important; }
:is([data-iid-choice-help], [data-iid-crop-instructions]) { border-left: 0 !important; padding-left: 0 !important; }

/* Favoritos y guías: notas sin regla vertical ni degradado. */
.sg-account-page .border-l-2.border-neutral-200 { border-left-width: 0 !important; padding-left: 0 !important; }
.sg-guide-purpose { border-left: 0 !important; padding-left: 0 !important; background: none !important; }


/* 21 ── Footer: NOWPayments con proporción propia (SVG 329×48). El relleno porcentual genérico de los SVG de pago
   (§18) ensanchaba su pastilla al doble que el resto. Solo en el footer y solo este logo: sin relleno, altura óptica
   fija y ancho proporcional (sin deformar ni recortar). «Cómo funciona» y los demás logos no cambian. */
.sg-site-footer .sg-site-footer__payment-mark img[src$="/images/payments/nowpayments.svg"] {
    box-sizing: content-box;
    width: auto !important;
    height: 15px !important;
    max-width: none !important;
    max-height: none !important;
    padding: 0 6px !important;
    object-fit: contain;
}
@media (max-width: 640px) {
    .sg-site-footer .sg-site-footer__payment-mark img[src$="/images/payments/nowpayments.svg"] { height: 13.5px !important; padding: 0 4px !important; }
}

/* §22 · Etiqueta de acciones de tarjeta (mismos tokens que el tooltip del navbar). */
.sg-card-tip{position:fixed;z-index:120;max-width:200px;pointer-events:none;border:1px solid #111827;border-radius:6px;background:#111827;padding:6px 8px;color:#fff;font-size:10.5px;font-weight:750;line-height:1.1;letter-spacing:0;white-space:nowrap;box-shadow:0 8px 20px rgba(15,23,42,.16)}
.sg-card-tip[hidden]{display:none}

/* Productos relacionados en móvil (≤ 640 px): 2 columnas como el catálogo (antes 3 tarjetas de ~115 px).
   Solo cambia la rejilla; la tarjeta .sg-related-card conserva su diseño y sus tamaños internos.
   Con 2 columnas se muestra también la 4.ª tarjeta (si existe) para no dejar una sola en la segunda fila.
   768 px y escritorio no cambian. */
@media (max-width: 640px) {
  .sg-related-products__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sg-related-products__grid > .sg-related-card--mobile-hidden:nth-child(4) { display: flex; }
}

/* Portada y tienda en escritorio: aprovechar el ancho disponible (21/11).
   Portada (≥ 1024 px): el contenedor pasa de 1104 px útiles (max-w-6xl + .sg-home-shell{width:min(100%,1180px)})
   a 1320 px, el mismo ancho que ya usa el hero; se mantienen 4 columnas (8 productos = 2 filas completas).
   Tienda (≥ 1400 px): con la barra de filtros de 280 px el área de productos mide 1044–1124 px; 4 columnas
   (≈ 242–266 px, como Productos relacionados) en lugar de 3 tarjetas de 330–361 px. Por debajo de 1400 px siguen 3.
   Móvil, tableta, filtros y Productos relacionados no cambian. */
@media (min-width: 1024px) {
  main.sg-home-shell { width: min(100%, 1368px); max-width: 1368px; }
}
@media (min-width: 1400px) {
  .sg-shop-shell .sg-catalog-products-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Categorías en escritorio (21/11): misma estructura que la tienda (barra de filtros de 250 px + productos).
   El contenedor pasa de 1280 px (max-w-7xl) a 1480 px, como .sg-shop-shell, y desde 1400 px se usan 4 columnas
   (≈ 252–274 px) en lugar de 3 de 305–328 px. Por debajo de 1400 px siguen 3; móvil y tableta no cambian.
   La clase sg-category-shell solo existe en el <main> de store/category.blade.php. */
main.sg-category-shell { max-width: 1480px; }
/* «Guías y soporte» (sección final con max-w-7xl propio) acompaña al nuevo ancho y conserva su sangría de 24 px. */
.sg-category-shell > section.max-w-7xl { max-width: none; }
@media (min-width: 1400px) {
  .sg-category-shell .sg-catalog-products-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Imagen de las tarjetas de catálogo (portada, tienda y categorías) como en Productos relacionados (21/11):
   el marco pasa de cuadrado (1:1, product-media-standard.css) a 4:5, la proporción real de todas las portadas
   (960 × 1200), de modo que la imagen llena el marco sin franjas laterales. Mismos selectores que la regla
   original; sg-acabado se carga después. object-fit: contain se mantiene (si alguna imagen futura no fuese 4:5,
   no se recorta). */
.sg-store-page.sg-home-v33-restored .sg-catalog-card > .sg-product-media--card,
.sg-store-page.sg-officevibe-store .sg-catalog-products-grid .sg-catalog-card > .sg-product-media--card {
  aspect-ratio: 4 / 5;
}

/* Otras áreas con la portada en marco cuadrado (21/11): mismo criterio que las tarjetas de catálogo (4:5, sin franjas).
   - Favoritos (Mi cuenta › Favoritos y /lista-de-deseos; regla original en sg-catalog-browse.css): la miniatura pasa
     de 210 × 210 a 168 × 210 (misma altura de fila); en móvil de 260 × 260 a 208 × 260.
   - «Vistos recientemente» (recently-viewed.css): el marco de la tarjeta pasa de 1:1 a 4:5.
   Comparar, carrito, minicarrito y detalle de pedido no cambian (ver informe). */
[data-wishlist-list] > [data-wishlist-row] > div { grid-template-columns: minmax(0, 168px) minmax(0, 1fr); }
[data-wishlist-list] > [data-wishlist-row] > div > :first-child { aspect-ratio: 4 / 5; }
[data-wishlist-list] > [data-wishlist-row] > div > :first-child img { aspect-ratio: auto; }
@media (max-width: 640px) {
  [data-wishlist-list] > [data-wishlist-row] > div { grid-template-columns: minmax(0, 1fr); }
  [data-wishlist-list] > [data-wishlist-row] > div > :first-child { max-width: min(100%, 208px); }
}
.sg-recent-card__media { aspect-ratio: 4 / 5; }

/* Comparar (escritorio) y detalle de pedido (21/11): portada en marco 4:5, como el catálogo.
   - Comparar: la imagen ocupaba todo el ancho de la columna en un cuadrado (416 × 416 con 3 productos,
     626 × 626 con 2). Ahora es un marco 4:5 de 320 px como máximo, centrado (320 × 400). El móvil
     (.sg-compare-mobile-media) no cambia.
   - Detalle de pedido: la miniatura pasa de 144 × 144 a 116 × 144 (misma altura); en móvil de 80 × 80 a 64 × 80. */
.sg-compare-card .sg-compare-media { aspect-ratio: 4 / 5; width: min(100%, 320px); margin: 16px auto 0; border-radius: 14px; }
.sg-order-detail-surface .sg-order-item-artwork { width: 116px; aspect-ratio: 4 / 5; }
@media (max-width: 640px) {
  .sg-order-detail-surface .sg-order-item-artwork { width: 64px; }
}
