/* ==========================================================================
   CENIT365 · Escaparate Técnico e Industrial B2B (tienda.css)
   Aislado para las plantillas públicas de /tienda/. Contraste WCAG AA+.
   ========================================================================== */

:root {
    --st-font-display: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --st-font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --st-font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

    --st-ink: #0f172a;
    --st-ink-2: #1e293b;
    --st-muted: #475569;
    --st-subtle: #64748b;

    --st-brand: #0369a1;
    --st-brand-hover: #075985;
    --st-brand-bright: #0284c7;
    --st-brand-soft: #e0f2fe;
    --st-brand-border: #bae6fd;

    --st-accent: #b45309;
    --st-accent-bright: #f59e0b;
    --st-accent-soft: #fef3c7;

    --st-success: #15803d;
    --st-success-soft: #dcfce7;
    --st-danger: #b91c1c;
    --st-danger-soft: #fee2e2;

    --st-bg: #f4f7fb;
    --st-surface: #ffffff;
    --st-surface-alt: #f8fafc;
    --st-border: #d7e1ec;
    --st-border-strong: #b6c6d9;

    --st-dark-1: #070d19;
    --st-dark-2: #0d1829;
    --st-dark-3: #16243b;

    --st-radius-sm: 0.5rem;
    --st-radius-md: 0.875rem;
    --st-radius-lg: 1.125rem;
    --st-radius-xl: 1.375rem;

    --st-shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.05);
    --st-shadow-sm: 0 4px 14px -2px rgba(15, 23, 42, 0.06), 0 2px 5px -2px rgba(15, 23, 42, 0.04);
    --st-shadow-md: 0 14px 28px -8px rgba(15, 23, 42, 0.12), 0 4px 10px -3px rgba(15, 23, 42, 0.06);
    --st-shadow-lg: 0 22px 44px -12px rgba(15, 23, 42, 0.18);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 96px;
}

body.st-body {
    font-family: var(--st-font-sans);
    background-color: var(--st-bg);
    color: var(--st-ink-2);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6,
.font-display,
.brand-font {
    font-family: var(--st-font-display);
    font-weight: 700;
    letter-spacing: -0.025em;
    color: var(--st-ink);
}

.font-mono,
.font-monospace,
.st-tabular {
    font-family: var(--st-font-mono) !important;
    font-variant-numeric: tabular-nums;
}

/* Accesibilidad y estados de foco */
.st-skip-link {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
    z-index: 2000;
    padding: 0.65rem 1.15rem;
    background: var(--st-brand);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.875rem;
    border-radius: var(--st-radius-sm);
    text-decoration: none;
    box-shadow: var(--st-shadow-md);
}

.st-skip-link:focus,
.st-skip-link:focus-visible {
    position: fixed;
    top: 0.75rem;
    left: 0.75rem;
    width: auto;
    height: auto;
    overflow: visible;
    color: #ffffff;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
    outline: 3px solid var(--st-brand-bright);
    outline-offset: 2px;
}

/* Botones primarios con contraste WCAG AA garantizado (5.9:1) */
.st-body .btn-primary {
    background-color: var(--st-brand);
    border-color: var(--st-brand);
    color: #ffffff;
    font-weight: 700;
}

.st-body .btn-primary:hover,
.st-body .btn-primary:focus {
    background-color: var(--st-brand-hover);
    border-color: var(--st-brand-hover);
    color: #ffffff;
}

.st-body .btn-outline-primary {
    color: var(--st-brand);
    border-color: var(--st-brand);
    font-weight: 600;
}

.st-body .btn-outline-primary:hover,
.st-body .btn-outline-primary:focus {
    background-color: var(--st-brand);
    border-color: var(--st-brand);
    color: #ffffff;
}

/* ==========================================================================
   1. BARRA SUPERIOR Y CABECERA EJECUTIVA
   ========================================================================== */

.st-topbar {
    background: linear-gradient(90deg, var(--st-dark-1) 0%, var(--st-dark-2) 55%, var(--st-dark-3) 100%);
    color: #e2e8f0;
    font-size: 0.79rem;
    font-weight: 500;
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.st-topbar-item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: #e2e8f0;
    white-space: nowrap;
}

.st-topbar-sep {
    color: rgba(148, 163, 184, 0.38);
    user-select: none;
}

.st-topbar-link {
    color: #f8fafc;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: color 0.15s ease;
}

.st-topbar-link:hover {
    color: #7dd3fc;
    text-decoration: underline;
}

.st-topbar-link--accent {
    color: #fcd34d;
    font-weight: 700;
}

.st-topbar-link--accent:hover {
    color: #fde68a;
}

.st-navbar {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--st-border);
    box-shadow: 0 2px 14px rgba(15, 23, 42, 0.04);
    z-index: 1030;
}

.st-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    text-decoration: none;
    min-width: 0;
    max-width: 280px;
}

.st-brand-mark {
    width: 40px;
    height: 40px;
    border-radius: 0.65rem;
    background: linear-gradient(135deg, var(--st-dark-2) 0%, var(--st-brand) 100%);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--st-font-display);
    font-weight: 800;
    font-size: 1.05rem;
    flex-shrink: 0;
    box-shadow: var(--st-shadow-xs);
}

.st-brand-logo {
    max-height: 38px;
    max-width: 110px;
    width: auto;
    height: auto;
    object-fit: contain;
    flex-shrink: 0;
}

.st-brand-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.15;
}

.st-brand-name {
    font-family: var(--st-font-display);
    font-weight: 800;
    font-size: 1.02rem;
    color: var(--st-ink);
    letter-spacing: -0.02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.st-brand-sub {
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--st-brand);
    margin-top: 0.14rem;
    white-space: nowrap;
}

/* Buscador de cabecera */
.st-header-search {
    position: relative;
    flex: 1 1 320px;
    max-width: 460px;
}

.st-header-search-input {
    width: 100%;
    height: 40px;
    padding: 0.45rem 4.6rem 0.45rem 2.4rem;
    border-radius: 999px;
    border: 1px solid var(--st-border-strong);
    background-color: var(--st-surface-alt);
    color: var(--st-ink);
    font-size: 0.875rem;
    font-weight: 500;
    transition: border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

.st-header-search-input::placeholder {
    color: var(--st-subtle);
}

.st-header-search-input:focus {
    background-color: #ffffff;
    border-color: var(--st-brand-bright);
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.16);
    outline: none;
}

.st-header-search-icon {
    position: absolute;
    left: 0.9rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--st-muted);
    pointer-events: none;
    font-size: 0.92rem;
}

.st-search-kbd {
    position: absolute;
    right: 2.35rem;
    top: 50%;
    transform: translateY(-50%);
    font-family: var(--st-font-mono);
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--st-muted);
    background: #e2e8f0;
    border: 1px solid #cbd5e1;
    border-radius: 0.32rem;
    padding: 0.05rem 0.38rem;
    line-height: 1.3;
    pointer-events: none;
}

.st-header-search-input:focus ~ .st-search-kbd {
    opacity: 0;
}

.st-header-search-btn {
    position: absolute;
    right: 0.3rem;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 0;
    background: var(--st-brand);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.82rem;
    transition: background-color 0.15s ease;
}

.st-header-search-btn:hover {
    background: var(--st-brand-hover);
}

/* Enlaces de navegación */
.st-nav-link {
    font-family: var(--st-font-display);
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--st-ink-2);
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.38rem;
    white-space: nowrap;
    transition: background-color 0.16s ease, color 0.16s ease;
}

.st-nav-link:hover,
.st-nav-link.active {
    background-color: var(--st-brand-soft);
    color: var(--st-brand);
}

.st-cart-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--st-ink);
    color: #ffffff;
    border: 1px solid var(--st-ink);
    border-radius: 999px;
    padding: 0.42rem 0.9rem;
    font-weight: 700;
    font-size: 0.86rem;
    text-decoration: none;
    box-shadow: var(--st-shadow-xs);
    transition: background-color 0.16s ease, transform 0.16s ease;
}

.st-cart-btn:hover {
    background: var(--st-brand);
    border-color: var(--st-brand);
    color: #ffffff;
}

.st-cart-count {
    font-family: var(--st-font-mono);
    font-variant-numeric: tabular-nums;
    font-size: 0.75rem;
    font-weight: 800;
    min-width: 1.45rem;
    height: 1.45rem;
    padding: 0 0.38rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--st-brand-bright);
    color: #ffffff;
}

.st-cart-count--empty {
    background: rgba(255, 255, 255, 0.18);
    color: #e2e8f0;
}

/* ==========================================================================
   2. HERO TÉCNICO INDUSTRIAL Y SUBHERO DE CATEGORÍA/BÚSQUEDA
   ========================================================================== */

.st-hero {
    background-color: var(--st-dark-1);
    background-image:
        radial-gradient(circle at 14% 18%, rgba(2, 132, 199, 0.26), transparent 42%),
        radial-gradient(circle at 88% 82%, rgba(245, 158, 11, 0.14), transparent 38%),
        linear-gradient(rgba(148, 163, 184, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.06) 1px, transparent 1px);
    background-size: 100% 100%, 100% 100%, 28px 28px, 28px 28px;
    color: #f8fafc;
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
    position: relative;
}

.st-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.3rem 0.8rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid rgba(125, 211, 252, 0.3);
    color: #e0f2fe;
    font-size: 0.78rem;
    font-weight: 700;
}

.st-hero-title {
    color: #ffffff;
    font-size: clamp(1.75rem, 3.2vw, 2.65rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.03em;
}

.st-hero-lead {
    color: #cbd5e1;
    font-size: 1rem;
    line-height: 1.6;
    max-width: 58ch;
}

.st-hero-search {
    background: #ffffff;
    border-radius: 999px;
    padding: 0.32rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
    max-width: 580px;
}

.st-hero-search input {
    border: 0;
    background: transparent;
    flex: 1 1 auto;
    min-width: 0;
    padding: 0.55rem 0.6rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--st-ink);
}

.st-hero-search input:focus {
    outline: none;
}

.st-hero-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.28rem 0.72rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #f1f5f9;
    font-size: 0.76rem;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.st-hero-chip:hover {
    background: #ffffff;
    color: var(--st-ink);
    border-color: #ffffff;
}

.st-hero-panel {
    background: rgba(15, 23, 42, 0.76);
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: var(--st-radius-xl);
    padding: 1.35rem;
    backdrop-filter: blur(10px);
}

.st-kpi-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.65rem;
}

.st-kpi-box {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: var(--st-radius-md);
    padding: 0.75rem 0.65rem;
    text-align: center;
}

.st-kpi-val {
    display: block;
    font-family: var(--st-font-mono);
    font-variant-numeric: tabular-nums;
    font-weight: 800;
    font-size: 1.15rem;
    color: #ffffff;
    line-height: 1.2;
}

.st-kpi-lbl {
    display: block;
    font-size: 0.69rem;
    color: #cbd5e1;
    margin-top: 0.2rem;
    font-weight: 600;
}

.st-subhero {
    background: linear-gradient(135deg, var(--st-dark-1) 0%, var(--st-dark-2) 100%);
    color: #f8fafc;
    border-bottom: 1px solid rgba(148, 163, 184, 0.22);
}

/* ==========================================================================
   3. SIDEBAR TÉCNICO, BARRA MÓVIL Y TOOLBAR DE CATÁLOGO
   ========================================================================== */

.st-mobile-catbar {
    background: #ffffff;
    border-bottom: 1px solid var(--st-border);
}

.st-cat-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.42rem 0.85rem;
    border-radius: 999px;
    border: 1px solid var(--st-border-strong);
    background: #ffffff;
    color: var(--st-ink-2);
    font-size: 0.82rem;
    font-weight: 700;
    white-space: nowrap;
    text-decoration: none;
    transition: all 0.15s ease;
}

.st-cat-pill:hover {
    border-color: var(--st-brand);
    color: var(--st-brand);
    background: var(--st-surface-alt);
}

.st-cat-pill.is-active {
    background: var(--st-brand);
    border-color: var(--st-brand);
    color: #ffffff;
}

.st-sidebar-card {
    background: var(--st-surface);
    border: 1px solid var(--st-border);
    border-radius: var(--st-radius-lg);
    box-shadow: var(--st-shadow-xs);
    overflow: hidden;
}

.st-sidebar-head {
    padding: 0.8rem 1rem;
    background: var(--st-surface-alt);
    border-bottom: 1px solid var(--st-border);
    font-family: var(--st-font-display);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--st-ink);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.st-filter-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.58rem 1rem;
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--st-ink-2);
    text-decoration: none;
    border-bottom: 1px solid #eef2f7;
    transition: background-color 0.14s ease, color 0.14s ease;
}

.st-filter-link:last-child {
    border-bottom: 0;
}

.st-filter-link:hover {
    background-color: var(--st-surface-alt);
    color: var(--st-brand);
}

.st-filter-link.is-active {
    background-color: var(--st-brand-soft);
    color: var(--st-brand);
    font-weight: 700;
    box-shadow: inset 3px 0 0 var(--st-brand);
}

.st-filter-count {
    font-family: var(--st-font-mono);
    font-variant-numeric: tabular-nums;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.12rem 0.48rem;
    border-radius: 999px;
    background: #f1f5f9;
    color: var(--st-muted);
    flex-shrink: 0;
}

.st-filter-link.is-active .st-filter-count {
    background: var(--st-brand);
    color: #ffffff;
}

/* Toolbar de listado y chips activos */
.st-toolbar {
    background: var(--st-surface);
    border: 1px solid var(--st-border);
    border-radius: var(--st-radius-lg);
    padding: 0.85rem 1.1rem;
    box-shadow: var(--st-shadow-xs);
}

.st-active-filter {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.68rem;
    border-radius: 999px;
    background: var(--st-brand-soft);
    border: 1px solid var(--st-brand-border);
    color: var(--st-brand-hover);
    font-size: 0.78rem;
    font-weight: 700;
    text-decoration: none;
}

.st-active-filter:hover {
    background: #bae6fd;
    color: var(--st-ink);
}

.st-view-switch {
    display: inline-flex;
    background: var(--st-surface-alt);
    border: 1px solid var(--st-border-strong);
    border-radius: 0.55rem;
    padding: 0.15rem;
}

.st-view-btn {
    border: 0;
    background: transparent;
    color: var(--st-muted);
    width: 32px;
    height: 30px;
    border-radius: 0.42rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.92rem;
    transition: all 0.15s ease;
}

.st-view-btn:hover {
    color: var(--st-ink);
}

.st-view-btn.is-active {
    background: #ffffff;
    color: var(--st-brand);
    box-shadow: var(--st-shadow-xs);
}

/* ==========================================================================
   4. TARJETA DE PRODUCTO INDUSTRIAL & LÁMINA BLUEPRINT (SIN FOTO)
   ========================================================================== */

.card-tech,
.st-product-card {
    display: flex;
    flex-direction: column;
    background: var(--st-surface);
    border: 1px solid var(--st-border);
    border-radius: var(--st-radius-lg);
    box-shadow: var(--st-shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    overflow: hidden;
}

.st-product-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--st-shadow-md);
    border-color: var(--st-border-strong);
}

.st-product-media {
    position: relative;
    height: 204px;
    background: #ffffff;
    border-bottom: 1px solid #e8eef5;
    overflow: hidden;
}

.st-product-media-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.st-product-img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    padding: 1rem;
    transition: transform 0.25s ease;
}

.st-product-card:hover .st-product-img {
    transform: scale(1.04);
}

/* Lámina Técnica Blueprint para referencias sin fotografía */
.st-blueprint {
    width: 100%;
    height: 100%;
    padding: 0.9rem 1rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-color: #f8fafc;
    background-image:
        linear-gradient(rgba(148, 163, 184, 0.13) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.13) 1px, transparent 1px);
    background-size: 18px 18px;
    position: relative;
}

.st-blueprint--lg {
    min-height: 360px;
    padding: 1.5rem;
    background-size: 24px 24px;
}

.st-blueprint-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    z-index: 1;
}

.st-blueprint-ref {
    font-family: var(--st-font-mono);
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--st-muted);
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--st-border);
    border-radius: 0.35rem;
    padding: 0.14rem 0.45rem;
    max-width: 175px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.st-blueprint-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: auto 0;
    z-index: 1;
}

.st-blueprint-icon {
    width: 64px;
    height: 64px;
    border-radius: 1rem;
    background: linear-gradient(145deg, #ffffff 0%, #e0f2fe 100%);
    border: 1px solid #bae6fd;
    color: var(--st-brand);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 8px 18px -6px rgba(3, 105, 161, 0.22);
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.st-blueprint--lg .st-blueprint-icon {
    width: 92px;
    height: 92px;
    font-size: 2.55rem;
    border-radius: 1.35rem;
}

.st-product-card:hover .st-blueprint-icon {
    transform: scale(1.06);
}

.st-blueprint-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--st-font-mono);
    font-size: 0.66rem;
    color: var(--st-subtle);
    border-top: 1px dashed #cbd5e1;
    padding-top: 0.4rem;
    z-index: 1;
}

/* Badges flotantes de tarjeta */
.st-media-badges-left {
    position: absolute;
    top: 0.6rem;
    left: 0.6rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    z-index: 2;
    pointer-events: none;
}

.st-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
    padding: 0.22rem 0.58rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    line-height: 1.2;
}

.st-badge--featured {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fcd34d;
}

.st-badge--outlet,
.badge-outlet {
    background: #dc2626;
    color: #ffffff;
}

.st-badge--pro,
.badge-pro {
    background: var(--st-brand);
    color: #ffffff;
}

.st-stock-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.32rem;
    font-size: 0.73rem;
    font-weight: 700;
    padding: 0.2rem 0.58rem;
    border-radius: 999px;
}

.st-stock-pill--in {
    background: var(--st-success-soft);
    color: var(--st-success);
    border: 1px solid #bbf7d0;
}

.st-stock-pill--lead {
    background: #f1f5f9;
    color: var(--st-ink-2);
    border: 1px solid #cbd5e1;
}

/* Cuerpo de tarjeta */
.st-product-body {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
}

.st-product-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.45rem;
}

.st-brand-tag {
    font-family: var(--st-font-mono);
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--st-brand-hover);
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 0.35rem;
    padding: 0.12rem 0.48rem;
    max-width: 155px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.st-product-title {
    font-family: var(--st-font-display);
    font-size: 0.96rem;
    font-weight: 700;
    line-height: 1.38;
    color: var(--st-ink);
    margin-bottom: 0.35rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.75em;
}

.st-product-title a {
    color: inherit;
    text-decoration: none;
}

.st-product-title a:hover {
    color: var(--st-brand);
}

.st-product-sku {
    font-family: var(--st-font-mono);
    font-size: 0.73rem;
    color: var(--st-muted);
    margin-bottom: 0.65rem;
}

.st-price-block {
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px solid #edf2f7;
}

.st-price-main {
    font-family: var(--st-font-mono);
    font-variant-numeric: tabular-nums;
    font-size: 1.38rem;
    font-weight: 800;
    color: var(--st-ink);
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.st-price-main--pro {
    color: var(--st-brand);
}

.st-price-old {
    font-family: var(--st-font-mono);
    font-variant-numeric: tabular-nums;
    font-size: 0.78rem;
    color: var(--st-subtle);
    text-decoration: line-through;
}

.st-price-tax {
    font-size: 0.71rem;
    color: var(--st-muted);
    font-weight: 600;
}

/* Selector compacto de cantidad (- 1 +) */
.st-qty-box {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--st-border-strong);
    border-radius: 999px;
    background: var(--st-surface-alt);
    height: 36px;
    overflow: hidden;
}

.st-qty-btn {
    width: 30px;
    height: 100%;
    border: 0;
    background: transparent;
    color: var(--st-ink-2);
    font-weight: 700;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background-color 0.14s ease;
}

.st-qty-btn:hover {
    background: #e2e8f0;
}

.st-qty-input {
    width: 38px;
    height: 100%;
    border: 0;
    background: transparent;
    text-align: center;
    font-family: var(--st-font-mono);
    font-variant-numeric: tabular-nums;
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--st-ink);
    padding: 0;
    -moz-appearance: textfield;
}

.st-qty-input::-webkit-outer-spin-button,
.st-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* ==========================================================================
   5. VISTA LISTA / TABLA RÁPIDA B2B (.st-catalog-list)
   ========================================================================== */

@media (min-width: 768px) {
    .st-catalog-grid.is-list-view {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
    }

    .st-catalog-grid.is-list-view > .col {
        width: 100% !important;
        max-width: 100% !important;
    }

    .st-catalog-grid.is-list-view .st-product-card {
        flex-direction: row !important;
        align-items: stretch;
    }

    .st-catalog-grid.is-list-view .st-product-media {
        width: 156px;
        min-width: 156px;
        height: auto;
        min-height: 136px;
        border-bottom: 0;
        border-right: 1px solid #e8eef5;
    }

    .st-catalog-grid.is-list-view .st-blueprint-top,
    .st-catalog-grid.is-list-view .st-blueprint-foot {
        display: none;
    }

    .st-catalog-grid.is-list-view .st-product-body {
        flex-direction: row !important;
        align-items: center;
        justify-content: space-between;
        gap: 1.25rem;
        padding: 0.9rem 1.2rem;
    }

    .st-catalog-grid.is-list-view .st-product-meta {
        justify-content: flex-start;
        gap: 0.65rem;
    }

    .st-catalog-grid.is-list-view .st-product-info {
        flex: 1 1 auto;
        min-width: 0;
    }

    .st-catalog-grid.is-list-view .st-product-title {
        min-height: 0;
        -webkit-line-clamp: 1;
        margin-bottom: 0.2rem;
    }

    .st-catalog-grid.is-list-view .st-product-sku {
        margin-bottom: 0;
    }

    .st-catalog-grid.is-list-view .st-price-block {
        margin-top: 0;
        padding-top: 0;
        border-top: 0;
        min-width: 265px;
        text-align: right;
    }
}

/* ==========================================================================
   6. FICHA DE PRODUCTO, CESTA, CHECKOUT Y STEPPER DE PEDIDO
   ========================================================================== */

.st-thumb-btn {
    width: 72px;
    height: 72px;
    padding: 0.35rem;
    border-radius: var(--st-radius-md);
    border: 2px solid var(--st-border);
    background: #ffffff;
    flex-shrink: 0;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.st-thumb-btn:hover,
.st-thumb-btn.is-active {
    border-color: var(--st-brand);
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.14);
}

.st-spec-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.86rem;
}

.st-spec-table tr {
    border-bottom: 1px solid #e8eef5;
}

.st-spec-table tr:last-child {
    border-bottom: 0;
}

.st-spec-table th {
    width: 38%;
    padding: 0.6rem 0.75rem;
    color: var(--st-muted);
    font-weight: 600;
    background: var(--st-surface-alt);
}

.st-spec-table td {
    padding: 0.6rem 0.85rem;
    color: var(--st-ink);
    font-weight: 600;
}

/* Stepper de compra (Cesta -> Envío y Pago -> Confirmación) */
.st-checkout-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.st-step-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.38rem 0.85rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--st-muted);
    background: #ffffff;
    border: 1px solid var(--st-border);
    text-decoration: none;
}

.st-step-pill.is-done {
    color: var(--st-success);
    border-color: #bbf7d0;
    background: var(--st-success-soft);
}

.st-step-pill.is-current {
    color: #ffffff;
    background: var(--st-brand);
    border-color: var(--st-brand);
}

.st-step-num {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-family: var(--st-font-mono);
    font-size: 0.72rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.08);
}

.st-step-pill.is-current .st-step-num {
    background: rgba(255, 255, 255, 0.24);
    color: #ffffff;
}

/* Opciones de pago en Checkout */
.st-payment-option {
    border: 1.5px solid var(--st-border);
    border-radius: var(--st-radius-md);
    padding: 0.95rem 1.05rem;
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    cursor: pointer;
    background: #ffffff;
    transition: border-color 0.16s ease, background-color 0.16s ease, box-shadow 0.16s ease;
}

.st-payment-option:hover {
    border-color: var(--st-brand-bright);
    background: #fafdff;
}

.st-payment-option.is-selected {
    border-color: var(--st-brand);
    background: #f0f9ff;
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.1);
}

/* Línea de seguimiento de estado en pedido_confirmacion */
.st-order-track {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.5rem;
}

.st-track-node {
    padding: 0.65rem 0.5rem;
    border-radius: var(--st-radius-md);
    border: 1px solid var(--st-border);
    background: var(--st-surface-alt);
    text-align: center;
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--st-muted);
}

.st-track-node.is-active {
    background: var(--st-brand-soft);
    border-color: var(--st-brand-bright);
    color: var(--st-brand-hover);
}

.st-track-node.is-complete {
    background: var(--st-success-soft);
    border-color: #86efac;
    color: var(--st-success);
}

/* ==========================================================================
   7. PIE DE PÁGINA CORPORATIVO
   ========================================================================== */

.st-footer {
    background: var(--st-dark-1);
    color: #cbd5e1;
    border-top: 1px solid #1e293b;
}

.st-footer-heading {
    font-family: var(--st-font-mono);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #ffffff;
    margin-bottom: 0.9rem;
}

.st-footer-link {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.86rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: color 0.15s ease;
}

.st-footer-link:hover {
    color: #7dd3fc;
    text-decoration: underline;
}

/* Utilidades heredadas y responsivas */
.hover-primary:hover {
    color: var(--st-brand) !important;
}

.hover-underline:hover {
    text-decoration: underline !important;
}

@media (max-width: 575.98px) {
    .st-brand {
        max-width: 205px;
    }

    .st-brand-name {
        font-size: 0.92rem;
    }

    .st-kpi-grid {
        grid-template-columns: 1fr;
    }

    .st-order-track {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

@media print {
    .no-print,
    .st-topbar,
    .st-navbar,
    .st-footer,
    .st-skip-link {
        display: none !important;
    }

    body.st-body {
        background: #ffffff !important;
        color: #000000 !important;
    }

    .card-tech,
    .st-product-card {
        box-shadow: none !important;
        border: 1px solid #cbd5e1 !important;
    }
}
