/* ── Design tokens ── */
:root {
    --color-primary: #e8521a;
    --color-primary-dark: #c94512;
    --color-primary-light: #fff4ee;
    --color-navy: #0f2d4a;
    --color-navy-light: #1a4470;
    --color-text: #1e293b;
    --color-text-muted: #64748b;
    --color-bg: #f1f5f9;
    --color-surface: #ffffff;
    --color-border: #e2e8f0;
    --color-success: #16a34a;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 4px 16px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 8px 32px rgba(15, 23, 42, 0.12);
    --font: 'Inter', 'Segoe UI', system-ui, sans-serif;
    --transition: 0.2s ease;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

/* Leaflet: no aplicar max-width a las baldosas del mapa */
.leaflet-container img,
.leaflet-tile-pane img,
img.leaflet-tile,
.leaflet-marker-icon,
.leaflet-marker-shadow {
    max-width: none !important;
    max-height: none !important;
}

.container { max-width: 1240px; margin: 0 auto; padding: 0 20px; }

/* ── Topbar ── */
.topbar { background: var(--color-navy); color: rgba(255,255,255,.85); font-size: .8125rem; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; padding: 9px 20px; gap: 12px; }
.topbar-left { display: flex; gap: 20px; align-items: center; }
.topbar-item { display: flex; align-items: center; gap: 6px; opacity: .9; }
.topbar-links { display: flex; gap: 18px; align-items: center; }
.topbar-links a { color: #fff; font-weight: 500; transition: color var(--transition); }
.topbar-links a:hover { color: #ffb088; }
.topbar-wa { display: flex; align-items: center; gap: 6px; }
.topbar-wa svg { width: 14px; height: 14px; flex-shrink: 0; display: block; }
.topbar-user { opacity: .75; }
.topbar-precio {
    font-size: .75rem;
    font-weight: 600;
    color: var(--color-primary);
    background: rgba(232, 82, 26, .1);
    padding: 2px 8px;
    border-radius: 99px;
}
.precio-tipo { font-size: .85rem; color: var(--color-text-muted); margin-top: -8px; margin-bottom: 12px; }
.auth-form-wide label { display: block; margin-bottom: 12px; }
.auth-hint { font-size: .9rem; color: var(--color-muted); margin-bottom: 16px; }

/* ── Header ── */
.header {
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    position: sticky; top: 0; z-index: 100;
    transition: box-shadow var(--transition);
}
.header.scrolled { box-shadow: var(--shadow-md); }
.header-inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 24px;
    align-items: center;
    padding: 14px 20px;
}

.logo { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.logo-solo-imagen { gap: 0; }
.logo-mark {
    width: 44px; height: 44px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: #fff; border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: .9rem; letter-spacing: -.02em;
    box-shadow: 0 4px 12px rgba(232, 82, 26, .35);
    flex-shrink: 0;
}
.logo-img {
    width: 44px; height: 44px;
    object-fit: contain;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
    display: block;
}
.logo-img-header {
    width: auto;
    height: auto;
    max-height: 64px;
    max-width: min(340px, 50vw);
    border-radius: 0;
    box-shadow: none;
}
.logo-img-footer { width: 40px; height: 40px; }
.logo-img-footer-full {
    width: auto;
    height: auto;
    max-height: 68px;
    max-width: 260px;
    border-radius: 0;
}
.footer-logo-solo-imagen { margin-bottom: 20px; }
.logo-main { display: block; font-weight: 800; font-size: 1rem; color: var(--color-navy); line-height: 1.2; }
.logo-sub { display: block; font-size: .7rem; color: var(--color-text-muted); font-weight: 500; letter-spacing: .02em; }

.header-search { display: flex; max-width: 520px; width: 100%; margin: 0 auto; }
.header-search input {
    flex: 1; padding: 11px 16px;
    border: 1.5px solid var(--color-border);
    border-right: none; border-radius: var(--radius-sm) 0 0 var(--radius-sm);
    font-family: var(--font); font-size: .875rem;
    background: var(--color-bg); transition: border-color var(--transition), background var(--transition);
}
.header-search input:focus { outline: none; border-color: var(--color-primary); background: #fff; }
.header-search button {
    padding: 0 18px; border: 1.5px solid var(--color-primary);
    background: var(--color-primary); color: #fff;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    cursor: pointer; display: flex; align-items: center;
    transition: background var(--transition);
}
.header-search button:hover { background: var(--color-primary-dark); }

.header-actions { display: flex; align-items: center; gap: 16px; }
.header-nav { display: flex; gap: 4px; }
.header-nav a {
    padding: 8px 14px; border-radius: var(--radius-sm);
    font-size: .875rem; font-weight: 500; color: var(--color-text);
    transition: background var(--transition), color var(--transition);
}
.header-nav a:hover { background: var(--color-primary-light); color: var(--color-primary); }

.header-cart {
    position: relative; display: flex; align-items: center; justify-content: center;
    width: 42px; height: 42px; border-radius: var(--radius-sm);
    border: 1.5px solid var(--color-border); color: var(--color-navy);
    transition: border-color var(--transition), background var(--transition);
}
.header-cart:hover { border-color: var(--color-primary); background: var(--color-primary-light); }
.cart-count {
    position: absolute; top: -6px; right: -6px;
    min-width: 18px; height: 18px; padding: 0 5px;
    background: var(--color-primary); color: #fff;
    font-size: .65rem; font-weight: 700;
    border-radius: 99px; display: flex; align-items: center; justify-content: center;
}

.nav-toggle {
    display: none; flex-direction: column; gap: 5px;
    background: none; border: none; cursor: pointer; padding: 6px;
}
.nav-toggle span {
    display: block; width: 22px; height: 2px;
    background: var(--color-navy); border-radius: 2px; transition: var(--transition);
}
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Mega menú ── */
.nav-dropdown { position: relative; }
.nav-dropdown-toggle::after { content: ' ▾'; font-size: .75em; opacity: .7; }
.nav-mega-menu {
    display: none; position: absolute; top: 100%; left: 0; z-index: 200;
    min-width: 520px; max-width: min(720px, 92vw);
    background: var(--color-surface); border: 1px solid var(--color-border);
    border-radius: var(--radius-md); box-shadow: var(--shadow-md); padding: 16px;
}
@media (min-width: 993px) {
    .nav-dropdown:hover .nav-mega-menu,
    .nav-dropdown:focus-within .nav-mega-menu { display: block; }
}
.nav-mega-grid {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px 16px;
}
.nav-mega-grid a {
    font-size: .8125rem; color: var(--color-text); padding: 6px 4px; border-radius: 4px;
}
.nav-mega-grid a:hover { background: #f1f5f9; color: var(--color-primary); }
.nav-mega-all {
    display: block; margin-top: 12px; padding-top: 12px;
    border-top: 1px solid var(--color-border);
    font-size: .8125rem; font-weight: 600; color: var(--color-primary);
}

/* ── Footer extendido ── */
.footer-grid-extended { grid-template-columns: 1.2fr 1fr 1fr; }
.footer-contacto-mapa {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 32px 40px;
    margin-top: 36px;
    padding-top: 28px;
    border-top: 1px solid rgba(255, 255, 255, .12);
}
.footer-mapa-frame-wrap {
    width: 100%;
    height: 220px;
    min-height: 220px;
    border-radius: 10px;
    overflow: hidden;
    background: #0f2740;
    border: 1px solid rgba(255, 255, 255, .12);
}
.footer-mapa-iframe {
    display: block;
    width: 100%;
    height: 220px;
    min-height: 220px;
    border: 0;
    max-width: none;
}
.footer-mapa-link {
    display: inline-block !important;
    margin-top: 8px !important;
    margin-right: 14px !important;
    font-size: .8125rem !important;
    color: #ffb088 !important;
}
.footer-mapa-link:hover { color: #fff !important; }
.footer-mapa .mapa-footer {
    width: 100%;
    height: 220px !important;
    min-height: 220px !important;
    border: 0;
    border-radius: 10px;
    overflow: hidden;
    background: #0f2740;
    position: relative;
    z-index: 1;
}
.footer-mapa .mapa-footer.leaflet-container,
.footer-mapa .leaflet-container {
    width: 100% !important;
    height: 220px !important;
    min-height: 220px !important;
    background: #0f2740;
}
.footer-mapa .leaflet-pane,
.footer-mapa .leaflet-map-pane,
.footer-mapa .leaflet-tile-pane {
    width: 100%;
    height: 100%;
}
.footer-mapa .leaflet-tile-container img,
.footer-mapa .leaflet-tile {
    max-width: none !important;
}
.footer-subtitle { margin-top: 14px; margin-bottom: 6px; font-size: .8125rem; color: var(--color-navy); }
.footer-trust-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.footer-trust-badges span {
    font-size: .6875rem; font-weight: 600; padding: 4px 10px;
    background: #f1f5f9; border-radius: 99px; color: var(--color-navy);
}

/* ── Modal carrito ── */
.cart-modal { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; }
.cart-modal[hidden] { display: none !important; }
.cart-modal-backdrop { position: absolute; inset: 0; background: rgba(15,45,74,.45); }
.cart-modal-panel {
    position: relative; z-index: 1; background: #fff; border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg); padding: 24px; width: min(420px, 92vw);
}
.cart-modal-close {
    position: absolute; top: 8px; right: 12px; border: none; background: none;
    font-size: 1.5rem; cursor: pointer; color: var(--color-text-muted);
}
.cart-modal-body { display: flex; gap: 14px; margin: 16px 0 20px; align-items: center; }
.cart-modal-body img { object-fit: contain; border-radius: 8px; background: #f8fafc; }
.cart-modal-name { font-weight: 600; margin: 0 0 4px; }
.cart-modal-meta { font-size: .875rem; color: var(--color-text-muted); margin: 0; }
.cart-modal-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ── Barra móvil ── */
.mobile-bottom-bar {
    display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 900;
    background: var(--color-navy); border-top: 1px solid rgba(255,255,255,.1);
}
.mobile-bottom-bar a {
    flex: 1; text-align: center; padding: 10px 4px; color: rgba(255,255,255,.85);
    font-size: .6875rem; font-weight: 600; text-decoration: none;
}
.mobile-bottom-bar a:hover { color: #fff; }

/* ── Blog / legal / empresas / nosotros ── */
.page-section { padding: 8px 0 32px; }
.page-intro { color: var(--color-text-muted); margin-bottom: 24px; }
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.blog-grid-home { margin-top: 8px; }
.blog-card {
    background: var(--color-surface); border: 1px solid var(--color-border);
    border-radius: var(--radius-md); padding: 20px;
}
.blog-card time { font-size: .75rem; color: var(--color-text-muted); }
.blog-card h2, .blog-card h3 { font-size: 1rem; margin: 8px 0; }
.blog-link { font-size: .8125rem; font-weight: 600; color: var(--color-primary); }
.blog-contenido { line-height: 1.7; margin: 20px 0; }
.blog-contenido p { margin-bottom: 12px; }
.legal-page h2 { font-size: 1.05rem; margin: 24px 0 8px; }

.nosotros-page { max-width: 900px; margin: 0 auto; }
.nosotros-encabezado { margin-bottom: 28px; text-align: center; }
.nosotros-encabezado h1 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    color: var(--color-primary);
    margin: 0 0 8px;
}
.nosotros-subtitulo { margin: 0; color: var(--color-text-muted); font-size: 1rem; }
.nosotros-bloque {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 24px;
    margin-bottom: 20px;
}
.nosotros-bloque h2 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-primary);
    margin: 0 0 14px;
}
.nosotros-contenido { line-height: 1.75; font-size: .9375rem; }
.nosotros-contenido p { margin: 0 0 1rem; }
.nosotros-contenido p:last-child { margin-bottom: 0; }
.nosotros-contenido strong { color: var(--color-primary); }
.nosotros-mv-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}
.nosotros-mision { border-top: 4px solid var(--color-primary); }
.nosotros-vision { border-top: 4px solid var(--color-accent, #f59e0b); }
.nosotros-datos {
    background: #f8fafc;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 24px;
}
.nosotros-datos h2 { font-size: 1.05rem; margin: 0 0 12px; }
.nosotros-datos-lista { list-style: none; padding: 0; margin: 0 0 20px; line-height: 1.8; }
.nosotros-datos-lista li { margin-bottom: 6px; }
.nosotros-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }

.empresas-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.empresas-beneficios ul { padding-left: 20px; line-height: 1.8; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.newsletter-msg { margin-top: 12px; font-size: .875rem; }
.newsletter-msg-ok { color: #15803d; }
.newsletter-msg-error { color: #b91c1c; }
.btn-comprar-ahora { font-weight: 700; }
.alert { padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 20px; }
.alert-ok { background: #dcfce7; color: #166534; }
.alert-error { background: #fee2e2; color: #991b1b; }

/* ── Libro de reclamaciones ── */
.libro-reclamaciones-page { max-width: 820px; margin: 0 auto; }
.libro-header {
    display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
    margin-bottom: 24px; padding-bottom: 20px;
    border-bottom: 2px solid var(--color-border);
}
.libro-header-img {
    flex-shrink: 0; border: 1px solid var(--color-border);
    border-radius: var(--radius-sm); background: #fff; padding: 8px;
}
.libro-header-text h1 { margin: 0 0 8px; font-size: 1.5rem; color: var(--color-navy); }
.libro-header-text p { margin: 0; color: var(--color-text-muted); line-height: 1.6; }
.libro-empresa-box {
    background: #f8fafc; border: 1px solid var(--color-border);
    border-radius: var(--radius-md); padding: 16px 20px; margin-bottom: 24px;
}
.libro-empresa-box p { margin: 0 0 6px; font-size: .9375rem; }
.libro-empresa-box p:last-child { margin-bottom: 0; }
.libro-form { display: flex; flex-direction: column; gap: 20px; }
.libro-fieldset {
    border: 1px solid var(--color-border); border-radius: var(--radius-md);
    padding: 20px 20px 12px; margin: 0; background: #fff;
}
.libro-fieldset legend {
    font-weight: 700; font-size: .9375rem; color: var(--color-navy);
    padding: 0 8px;
}
.libro-fieldset label {
    display: block; margin-bottom: 14px; font-size: .875rem; font-weight: 600;
}
.libro-fieldset input,
.libro-fieldset select,
.libro-fieldset textarea {
    display: block; width: 100%; margin-top: 6px; padding: 10px 12px;
    border: 1px solid var(--color-border); border-radius: var(--radius-sm);
    font-family: var(--font); font-size: .875rem; font-weight: 400;
}
.libro-fieldset textarea { resize: vertical; min-height: 120px; }
.libro-apoderado {
    margin-top: 8px; padding: 14px; background: #f1f5f9;
    border-radius: var(--radius-sm);
}
.libro-hint { font-size: .8125rem; color: var(--color-text-muted); margin: 0 0 12px; }
.libro-submit { align-self: flex-start; min-width: 160px; margin-top: 4px; }
.libro-notas-legales {
    margin: 32px 0 0; padding-left: 20px; font-size: .8125rem;
    color: var(--color-text-muted); line-height: 1.7;
}
.libro-notas-legales li { margin-bottom: 10px; }
.footer-libro-link {
    display: inline-flex; align-items: center; gap: 10px; margin-top: 12px;
    text-decoration: none; color: inherit;
}
.footer-libro-link img {
    width: 48px; height: auto; border: 1px solid var(--color-border);
    border-radius: 4px; background: #fff;
}
.footer-libro-link span { font-size: .8125rem; font-weight: 600; color: var(--color-navy); }

.contacto-tel-linea {
    display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px;
    margin: 0 0 8px; font-size: .875rem; line-height: 1.4;
}
.contacto-tel-main { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 4px; }
.contacto-tel-icons { display: inline-flex; align-items: center; gap: 4px; flex-shrink: 0; }
.contacto-tel-nombre { font-weight: 600; color: var(--color-navy); }
.contacto-tel-numero { color: var(--color-text); text-decoration: none; white-space: nowrap; }
.contacto-tel-numero:hover { color: var(--color-primary); }
.contacto-msg-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 22px; height: 22px; border-radius: 50%; text-decoration: none; flex-shrink: 0;
}
.contacto-msg-icon svg { width: 13px; height: 13px; display: block; }
.contacto-msg-wa { background: #dcfce7; color: #16a34a; }
.contacto-msg-wa:hover { background: #16a34a; color: #fff; }
.contacto-msg-tg { background: #e0f2fe; color: #0284c7; }
.contacto-msg-tg:hover { background: #0284c7; color: #fff; }
.contacto-telefonos-lista { margin: 12px 0 16px; }

/* ── Buttons ── */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    padding: 10px 18px; border: none; border-radius: var(--radius-sm);
    background: #e2e8f0; color: var(--color-text);
    font-family: var(--font); font-size: .875rem; font-weight: 600;
    cursor: pointer; text-decoration: none;
    transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--color-primary); color: #fff; box-shadow: 0 2px 8px rgba(232,82,26,.3); }
.btn-primary:hover { background: var(--color-primary-dark); box-shadow: 0 4px 14px rgba(232,82,26,.4); }
.btn-accent { background: var(--color-navy); color: #fff; box-shadow: 0 2px 8px rgba(15,45,74,.25); }
.btn-accent:hover { background: var(--color-navy-light); color: #fff; }
.btn-outline { background: transparent; border: 1.5px solid var(--color-border); color: var(--color-text); }
.btn-outline:hover { border-color: var(--color-navy); background: var(--color-bg); }
.btn-danger { background: #dc2626; color: #fff; }
.btn-sm { padding: 7px 12px; font-size: .8125rem; }
.btn-nav { padding: 9px 16px; font-size: .8125rem; }
.btn-block { width: 100%; }

/* ── Page layout ── */
.page-main { padding-top: 28px; padding-bottom: 48px; }
.home-main { padding-bottom: 0; padding-top: 0; }
.home-section:first-of-type { margin-top: 32px; }
.home-section { max-width: 1240px; margin: 0 auto 40px; padding: 0 20px; }

.home-hero-seo { margin-top: 24px; margin-bottom: 8px; text-align: center; }
.home-hero-h1 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    color: var(--color-primary);
    line-height: 1.25;
    margin: 0;
}

.home-seo-texto { margin-top: 48px; }
.home-seo-contenido {
    font-size: .9375rem;
    line-height: 1.75;
    color: var(--color-text);
}
.home-seo-contenido p { margin: 0 0 1rem; }
.home-seo-contenido strong { color: var(--color-primary); }

.home-faq { margin-top: 32px; margin-bottom: 48px; }
.home-faq-list { display: flex; flex-direction: column; gap: 10px; }
.home-faq-item {
    border: 1px solid var(--color-border);
    border-radius: 10px;
    background: var(--color-surface);
    overflow: hidden;
}
.home-faq-item summary {
    padding: 14px 18px;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
}
.home-faq-item summary::-webkit-details-marker { display: none; }
.home-faq-item summary::after {
    content: '+';
    float: right;
    font-weight: 700;
    color: var(--color-primary);
}
.home-faq-item[open] summary::after { content: '−'; }
.home-faq-item p {
    margin: 0;
    padding: 0 18px 16px;
    color: var(--color-text-muted);
    line-height: 1.65;
}

.productos-titulo-general {
    margin: 24px 0 8px;
    padding: 0 20px;
    max-width: 1240px;
    margin-left: auto;
    margin-right: auto;
}
.productos-titulo-general h1 {
    font-size: clamp(1.35rem, 2.5vw, 1.75rem);
    font-weight: 800;
    color: var(--color-primary);
    margin: 0 0 6px;
}
.productos-titulo-general p { margin: 0; color: var(--color-text-muted); font-size: .9375rem; }

.section-title {
    font-size: 1.375rem; font-weight: 700; color: var(--color-navy);
    margin-bottom: 20px; position: relative; padding-bottom: 12px;
}
.section-title::after {
    content: ''; position: absolute; bottom: 0; left: 0;
    width: 48px; height: 3px; background: var(--color-primary); border-radius: 2px;
}
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.section-head h2 { font-size: 1.375rem; font-weight: 700; color: var(--color-navy); }
.section-link {
    font-size: .875rem; font-weight: 600; color: var(--color-primary);
    display: flex; align-items: center; gap: 4px;
}
.section-link:hover { text-decoration: underline; }

/* ── Banner en cabecera ── */
.banner-header {
    margin-bottom: 0;
    border-bottom: 1px solid var(--color-border);
}
.site-cabecera { position: relative; z-index: 50; }

.banner-carousel {
    position: relative;
    width: 100%;
    height: clamp(180px, calc(100vw / 3.2), 520px);
    overflow: hidden;
    background: var(--color-navy);
}
.banner-track { position: relative; width: 100%; height: 100%; }
.banner-slide {
    position: absolute; inset: 0; opacity: 0; visibility: hidden;
    transition: opacity .9s ease, visibility .9s ease;
}
.banner-slide.active { opacity: 1; visibility: visible; z-index: 1; }
.banner-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
}
.banner-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(105deg, rgba(15,45,74,.88) 0%, rgba(15,45,74,.55) 45%, rgba(15,45,74,.15) 100%);
}
.banner-caption {
    position: absolute; left: 0; top: 50%; transform: translateY(-50%);
    z-index: 2; color: #fff;
    padding: 0 max(4%, calc((100vw - 1240px) / 2 + 20px));
    max-width: min(580px, 92%);
}
.banner-tag {
    display: inline-block; background: var(--color-primary); color: #fff;
    font-size: .6875rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
    padding: 5px 12px; border-radius: 4px; margin-bottom: 14px;
}
.banner-caption h2 { font-size: clamp(1.25rem, 2.4vw, 2.25rem); font-weight: 800; line-height: 1.15; margin-bottom: 12px; letter-spacing: -.02em; }
.banner-caption p { font-size: clamp(.8125rem, 1.2vw, 1rem); margin-bottom: clamp(12px, 2vw, 22px); opacity: .9; line-height: 1.5; }
.banner-caption .btn { font-size: clamp(.8125rem, 1vw, .9375rem); padding: clamp(8px, 1.2vw, 12px) clamp(14px, 2vw, 22px); }
.banner-nav {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
    width: 46px; height: 46px; border: 1.5px solid rgba(255,255,255,.3);
    border-radius: 50%; background: rgba(255,255,255,.12);
    color: #fff; font-size: 1.2rem; cursor: pointer;
    backdrop-filter: blur(4px); transition: background var(--transition);
}
.banner-nav:hover { background: rgba(255,255,255,.28); }
.banner-prev { left: 20px; }
.banner-next { right: 20px; }
.banner-dots { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 3; display: flex; gap: 8px; }
.banner-dot {
    width: 8px; height: 8px; border: none; border-radius: 99px;
    background: rgba(255,255,255,.4); cursor: pointer; padding: 0;
    transition: width var(--transition), background var(--transition);
}
.banner-dot.active { width: 28px; background: var(--color-primary); }

/* ── Macro categorías ── */
.macro-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.macro-card {
    display: flex; flex-direction: column; align-items: center;
    background: var(--color-surface); border: 1px solid var(--color-border);
    border-radius: var(--radius-md); overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.macro-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
.macro-card img {
    width: 100%; height: 170px; object-fit: contain;
    background: #f8fafc; padding: 2px 6px;
}
.macro-card span {
    padding: 12px 10px; font-size: .75rem; font-weight: 600;
    text-align: center; line-height: 1.3; color: var(--color-navy); width: 100%;
    border-top: 1px solid var(--color-border);
}

/* ── Product cards (home rail) ── */
.productos-rail-wrap { position: relative; padding: 0 4px; }
.productos-rail {
    display: flex; gap: 16px; overflow-x: auto; scroll-behavior: smooth;
    padding: 4px 2px 16px; scrollbar-width: thin;
}
.productos-rail::-webkit-scrollbar { height: 4px; }
.productos-rail::-webkit-scrollbar-thumb { background: var(--color-border); border-radius: 4px; }

.home-producto-card, .producto-card {
    flex: 0 0 230px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex; flex-direction: column;
    transition: transform var(--transition), box-shadow var(--transition);
}
.producto-card { flex: unset; }
.home-producto-card:hover, .producto-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.home-producto-link, .producto-card-link { text-decoration: none; color: inherit; padding: 14px; flex: 1; display: block; }
.home-producto-img, .producto-card-img {
    height: 168px; display: flex; align-items: center; justify-content: center;
    background: #f8fafc; border-radius: var(--radius-sm); margin-bottom: 12px; overflow: hidden;
}
.home-producto-img img, .producto-card-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.home-producto-marca, .producto-marca {
    font-size: .6875rem; color: var(--color-text-muted);
    text-transform: uppercase; letter-spacing: .06em; font-weight: 600;
}
.home-producto-card h3, .producto-card h3 {
    font-size: .875rem; font-weight: 500; line-height: 1.4; margin: 6px 0 8px; color: var(--color-text);
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.home-producto-add, .producto-card-footer { padding: 0 14px 14px; }
.producto-card-footer { display: flex; gap: 8px; }
.producto-card-footer form { flex: 1; }

.rail-nav {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
    width: 38px; height: 38px; border: 1px solid var(--color-border);
    border-radius: 50%; background: var(--color-surface);
    box-shadow: var(--shadow-sm); cursor: pointer; color: var(--color-navy);
    display: flex; align-items: center; justify-content: center; font-size: 1rem;
    transition: background var(--transition), color var(--transition);
}
.rail-nav:hover { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }
.rail-prev { left: -14px; }
.rail-next { right: -14px; }

/* ── Compra por categoría ── */
.compra-cat-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.compra-cat-card {
    background: var(--color-surface); border: 1px solid var(--color-border);
    border-radius: var(--radius-md); overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition);
}
.compra-cat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.compra-cat-card img { width: 100%; height: 110px; object-fit: contain; background: #f8fafc; padding: 12px; }
.compra-cat-card span {
    display: block; padding: 12px; font-size: .8125rem; font-weight: 600;
    text-align: center; color: var(--color-navy); border-top: 1px solid var(--color-border);
}

/* ── Acciones ── */
.acciones-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.accion-card {
    display: flex; flex-direction: column; gap: 8px; padding: 28px 24px;
    border-radius: var(--radius-md); color: #fff; text-decoration: none;
    transition: transform var(--transition), box-shadow var(--transition);
    background: linear-gradient(135deg, var(--color-navy-light), var(--color-navy));
}
.accion-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.accion-card strong { font-size: 1rem; font-weight: 700; }
.accion-card span { font-size: .875rem; opacity: .88; line-height: 1.5; }
.accion-whatsapp { background: linear-gradient(135deg, #22c55e, #16a34a); }

/* ── Marcas ── */
.marcas-section { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: 32px 24px; }
.marcas-grid { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.marca-badge {
    display: inline-block;
    text-decoration: none;
    background: #f8fafc; border: 1px solid var(--color-border);
    border-radius: var(--radius-sm); padding: 14px 32px;
    font-weight: 800; font-size: .875rem; color: var(--color-navy);
    letter-spacing: .08em; transition: border-color var(--transition);
}
.marca-badge:hover { border-color: var(--color-primary); }

/* ── Newsletter ── */
.newsletter-box {
    background: linear-gradient(135deg, var(--color-navy) 0%, #1a4470 100%);
    color: #fff; border-radius: var(--radius-lg); padding: 48px 36px; text-align: center;
}
.newsletter-box h2 { font-size: 1.5rem; font-weight: 700; margin-bottom: 8px; letter-spacing: -.02em; }
.newsletter-box p { margin-bottom: 24px; opacity: .85; font-size: .9375rem; }
.newsletter-form { display: flex; gap: 10px; max-width: 460px; margin: 0 auto; flex-wrap: wrap; justify-content: center; }
.newsletter-form input {
    flex: 1; min-width: 220px; padding: 13px 16px;
    border: none; border-radius: var(--radius-sm);
    font-family: var(--font); font-size: .875rem;
}
.newsletter-form .btn-primary { padding: 13px 28px; }

/* ── WhatsApp float ── */
.whatsapp-float {
    position: fixed; bottom: 24px; right: 24px; z-index: 200;
    width: 56px; height: 56px; border-radius: 50%;
    background: #25d366; color: #fff;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, .45);
    transition: transform var(--transition), box-shadow var(--transition);
    overflow: hidden;
}
.whatsapp-float svg {
    width: 28px; height: 28px; flex-shrink: 0; display: block;
}
.whatsapp-float:hover { transform: scale(1.08); box-shadow: 0 6px 28px rgba(37, 211, 102, .55); }

/* ── Footer ── */
.footer { margin-top: 56px; }
.footer-top { background: var(--color-navy); color: rgba(255,255,255,.75); padding: 48px 0; }
.footer-grid { display: grid; grid-template-columns: 1.8fr 1fr 1.4fr; gap: 40px; }
.footer-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-logo .logo-mark { width: 40px; height: 40px; font-size: .8rem; }
.footer-logo strong { font-size: 1rem; color: #fff; }
.footer-brand p { font-size: .875rem; line-height: 1.7; opacity: .8; }
.footer-col h4 { color: #fff; font-size: .8125rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 16px; }
.footer-col a, .footer-col p { display: block; font-size: .875rem; color: rgba(255,255,255,.7); margin-bottom: 10px; transition: color var(--transition); }
.footer-col a:hover { color: #ffb088; }
.footer-col .contacto-tel-linea,
.footer-col .contacto-telefonos-lista { display: block; margin-bottom: 0; }
.footer-col .contacto-tel-linea {
    display: flex; flex-wrap: nowrap; align-items: center; gap: 8px;
    margin-bottom: 8px; font-size: .875rem;
}
.footer-col .contacto-tel-linea .contacto-tel-main,
.footer-col .contacto-tel-linea .contacto-tel-icons,
.footer-col .contacto-tel-linea .contacto-tel-nombre,
.footer-col .contacto-tel-linea .contacto-tel-numero,
.footer-col .contacto-tel-linea .contacto-msg-icon {
    display: inline-flex; margin-bottom: 0;
}
.footer-col .contacto-tel-linea .contacto-tel-nombre,
.footer-col .contacto-tel-linea .contacto-tel-numero {
    color: rgba(255,255,255,.75);
}
.footer-col .contacto-tel-linea .contacto-tel-numero:hover { color: #ffb088; }
.footer-col .contacto-msg-wa { background: rgba(37,211,102,.22); color: #4ade80; }
.footer-col .contacto-msg-wa:hover { background: #25d366; color: #fff; }
.footer-col .contacto-msg-tg { background: rgba(56,189,248,.22); color: #7dd3fc; }
.footer-col .contacto-msg-tg:hover { background: #0284c7; color: #fff; }
.footer-horario { font-size: .8125rem !important; opacity: .65 !important; }
.footer-bottom { background: #0a1f33; padding: 18px 0; }
.footer-bottom-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.footer-bottom p { font-size: .8125rem; color: rgba(255,255,255,.5); }
.footer-tagline { color: rgba(255,255,255,.35) !important; }
.footer-tagline a { color: rgba(255,255,255,.55); text-decoration: none; transition: color var(--transition); }
.footer-tagline a:hover { color: #ffb088; text-decoration: underline; }

/* ── Catálogo ── */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.card { background: var(--color-surface); border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); }
.productos-grid .producto-card { border: 1px solid var(--color-border); box-shadow: none; }
.productos-grid .producto-card img {
    width: 100%;
    height: 180px;
    object-fit: contain;
    background: #f8fafc;
    padding: 8px;
    box-sizing: border-box;
}
.card-body { padding: 14px; }
.codigo { font-size: .75rem; color: var(--color-text-muted); font-weight: 500; }
.card-actions { display: flex; gap: 8px; margin-top: 12px; align-items: center; }
.card-actions form { flex: 1; }
.card-actions .btn-sm { flex: 1; }

.categoria-banner {
    display: flex; gap: 24px; align-items: center;
    background: var(--color-surface); padding: 24px;
    border-radius: var(--radius-md); margin-bottom: 24px;
    border: 1px solid var(--color-border);
}
.categoria-banner img { width: 100px; height: 100px; object-fit: contain; background: #f8fafc; border-radius: var(--radius-sm); padding: 10px; }
.categoria-banner h1 { font-size: 1.5rem; font-weight: 700; color: var(--color-navy); margin-bottom: 4px; }
.categoria-banner p { color: var(--color-text-muted); font-size: .875rem; }

.filtros {
    background: var(--color-surface); padding: 18px 20px;
    border-radius: var(--radius-md); margin-bottom: 24px;
    border: 1px solid var(--color-border);
}
.search-form { display: flex; gap: 10px; flex-wrap: wrap; }
.search-form input, .search-form select {
    padding: 10px 14px; border: 1.5px solid var(--color-border);
    border-radius: var(--radius-sm); flex: 1; min-width: 160px;
    font-family: var(--font); font-size: .875rem;
    transition: border-color var(--transition);
}
.search-form input:focus, .search-form select:focus { outline: none; border-color: var(--color-primary); }
.search-form .btn-primary { flex-shrink: 0; }

.paginacion { display: flex; gap: 6px; flex-wrap: wrap; margin: 32px 0; justify-content: center; }
.paginacion a {
    padding: 8px 14px; background: var(--color-surface);
    border: 1px solid var(--color-border); border-radius: var(--radius-sm);
    text-decoration: none; color: var(--color-navy); font-size: .875rem; font-weight: 500;
    transition: background var(--transition), border-color var(--transition);
}
.paginacion a:hover { border-color: var(--color-primary); color: var(--color-primary); }
.paginacion a.active { background: var(--color-navy); color: #fff; border-color: var(--color-navy); }

/* ── Detalle ── */
.breadcrumb { font-size: .8125rem; color: var(--color-text-muted); margin-bottom: 20px; }
.breadcrumb a { color: var(--color-primary); font-weight: 500; }
.breadcrumb a:hover { text-decoration: underline; }
.detalle-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 40px;
    background: var(--color-surface); padding: 32px;
    border-radius: var(--radius-lg); border: 1px solid var(--color-border);
}
.detalle-img-wrap {
    position: relative;
    background: #f8fafc; border-radius: var(--radius-md);
    padding: 16px; display: flex; align-items: center; justify-content: center;
    border: 1px solid var(--color-border);
    min-height: 420px;
    overflow: hidden;
}
.detalle-img-wrap img {
    width: 100%;
    height: 100%;
    min-height: 380px;
    object-fit: contain;
}
.producto-badge-promo-detalle {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    z-index: 2;
    width: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #dc2626;
    color: #fff;
    font-size: .625rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    border-radius: var(--radius-md) 0 0 var(--radius-md);
    pointer-events: none;
}
.detalle-producto-promo .detalle-img-wrap {
    border-color: #fed7aa;
}
.detalle-identificador {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
    margin: 0 0 4px;
}
.detalle-identificador .producto-marca,
.detalle-identificador .codigo {
    font-size: .75rem;
    color: var(--color-text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .03em;
}
.detalle-info h1 { font-size: 1.5rem; font-weight: 700; color: var(--color-navy); line-height: 1.35; margin: 8px 0 14px; }
.detalle-precios { margin-bottom: 4px; }
.detalle-precios .precio.grande {
    margin: 0 0 2px;
    line-height: 1.15;
}
.detalle-precios .precio.precio-promo.grande {
    color: #dc2626;
    font-size: 1.875rem;
    font-weight: 800;
}
.detalle-precios .precio-regular.grande {
    color: var(--color-text-muted);
    font-size: 1.125rem;
    font-weight: 500;
    text-decoration: line-through;
    margin: 0 0 6px;
}
.detalle-precios .precio.grande:not(.precio-promo) {
    color: var(--color-primary);
    font-size: 1.875rem;
    font-weight: 800;
}
.detalle-producto-promo .promo-vigencia {
    margin: 2px 0 6px;
}
.precio-tipo-promo {
    margin-top: 0;
    margin-bottom: 14px;
}
.detalle-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.detalle-ficha-tecnica {
    margin-top: 28px;
    padding: 24px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
}
.detalle-ficha-tecnica h2 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-navy);
    margin: 0 0 14px;
}
.detalle-ficha-tecnica-contenido {
    color: var(--color-text);
    line-height: 1.7;
    white-space: pre-wrap;
}
.meta-pill {
    font-size: .75rem; font-weight: 600; padding: 5px 12px;
    background: var(--color-bg); border-radius: 99px; color: var(--color-text-muted);
    border: 1px solid var(--color-border);
}
.add-form { margin: 20px 0; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.add-form label { font-size: .875rem; font-weight: 500; display: flex; align-items: center; gap: 8px; }
.add-form input[type="number"] {
    width: 72px; padding: 10px; border: 1.5px solid var(--color-border);
    border-radius: var(--radius-sm); font-family: var(--font);
}

/* ── Carrito ── */
.carrito h1 { font-size: 1.5rem; font-weight: 700; color: var(--color-navy); margin-bottom: 24px; }
.carrito-table {
    width: 100%; background: var(--color-surface);
    border-radius: var(--radius-md); border-collapse: collapse;
    margin-bottom: 20px; border: 1px solid var(--color-border); overflow: hidden;
}
.carrito-table th {
    background: var(--color-bg); padding: 12px 14px;
    font-size: .75rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: .04em; color: var(--color-text-muted); text-align: left;
}
.carrito-table td { padding: 14px; border-top: 1px solid var(--color-border); font-size: .875rem; vertical-align: middle; }
.carrito-table input[type="number"] {
    width: 64px; padding: 8px; border: 1.5px solid var(--color-border); border-radius: var(--radius-sm);
}
.thumb { width: 56px; height: 56px; object-fit: contain; background: #f8fafc; border-radius: var(--radius-sm); padding: 4px; }
.carrito-actions { display: flex; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.total-precio { font-size: 1.25rem; font-weight: 700; color: var(--color-navy); margin: 20px 0; text-align: right; }

/* Carrito staff: listas + precio editable */
.carrito-staff-hint {
    margin: 0 0 16px;
    padding: 12px 14px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: var(--radius-sm);
    color: #1e3a5f;
    font-size: .875rem;
    line-height: 1.45;
}
.carrito-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 8px;
}
.carrito-table-staff {
    min-width: 920px;
}
.carrito-table-staff th,
.carrito-table-staff td {
    vertical-align: top;
    padding: 14px 12px;
}
.carrito-table-staff .col-lista {
    min-width: 220px;
    width: 240px;
}
.carrito-table-staff .col-precio {
    min-width: 130px;
    width: 140px;
}
.carrito-table-staff .carrito-tipo {
    width: 100%;
    min-width: 210px;
    padding: 8px 10px;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-size: .8125rem;
    background: #fff;
}
.carrito-table-staff .carrito-precio {
    width: 100%;
    min-width: 110px;
    padding: 8px 10px;
    font-weight: 600;
    box-sizing: border-box;
}
.carrito-table-staff .carrito-cant {
    width: 72px;
}
.carrito-precio-min {
    display: block;
    margin-top: 4px;
    font-size: .72rem;
    color: var(--color-text-muted);
    line-height: 1.3;
    white-space: nowrap;
}
.carrito-precio-lista {
    display: block;
    margin-top: 6px;
    font-size: .75rem;
    font-weight: 600;
    color: #334155;
    line-height: 1.3;
    white-space: nowrap;
}
.carrito-precio-tag {
    display: inline-block;
    margin-top: 4px;
    padding: 2px 6px;
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .03em;
    color: #1d4ed8;
    background: #dbeafe;
    border-radius: 4px;
}
.carrito-precio-txt { font-weight: 700; color: var(--color-navy); }

/* ── Auth ── */
.auth-form {
    max-width: 420px; margin: 48px auto;
    background: var(--color-surface); padding: 36px;
    border-radius: var(--radius-lg); border: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
}
.auth-form h1 { font-size: 1.375rem; font-weight: 700; color: var(--color-navy); margin-bottom: 24px; text-align: center; }
.auth-form label { display: block; margin-bottom: 16px; font-size: .875rem; font-weight: 500; color: var(--color-text); }
.auth-form input {
    width: 100%; padding: 11px 14px; margin-top: 6px;
    border: 1.5px solid var(--color-border); border-radius: var(--radius-sm);
    font-family: var(--font); font-size: .875rem;
    transition: border-color var(--transition);
}
.auth-form input:focus { outline: none; border-color: var(--color-primary); }
.auth-form .btn-primary { width: 100%; margin-top: 8px; padding: 12px; }
.auth-link { margin-top: 20px; text-align: center; font-size: .875rem; }
.auth-link a { color: var(--color-primary); font-weight: 600; }
.auth-hint { margin-bottom: 16px; font-size: .875rem; color: var(--color-text-muted); text-align: center; }
.auth-hint { font-size: .8125rem; color: var(--color-text-muted); text-align: center; margin-top: 12px; }

/* ── Utils ── */
.precio { color: var(--color-primary); font-weight: 700; margin: 4px 0; font-size: 1rem; }
.precio.grande { font-size: 1.75rem; letter-spacing: -.02em; }
.precio-consultar { color: var(--color-text-muted, #64748b); font-weight: 600; font-size: .9375rem; }
.precio-promo { color: #dc2626; }
.precio-regular { color: var(--color-text-muted); font-size: .875rem; font-weight: 500; text-decoration: line-through; margin: 0 0 4px; }
.precio-regular.grande { font-size: 1.125rem; }
.promo-vigencia { font-size: .8125rem; color: #b45309; margin: 4px 0 12px; font-weight: 600; }
.producto-badge-promo {
    position: absolute; top: 8px; left: 8px; z-index: 2;
    background: #dc2626; color: #fff; font-size: .6875rem; font-weight: 800;
    padding: 4px 8px; border-radius: 4px; text-transform: uppercase; letter-spacing: .04em;
}
.producto-badge-promo-lg { position: static; display: inline-block; margin-bottom: 10px; }
.home-producto-img, .producto-card-img { position: relative; }
.home-promociones { background: linear-gradient(180deg, #fff7ed 0%, transparent 100%); border-radius: var(--radius-md); padding-top: 8px; }
.home-producto-card-promo, .producto-card-promo { border-color: #fed7aa; }
.home-producto-card-promo .home-producto-precios-promo {
    margin-top: 2px;
}
.home-producto-card-promo .precio-tarjeta-promo {
    color: #dc2626;
    font-size: 1.0625rem;
    font-weight: 800;
    margin: 0;
    line-height: 1.2;
}
.home-producto-card-promo .precio-tarjeta-regular {
    color: var(--color-text-muted);
    font-size: .8125rem;
    font-weight: 500;
    text-decoration: line-through;
    margin: 2px 0 0;
    line-height: 1.2;
}
.producto-badge-descuento {
    background: #dc2626;
    font-size: .75rem;
    font-weight: 800;
    padding: 5px 10px;
    border-radius: 4px;
    letter-spacing: .02em;
}
.home-producto-precios-staff {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin: 2px 0 4px;
    padding: 6px 8px;
    background: #f8fafc;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
}
.home-producto-precios-staff .precio-staff-linea {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    font-size: .8125rem;
    line-height: 1.3;
}
.home-producto-precios-staff .precio-staff-tipo {
    color: var(--color-text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .03em;
    font-size: .6875rem;
}
.home-producto-precios-staff .precio-staff-valor {
    color: var(--color-text);
    font-weight: 700;
    white-space: nowrap;
}
.home-producto-precios-staff .precio-staff-promo .precio-staff-tipo,
.home-producto-precios-staff .precio-staff-promo .precio-staff-valor {
    color: #dc2626;
}
.home-producto-precios-staff.precios-staff-grande {
    max-width: 320px;
    padding: 10px 14px;
    gap: 4px;
}
.home-producto-precios-staff.precios-staff-grande .precio-staff-linea {
    font-size: 1rem;
}
.home-producto-precios-staff.precios-staff-grande .precio-staff-tipo {
    font-size: .75rem;
}
.empty { padding: 60px 24px; text-align: center; color: var(--color-text-muted); background: var(--color-surface); border-radius: var(--radius-md); border: 1px solid var(--color-border); }
.alert { padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 16px; font-size: .875rem; }
.alert-error { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }
.alert-ok { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }

.contacto-page { max-width: 1100px; margin: 0 auto; }
.contacto-intro { margin-bottom: 28px; }
.contacto-intro h1 { margin: 0 0 8px; color: var(--color-navy); }
.contacto-intro p { margin: 0; color: var(--color-text-muted); }
.contacto-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: start;
}
.contacto-form-panel,
.contacto-info-panel {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 24px;
}
.contacto-form label {
    display: block;
    font-weight: 600;
    font-size: .875rem;
    margin-bottom: 16px;
    color: var(--color-navy);
}
.contacto-form input,
.contacto-form textarea {
    display: block;
    width: 100%;
    margin-top: 6px;
    padding: 11px 14px;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-size: .875rem;
}
.contacto-form textarea { resize: vertical; min-height: 120px; }
.contacto-info-panel h2 { margin: 0 0 12px; font-size: 1.125rem; color: var(--color-navy); }
.contacto-info-panel p { margin: 0 0 10px; font-size: .875rem; line-height: 1.5; }
.contacto-map-title { margin: 20px 0 12px; font-size: 1rem; color: var(--color-navy); }
.mapa-empresa {
    width: 100%;
    height: 280px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border);
    z-index: 1;
}
@media (max-width: 900px) {
    .contacto-grid { grid-template-columns: 1fr; }
}

.pedido-resumen { list-style: none; padding: 20px; background: var(--color-surface); border-radius: var(--radius-md); border: 1px solid var(--color-border); margin: 16px 0; }
.pedido-resumen li { padding: 8px 0; border-bottom: 1px solid var(--color-border); font-size: .875rem; }

.checkout { max-width: 900px; margin: 0 auto; }
.checkout-intro { color: var(--color-text-muted); margin-bottom: 1rem; }
.pedidos-filtros { display: flex; flex-wrap: wrap; gap: 8px; margin: 1rem 0 1.25rem; }
.pedido-estado { font-size: .8125rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: #f1f5f9; color: #475569; }
.pedido-estado-pendiente { background: #fef3c7; color: #92400e; }
.pedido-estado-despachado { background: #dbeafe; color: #1e40af; }
.pedido-estado-facturado { background: #d1fae5; color: #065f46; }
.checkout-vendedor { margin: 24px 0; padding: 20px; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); }
.checkout-vendedor label { display: block; font-weight: 600; margin-bottom: 8px; color: var(--color-navy); }
.checkout-vendedor select {
    width: 100%; max-width: 480px; padding: 11px 14px;
    border: 1.5px solid var(--color-border); border-radius: var(--radius-sm);
    font-family: var(--font); font-size: .875rem;
}
.checkout-vendedor select:focus { outline: none; border-color: var(--color-primary); }
.checkout-hint { font-size: .8125rem; color: var(--color-text-muted); margin-top: 8px; }
.checkout-vendedor-fijo {
    margin: 8px 0 0;
    padding: 12px 14px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: var(--radius-sm);
    color: var(--color-text);
}
.checkout-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.checkout-vendedor-resumen {
    margin: 20px 0; padding: 16px 20px; background: #ecfdf5;
    border: 1px solid #a7f3d0; border-radius: var(--radius-md);
}
.checkout-vendedor-resumen h2 { font-size: 1rem; margin-bottom: 8px; color: var(--color-navy); }
.checkout-subtitle { font-size: 1.05rem; color: var(--color-navy); margin: 20px 0 12px; }
.checkout-medios-pago { display: grid; gap: 10px; margin-bottom: 16px; }
.checkout-medio-option { display: block; cursor: pointer; }
.checkout-medio-option input { position: absolute; opacity: 0; pointer-events: none; }
.checkout-medio-card {
    display: block;
    padding: 14px 16px;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-surface);
    transition: border-color .15s, box-shadow .15s;
}
.checkout-medio-option input:checked + .checkout-medio-card {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 1px var(--color-primary);
}
.checkout-medio-card strong { display: block; margin-bottom: 4px; color: var(--color-navy); }
.checkout-medio-card small { display: block; color: var(--color-text-muted); font-size: .8125rem; }
.checkout-pago-bloque { margin: 16px 0; padding: 16px; border: 1px solid var(--color-border); border-radius: var(--radius-md); background: #fff; }
.checkout-instrucciones-box { margin: 16px 0; padding: 16px; background: var(--color-primary-light); border-radius: var(--radius-md); }
.checkout-instrucciones p { margin: 0 0 8px; }
.checkout-qr { max-width: 180px; border-radius: 8px; border: 1px solid var(--color-border); }
.checkout-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.culqi-card-form label { display: block; margin-bottom: 10px; font-weight: 600; }
.culqi-card-form input {
    width: 100%; margin-top: 4px; padding: 10px 12px;
    border: 1px solid var(--color-border); border-radius: 8px;
}
.checkout-comprobante-block { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--color-border); }
.checkout-total-desglose { margin: 12px 0 20px; padding: 14px; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); }
.checkout-comision-linea { font-size: .875rem; color: var(--color-text-muted); margin: 6px 0; }
.checkout-total-final { margin-top: 8px; font-size: 1.05rem; }
.pedido-estado-pagado { background: #dcfce7; color: #166534; }
.pedido-estado-en_revision { background: #fef9c3; color: #854d0e; }
.pedido-estado-rechazado { background: #fee2e2; color: #991b1b; }
.pedido-estado-pendiente { background: #e2e8f0; color: #475569; }
.total-precio { font-size: 1.125rem; margin: 16px 0; }
.pedidos-acciones { text-align: right; white-space: nowrap; }

.pedido-detalle-page { max-width: 920px; }
.pedido-detalle-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
}
.pedido-detalle-toolbar-actions { display: flex; flex-wrap: wrap; gap: 8px; }

.pedido-documento {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 28px 32px;
    box-shadow: var(--shadow-sm);
}
.pedido-documento-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
    padding-bottom: 20px;
    margin-bottom: 24px;
    border-bottom: 2px solid var(--color-navy);
}
.pedido-documento-marca {
    display: flex;
    align-items: center;
    gap: 14px;
    max-width: 420px;
}
.pedido-documento-marca strong { display: block; font-size: 1rem; color: var(--color-navy); }
.pedido-documento-marca span { display: block; font-size: .8125rem; color: var(--color-text-muted); margin-top: 4px; }
.pedido-documento-logo {
    max-height: 56px;
    max-width: 180px;
    object-fit: contain;
}
.pedido-documento-meta { text-align: right; }
.pedido-documento-meta h1 {
    margin: 0 0 8px;
    font-size: 1.375rem;
    color: var(--color-navy);
}
.pedido-documento-meta p { margin: 0 0 4px; font-size: .875rem; color: var(--color-text-muted); }

.pedido-documento-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}
.pedido-documento-grid h2 {
    margin: 0 0 10px;
    font-size: .875rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--color-navy);
}
.pedido-documento-grid p { margin: 0 0 4px; font-size: .875rem; }

.pedido-documento-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .875rem;
    margin-bottom: 20px;
}
.pedido-documento-table th,
.pedido-documento-table td {
    border: 1px solid var(--color-border);
    padding: 10px 12px;
    text-align: left;
}
.pedido-documento-table th {
    background: #f8fafc;
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .03em;
    color: var(--color-navy);
}
.pedido-documento-table tfoot td {
    font-weight: 600;
    background: #f8fafc;
}
.pedido-documento-table tfoot td:last-child { text-align: left; }

.pedido-documento-footer {
    padding-top: 16px;
    border-top: 1px solid var(--color-border);
    font-size: .75rem;
    color: var(--color-text-muted);
}

@media (max-width: 700px) {
    .pedido-documento { padding: 20px 16px; }
    .pedido-documento-header { flex-direction: column; }
    .pedido-documento-meta { text-align: left; }
    .pedido-documento-grid { grid-template-columns: 1fr; }
}

@media print {
    body { background: #fff; }
    .site-cabecera,
    .footer,
    .whatsapp-float,
    .no-print { display: none !important; }
    .page-main { padding: 0 !important; max-width: none !important; }
    .pedido-documento {
        border: none;
        box-shadow: none;
        padding: 0;
        border-radius: 0;
    }
}

/* ── Responsive ── */
@media (max-width: 992px) {
    .macro-grid, .compra-cat-grid { grid-template-columns: repeat(3, 1fr); }
    .acciones-grid { grid-template-columns: 1fr; }
    .footer-grid, .footer-grid-extended { grid-template-columns: 1fr 1fr; }
    .footer-contacto-mapa { grid-template-columns: 1fr; margin-top: 28px; padding-top: 24px; }
    .footer-mapa-frame-wrap,
    .footer-mapa-iframe {
        height: 240px;
        min-height: 240px;
    }
    .footer-mapa .mapa-footer,
    .footer-mapa .mapa-footer.leaflet-container,
    .footer-mapa .leaflet-container {
        height: 240px !important;
        min-height: 240px !important;
    }
    .header-inner { grid-template-columns: auto 1fr; }
    .header-search { grid-column: 1 / -1; order: 3; max-width: none; }
    .header-actions { position: relative; gap: 10px; }
    .header { position: relative; z-index: 300; }
    .nav-toggle { display: flex; }
    .header-nav {
        display: none; position: absolute; top: 100%; left: 0; right: 0;
        background: var(--color-surface); border-bottom: 1px solid var(--color-border);
        flex-direction: column; padding: 12px 20px; box-shadow: var(--shadow-md);
        z-index: 310; max-height: min(70vh, 520px); overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    .header-nav.open { display: flex; }
    /* En móvil/tablet: Productos va al catálogo; sin lista de categorías en cabecera */
    .nav-mega-menu { display: none !important; }
    .nav-dropdown-toggle::after { content: ''; }
    .whatsapp-float { bottom: 72px; right: 16px; width: 48px; height: 48px; }
    .whatsapp-float svg { width: 24px; height: 24px; }
    .mobile-bottom-bar { display: flex; }
    body { padding-bottom: 56px; }
}

@media (max-width: 768px) {
    .topbar-hide-mobile { display: none; }
    .banner-carousel { height: clamp(160px, 42vw, 280px); }
    .banner-slide img { object-position: center center; }
    .banner-overlay {
        background: linear-gradient(105deg, rgba(15,45,74,.92) 0%, rgba(15,45,74,.65) 55%, rgba(15,45,74,.25) 100%);
    }
    .banner-caption {
        top: 50%;
        transform: translateY(-50%);
        padding: 0 16px;
    }
    .banner-nav { width: 36px; height: 36px; font-size: 1rem; }
    .banner-prev { left: 8px; }
    .banner-next { right: 8px; }
    .banner-dots { bottom: 12px; }
    .macro-grid, .compra-cat-grid { grid-template-columns: repeat(2, 1fr); }
    .rail-prev { left: 0; }
    .rail-next { right: 0; }
    .detalle-grid { grid-template-columns: 1fr; padding: 20px; gap: 24px; }
    .detalle-img-wrap { min-height: 280px; }
    .detalle-img-wrap img { min-height: 240px; }
    .footer-grid { grid-template-columns: 1fr; }
    .empresas-grid, .form-grid-2 { grid-template-columns: 1fr; }
    .nosotros-mv-grid { grid-template-columns: 1fr; }
    .footer-bottom-inner { flex-direction: column; text-align: center; }
}
