/* ==========================================================================
   PCdata — Sistema de diseño FINAL
   Dirección: tech-commerce claro (Apple/Amazon/tienda especializada), no
   consultora, no NOC. Header oscuro con presencia de marca sobre página
   clara. 3 acentos funcionales por pilar (azul/verde/grafito), usados como
   sistema de categorías, no como pintura de fondo.
   Responsive: la jerarquía cambia por breakpoint, no solo el ancho.
   Tipografía auto-alojada (sin URL externa): Space Grotesk + IBM Plex Sans + IBM Plex Mono.
   ========================================================================== */

@font-face { font-family: 'Space Grotesk'; src: url('../fonts/space-grotesk-latin-500-normal.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Space Grotesk'; src: url('../fonts/space-grotesk-latin-600-normal.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Space Grotesk'; src: url('../fonts/space-grotesk-latin-700-normal.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'IBM Plex Sans'; src: url('../fonts/ibm-plex-sans-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'IBM Plex Sans'; src: url('../fonts/ibm-plex-sans-latin-500-normal.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'IBM Plex Sans'; src: url('../fonts/ibm-plex-sans-latin-600-normal.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'IBM Plex Mono'; src: url('../fonts/ibm-plex-mono-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'IBM Plex Mono'; src: url('../fonts/ibm-plex-mono-latin-500-normal.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'IBM Plex Mono'; src: url('../fonts/ibm-plex-mono-latin-600-normal.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }

:root {
    --bg: #F6F8FA;
    --surface: #FFFFFF;
    --surface-2: #F1F3F5;
    --border: #E4E7EB;
    --border-strong: #D0D5DC;

    --text: #14171A;
    --text-muted: #5B6470;
    --text-faint: #8A94A0;

    --header-bg: #0F1B2A;
    --header-text: #FFFFFF;
    --header-text-muted: #9FB3C8;
    --hero-bg: #0F1B2A;

    --redes: #0C447C;
    --redes-vivo: #1D6FD1;
    --redes-light: #E6F1FB;
    --seguridad: #0F6E56;
    --seguridad-vivo: #12A876;
    --seguridad-light: #E1F5EE;
    --energia: #4B5259;
    --energia-light: #ECEEEF;

    --stock-ok: #059669;
    --stock-low: #B45309;
    --stock-out: #8A94A0;

    --danger: #DC2626;
    --danger-bg: #FEF2F2;
    --warn-bg: #FFFBEB;
    --warn-text: #B45309;
    --ok-bg: #ECFDF5;
    --ok-text: #059669;

    --font-display: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-body: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-data: 'IBM Plex Mono', 'SF Mono', 'Consolas', 'Cascadia Code', 'Courier New', monospace;

    --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px;
    --sp-5: 20px; --sp-6: 24px; --sp-8: 32px; --sp-10: 40px;

    --radius: 10px;
    --radius-sm: 6px;
    --radius-pill: 999px;

    --shadow-sm: 0 1px 2px rgba(15,23,42,.06);
    --shadow-md: 0 6px 16px rgba(15,23,42,.08);
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 480px; margin: 0 auto; padding: 0 var(--sp-4) var(--sp-10); }
@media (min-width: 768px)  { .wrap { max-width: 760px; } }
@media (min-width: 1080px) { .wrap { max-width: 1120px; } }
@media (min-width: 1440px) { .wrap { max-width: 1320px; } }

.full-bleed { width: 100%; }

a { color: var(--redes); text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
    outline: 2px solid var(--redes); outline-offset: 2px;
}

h1, h2, h3 { font-family: var(--font-display); font-weight: 700; margin: 0; color: var(--text); letter-spacing: -.01em; }

.dato, .precio, .sku, .spec-valor, .cantidad-valor {
    font-family: var(--font-data);
    font-variant-numeric: tabular-nums;
}

.eyebrow { font-family: var(--font-display); font-size: 11px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }

/* ---------- Header: presencia de marca, jerarquía real por breakpoint ---------- */
.site-header { background: var(--surface); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 50; }
.header-row-1 { padding-top: var(--sp-3); padding-bottom: var(--sp-3); display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); transition: padding .15s ease; }
.header-row-2 { background: var(--surface); border-top: 1px solid var(--border); padding-top: 10px; padding-bottom: 10px; }
.header-contacto { display: none; gap: 8px; flex-shrink: 0; }
@media (min-width: 1024px) { .header-contacto { display: flex; } }
@media (max-width: 1280px) { .pill-texto { display: none; } .pill-contacto { padding: 8px; } }
.pill-contacto { display: inline-flex; align-items: center; gap: 6px; background: var(--redes-vivo); border-radius: var(--radius-sm); padding: 9px 16px; font-size: 12.5px; font-weight: 700; color: #fff; text-decoration: none; white-space: nowrap; transition: background .15s ease, transform .1s ease; }
.pill-contacto:hover { background: var(--redes); transform: translateY(-1px); }
.pill-contacto:last-child { background: var(--seguridad-vivo); }
.pill-contacto:last-child:hover { background: var(--seguridad); }
.site-header.is-compact .header-row-1 { padding-top: var(--sp-2); padding-bottom: var(--sp-2); }
.site-header.is-compact .logo img { height: 20px; }
.site-header.is-compact .logo-wordmark { font-size: 17px; }

.header-search { display: none; }
@media (min-width: 768px) {
    .header-row-1 { gap: var(--sp-6); }
    .header-search {
        flex: 1; max-width: 480px; display: flex; align-items: center; gap: var(--sp-2);
        background: var(--surface-2); border: 1px solid var(--border);
        border-radius: var(--radius-pill); padding: 9px 16px; color: var(--text-muted);
    }
    .header-search input {
        border: none; background: none; outline: none; color: var(--text);
        font-family: var(--font-body); font-size: 13.5px; flex: 1;
    }
    .header-search input::placeholder { color: var(--text-faint); }
    .header-icons a.search-icon-mobile { display: none; }
}

.logo { display: flex; align-items: center; gap: var(--sp-2); flex-shrink: 0; }
.logo img { display: block; }
.logo-wordmark { font-family: var(--font-display); font-weight: 700; font-size: 21px; color: var(--redes); letter-spacing: -.01em; transition: font-size .15s ease; }
.logo-wordmark .data { color: var(--seguridad); }

.nav-desktop { display: none; }
@media (min-width: 768px) {
    .nav-desktop { display: flex; gap: var(--sp-6); }
    .nav-desktop a { color: var(--text-muted); font-size: 13.5px; font-weight: 600; display: flex; align-items: center; gap: 7px; }
    .nav-desktop a:hover { color: var(--redes); }
}
/* En móvil, sin nav de escritorio, la segunda línea no aporta nada: se oculta */
.header-row-2 { display: none; }
@media (min-width: 768px) { .header-row-2 { display: block; } }

.header-icons { display: flex; gap: var(--sp-4); color: var(--text-muted); }
.header-icons a { color: inherit; display: flex; }
.header-icons a:hover { color: var(--redes); }

/* ---------- Breadcrumb ---------- */
.breadcrumb { font-size: 12px; color: var(--text-faint); margin: var(--sp-3) 0; display: flex; flex-wrap: wrap; gap: 4px; }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb .sep { color: var(--border-strong); }

/* ---------- Hero ---------- */
.hero { background: var(--hero-bg); }
.hero .wrap { padding-top: var(--sp-8); padding-bottom: var(--sp-8); position: relative; overflow: hidden; }
.hero-inner { position: relative; z-index: 1; max-width: 460px; }
.hero .eyebrow { color: #6FA8DC; }
.hero h1 { font-size: 23px; line-height: 1.3; color: #fff; margin-top: var(--sp-2); }
.hero p { font-size: 14px; color: var(--header-text-muted); margin: var(--sp-3) 0 var(--sp-5); }
.hero-graphic { position: absolute; right: -40px; top: 50%; transform: translateY(-50%); opacity: .5; pointer-events: none; }
@media (min-width: 768px) {
    .hero .wrap { padding-top: var(--sp-10); padding-bottom: var(--sp-10); }
    .hero h1 { font-size: 34px; }
    .hero p { font-size: 16px; }
    .hero-graphic { opacity: .9; right: 40px; }
}

/* ---------- Botones ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    font-family: var(--font-display); font-weight: 700; font-size: 14px;
    padding: 13px 20px; border-radius: var(--radius-sm); border: none; cursor: pointer;
    background: var(--redes); color: #fff; text-decoration: none; width: 100%;
    transition: background .15s ease, transform .1s ease;
}
.btn:hover { background: #093861; }
.btn:active { transform: scale(.98); }
.btn:disabled { background: var(--border-strong); color: var(--text-faint); cursor: not-allowed; }
.btn-auto { width: auto; }
.btn-sm { padding: 8px 14px; font-size: 12.5px; }
.btn-secondary { background: var(--surface); color: var(--text); border: 1px solid var(--border-strong); }
.btn-secondary:hover { background: var(--surface-2); }
.btn-light { background: #fff; color: var(--hero-bg); }
.btn-light:hover { background: #E4E7EB; }

/* ---------- Categorías (tiles con conteo real) ---------- */
.section-label { display: flex; align-items: baseline; justify-content: space-between; margin: var(--sp-8) 0 var(--sp-4); }
.section-label h2 { font-size: 17px; }
.section-label a { font-size: 13px; font-weight: 700; }

.cat-tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-3); }
@media (min-width: 768px)  { .cat-tiles { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1080px) { .cat-tiles { grid-template-columns: repeat(6, 1fr); } }

.cat-tile {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    padding: var(--sp-4); box-shadow: var(--shadow-sm); transition: box-shadow .15s ease, transform .15s ease;
}
.cat-tile:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.cat-tile-icon { width: 34px; height: 34px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; margin-bottom: var(--sp-3); }
.cat-tile-icon.redes { background: var(--redes-light); color: var(--redes); }
.cat-tile-icon.seguridad { background: var(--seguridad-light); color: var(--seguridad); }
.cat-tile-icon.energia { background: var(--energia-light); color: var(--energia); }
.cat-tile-nombre { font-family: var(--font-display); font-size: 13.5px; font-weight: 700; margin: 0 0 2px; }
.cat-tile-count { font-family: var(--font-data); font-size: 11.5px; color: var(--text-faint); }

/* ---------- Confianza (detallado) ---------- */
.confianza-grid { display: grid; grid-template-columns: 1fr; gap: var(--sp-3); }
@media (min-width: 768px) { .confianza-grid { grid-template-columns: repeat(4, 1fr); } }
.confianza-card { display: flex; gap: var(--sp-3); align-items: flex-start; }
.confianza-card svg { flex-shrink: 0; color: var(--seguridad); margin-top: 2px; }
.confianza-card strong { display: block; font-size: 13.5px; margin-bottom: 2px; }
.confianza-card span { font-size: 12.5px; color: var(--text-muted); line-height: 1.4; }

/* ---------- Vitrina horizontal (destacados) ---------- */
.vitrina-scroll { display: flex; gap: var(--sp-3); overflow-x: auto; padding-bottom: 4px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.vitrina-scroll::-webkit-scrollbar { display: none; }
.vitrina-card {
    min-width: 168px; max-width: 168px; scroll-snap-align: start; flex-shrink: 0;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    padding: var(--sp-3); box-shadow: var(--shadow-sm);
}
.vitrina-card .img { width: 100%; height: 100px; background: var(--surface-2); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; color: var(--text-faint); overflow: hidden; margin-bottom: var(--sp-2); }
.vitrina-card .img img { width: 100%; height: 100%; object-fit: contain; }
.vitrina-card .marca { font-family: var(--font-display); font-size: 10px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; margin: 0; }
.vitrina-card .nombre { font-size: 12px; font-weight: 500; margin: 3px 0 6px; line-height: 1.3; height: 31px; overflow: hidden; }
.vitrina-card .precio { font-size: 13.5px; font-weight: 700; }
.vitrina-card .stock { font-size: 10px; margin: 2px 0 8px; display: block; }

/* ---------- Chips de subcategoría (página de categoría) ---------- */
.chips { display: flex; gap: var(--sp-2); flex-wrap: wrap; margin: var(--sp-3) 0 var(--sp-4); }
.chip {
    font-family: var(--font-body); font-size: 12.5px; font-weight: 600;
    padding: 7px 14px; border-radius: var(--radius-pill); border: 1px solid var(--border);
    color: var(--text-muted); background: var(--surface); white-space: nowrap;
}
.chip.activo { background: var(--redes); border-color: var(--redes); color: #fff; }
.chip.activo.seguridad { background: var(--seguridad); border-color: var(--seguridad); }
.chip.activo.energia { background: var(--energia); border-color: var(--energia); }

/* ---------- Toolbar / filtros ---------- */
.toolbar { display: flex; gap: var(--sp-2); margin-bottom: var(--sp-3); }
.toolbar select {
    font-family: var(--font-body); font-size: 13px; padding: 9px 12px; border-radius: var(--radius-sm);
    border: 1px solid var(--border); background: var(--surface); color: var(--text);
}
.contador { font-size: 12.5px; color: var(--text-faint); margin-bottom: var(--sp-3); }
details.filtros { margin-bottom: var(--sp-4); }
details.filtros summary { font-size: 13px; font-weight: 700; color: var(--redes); cursor: pointer; list-style: none; }
details.filtros summary::-webkit-details-marker { display: none; }
.filtro-form { display: flex; flex-direction: column; gap: var(--sp-3); margin-top: var(--sp-3); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: var(--sp-4); }
.filtro-form label { font-size: 12.5px; color: var(--text-muted); display: flex; flex-direction: column; gap: 4px; }
.filtro-form select, .filtro-form input { font-family: var(--font-body); padding: 8px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface); color: var(--text); font-size: 13px; }

/* ---------- Grilla de productos ---------- */
.product-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-3); }
@media (min-width: 768px)  { .product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1080px) { .product-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1440px) { .product-grid { grid-template-columns: repeat(5, 1fr); } }

.product-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: var(--sp-3); box-shadow: var(--shadow-sm); transition: box-shadow .15s ease, transform .15s ease; }
.product-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.product-card-link { display: block; color: inherit; }
.product-card .img { width: 100%; height: 120px; background: #FFFFFF; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; color: var(--text-faint); margin-bottom: var(--sp-3); overflow: hidden; }
.product-card .img img { width: 100%; height: 100%; object-fit: contain; }
.product-card .marca { font-family: var(--font-display); font-size: 10.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--redes); margin: 0; }
.product-card .marca.seguridad { color: var(--seguridad); }
.product-card .marca.energia { color: var(--energia); }
.product-card .nombre { font-family: var(--font-body); font-size: 13px; font-weight: 500; margin: 3px 0 4px; line-height: 1.35; color: var(--text); }
.product-card .specs { font-size: 11px; color: var(--text-faint); margin: 0; }
.product-card .row-bottom { display: flex; align-items: flex-end; justify-content: space-between; margin-top: var(--sp-3); padding-top: var(--sp-3); border-top: 1px solid var(--surface-2); }
.product-card .precio { font-size: 15px; font-weight: 700; color: var(--text); }
.badge-pending { display: inline-block; font-family: var(--font-body); font-size: 9.5px; background: var(--warn-bg); color: var(--warn-text); padding: 2px 7px; border-radius: var(--radius-pill); margin-left: 5px; font-weight: 600; }

.btn-add {
    display: flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; border-radius: var(--radius-sm);
    background: var(--redes-light); color: var(--redes); border: 1px solid var(--redes);
    flex-shrink: 0; transition: background .15s ease;
}
.btn-add:hover { background: var(--redes); color: #fff; }

/* ---------- Stock ---------- */
.stock { font-size: 11px; font-family: var(--font-body); font-weight: 600; }
.stock-ok { color: var(--stock-ok); }
.stock-low { color: var(--stock-low); }
.stock-out { color: var(--stock-out); }

/* ---------- Ficha de producto ---------- */
.pdp-layout { display: flex; flex-direction: column; }
@media (min-width: 900px) {
    .pdp-layout { flex-direction: row; gap: var(--sp-8); align-items: flex-start; }
    .pdp-media { flex: 0 0 400px; position: sticky; top: 72px; }
    .pdp-content { flex: 1; min-width: 0; }
}
.pdp-eyebrow { font-family: var(--font-display); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-faint); margin-bottom: var(--sp-2); }
.pdp-marca { font-family: var(--font-display); font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--redes); }
.pdp-titulo { font-family: var(--font-display); font-size: 19px; font-weight: 700; line-height: 1.35; margin: 4px 0 6px; }
.pdp-sku { font-size: 11.5px; color: var(--text-faint); margin-bottom: var(--sp-4); }
.pdp-img { background: #FFFFFF; border: 1px solid var(--border); border-radius: var(--radius); height: 260px; display: flex; align-items: center; justify-content: center; color: var(--text-faint); overflow: hidden; }
.pdp-img img { width: 100%; height: 100%; object-fit: contain; }
.pdp-img-placeholder { flex-direction: column; gap: 4px; }
.pdp-img-placeholder .ph-brand { font-family: var(--font-display); font-weight: 700; font-size: 13px; color: var(--text-faint); letter-spacing: .02em; }
.pdp-img-placeholder .ph-brand .data { color: var(--seguridad); }
.pdp-img-placeholder svg { color: var(--border-strong); margin: 6px 0; }
.pdp-img-placeholder .ph-title { font-family: var(--font-display); font-weight: 700; font-size: 11px; letter-spacing: .08em; color: var(--text-faint); }
.pdp-img-placeholder .ph-sub { font-family: var(--font-body); font-size: 11px; color: var(--text-faint); }
.buy-box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: var(--sp-5); margin-top: var(--sp-4); }
.buy-box .precio-grande { font-family: var(--font-data); font-size: 28px; font-weight: 700; color: var(--text); }
.buy-box .trust-row { display: flex; gap: var(--sp-4); margin-top: var(--sp-3); font-size: 11.5px; color: var(--text-muted); }
.buy-box .btn { padding: 15px 20px; font-size: 15px; box-shadow: 0 2px 6px rgba(12,68,124,.18); }
.buy-box .btn:hover { box-shadow: 0 4px 10px rgba(12,68,124,.25); transform: translateY(-1px); }
.specs-pending { font-family: var(--font-body); font-size: 12.5px; color: var(--text-muted); background: var(--surface-2); padding: var(--sp-4); border-radius: var(--radius-sm); }
.datasheet-callout {
    display: inline-flex; align-items: center; gap: var(--sp-2); text-decoration: none;
    background: var(--redes-light); border: 1px solid var(--redes); border-radius: var(--radius-pill);
    padding: 8px 16px; margin-top: var(--sp-4);
}
.datasheet-callout strong { font-size: 12.5px; color: var(--redes); font-weight: 700; }
.datasheet-callout .datasheet-icon { font-size: 15px; }

/* ---------- Spec chips ---------- */
.spec-chips { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin: var(--sp-4) 0; }
.spec-chip { font-family: var(--font-data); font-size: 12px; font-weight: 500; background: var(--surface-2); border: 1px solid var(--border); color: var(--text); padding: 6px 12px; border-radius: var(--radius-pill); }
.caracteristicas-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin: var(--sp-4) 0; }
.caracteristica-card { background: var(--surface); padding: 14px 12px; text-align: center; }
.caracteristica-card .valor { font-family: var(--font-data); font-size: 17px; font-weight: 700; color: var(--text); display: block; }
.caracteristica-card .etiqueta { font-family: var(--font-body); font-size: 10.5px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .03em; margin-top: 2px; display: block; }
@media (min-width: 480px) { .caracteristicas-grid { grid-template-columns: repeat(4, 1fr); } }

.qty-row { display: flex; align-items: center; gap: var(--sp-3); margin: var(--sp-4) 0; }
.compra-row { display: flex; align-items: center; gap: var(--sp-3); margin: var(--sp-4) 0; }
.compra-row .btn { flex: 1; width: auto; }
.qty-control { display: inline-flex; align-items: center; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); overflow: hidden; flex-shrink: 0; }
.qty-control a { padding: 8px 15px; font-size: 16px; color: var(--text); }
.qty-control span { padding: 8px 14px; font-size: 14px; border-left: 1px solid var(--border); border-right: 1px solid var(--border); font-family: var(--font-data); }
.precio-cuotas { font-size: 12px; color: var(--text-muted); margin-top: 4px; }

section.pdp-section { border-top: 1px solid var(--border); margin-top: var(--sp-5); padding-top: var(--sp-4); }
section.pdp-section h2 { font-size: 13.5px; margin-bottom: var(--sp-3); }
.spec-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.spec-table tr td { padding: 9px 0; border-bottom: 1px solid var(--surface-2); }
.spec-table tr td:first-child { color: var(--text-muted); }
.spec-table tr td:last-child { text-align: right; font-family: var(--font-data); color: var(--text); }
.icecat-note { font-size: 10.5px; color: var(--text-faint); margin-top: var(--sp-3); }

/* ---------- Carrito ---------- */
.cart-item { display: flex; gap: var(--sp-3); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: var(--sp-3); margin-bottom: var(--sp-2); }
.cart-item .img { width: 60px; height: 60px; background: var(--surface-2); border-radius: var(--radius-sm); flex-shrink: 0; overflow: hidden; }
.cart-item .img img { width: 100%; height: 100%; object-fit: contain; }
.link-quitar { font-size: 11.5px; color: var(--danger); }

.resumen-box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: var(--sp-4); margin-top: var(--sp-4); }
.resumen-row { display: flex; justify-content: space-between; font-size: 13.5px; margin-bottom: var(--sp-2); color: var(--text-muted); }
.resumen-row.total { font-size: 16px; font-weight: 700; margin-top: var(--sp-2); padding-top: var(--sp-3); border-top: 1px solid var(--border); color: var(--text); }
.resumen-row .valor { font-family: var(--font-data); color: var(--text); }

/* ---------- Checkout ---------- */
.checkout-narrow { max-width: 560px; margin: 0 auto; }
.form-section { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: var(--sp-5); margin-bottom: var(--sp-4); }
.form-section h2 { font-size: 12px; color: var(--text-faint); text-transform: uppercase; letter-spacing: .06em; margin: 0 0 var(--sp-4); font-weight: 700; }
.form-section h2:not(:first-child) { margin-top: var(--sp-5); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--sp-3); }
.field { display: block; font-size: 12.5px; color: var(--text-muted); margin-bottom: var(--sp-3); }
.field input, .field select {
    width: 100%; margin-top: 4px; padding: 11px; font-size: 14px; font-family: var(--font-body);
    border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--surface); color: var(--text);
    box-sizing: border-box; appearance: none; -webkit-appearance: none;
}
.field select {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235B6470' stroke-width='2'%3e%3cpolyline points='6 9 12 15 18 9'/%3e%3c/svg%3e");
    background-repeat: no-repeat; background-position: right 11px center; background-size: 16px; padding-right: 36px;
}
.field select:disabled { background-color: var(--surface-2); color: var(--text-faint); cursor: not-allowed; }
.field input:focus, .field select:focus { border-color: var(--redes); outline: none; }
.doc-toggle { display: flex; gap: var(--sp-2); margin-bottom: var(--sp-3); }
.doc-toggle button {
    flex: 1; padding: 10px; border-radius: var(--radius-sm); border: 1.5px solid var(--border-strong);
    background: var(--surface); font-family: var(--font-body); font-size: 13px; color: var(--text-muted); cursor: pointer;
}
.doc-toggle button.activo { border-color: var(--redes); color: var(--redes); font-weight: 700; }

.despacho-opcion {
    display: flex; align-items: center; gap: 12px; padding: 13px 14px; margin-bottom: 8px;
    border: 1.5px solid var(--border-strong); border-radius: var(--radius-sm); cursor: pointer; transition: border-color .15s ease, background .15s ease;
}
.despacho-opcion:hover { border-color: var(--redes); }
.despacho-opcion.seleccionada { border-color: var(--redes); background: var(--redes-light); }
.despacho-opcion input[type="radio"] { flex-shrink: 0; width: 16px; height: 16px; accent-color: var(--redes); }
.despacho-opcion .detalle { flex: 1; min-width: 0; }
.despacho-opcion .detalle .nombre { font-size: 13.5px; font-weight: 600; color: var(--text); display: block; }
.despacho-opcion .detalle .entrega { font-size: 11.5px; color: var(--text-muted); }
.despacho-opcion .precio { font-family: var(--font-data); font-weight: 700; font-size: 14px; color: var(--text); flex-shrink: 0; }

/* ---------- Estados ---------- */
.empty-state { text-align: center; color: var(--text-faint); padding: var(--sp-10) 0; font-size: 13.5px; }
.alert-warn { background: var(--warn-bg); color: var(--warn-text); font-size: 12.5px; padding: var(--sp-3); border-radius: var(--radius-sm); margin-bottom: var(--sp-2); }
.alert-danger { background: var(--danger-bg); color: var(--danger); font-size: 12.5px; padding: var(--sp-3); border-radius: var(--radius-sm); margin-bottom: var(--sp-3); }

/* ---------- Footer ---------- */
.site-footer { background: var(--surface); border-top: 1px solid var(--border); margin-top: var(--sp-10); padding: var(--sp-6) 0; text-align: center; }
.site-footer .wrap { padding-top: 0; padding-bottom: 0; }
.footer-logo { width: 180px; height: auto; margin-bottom: var(--sp-4); }
.footer-logo-texto { text-align: center; margin-bottom: var(--sp-4); }
.footer-logo-texto .logo-wordmark { font-size: 26px; }
.footer-logo-tagline { font-family: var(--font-display); font-size: 10.5px; font-weight: 700; letter-spacing: .08em; color: var(--text-faint); margin-top: 4px; }
.site-footer p { font-size: 11px; color: var(--text-faint); text-align: center; margin: 0; }
.site-footer nav { display: flex; gap: var(--sp-3); justify-content: center; margin-top: var(--sp-2); flex-wrap: wrap; }
.site-footer nav a { color: var(--text-muted); font-size: 11px; }
.site-footer nav a:hover { color: var(--redes); }

/* ---------- Marcas ---------- */
.marcas-row { display: flex; gap: var(--sp-6); flex-wrap: wrap; align-items: center; font-family: var(--font-display); font-weight: 700; font-size: 13px; color: var(--text-faint); letter-spacing: .02em; }

/* ---------- Legal ---------- */
.legal p { font-size: 13.5px; color: var(--text-muted); line-height: 1.7; }
.legal h2 { font-size: 14px; margin-top: var(--sp-5); }

@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; animation: none !important; }
}
