/* Importación de Google Fonts: Sora (Pesos 400, 600, 700, 800) */

:root {
    /* SportFans 64 — broadcast golden v8: naranja primario, verde eléctrico secundario */
    --sf-night: #060a12;
    --sf-surface: #0f1828;
    --sf-chrome: #eef4ff;
    --sf-muted: #9aa8bc;
    --sf-promo-yellow: #ffd400;

    /* Primario — fuego / ember (UI, CTAs, hero accent, precios) */
    --sf-primary: #ff4d00;
    --sf-primary-mid: #ff6a1a;
    --sf-primary-bright: #ffb000;
    --sf-primary-deep: #e31b23;

    /* Secundario — verde eléctrico / broadcast (atmósfera, detalles, submenus) */
    --sf-secondary: #22e890;
    --sf-secondary-bright: #00e878;
    --sf-secondary-deep: #009650;

    /* Aliases legacy + marca */
    --sf-ember: var(--sf-primary);
    --sf-flame: var(--sf-primary-bright);
    --sf-crimson: var(--sf-primary-deep);
    --sf-electric: var(--sf-secondary-bright);
    --sf-neon: var(--sf-secondary);
    --sf-neon-deep: var(--sf-secondary-deep);
    --sf-flood: #a8f0c8;

    --color-alabaster: var(--sf-night);
    --color-slate-dark: #0a101c;
    --color-slate-light: var(--sf-muted);
    --color-gold: var(--sf-primary);
    --color-gold-dark: var(--sf-primary-bright);
    --color-glass-bg: rgba(6, 12, 22, 0.92);
    --color-glass-border: rgba(255, 77, 0, 0.32);

    --radius-card: 8px;
    --radius-overlay: 12px;
    --radius-button: 6px;
    --font-display: "Bebas Neue", "Sora", sans-serif;
    --font-brush: "Permanent Marker", cursive;
}

body, html {
    margin: 0; padding: 0;
    width: 100%; height: 100%;
    overflow: hidden;
    background: var(--color-alabaster);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html.spa-scroll-locked,
body.spa-scroll-locked {
    overflow: hidden !important;
    overscroll-behavior: none;
    touch-action: none;
}

html.spa-scroll-locked #atelier-viewport,
body.spa-scroll-locked #atelier-viewport {
    overflow: hidden !important;
    touch-action: none;
}

#atelier-viewport {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    cursor: grab;
    z-index: 1;
    background: var(--sf-night);
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    -webkit-overflow-scrolling: touch;
    --sf-view-opener-pad-top: 124px;
    --sf-view-opener-pad-inline: 48px;
    --sf-view-opener-pad-bottom: 24px;
}

#fabric-layer {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    background-color: var(--sf-night);
}

.fabric-mesh,
.fabric-blob,
.energy-field,
.energy-glow,
.energy-streak {
    display: none !important;
}

/* Stadium photo + soft bloom/blur depth + dark grade. Blur only on the photo layer. */
.stadium-scene {
    position: absolute;
    inset: 0;
    overflow: hidden;
    background: var(--sf-night);
}

.stadium-picture {
    position: absolute;
    inset: 0;
    display: block;
}

.stadium-art {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
    /* scale hides blur edge fringing */
    transform: scale(1.08) translateZ(0);
    filter: blur(5px) saturate(1.12) hue-rotate(-8deg);
}

/* Floodlights — naranja primario arriba; azul secundario en laterales */
.stadium-bloom {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    background:
        radial-gradient(ellipse 50% 32% at 50% 6%, rgba(255, 120, 40, 0.38) 0%, rgba(255, 77, 0, 0.14) 42%, transparent 72%),
        radial-gradient(ellipse 28% 55% at 18% 35%, rgba(0, 150, 80, 0.18) 0%, transparent 68%),
        radial-gradient(ellipse 28% 55% at 82% 35%, rgba(0, 150, 80, 0.18) 0%, transparent 68%),
        radial-gradient(ellipse 40% 22% at 22% 12%, rgba(255, 255, 255, 0.1) 0%, transparent 65%),
        radial-gradient(ellipse 40% 22% at 78% 12%, rgba(255, 255, 255, 0.1) 0%, transparent 65%);
    mix-blend-mode: screen;
    opacity: 0.88;
}

/* Diagonal streak layer — off (clean stadium read behind content) */
.stadium-streaks {
    display: none !important;
}

@keyframes stadium-streak-drift {
    0% { transform: translate3d(-1.5%, 0, 0) skewX(-2deg); opacity: 0.45; }
    100% { transform: translate3d(1.5%, 0, 0) skewX(2deg); opacity: 0.62; }
}

/* Darker wash so cards/header sit on a quieter stage */
.stadium-wash {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 62% 55% at 50% 48%, rgba(8, 14, 24, 0.18) 0%, rgba(8, 14, 24, 0.42) 55%, rgba(8, 14, 24, 0.72) 100%),
        linear-gradient(180deg, rgba(8, 14, 24, 0.55) 0%, rgba(8, 14, 24, 0.22) 22%, rgba(8, 14, 24, 0.28) 58%, rgba(8, 14, 24, 0.68) 100%);
    pointer-events: none;
    z-index: 2;
}

/* Viñeta broadcast — rim naranja arriba, azul secundario abajo */
.stadium-premium {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 3;
    background:
        radial-gradient(ellipse 90% 40% at 50% -8%, rgba(255, 176, 0, 0.16) 0%, transparent 55%),
        radial-gradient(ellipse 70% 50% at 50% 100%, rgba(0, 150, 80, 0.1) 0%, transparent 55%),
        linear-gradient(90deg, rgba(4, 8, 16, 0.55) 0%, transparent 14%, transparent 86%, rgba(4, 8, 16, 0.55) 100%);
    box-shadow: inset 0 0 120px rgba(0, 0, 0, 0.55);
}

.fabric-texture {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-repeat: repeat;
    background-size: 360px;
    opacity: 0.06;
    mix-blend-mode: soft-light;
    pointer-events: none;
    transform: translateZ(0);
    z-index: 4;
}

/* Shared stadium backdrop for menu / cart / checkout overlays */
.sf-overlay-stadium {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.sf-overlay-stadium .stadium-scene {
    position: absolute;
    inset: 0;
}

.sf-overlay-stadium-scrim {
    position: absolute;
    inset: 0;
    z-index: 5;
    pointer-events: none;
    /* Soft home-like wash — readable panels, stadium still present */
    background:
        radial-gradient(ellipse 62% 55% at 50% 48%, rgba(8, 14, 24, 0.28) 0%, rgba(8, 14, 24, 0.5) 55%, rgba(8, 14, 24, 0.68) 100%),
        linear-gradient(180deg, rgba(8, 14, 24, 0.45) 0%, rgba(8, 14, 24, 0.22) 35%, rgba(8, 14, 24, 0.55) 100%);
}

body.is-low-power .sf-overlay-stadium .stadium-art,
#atelier-viewport.is-low-power .sf-overlay-stadium .stadium-art {
    filter: none;
    transform: scale(1.02) translateZ(0);
}

.experience-hero-stage {
    position: relative;
    z-index: 2;
    box-sizing: border-box;
    padding: var(--sf-view-opener-pad-top) var(--sf-view-opener-pad-inline) var(--sf-view-opener-pad-bottom);
    min-height: 0;
    pointer-events: none;
    opacity: 1;
}

.experience-hero-stage .broadcast-hero {
    max-width: 920px;
}

#grid-layer {
    position: relative;
    z-index: 2;
    width: 100%;
    min-height: 0;
    box-sizing: border-box;
    padding: 0 0 80px;
    overflow: visible;
    opacity: 0;
    display: flex;
    flex-direction: column;
    gap: 72px;
    pointer-events: none;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
}

#grid-layer > * {
    pointer-events: auto;
}

#grid-layer::after {
    content: '';
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 72px;
    pointer-events: none;
    background: linear-gradient(to right, transparent, var(--sf-night));
    z-index: 3;
}

/* Tarjetas — módulo broadcast (promo oscura, borde neón) */
.atelier-item {
    position: absolute;
    top: 0;
    width: 320px;
    height: 420px;
    background:
        linear-gradient(165deg, rgba(255, 77, 0, 0.07) 0%, transparent 38%),
        linear-gradient(180deg, rgba(12, 20, 34, 0.97) 0%, rgba(4, 8, 14, 0.98) 100%);
    border: 1px solid rgba(34, 232, 144, 0.16);
    border-left: 3px solid var(--sf-primary);
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.4),
        0 16px 40px rgba(0, 0, 0, 0.55),
        0 0 28px rgba(255, 77, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 14px 16px 14px;
    box-sizing: border-box;
    border-radius: var(--radius-card);
    transition:
        box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1),
        border-color 0.35s cubic-bezier(0.16, 1, 0.3, 1),
        background 0.35s ease;
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
    overflow: hidden;
    isolation: isolate;
}

.atelier-item::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background: radial-gradient(ellipse 80% 40% at 50% 0%, rgba(255, 120, 40, 0.14) 0%, transparent 65%);
    z-index: 0;
}

.card-broadcast .product-card-broadcast-cap {
    align-self: flex-start;
    margin: 0 0 6px;
    padding: 4px 12px 6px;
    font-family: var(--font-brush);
    font-size: 13px;
    line-height: 1;
    letter-spacing: 0.04em;
    color: var(--sf-night);
    background: linear-gradient(95deg, var(--sf-promo-yellow) 0%, #ffe566 100%);
    box-shadow: 0 4px 16px rgba(255, 212, 0, 0.25);
    transform: rotate(-2deg);
    border-radius: 2px;
}

.atelier-item > * {
    position: relative;
    z-index: 1;
}

.card-product {
    gap: 12px;
}

.atelier-item:hover {
    border-color: rgba(255, 176, 0, 0.4);
    box-shadow:
        0 0 0 1px rgba(255, 77, 0, 0.2),
        0 22px 52px rgba(0, 0, 0, 0.58),
        0 0 44px rgba(255, 77, 0, 0.22),
        0 0 24px rgba(34, 232, 144, 0.08);
}

.card-product h3 {
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 400;
    font-style: normal;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin: 0;
    color: var(--sf-chrome);
    text-align: center;
    line-height: 1.35;
    width: 100%;
    flex-shrink: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card-image-wrap {
    flex: 1;
    width: 100%;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 10px;
    border-radius: 4px;
    background:
        radial-gradient(ellipse 80% 70% at 50% 40%, rgba(0, 150, 80, 0.12) 0%, rgba(4, 8, 14, 0.85) 70%);
    border: 1px solid rgba(34, 232, 144, 0.12);
    box-shadow: inset 0 0 24px rgba(0, 232, 120, 0.06);
}

.product-card-image {
    max-width: 88%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    pointer-events: none;
    user-select: none;
    filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.4));
}

.product-card-image-wrap--dual {
    position: relative;
}

.product-card-image-wrap--dual .product-card-image {
    transition: opacity 0.48s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card-image-wrap--dual .product-card-image--alt {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
}

.product-card-image-wrap--dual.is-showing-alt .product-card-image:not(.product-card-image--alt) {
    opacity: 0;
}

.product-card-image-wrap--dual.is-showing-alt .product-card-image--alt {
    opacity: 1;
}

.service-card-placeholder {
    flex-direction: column;
    gap: 10px;
    padding: 18px 14px;
    border-radius: 18px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.72), rgba(245, 238, 228, 0.92)),
        var(--fabric-texture, none);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.service-card-label {
    font-size: 9px;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: rgba(0, 0, 0, 0.45);
}

.service-card-title {
    font-size: 13px;
    line-height: 1.35;
    text-align: center;
    color: rgba(0, 0, 0, 0.82);
    font-weight: 700;
    text-transform: none;
    letter-spacing: 0.02em;
}

.product-card-footer {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.product-card-actions {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.product-quick-add-btn,
.product-buy-now-btn,
.product-customize-btn {
    border: none;
    border-radius: var(--radius-button);
    background: transparent;
    padding: 12px 10px;
    font-family: 'Sora', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease;
}

.product-buy-now-btn {
    background: linear-gradient(135deg, var(--sf-secondary-deep) 0%, var(--sf-secondary) 50%, var(--sf-secondary-bright) 100%);
    color: #041018;
    box-shadow:
        0 6px 22px rgba(0, 150, 80, 0.32),
        0 0 14px rgba(0, 232, 120, 0.18),
        0 2px 5px rgba(0, 0, 0, 0.3);
}

.product-buy-now-btn:hover {
    box-shadow:
        0 10px 28px rgba(0, 150, 80, 0.42),
        0 0 20px rgba(0, 232, 120, 0.25),
        0 3px 8px rgba(0, 0, 0, 0.28);
    transform: translateY(-1px);
}

.product-buy-now-btn:active {
    transform: translateY(0);
    box-shadow:
        0 4px 14px rgba(0, 150, 80, 0.28),
        0 0 10px rgba(0, 232, 120, 0.12),
        0 1px 3px rgba(0, 0, 0, 0.22);
}

.card-product:hover .product-buy-now-btn {
    box-shadow:
        0 8px 26px rgba(0, 150, 80, 0.38),
        0 0 18px rgba(0, 232, 120, 0.22),
        0 2px 6px rgba(0, 0, 0, 0.25);
}

.product-quick-add-btn {
    background: linear-gradient(135deg, var(--sf-primary) 0%, var(--sf-primary-mid) 45%, var(--sf-primary-deep) 100%);
    color: #fff;
    font-weight: 800;
    box-shadow:
        0 8px 28px rgba(255, 77, 0, 0.38),
        0 0 16px rgba(34, 232, 144, 0.12),
        0 2px 6px rgba(0, 0, 0, 0.35);
}

.product-quick-add-btn:hover {
    box-shadow:
        0 12px 36px rgba(255, 77, 0, 0.48),
        0 0 22px rgba(34, 232, 144, 0.15),
        0 4px 10px rgba(0, 0, 0, 0.3);
    transform: translateY(-1px);
}

.product-quick-add-btn:active {
    transform: translateY(0);
    box-shadow:
        0 4px 16px rgba(255, 77, 0, 0.32),
        0 0 10px rgba(34, 232, 144, 0.1),
        0 1px 3px rgba(0, 0, 0, 0.25);
}

.product-customize-btn {
    display: none; /* Lab OUT — no pintar */
}

.card-product:hover .product-quick-add-btn {
    box-shadow:
        0 10px 32px rgba(255, 77, 0, 0.42),
        0 0 20px rgba(34, 232, 144, 0.14),
        0 3px 8px rgba(0, 0, 0, 0.25);
}

/* Header — mismo lenguaje que Agregar al carrito, escala de barra */
#atelier-viewport #cart-trigger-btn.header-cart-btn {
    flex-shrink: 0;
    margin-left: 4px;
    padding: 9px 12px;
    font-size: 10px;
    letter-spacing: 0.06em;
    line-height: 1.2;
    white-space: nowrap;
    border-bottom: none;
    text-shadow: none;
    box-shadow:
        0 6px 20px rgba(255, 77, 0, 0.38),
        0 0 12px rgba(34, 232, 144, 0.12),
        0 2px 5px rgba(0, 0, 0, 0.35);
}

#atelier-viewport #cart-trigger-btn.header-cart-btn:hover,
#atelier-viewport #cart-trigger-btn.header-cart-btn:focus-visible {
    color: #fff;
    background: linear-gradient(135deg, var(--sf-primary) 0%, var(--sf-primary-mid) 45%, var(--sf-primary-deep) 100%);
    border-bottom: none;
    filter: none;
    box-shadow:
        0 10px 28px rgba(255, 77, 0, 0.48),
        0 0 18px rgba(34, 232, 144, 0.15),
        0 3px 8px rgba(0, 0, 0, 0.3);
    transform: translateY(-1px);
}

#atelier-viewport #cart-trigger-btn.header-cart-btn:active {
    transform: translateY(0);
    box-shadow:
        0 4px 14px rgba(255, 77, 0, 0.32),
        0 0 10px rgba(34, 232, 144, 0.1),
        0 1px 3px rgba(0, 0, 0, 0.25);
}

.catalog-empty-card {
    justify-content: space-between;
    text-align: center;
    cursor: default;
}

.catalog-empty-card--centered {
    position: relative;
    top: auto;
    left: auto;
    width: min(480px, calc(100vw - 48px));
    height: min(540px, calc(100vh - 220px));
    min-height: 420px;
    padding: 36px 40px 32px;
}

.catalog-empty-card--centered:hover {
    border-color: rgba(0, 0, 0, 0.04);
    box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.015),
        0 15px 35px rgba(0, 0, 0, 0.03);
}

.catalog-empty-card h3 {
    opacity: 1;
}

.catalog-empty-card--centered h3 {
    font-size: 14px;
    letter-spacing: 0.06em;
}

.catalog-empty-body {
    flex: 1;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 6px 0;
}

.catalog-empty-body p {
    margin: 0;
    font-size: 10px;
    font-weight: 500;
    line-height: 1.6;
    letter-spacing: 0.02em;
    color: var(--color-slate-light);
    opacity: 0.82;
}

.catalog-empty-card--centered .catalog-empty-body {
    padding: 12px 12px 0;
}

.catalog-empty-card--centered .catalog-empty-body p {
    font-size: 12px;
    line-height: 1.7;
    max-width: 340px;
}

.catalog-empty-footer {
    margin-top: auto;
}

.catalog-empty-actions {
    width: 100%;
}

.catalog-empty-actions:has(> :nth-child(3)) {
    grid-template-columns: 1fr;
}

.catalog-empty-card--centered .catalog-empty-actions {
    gap: 8px;
}

.catalog-empty-card--centered .product-quick-add-btn,
.catalog-empty-card--centered .product-customize-btn {
    padding: 11px 10px;
    font-size: 8px;
}

.category-row--empty-state {
    width: 100%;
    pointer-events: none;
}

.category-row--empty-state .catalog-empty-track {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
}

.category-row--search-services .category-row-track {
    position: relative;
}

/* --- Quick Add Modal — broadcast product detail (size only, no color) --- */
.quick-add-modal-overlay {
    z-index: 100001;
    background: rgba(6, 10, 18, 0.72);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

body.is-low-power .quick-add-modal-overlay {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(6, 10, 18, 0.88);
}

.quick-add-modal.atelier-dialog-card {
    max-width: min(860px, 100%);
    width: 100%;
    padding: 0;
    background:
        linear-gradient(165deg, rgba(255, 77, 0, 0.06) 0%, transparent 42%),
        linear-gradient(180deg, rgba(12, 20, 34, 0.98) 0%, rgba(4, 8, 14, 0.99) 100%);
    border: 1px solid rgba(34, 232, 144, 0.22);
    border-left: 3px solid var(--sf-primary);
    border-radius: var(--radius-overlay);
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.4),
        0 24px 64px rgba(0, 0, 0, 0.55),
        0 0 28px rgba(255, 77, 0, 0.12);
    overflow: hidden;
}

.quick-add-layout {
    display: grid;
    grid-template-columns: minmax(240px, 0.95fr) minmax(280px, 1.05fr);
    min-height: 420px;
}

.quick-add-media {
    position: relative;
    background: rgba(8, 14, 24, 0.85);
    border-right: 1px solid rgba(34, 232, 144, 0.14);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    min-height: 280px;
}

.quick-add-media::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(ellipse 70% 50% at 50% 40%, rgba(255, 120, 40, 0.12) 0%, transparent 70%);
    z-index: 0;
}

.quick-add-media-stack {
    position: relative;
    z-index: 1;
    width: 100%;
    min-height: 280px;
    flex: 1;
    align-self: stretch;
}

.quick-add-media-img {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    max-height: 520px;
    margin: auto;
    object-fit: contain;
    object-position: center;
    display: block;
    padding: 28px;
    box-sizing: border-box;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.48s cubic-bezier(0.4, 0, 0.2, 1);
}

.quick-add-media-img.is-visible {
    opacity: 1;
    z-index: 1;
}

.quick-add-media-toggle {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 2px 0 4px;
}

.quick-add-media-toggle-btn {
    appearance: none;
    border: 1px solid rgba(255, 176, 0, 0.45);
    border-radius: var(--radius-button, 6px);
    background: rgba(6, 10, 18, 0.82);
    color: var(--sf-chrome);
    font-family: "Sora", sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 8px 14px;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.quick-add-media-toggle-btn:hover,
.quick-add-media-toggle-btn:focus-visible {
    border-color: var(--sf-primary-bright);
    outline: none;
}

.quick-add-media-toggle-btn.is-active {
    background: rgba(255, 77, 0, 0.22);
    border-color: var(--sf-primary-bright);
    box-shadow: 0 0 18px rgba(255, 120, 40, 0.35);
}

.quick-add-content {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 22px 28px 24px;
    min-width: 0;
}

.quick-add-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.quick-add-header {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.quick-add-badge {
    display: inline-block;
    align-self: flex-start;
    font-family: "Sora", sans-serif;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--sf-secondary);
}

.quick-add-back {
    margin: 0;
    margin-left: auto;
    padding: 4px 0;
    border: none;
    background: none;
    font-family: "Sora", sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--sf-muted);
    cursor: pointer;
    transition: color 0.2s ease;
}

.quick-add-back:hover,
.quick-add-back:focus-visible {
    color: var(--sf-chrome);
    outline: none;
}

.quick-add-title {
    margin: 0;
    font-family: "Sora", sans-serif;
    font-size: clamp(1.2rem, 2.4vw, 1.55rem);
    font-weight: 800;
    letter-spacing: 0.01em;
    color: var(--sf-chrome);
    line-height: 1.25;
}

.quick-add-price {
    margin: 0;
    font-family: var(--font-display);
    font-size: 1.65rem;
    font-weight: 400;
    letter-spacing: 0.04em;
    color: var(--sf-primary-bright);
}

.quick-add-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.quick-add-chip {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 4px;
    border: 1px solid rgba(34, 232, 144, 0.28);
    background: rgba(34, 232, 144, 0.1);
    font-family: "Sora", sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--sf-flood, #a8f0c8);
}

.quick-add-chip--soft {
    border-color: rgba(255, 176, 0, 0.28);
    background: rgba(255, 176, 0, 0.1);
    color: var(--sf-primary-bright);
}

.quick-add-description {
    margin: 0;
    font-family: "Sora", sans-serif;
    font-size: 13px;
    line-height: 1.55;
    color: var(--sf-muted);
    max-height: 7.5em;
    overflow-y: auto;
}

.quick-add-field-label {
    margin: 4px 0 0;
    font-family: "Sora", sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(168, 240, 200, 0.85);
}

.quick-add-sizes-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.quick-add-size-badge {
    min-width: 48px;
    padding: 11px 14px;
    border-radius: var(--radius-button);
    border: 1px solid rgba(34, 232, 144, 0.22);
    background: rgba(8, 14, 24, 0.55);
    font-family: "Sora", sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--sf-chrome);
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.15s ease;
}

.quick-add-size-badge:hover:not(.is-disabled) {
    border-color: rgba(255, 77, 0, 0.55);
    transform: translateY(-1px);
}

.quick-add-size-badge.is-selected {
    background: linear-gradient(135deg, var(--sf-primary) 0%, var(--sf-primary-mid) 45%, var(--sf-primary-deep) 100%);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 6px 18px rgba(255, 77, 0, 0.3);
}

.quick-add-size-badge.is-disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.quick-add-footer {
    display: flex;
    justify-content: stretch;
    align-items: center;
    gap: 10px;
    margin-top: auto;
    padding-top: 12px;
}

.quick-add-btn {
    font-family: "Sora", sans-serif;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-radius: var(--radius-button);
    cursor: pointer;
    padding: 13px 16px;
    border: none;
}

.quick-add-btn--primary {
    flex: 1 1 0;
    width: auto;
    max-width: none;
    min-width: 0;
}

@media (max-width: 720px) {
    .quick-add-layout {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .quick-add-media {
        border-right: none;
        border-bottom: 1px solid rgba(34, 232, 144, 0.14);
        min-height: 220px;
        max-height: 260px;
    }

    .quick-add-media-img {
        max-height: 240px;
        padding: 20px;
    }

    .quick-add-content {
        padding: 22px 20px 20px;
    }

    .quick-add-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .quick-add-btn--primary {
        width: 100%;
    }
}

/* Header integrado al fondo — tipografía libre (mismo lenguaje que broadcast-hero) */
.infinity-tool-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    transform: translateY(-20px);
    width: 100%;
    max-width: none;
    z-index: 1000;
    pointer-events: none;
    opacity: 0;
    transition:
        opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
}

.infinity-tool-bar.is-entered {
    opacity: 1;
    transform: translateY(0);
}

/* At rest: soft vignette only (header integrated into stadium).
   On scroll (.is-scrolled): frosted plate so content can pass underneath cleanly. */
.infinity-tool-bar::before {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 120px;
    pointer-events: none;
    background: linear-gradient(
        180deg,
        rgba(6, 10, 18, 0.55) 0%,
        rgba(6, 10, 18, 0.22) 55%,
        transparent 100%
    );
    z-index: 0;
    transition: height 0.35s ease, background 0.35s ease;
}

.infinity-tool-bar::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 28px;
    pointer-events: none;
    z-index: 0;
    opacity: 0;
    background: linear-gradient(
        180deg,
        rgba(6, 10, 18, 0.45) 0%,
        transparent 100%
    );
    transition: opacity 0.35s ease;
}

.bar-content {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    width: 100%;
    max-width: none;
    padding: 18px 48px 14px;
    background: transparent;
    border: none;
    border-bottom: 1px solid transparent;
    border-radius: 0;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    pointer-events: auto;
    overflow: visible;
    isolation: auto;
    box-sizing: border-box;
    transition:
        background 0.35s ease,
        border-color 0.35s ease,
        box-shadow 0.35s ease,
        backdrop-filter 0.35s ease;
}

.infinity-tool-bar.is-scrolled::before {
    height: 100%;
    background: linear-gradient(
        180deg,
        rgba(6, 10, 18, 0.5) 0%,
        rgba(6, 10, 18, 0.2) 70%,
        transparent 100%
    );
}

.infinity-tool-bar.is-scrolled::after {
    opacity: 1;
}

.infinity-tool-bar.is-scrolled .bar-content {
    background: rgba(6, 10, 18, 0.88);
    border-bottom-color: rgba(34, 232, 144, 0.1);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
}

.broadcast-hud {
    width: 100%;
    max-width: none;
}

.broadcast-hud-bar {
    box-shadow: none;
}

.broadcast-hero {
    position: relative;
    top: auto;
    left: auto;
    z-index: 1;
    pointer-events: none;
    max-width: min(920px, 100%);
}

.broadcast-tagline {
    margin: 0 0 6px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(168, 240, 200, 0.82);
    text-shadow: 0 0 18px rgba(34, 232, 144, 0.35);
}

.broadcast-title {
    margin: 0;
    display: flex;
    flex-wrap: nowrap;
    align-items: baseline;
    gap: 12px 16px;
    line-height: 0.95;
    white-space: nowrap;
}

.broadcast-title-line,
.broadcast-title-accent {
    font-size: clamp(2.4rem, 5.5vw, 3.75rem);
    font-weight: 400;
    line-height: 0.95;
}

.broadcast-title-line {
    font-family: var(--font-display);
    letter-spacing: 0.04em;
    color: var(--sf-chrome);
    text-shadow: 0 4px 24px rgba(0, 0, 0, 0.6);
}

.broadcast-title-accent {
    font-family: var(--font-brush);
    color: var(--sf-primary-bright);
    text-shadow:
        0 0 24px rgba(255, 120, 40, 0.75),
        0 0 48px rgba(255, 77, 0, 0.45),
        0 0 32px rgba(34, 232, 144, 0.2),
        0 2px 8px rgba(0, 0, 0, 0.8);
    transform: none;
}

.left-zone, .right-zone {
    display: flex;
    align-items: center;
    gap: 2px;
}

.brand-lockup {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    min-width: 0;
    cursor: pointer;
    padding: 0;
    margin-right: 18px;
    border-radius: 0;
    background: transparent;
    border: none;
    box-shadow: none;
}

.brand-logo {
    display: block;
    width: 68px;
    height: 68px;
    object-fit: contain;
    flex-shrink: 0;
    image-rendering: auto;
    border-radius: 50%;
    box-shadow:
        0 4px 18px rgba(0, 0, 0, 0.45),
        0 0 20px rgba(255, 77, 0, 0.18);
}

.brand {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    justify-content: flex-start;
    gap: 0;
    line-height: 1;
    font-weight: 800;
    font-style: normal;
    color: var(--sf-chrome);
    white-space: nowrap;
    text-transform: uppercase;
    text-shadow: 0 4px 24px rgba(0, 0, 0, 0.65);
}

.brand-name,
.brand-num {
    font-family: 'Sora', sans-serif;
    font-size: clamp(1.75rem, 2.65vw, 2.25rem);
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 0.92;
}

.brand-name {
    letter-spacing: 0.06em;
}

.brand-num {
    margin-left: 0.02em;
    letter-spacing: 0.03em;
    color: var(--sf-primary-bright);
    text-shadow:
        0 0 18px rgba(255, 120, 40, 0.55),
        0 2px 8px rgba(0, 0, 0, 0.7);
}

.menu-trigger, .filter-trigger {
    background: transparent;
    border: none;
    border-bottom: 1px solid transparent;
    font-family: 'Sora', sans-serif;
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    cursor: pointer;
    font-weight: 700;
    padding: 10px 12px;
    border-radius: 0;
    color: rgba(238, 244, 255, 0.72);
    box-shadow: none;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.55);
    transform-origin: center center;
    transition:
        transform 0.22s cubic-bezier(0.22, 1, 0.36, 1),
        border-color 0.25s ease,
        text-shadow 0.22s ease;
}

.menu-trigger:hover,
.menu-trigger:focus-visible,
.filter-trigger:hover:not(.is-active):not(.is-filter-active),
.filter-trigger:focus-visible:not(.is-active):not(.is-filter-active) {
    color: rgba(238, 244, 255, 0.72);
    background: transparent;
    border-color: transparent;
    border-bottom-color: transparent;
    filter: none;
    transform: scale(1.07);
    box-shadow: none;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.65);
}

.filter-trigger.is-active:hover,
.filter-trigger.is-filter-active:hover,
.filter-trigger.is-active:focus-visible,
.filter-trigger.is-filter-active:focus-visible {
    transform: scale(1.07);
    border-bottom-color: rgba(255, 176, 0, 0.75);
}

.filter-trigger.is-active,
.filter-trigger.is-filter-active {
    background: transparent;
    border-color: transparent;
    border-bottom-color: rgba(255, 176, 0, 0.75);
    color: var(--sf-primary-bright);
    box-shadow: none;
    text-shadow:
        0 0 16px rgba(255, 120, 40, 0.35),
        0 2px 10px rgba(0, 0, 0, 0.55);
}

.header-nav-dropdown {
    position: relative;
    display: inline-flex;
}

/* Invisible bridge so the cursor can reach the submenu across the 10px gap */
.header-nav-dropdown::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 14px;
}

.header-nav-submenu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    min-width: 196px;
    padding: 8px;
    border-radius: 12px;
    background: rgba(8, 14, 24, 0.94);
    border: 1px solid rgba(238, 244, 255, 0.1);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    pointer-events: none;
    transition:
        opacity 0.22s ease,
        transform 0.22s ease,
        visibility 0.22s ease;
    z-index: 1200;
}

.header-nav-dropdown:hover .header-nav-submenu,
.header-nav-dropdown.is-open .header-nav-submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.header-nav-submenu-heading {
    display: block;
    padding: 8px 12px 4px;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--color-slate-light);
}

.header-nav-submenu-item {
    display: block;
    width: 100%;
    text-align: left;
    border: none;
    background: transparent;
    border-radius: var(--radius-button);
    padding: 10px 12px;
    font-family: 'Sora', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--sf-chrome);
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.header-nav-submenu-item:hover,
.header-nav-submenu-item.is-active {
    background: rgba(255, 255, 255, 0.08);
    color: var(--sf-chrome);
}

.header-nav-submenu-item.is-active {
    font-weight: 800;
}

.search-wrapper {
    position: relative;
    border-left: none;
    padding-left: 0;
    display: flex;
    align-items: center;
    height: auto;
    margin-right: 4px;
}

.search-input {
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(238, 244, 255, 0.28);
    font-size: 11px;
    letter-spacing: 0.12em;
    width: 120px;
    outline: none !important;
    text-transform: uppercase;
    color: var(--sf-chrome);
    padding: 9px 4px;
    margin: 0;
    vertical-align: middle;
    display: inline-block;
    line-height: normal;
    border-radius: 0 !important;
    box-shadow: none;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
    transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease;
    will-change: width;
}

.search-input:focus {
    width: 200px;
    background: transparent !important;
    border-color: rgba(255, 176, 0, 0.65) !important;
    box-shadow: none !important;
    outline: none !important;
}

.search-input::placeholder {
    color: rgba(244, 246, 248, 0.45);
}

/* Capas Emergentes Glassmorphism (Overlays) - Alineado inferior para bandejas deslizantes */
.glass-overlay {
    position: fixed;
    inset: 0;
    z-index: 1100;
    background: rgba(0, 0, 0, 0.15); /* Fondo oscuro sutil unificado */
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    opacity: 0;
    visibility: hidden;
    display: flex;
    align-items: center; /* Alineamos los elementos al centro de la pantalla */
    justify-content: center;
    will-change: opacity;
    padding: 24px; /* Margen de holgura de seguridad */
    box-sizing: border-box;
}

/* NOTA: Estilos del Wizard modularizados y reubicados de forma segura en modules/wizard/wizard.css */

/* Botones Premium - Estructura Compacta de Streetwear de Alta Gama */
.atelier-btn-premium {
    background: var(--color-slate-dark);
    color: #ffffff;
    border: none;
    padding: 18px 40px;
    font-size: 10px; /* Escalado sutil para Sora Bold */
    font-weight: 800; /* Extra Bold para máximo impacto visual */
    letter-spacing: 1px; /* Espaciado compacto y cohesivo */
    border-radius: var(--radius-button);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    width: 100%;
    max-width: 320px;
    text-transform: uppercase;
}

.atelier-btn-premium:disabled {
    background: rgba(0, 0, 0, 0.05);
    color: rgba(0, 0, 0, 0.2);
    cursor: not-allowed;
}

/* Hover premium: ver assets/css/atelier-buttons.css */

/* NOTA: Estilos del Wizard modularizados y reubicados de forma segura en modules/wizard/wizard.css */

/* Precios de Tarjetas */
.product-price {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 400;
    font-style: normal;
    color: var(--sf-primary-bright);
    letter-spacing: 0.08em;
    margin: 0;
    text-shadow: 0 0 16px rgba(255, 120, 40, 0.45), 0 0 10px rgba(34, 232, 144, 0.15);
}

.product-action-label {
    font-size: 9px;
    letter-spacing: 0.8px; /* Tighter modern tracking */
    font-weight: 800;
    color: var(--color-slate-light);
    opacity: 0.7;
}

/* NOTA: Estilos de la bandeja lateral del Carrito modularizados en modules/cart/cart.css */

/* NOTA: Estilos de Ficha de Detalle y Consola "The Lab" modularizados en modules/lab/lab.css */

/* --- ESTILOS DE LA GRILLA MULTIDIMENSIONAL (ETAPA 3) --- */

/* Filas contenedoras de categorías individuales */
.category-row {
    position: relative;
    left: auto;
    top: auto;
    width: 100%;
    flex-shrink: 0;
    transform: none !important;
    will-change: auto;
    pointer-events: auto;
}

.category-row-header {
    position: relative;
    padding: 0 0 16px 48px;
}

.category-row-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 20px 10px;
    border-radius: 3px;
    background: linear-gradient(95deg, rgba(255, 77, 0, 0.42) 0%, rgba(255, 120, 40, 0.22) 100%);
    border: 1px solid rgba(34, 232, 144, 0.35);
    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.4),
        0 0 18px rgba(255, 77, 0, 0.2),
        0 0 12px rgba(34, 232, 144, 0.1);
    font-family: var(--font-brush);
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--sf-chrome);
    text-shadow: 0 0 10px rgba(255, 120, 40, 0.35), 0 0 8px rgba(34, 232, 144, 0.25);
    opacity: 0.95;
    transform: rotate(-1.5deg);
}

.category-row-track {
    position: relative;
    width: 100%;
    height: 420px;
}

.category-row--grid {
    height: auto !important;
}

.category-row--grid .category-row-track {
    height: auto;
    transform: none !important;
}

/* Shared product grid — home "En cancha" + catalog categories */
.sf-product-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(12px, 1.35vw, 18px);
    padding: 4px clamp(22px, 2.5vw, 34px) 28px;
    box-sizing: border-box;
    overflow: visible;
}

.sf-product-grid .card-product--flow {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    max-width: none;
    min-width: 0;
    height: auto;
    min-height: 0;
    padding: 10px 12px 10px;
    gap: 8px;
    overflow: visible;
}

.sf-product-grid .card-product--flow h3 {
    font-size: 14px;
    line-height: 1.28;
}

.sf-product-grid .product-card-image-wrap {
    flex: 0 1 auto;
    max-height: clamp(150px, 15.5vw, 182px);
    padding: 8px 6px;
}

.sf-product-grid .product-card-image {
    max-width: 92%;
}

.sf-product-grid .product-card-footer {
    gap: 8px;
}

.sf-product-grid .product-card-actions {
    gap: 6px;
}

.sf-product-grid .product-buy-now-btn,
.sf-product-grid .product-quick-add-btn {
    padding: 10px 8px;
}

.sf-product-grid.catalog-empty-track {
    grid-template-columns: minmax(0, 420px);
    justify-content: center;
    padding-top: clamp(32px, 8vh, 72px);
    padding-bottom: clamp(48px, 12vh, 96px);
}

.sf-product-grid .catalog-empty-card--grid {
    grid-column: 1 / -1;
}

@media (max-width: 900px) {
    .sf-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding-left: 20px;
        padding-right: 20px;
        gap: 12px;
    }

    .sf-product-grid .product-card-image-wrap {
        max-height: clamp(168px, 42vw, 210px);
    }
}

.category-row--search-mosaic {
    height: auto;
}

.search-mosaic-track {
    position: relative;
    min-height: 472px;
}

.search-category-group {
    position: absolute;
    top: 0;
    height: 100%;
}

.search-category-header {
    position: relative;
    padding: 0 0 16px 0;
}

.search-category-cards {
    position: relative;
    height: 420px;
    width: 100%;
}

.category-row--services {
    height: 420px;
}

#atelier-viewport.is-carousel-mode .category-row.is-carousel-active .card-product:not([data-carousel-clone="1"]) {
    box-shadow:
        0 0 0 1px rgba(255, 77, 0, 0.22),
        0 24px 56px rgba(0, 0, 0, 0.55),
        0 0 40px rgba(255, 77, 0, 0.18),
        0 0 24px rgba(34, 232, 144, 0.1);
}

/* --- Menú bento — tiles libres sobre estadio (entrada fade, como Contacto) --- */

.fullscreen-menu-overlay {
    position: fixed;
    inset: 0;
    z-index: 1300;
    background: transparent;
    opacity: 0;
    visibility: hidden;
    overflow: hidden;
    will-change: opacity;
    transition:
        opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1),
        visibility 0.4s;
}

.fullscreen-menu-overlay.is-active {
    visibility: visible;
    opacity: 1;
}

.fullscreen-menu-overlay .sf-overlay-stadium {
    z-index: 0;
}

.menu-solid-container {
    position: relative;
    z-index: 1;
    height: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 28px 28px 40px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    background: transparent;
    border: none;
    box-shadow: none;
    border-radius: 0;
    transform: none;
    overflow: visible;
}

.menu-close-btn {
    position: absolute;
    top: 22px;
    right: 28px;
    z-index: 2;
    background: none;
    border: none;
    font-family: "Sora", sans-serif;
    font-size: 12px;
    letter-spacing: 0.08em;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    color: var(--sf-muted, #9aa8bc);
    transition: color 0.25s ease;
    padding: 6px 0;
    margin: 0;
}

.menu-close-btn:hover,
.menu-close-btn:focus-visible {
    color: var(--sf-chrome, #eef4ff);
    outline: none;
}

.menu-slider-container {
    overflow: visible;
    width: 100%;
    flex-grow: 1;
    display: flex;
    align-items: center;
    padding: 56px 4px 8px;
    box-sizing: border-box;
    min-height: 0;
}

.single-page-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(3, minmax(110px, 1fr));
    gap: 20px;
    width: 100%;
    height: 100%;
    max-height: 520px;
}

.fullscreen-menu-overlay.is-active .mosaic-card {
    animation: sfMenuCardIn 0.42s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.fullscreen-menu-overlay.is-active .mosaic-card:nth-child(1) { animation-delay: 0.05s; }
.fullscreen-menu-overlay.is-active .mosaic-card:nth-child(2) { animation-delay: 0.1s; }
.fullscreen-menu-overlay.is-active .mosaic-card:nth-child(3) { animation-delay: 0.14s; }
.fullscreen-menu-overlay.is-active .mosaic-card:nth-child(4) { animation-delay: 0.18s; }
.fullscreen-menu-overlay.is-active .mosaic-card:nth-child(5) { animation-delay: 0.22s; }

@keyframes sfMenuCardIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

body.is-low-power .fullscreen-menu-overlay.is-active .mosaic-card,
#atelier-viewport.is-low-power .fullscreen-menu-overlay.is-active .mosaic-card {
    animation: none;
    opacity: 1;
    transform: none;
}

.single-page-grid .mosaic-card:nth-child(1) {
    grid-column: 1 / span 2;
    grid-row: 1 / span 2;
}

.single-page-grid .mosaic-card:nth-child(2) {
    grid-column: 3 / span 2;
    grid-row: 1;
}

.single-page-grid .mosaic-card:nth-child(3) {
    grid-column: 3;
    grid-row: 2 / span 2;
}

.single-page-grid .mosaic-card:nth-child(4) {
    grid-column: 4;
    grid-row: 2 / span 2;
}

.single-page-grid .mosaic-card:nth-child(5) {
    grid-column: 1 / span 2;
    grid-row: 3;
}

/* Mosaic tiles — same surface language as .atelier-item cards */
.mosaic-card {
    position: relative;
    border-radius: var(--radius-card);
    border: 1px solid rgba(34, 232, 144, 0.16);
    border-left: 3px solid var(--sf-primary);
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.35),
        0 14px 36px rgba(0, 0, 0, 0.45),
        0 0 20px rgba(255, 77, 0, 0.08);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    text-decoration: none;
    overflow: hidden;
    cursor: pointer;
    background:
        linear-gradient(165deg, rgba(255, 77, 0, 0.08) 0%, transparent 42%),
        linear-gradient(180deg, rgba(12, 20, 34, 0.97) 0%, rgba(4, 8, 14, 0.98) 100%);
    transition:
        transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1),
        border-color 0.35s ease;
    z-index: 1;
    isolation: isolate;
}

.mosaic-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background: radial-gradient(ellipse 80% 40% at 50% 0%, rgba(255, 120, 40, 0.12) 0%, transparent 65%);
    z-index: 0;
}

.mosaic-card:hover {
    transform: scale(1.02);
    z-index: 5;
    border-color: rgba(34, 232, 144, 0.35);
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.4),
        0 18px 44px rgba(0, 0, 0, 0.55),
        0 0 28px rgba(255, 77, 0, 0.16);
}

.card-media-wrapper {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border-radius: var(--radius-card);
    overflow: hidden;
    z-index: 0;
    opacity: 0.78;
    transition: opacity 0.4s ease;
}

.card-media-wrapper picture {
    display: block;
    width: 100%;
    height: 100%;
}

.card-image,
.card-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), filter 0.4s ease;
    will-change: transform;
    filter: saturate(0.95) brightness(1.08) contrast(1.04);
}

.mosaic-card:hover .card-media-wrapper {
    opacity: 0.88;
}

.mosaic-card:hover .card-image,
.mosaic-card:hover .card-video {
    transform: scale(1.06);
    filter: saturate(1) brightness(1.12) contrast(1.05);
}

/* Términos: ancla intermedia — silbato + tarjetas visibles sin pegarse arriba */
.mosaic-card[data-view="terms"] .card-image {
    object-position: center 62%;
}

.card-overlay {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(
        to top,
        rgba(4, 8, 14, 0.9) 0%,
        rgba(4, 8, 14, 0.45) 42%,
        rgba(4, 8, 14, 0.12) 72%,
        transparent 100%
    );
    pointer-events: none;
    z-index: 1;
}

.card-info {
    position: relative;
    z-index: 2;
    padding: 22px 24px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    pointer-events: none;
}

.card-number {
    font-family: "Sora", sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    color: var(--sf-secondary);
    text-transform: uppercase;
}

.card-title {
    font-family: "Sora", sans-serif;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: var(--sf-chrome);
    margin: 0;
    text-transform: none;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.55);
}

.bento-hero .card-title {
    font-size: clamp(1.15rem, 2vw, 1.45rem);
}

body.is-low-power .fullscreen-menu-overlay,
#atelier-viewport.is-low-power .fullscreen-menu-overlay {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

@media (max-width: 768px) {
    .menu-solid-container {
        padding: 20px 18px 32px;
    }

    .menu-close-btn {
        top: 16px;
        right: 18px;
    }

    .menu-slider-container {
        align-items: flex-start;
        overflow-y: auto;
        padding-top: 48px;
        -webkit-overflow-scrolling: touch;
    }

    .single-page-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 14px;
        max-height: none;
        height: auto;
    }

    .single-page-grid .mosaic-card {
        grid-column: span 1 !important;
        grid-row: auto !important;
        height: 132px;
    }

    .single-page-grid .mosaic-card:nth-child(1) {
        height: 180px;
    }
}

/* ==========================================================================
   PERFORMANCE — Fase 1 + 2 (Windows / low-power: mesh estático, misma atmósfera)
   ========================================================================== */

#atelier-viewport.is-rendering .fabric-texture,
#atelier-viewport.is-rendering .category-row-track {
    will-change: transform;
}

#atelier-viewport.is-low-power {
    background-color: var(--color-alabaster);
}

body.is-low-power .fabric-texture,
#atelier-viewport.is-low-power .fabric-texture {
    opacity: 0.06;
}

body.is-low-power .infinity-tool-bar.is-scrolled .bar-content,
#atelier-viewport.is-low-power .infinity-tool-bar.is-scrolled .bar-content {
    background: rgba(6, 10, 18, 0.96);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

body.is-low-power .infinity-tool-bar::before,
#atelier-viewport.is-low-power .infinity-tool-bar::before {
    background: linear-gradient(
        180deg,
        rgba(6, 10, 18, 0.7) 0%,
        rgba(6, 10, 18, 0.28) 55%,
        transparent 100%
    );
}

body.is-low-power .fullscreen-menu-overlay,
#atelier-viewport.is-low-power .fullscreen-menu-overlay {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

body.is-low-power .category-row-pill,
#atelier-viewport.is-low-power .category-row-pill {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(28, 42, 61, 0.96);
}

body.is-low-power .stadium-art,
#atelier-viewport.is-low-power .stadium-art {
    filter: none;
    transform: scale(1.02) translateZ(0);
}

body.is-low-power .stadium-bloom,
#atelier-viewport.is-low-power .stadium-bloom {
    opacity: 0.35;
}

body.is-low-power .stadium-wash,
#atelier-viewport.is-low-power .stadium-wash {
    background:
        radial-gradient(ellipse 62% 55% at 50% 48%, rgba(8, 14, 24, 0.35) 0%, rgba(8, 14, 24, 0.55) 55%, rgba(8, 14, 24, 0.8) 100%),
        linear-gradient(180deg, rgba(8, 14, 24, 0.65) 0%, rgba(8, 14, 24, 0.4) 50%, rgba(8, 14, 24, 0.75) 100%);
}

body.is-low-power .stadium-premium,
#atelier-viewport.is-low-power .stadium-premium {
    opacity: 0.9;
}

body.is-low-power .infinity-tool-bar,
#atelier-viewport.is-low-power .infinity-tool-bar {
    transform: translateY(-14px);
    transition:
        opacity 0.48s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.48s cubic-bezier(0.22, 1, 0.36, 1);
}

body.is-low-power .infinity-tool-bar.is-entered,
#atelier-viewport.is-low-power .infinity-tool-bar.is-entered {
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .infinity-tool-bar {
        transition: opacity 0.2s ease, transform 0.2s ease;
    }

    .product-card-image-wrap--dual .product-card-image,
    .quick-add-media-img {
        transition-duration: 0.01ms;
    }

    .stadium-streaks {
        animation: none;
    }

    .stadium-art {
        filter: blur(4px);
    }

    #atelier-viewport.is-carousel-mode .category-row.is-carousel-active .card-product {
        box-shadow: none;
    }
}

@media (max-width: 720px) {
    .infinity-tool-bar,
    .broadcast-hud {
        width: 100%;
        max-width: none;
        top: 0;
    }

    .infinity-tool-bar::after {
        height: 20px;
    }

    .bar-content {
        padding: 12px 16px 10px;
        gap: 10px;
        border-radius: 0;
    }


    .broadcast-tagline {
        font-size: 8px;
        letter-spacing: 0.14em;
    }

    .broadcast-title {
        gap: 8px 10px;
    }

    .broadcast-title-line,
    .broadcast-title-accent {
        font-size: clamp(1.55rem, 7.5vw, 2rem);
    }

    .brand-lockup {
        margin-right: 6px;
        gap: 8px;
    }

    .brand-logo {
        width: 50px;
        height: 50px;
    }

    .brand-name,
    .brand-num {
        font-size: 1.45rem;
    }

    .left-zone,
    .right-zone {
        gap: 0;
    }

    .menu-trigger,
    .filter-trigger {
        padding: 8px 7px;
        font-size: 9px;
        letter-spacing: 0.08em;
    }

    #atelier-viewport #cart-trigger-btn.header-cart-btn {
        padding: 7px 10px;
        font-size: 9px;
        letter-spacing: 0.05em;
        margin-left: 2px;
    }

    .search-input {
        width: 72px;
        padding: 8px 2px;
        font-size: 9px;
    }

    .search-input:focus {
        width: 110px;
    }

    .stadium-art {
        object-position: center 45%;
        filter: blur(5px);
        transform: scale(1.1) translateZ(0);
    }

    .stadium-bloom {
        opacity: 0.5;
    }

    .stadium-premium {
        box-shadow: inset 0 0 90px rgba(0, 0, 0, 0.5);
    }
}

/* ==========================================================================
   SPA Content Modals — About, Terms, Claims, Wholesale
   ========================================================================== */

.spa-content-overlay {
    position: fixed;
    inset: 0;
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding:
        max(16px, env(safe-area-inset-top))
        max(16px, env(safe-area-inset-right))
        max(16px, env(safe-area-inset-bottom))
        max(16px, env(safe-area-inset-left));
    background: rgba(18, 18, 18, 0.62);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    overflow: hidden;
    box-sizing: border-box;
    touch-action: none;
}

body.is-low-power .spa-content-overlay {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(18, 18, 18, 0.72);
}

.spa-content-panel,
.wholesale-container.spa-content-panel,
.static-pages-container.spa-content-panel {
    width: min(560px, 100%);
    max-height: calc(100dvh - 32px);
    display: flex;
    flex-direction: column;
    background: var(--sf-surface);
    border: 1px solid rgba(34, 232, 144, 0.28);
    border-radius: var(--radius-overlay);
    box-shadow:
        0 24px 64px rgba(0, 0, 0, 0.45),
        0 0 28px rgba(255, 77, 0, 0.12);
    overflow: hidden;
    margin: auto;
    isolation: isolate;
}

.spa-content-panel--wide {
    width: min(720px, 100%);
}

.spa-content-toolbar {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    padding: 14px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: var(--sf-surface);
}

.spa-content-back-btn {
    background: none;
    border: none;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    cursor: pointer;
    color: var(--sf-chrome);
    padding: 8px 0;
    transition: opacity 0.2s ease, color 0.2s ease;
}

.spa-content-back-btn:hover {
    opacity: 1;
    color: var(--color-gold-dark);
}

.spa-content-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding: 24px 28px;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    touch-action: pan-y;
}

@media (max-width: 540px) {
    .spa-content-body {
        padding: 20px 18px;
    }

    .spa-content-panel,
    .wholesale-container.spa-content-panel,
    .static-pages-container.spa-content-panel {
        border-radius: var(--radius-card);
    }
}

/* Floating overlay shells — unified corner radius across storefront modals */
.glass-overlay .wizard-container,
.glass-overlay .auth-container,
.glass-overlay .lab-container,
.product-detail-overlay .detail-modal-container {
    border-radius: var(--radius-overlay);
    overflow: hidden;
}