/* ═══════════════════════════════════════════════════════════════
   mobulaa B2B — Portal Distribuidores v6
   Barlow Condensed + Figtree · Light Corporate
═══════════════════════════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:ital,wght@0,500;0,600;0,700;0,800;0,900;1,700&family=Figtree:wght@400;500;600;700;800&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; min-width: 0; }
input, button, textarea, select { font: inherit; }
* { -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; }

:focus-visible { outline: 2px solid var(--or); outline-offset: 2px; }
:focus:not(:focus-visible) { outline: none; }

:root {
    --or:         #e8471e;
    --or-dk:      #c43a14;
    --or-lt:      #f26540;
    --or-glow:    rgba(232,71,30,0.25);
    --or-glow-sm: rgba(232,71,30,0.12);
    --or-dim:     rgba(232,71,30,0.09);
    --gr:         #3d8b2c;
    --gr-dim:     rgba(61,139,44,0.12);

    --bg:   #f0f2f7;
    --bg2:  #e6e9f1;
    --s1:   #ffffff;
    --s2:   #f7f8fc;
    --s3:   #ebeef6;

    --b1:   rgba(30,45,90,0.09);
    --b2:   rgba(30,45,90,0.16);
    --b3:   rgba(30,45,90,0.26);

    --t1: #131d35;
    --t2: #475a80;
    --t3: #8595b4;

    --sh-sm: 0 1px 3px rgba(20,35,80,0.08), 0 0 0 1px rgba(20,35,80,0.04);
    --sh-md: 0 4px 16px rgba(20,35,80,0.11), 0 0 0 1px rgba(20,35,80,0.06);
    --sh-lg: 0 8px 24px rgba(20,35,80,0.12), 0 0 0 1px rgba(20,35,80,0.06);

    --fd: 'Barlow Condensed', 'Arial Narrow', Arial, sans-serif;
    --fb: 'Figtree', 'Segoe UI', system-ui, -apple-system, sans-serif;

    --r:   12px;
    --rl:  18px;
    --rxl: 24px;

    --ease:   cubic-bezier(0.4, 0, 0.2, 1);
    --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

html { scroll-behavior: smooth; font-size: 17px; }

body {
    background: var(--bg);
    color: var(--t1);
    font-family: var(--fb);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed; inset: 0; z-index: 0; pointer-events: none;
    background:
        radial-gradient(ellipse 55% 35% at 0% 0%,   rgba(232,71,30,0.04) 0%, transparent 55%),
        radial-gradient(ellipse 45% 35% at 100% 100%, rgba(70,100,200,0.04) 0%, transparent 55%);
}
body > * { position: relative; z-index: 1; }

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--s3); }
::-webkit-scrollbar-thumb { background: var(--b2); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--t2); }

/* ════════════════════════════════════════════════════════════
   NAVBAR
════════════════════════════════════════════════════════════ */
.navbar {
    position: sticky; top: 0; z-index: 300;
    height: 62px;
    display: flex; align-items: center;
    padding: 0 clamp(1rem, 3vw, 2rem);
    gap: clamp(0.5rem, 2vw, 1rem);
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(24px) saturate(160%);
    -webkit-backdrop-filter: blur(24px) saturate(160%);
    border-bottom: 1px solid var(--b1);
    box-shadow: 0 1px 12px rgba(30,40,80,0.07);
}
.navbar::before {
    content: '';
    position: absolute; bottom: 0; left: 0; right: 0; height: 2px; top: auto;
    background: linear-gradient(90deg, var(--or) 0%, rgba(253,86,45,0.5) 60%, transparent 100%);
    box-shadow: 0 0 10px var(--or-glow);
}
.brand { display: flex; align-items: center; gap: 0.5rem; text-decoration: none; flex-shrink: 0; }
.brand-icon {
    width: 36px; height: 36px; background: var(--or); border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 0 16px var(--or-glow-sm);
    transition: box-shadow 0.25s var(--ease), transform 0.25s var(--spring);
    flex-shrink: 0;
}
.brand:hover .brand-icon { box-shadow: 0 0 26px var(--or-glow); transform: scale(1.08); }
.brand-icon svg { width: 21px; height: 21px; }
.brand-texts { display: flex; flex-direction: column; }
.brand-name { font-family: var(--fd); font-weight: 800; font-size: 1.35rem; color: var(--t1); letter-spacing: 0.01em; line-height: 1; }
.brand-tag  { font-size: 0.58rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--or); line-height: 1; }
.nav-sep { width: 1px; height: 26px; background: var(--b1); flex-shrink: 0; }

.nav-search {
    flex: 1; max-width: 440px;
    display: flex; align-items: center;
    background: var(--bg); border: 1px solid var(--b1);
    border-radius: 10px; overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.nav-search:focus-within { border-color: var(--or); box-shadow: 0 0 0 3px var(--or-dim); }
.nav-search-ico { padding: 0 0.6rem; color: var(--t3); display: flex; align-items: center; }
.nav-search input { flex: 1; background: none; border: none; outline: none; padding: 0.55rem 0; color: var(--t1); font-family: var(--fb); font-size: 0.875rem; min-width: 0; }
.nav-search input::placeholder { color: var(--t3); }
.nav-search-btn {
    background: none; border: none; border-left: 1px solid var(--b1);
    padding: 0 0.85rem; height: 100%; color: var(--t3);
    cursor: pointer; font-family: var(--fd); font-size: 0.72rem; font-weight: 700;
    letter-spacing: 0.1em; text-transform: uppercase; transition: all 0.2s; flex-shrink: 0;
}
.nav-search-btn:hover { color: var(--or); background: var(--or-dim); }

.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 0.45rem; flex-shrink: 0; }
.nav-btn {
    display: inline-flex; align-items: center; gap: 0.4rem;
    background: transparent; border: 1px solid var(--b2);
    border-radius: 9px; padding: 0.42rem 0.85rem;
    color: var(--t2); text-decoration: none;
    font-family: var(--fb); font-size: 0.83rem; font-weight: 600;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
    white-space: nowrap;
}
.nav-btn:hover { border-color: var(--b3); color: var(--t1); }
.nav-btn-cta {
    background: var(--or); border-color: var(--or); color: white;
    font-family: var(--fd); font-weight: 800; font-size: 0.9rem;
    letter-spacing: 0.04em; padding: 0.42rem 1.1rem;
    box-shadow: 0 0 14px var(--or-glow-sm);
}
.nav-btn-cta:hover { background: var(--or-dk); border-color: var(--or-dk); box-shadow: 0 0 24px var(--or-glow); transform: translateY(-1px); }
.cart-count {
    background: var(--or); color: white; border-radius: 50%;
    width: 17px; height: 17px; font-size: 0.62rem; font-weight: 800;
    display: inline-flex; align-items: center; justify-content: center;
}

/* ════════════════════════════════════════════════════════════
   HAMBURGER
════════════════════════════════════════════════════════════ */
.nav-hamburger {
    display: none;
    flex-direction: column; justify-content: center; gap: 5px;
    width: 40px; height: 40px;
    background: var(--s1); border: 1px solid var(--b1);
    border-radius: 9px; cursor: pointer; padding: 8px;
    margin-left: auto; flex-shrink: 0; transition: border-color 0.2s;
}
.nav-hamburger span {
    display: block; width: 100%; height: 2px;
    background: var(--t2); border-radius: 2px;
    transition: all 0.25s var(--ease); transform-origin: center;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ════════════════════════════════════════════════════════════
   MOBILE DRAWER
════════════════════════════════════════════════════════════ */
.nav-drawer {
    display: none;
    position: fixed; inset: 62px 0 0 0; z-index: 299;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(24px);
    flex-direction: column;
    padding: 1.25rem 1rem 2rem;
    gap: 0.5rem; overflow-y: auto;
    border-top: 1px solid var(--b1);
    animation: drawerIn 0.22s var(--ease);
}
.nav-drawer.open { display: flex; }
@keyframes drawerIn {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}
.drawer-search {
    display: flex; align-items: center;
    background: var(--s1); border: 1px solid var(--b1);
    border-radius: 11px; overflow: hidden; margin-bottom: 0.5rem;
}
.drawer-search input { flex: 1; background: none; border: none; outline: none; padding: 0.7rem 0.9rem; color: var(--t1); font-family: var(--fb); font-size: 0.95rem; }
.drawer-search input::placeholder { color: var(--t3); }
.drawer-search button { background: var(--or); border: none; padding: 0.7rem 1.1rem; color: white; font-family: var(--fd); font-weight: 800; font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; cursor: pointer; }
.drawer-divider { height: 1px; background: var(--b1); margin: 0.4rem 0; }
.drawer-label { font-size: 0.6rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--t3); padding: 0.3rem 0.25rem; }
.drawer-link {
    display: flex; align-items: center; gap: 0.6rem;
    padding: 0.75rem; border-radius: 10px; text-decoration: none;
    color: var(--t2); font-size: 0.95rem; font-weight: 500;
    transition: all 0.18s; border: 1px solid transparent;
}
.drawer-link:hover,
.drawer-link:active  { background: var(--s2); color: var(--t1); border-color: var(--b1); }
.drawer-link.active  { background: var(--or-dim); color: var(--or); border-color: rgba(253,86,45,0.2); }
.drawer-link.cta     { background: var(--or); color: white; font-family: var(--fd); font-weight: 800; font-size: 1rem; border-color: var(--or); justify-content: center; margin-top: 0.4rem; }
.drawer-link.cta:hover { background: var(--or-dk); }

/* ════════════════════════════════════════════════════════════
   HERO
════════════════════════════════════════════════════════════ */
.hero {
    position: relative; overflow: hidden;
    border-bottom: 3px solid rgba(232,71,30,0.25);
    min-height: clamp(460px, 72vh, 780px);
    display: flex; align-items: center;
}
.hero-bg-img {
    position: absolute; inset: 0; z-index: 0;
    background-image: url('https://mobulaa-colombia.com/cdn/shop/files/20260112153723_1697_16.png?v=1768790646');
    background-size: cover; background-position: center 35%; background-repeat: no-repeat;
}
.hero-overlay {
    position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background:
        linear-gradient(100deg, rgba(8,10,18,0.93) 0%, rgba(8,10,18,0.80) 38%, rgba(8,10,18,0.45) 60%, rgba(8,10,18,0.12) 80%, transparent 100%),
        linear-gradient(to bottom, transparent 55%, rgba(8,10,18,0.65) 80%, rgba(8,10,18,0.92) 100%);
}
.hero-grid {
    position: absolute; inset: 0; z-index: 2; pointer-events: none;
    background-image:
        linear-gradient(rgba(255,255,255,0.018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.018) 1px, transparent 1px);
    background-size: 54px 54px;
    mask-image: linear-gradient(180deg, transparent 0%, rgba(0,0,0,.5) 18%, rgba(0,0,0,.5) 82%, transparent 100%);
}
.hero::before {
    content: '';
    position: absolute; top: 0; left: 0; width: 55%; height: 2px; z-index: 5;
    background: linear-gradient(90deg, var(--or) 0%, rgba(232,71,30,0.3) 70%, transparent 100%);
    box-shadow: 0 0 20px rgba(232,71,30,0.5);
}
.hero::after {
    content: '';
    position: absolute; inset: 0; z-index: 2; pointer-events: none;
    background: radial-gradient(ellipse 30% 70% at 0% 60%, rgba(232,71,30,0.13) 0%, transparent 55%);
}
.hero-inner {
    position: relative; z-index: 4;
    max-width: 1360px; margin: 0 auto; width: 100%;
    padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1rem, 4vw, 3rem);
    display: flex; flex-direction: column; justify-content: center;
}
.hero-content { display: flex; flex-direction: column; gap: 1.75rem; max-width: min(640px, 58%); }
.hero-pill {
    display: inline-flex; align-items: center; gap: 0.5rem; width: fit-content;
    background: rgba(253,86,45,0.14); border: 1px solid rgba(253,86,45,0.38);
    border-radius: 100px; padding: 0.3rem 0.9rem 0.3rem 0.55rem;
    font-family: var(--fd); font-size: 0.68rem; font-weight: 700;
    letter-spacing: 0.14em; text-transform: uppercase; color: #ffb09a;
    backdrop-filter: blur(10px); animation: hFade 0.6s var(--ease) 0.1s both;
}
.hero-pill-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--or); box-shadow: 0 0 8px var(--or-glow);
    animation: dotBlink 2s ease-in-out infinite;
}
@keyframes dotBlink { 0%,100%{opacity:1} 50%{opacity:.3} }

.hero-title { font-family: var(--fd); font-weight: 900; line-height: 0.88; letter-spacing: -0.01em; animation: hFade 0.7s var(--ease) 0.2s both; }
.hero-title-line { display: block; font-size: clamp(2.8rem, 5.5vw, 5rem); color: #ffffff; text-transform: uppercase; text-shadow: 0 2px 20px rgba(0,0,0,0.5); }
.hero-title-line.outline { color: transparent; -webkit-text-stroke: 1.5px rgba(255,255,255,0.45); font-style: italic; letter-spacing: 0.015em; }
.hero-title-line.big { font-size: clamp(4.5rem, 9vw, 8rem); color: var(--or); letter-spacing: -0.03em; text-shadow: 0 0 30px rgba(253,86,45,0.55), 0 0 70px rgba(253,86,45,0.25), 0 2px 8px rgba(0,0,0,0.4); }
.hero-desc { font-size: clamp(0.9rem, 1.4vw, 1.05rem); color: rgba(220,228,245,0.85); line-height: 1.75; max-width: 460px; text-shadow: 0 1px 8px rgba(0,0,0,0.5); animation: hFade 0.7s var(--ease) 0.3s both; }
.hero-actions { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; animation: hFade 0.7s var(--ease) 0.42s both; }
.hero-stats { display: flex; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 1.25rem; animation: hFade 0.7s var(--ease) 0.54s both; }
.hero-stat { padding-right: 1.5rem; margin-right: 1.5rem; border-right: 1px solid rgba(255,255,255,0.1); }
.hero-stat:last-child { border-right: none; margin-right: 0; padding-right: 0; }
.hero-stat-num { display: block; font-family: var(--fd); font-weight: 900; font-size: clamp(1.5rem, 2.4vw, 2rem); color: #fff; line-height: 1; letter-spacing: -0.02em; text-shadow: 0 0 20px rgba(253,86,45,0.3); }
.hero-stat-num .or { color: var(--or); }
.hero-stat-lbl { display: block; font-size: 0.63rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(180,190,215,0.7); margin-top: 0.2rem; }
.hero-spec-chip {
    position: absolute; z-index: 5;
    background: rgba(12,15,25,0.75); border: 1px solid rgba(255,255,255,0.14);
    border-radius: 14px; padding: 0.65rem 1rem;
    backdrop-filter: blur(20px) saturate(150%); -webkit-backdrop-filter: blur(20px) saturate(150%);
    box-shadow: 0 8px 32px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.08);
    animation: chipFloat 5s ease-in-out infinite;
}
.hero-spec-chip-1 { top: clamp(12%, 16%, 20%); right: clamp(3%, 5%, 8%); animation-delay: 0s; }
.hero-spec-chip-2 { bottom: clamp(14%, 18%, 22%); right: clamp(12%, 18%, 22%); animation-delay: -2.4s; }
@keyframes chipFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.chip-label { font-family: var(--fd); font-size: 0.55rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(160,175,210,0.8); display: block; margin-bottom: 0.12rem; }
.chip-val { font-family: var(--fd); font-weight: 900; font-size: 1.15rem; color: var(--or); line-height: 1; text-shadow: 0 0 16px rgba(253,86,45,0.5); }
.chip-val.green { color: #7dcf5e; text-shadow: 0 0 14px rgba(101,166,79,0.45); }
@keyframes hFade { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

.btn-ghost-hero {
    display: inline-flex; align-items: center; gap: 0.45rem;
    background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.2);
    color: rgba(220,230,248,0.9); padding: 0.65rem 1.35rem; font-size: 0.92rem;
    font-family: var(--fb); font-weight: 600; border-radius: var(--r);
    cursor: pointer; text-decoration: none; transition: all 0.2s; backdrop-filter: blur(8px);
}
.btn-ghost-hero:hover { border-color: rgba(255,255,255,0.35); color: #fff; background: rgba(255,255,255,0.12); }

/* ════════════════════════════════════════════════════════════
   STATS BAR
════════════════════════════════════════════════════════════ */
.stats-bar { background: var(--s1); border-bottom: 1px solid var(--b1); padding: 0 clamp(1rem, 3vw, 2rem); display: flex; overflow-x: auto; -ms-overflow-style: none; scrollbar-width: none; }
.stats-bar::-webkit-scrollbar { display: none; }
.stats-bar-inner { max-width: 1360px; margin: 0 auto; width: 100%; display: flex; }
.stat-item { display: flex; align-items: center; gap: 0.5rem; padding: 0.6rem 1.2rem; border-right: 1px solid var(--b1); flex-shrink: 0; }
.stat-item:first-child { padding-left: 0; }
.stat-item:last-child  { border-right: none; }
.stat-num { font-family: var(--fd); font-weight: 900; font-size: 1.15rem; color: var(--or); line-height: 1; }
.stat-lbl { font-size: 0.66rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--t3); }
.stats-divider { flex: 1; }
.stats-tagline { font-family: var(--fd); font-weight: 700; font-size: 0.76rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--t3); padding: 0.6rem 0; flex-shrink: 0; white-space: nowrap; }
.stats-tagline span { color: var(--or); }

/* ════════════════════════════════════════════════════════════
   LAYOUT · SIDEBAR · MAIN
════════════════════════════════════════════════════════════ */
.layout {
    max-width: 1360px; margin: 0 auto;
    padding: clamp(1rem, 2vw, 1.5rem);
    display: grid; grid-template-columns: 210px 1fr;
    gap: 1.5rem; align-items: start;
}
.sidebar { position: sticky; top: 74px; background: var(--s1); border-radius: var(--rl); border: 1px solid var(--b1); padding: 1.25rem 0.9rem; box-shadow: var(--sh-sm); }
.sidebar-section { margin-bottom: 1.25rem; }
.sidebar-label { font-family: var(--fd); font-size: 0.62rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--t3); padding: 0 0.5rem; margin-bottom: 0.4rem; display: block; }
.cat-item {
    display: flex; align-items: center; gap: 0.4rem;
    padding: 0.46rem 0.6rem; border-radius: 9px;
    color: var(--t2); text-decoration: none;
    font-size: 0.875rem; font-weight: 500;
    transition: all 0.18s; margin-bottom: 2px; border: 1px solid transparent;
}
.cat-item:hover { background: var(--s2); color: var(--t1); border-color: var(--b1); }
.cat-item.active { background: var(--or-dim); color: var(--or); border-color: rgba(253,86,45,0.2); font-weight: 700; box-shadow: inset 3px 0 0 var(--or); }
.sidebar-cta { background: var(--s1); border: 1px solid rgba(253,86,45,0.2); border-radius: var(--rl); padding: 1rem; position: relative; overflow: hidden; }
.sidebar-cta::before { content: ''; position: absolute; top: -20px; right: -20px; width: 80px; height: 80px; background: radial-gradient(circle, var(--or-dim) 0%, transparent 70%); }
.sidebar-cta p { font-size: 0.8rem; color: var(--t2); line-height: 1.6; margin-bottom: 0.75rem; }
.sidebar-cta strong { color: var(--or); }

.main-bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.1rem; gap: 1rem; flex-wrap: wrap; }
.main-bar h2 { font-family: var(--fd); font-weight: 800; font-size: 1rem; text-transform: uppercase; letter-spacing: 0.08em; }
.main-bar p { font-size: 0.78rem; color: var(--t3); margin-top: 0.1rem; }

/* ════════════════════════════════════════════════════════════
   PRODUCT GRID — AMAZON PRO FLUID
════════════════════════════════════════════════════════════ */
.product-grid {
    --product-card-min: 235px;
    --product-img-height: 255px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--product-card-min)), 1fr));
    gap: 1.05rem;
    align-items: stretch;
}

/* ════════════════════════════════════════════════════════════
   PRODUCT CARD — MARKETPLACE / AMAZON PRO
════════════════════════════════════════════════════════════ */
.product-card {
    background: var(--s1);
    border: 1px solid var(--b2);
    border-radius: 15px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    box-shadow: var(--sh-sm);
    transition:
        border-color 0.18s var(--ease),
        box-shadow 0.18s var(--ease),
        transform 0.18s var(--ease);
    animation: fadeUp 0.4s var(--ease) both;
    will-change: transform, opacity;
    position: relative;
    min-height: 100%;
}

.product-card:hover,
.product-card:focus-within {
    border-color: rgba(232,71,30,0.36);
    box-shadow: 0 0 0 1px rgba(232,71,30,0.10), 0 10px 28px rgba(20,35,80,0.14);
    transform: translateY(-3px);
}

/* Imagen: producto completo, sin recorte, compatible vertical/horizontal */
.card-img {
    height: var(--product-img-height);
    background: #f5f6f8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    position: relative;
    overflow: hidden;
    border-radius: 15px 15px 0 0;
    border-bottom: 1px solid var(--b1);
}

.card-img::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 38%, rgba(255,255,255,0.88), transparent 62%);
    pointer-events: none;
    z-index: 0;
}

@media (hover: hover) and (pointer: fine) {
    .product-card:hover .card-img::after {
        content: '';
        position: absolute;
        inset: 0;
        background: rgba(232,71,30,0.035);
        pointer-events: none;
        z-index: 2;
    }
}

.card-img img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
    padding: 0;
    transition: opacity 0.24s var(--ease), transform 0.28s var(--ease);
    z-index: 1;
}

.card-img .img-main { opacity: 1; }
.card-img .img-hover { opacity: 0; }

/* Hover de galería solo en dispositivos con mouse/trackpad.
   En móviles/touch se mantiene siempre la imagen principal. */
@media (hover: hover) and (pointer: fine) {
    .product-card:hover .card-img.has-hover .img-main { opacity: 0; }
    .product-card:hover .card-img .img-hover { opacity: 1; }
    .product-card:hover .card-img img { transform: scale(1.045); }
}

.product-fallback-icon {
    position: relative;
    z-index: 1;
    font-size: 3.5rem;
    opacity: .65;
}

.card-tag {
    position: absolute;
    top: 0.55rem;
    left: 0.55rem;
    z-index: 3;
    background: var(--or);
    color: white;
    font-family: var(--fd);
    font-weight: 900;
    font-size: 0.58rem;
    padding: 0.16rem 0.5rem;
    border-radius: 999px;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    box-shadow: 0 4px 12px rgba(0,0,0,0.18);
}

.card-tag-hot { background: #e03030; }
.card-tag-deal { background: var(--gr); }

.gallery-count {
    position: absolute;
    bottom: 0.5rem;
    right: 0.5rem;
    z-index: 3;
    background: rgba(0,0,0,0.62);
    color: white;
    font-size: 0.62rem;
    font-weight: 800;
    padding: 0.18rem 0.55rem;
    border-radius: 999px;
    letter-spacing: 0.04em;
    backdrop-filter: blur(4px);
}

.card-body {
    padding: clamp(0.7rem, 1.5vw, 0.95rem);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-meta {
    display: flex;
    align-items: center;
    gap: .35rem;
    flex-wrap: wrap;
    margin: .25rem 0;
}

.card-codigo,
.card-ref {
    font-size: 0.68rem;
    color: var(--t3);
    font-weight: 700;
    font-family: monospace;
    letter-spacing: 0.02em;
}

.clasif-chip {
    display: inline-block;
    font-size: .58rem;
    font-weight: 800;
    padding: 1px 6px;
    border-radius: 999px;
    background: var(--s2);
    color: var(--t2);
    letter-spacing: .04em;
    text-transform: uppercase;
    border: 1px solid var(--b1);
}

.card-name {
    font-family: var(--fd);
    font-weight: 850;
    font-size: clamp(0.96rem, 1.6vw, 1.08rem);
    line-height: 1.16;
    color: var(--t1);
    margin: 0.45rem 0 0.45rem;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    min-height: 2.25em;
}

.card-price {
    font-family: var(--fd);
    font-weight: 950;
    font-size: clamp(1.18rem, 2.1vw, 1.42rem);
    line-height: 1;
    color: var(--or);
    margin-top: .3rem;
    margin-bottom: .35rem;
    letter-spacing: -0.01em;
    text-shadow: 0 0 16px rgba(232,71,30,0.16);
}

.card-price-nd {
    font-size: 0.78rem;
    color: var(--t3);
    font-weight: 700;
    margin: .35rem 0;
}

.tax-badge,
.stock-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: .62rem;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 999px;
    letter-spacing: .02em;
    white-space: nowrap;
}

.stock-badge {
    background: var(--gr-dim);
    color: var(--gr);
}

.badge-gravado  { background: rgba(232,71,30,.12); color: #e8471e; }
.badge-excluido { background: rgba(100,180,100,.12); color: #3a8a3a; }
.badge-exento   { background: rgba(80,140,220,.12); color: #2260b0; }
.badge-nd       { background: rgba(150,150,150,.1); color: #777; }

.service-card-icon {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    background: var(--s2);
}

.card-footer {
    padding: 0 clamp(0.7rem, 1.5vw, 0.95rem) clamp(0.7rem, 1.5vw, 0.95rem);
    opacity: 1;
    transform: none;
}

.product-card .btn-full {
    font-size: .82rem;
    padding: .62rem .8rem;
    border-radius: 10px;
}

@media (hover: none) {
    .product-card:hover { transform: none; }
    .product-card:hover .card-img img { transform: none; }
    .product-card:hover .card-img .img-main { opacity: 1; }
    .product-card:hover .card-img .img-hover { opacity: 0; }
}

/* ════════════════════════════════════════════════════════════
   BUTTONS
════════════════════════════════════════════════════════════ */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
    border: none; border-radius: var(--r);
    font-family: var(--fd); font-weight: 800;
    cursor: pointer; text-decoration: none;
    transition: all 0.2s var(--ease);
    letter-spacing: 0.05em; white-space: nowrap;
}
.btn-orange { background: var(--or); color: white; padding: 0.65rem 1.2rem; font-size: 0.9rem; text-transform: uppercase; box-shadow: 0 0 14px var(--or-glow-sm), 0 2px 8px rgba(253,86,45,0.2); }
.btn-orange:hover { background: var(--or-dk); color: white; box-shadow: 0 0 24px var(--or-glow), 0 4px 16px rgba(253,86,45,0.25); transform: translateY(-1px); }
.btn-ghost { background: transparent; border: 1px solid var(--b2); color: var(--t2); padding: 0.6rem 1rem; font-size: 0.83rem; font-family: var(--fb); font-weight: 600; }
.btn-ghost:hover { border-color: var(--b3); color: var(--t1); }
.btn-green { background: var(--gr); color: white; padding: 0.6rem 1rem; font-size: 0.88rem; text-transform: uppercase; }
.btn-green:hover { background: #4d8a39; }
.btn-full { width: 100%; }
.btn-sm  { padding: 0.36rem 0.75rem; font-size: 0.76rem; }
.btn-lg  { padding: 0.8rem 1.5rem;   font-size: 1rem; }
.btn-xl  { padding: 0.7rem 1.6rem;   font-size: 1rem; }

/* ════════════════════════════════════════════════════════════
   FORMS
════════════════════════════════════════════════════════════ */
.form-group { margin-bottom: 1rem; }
.form-label { display: block; font-size: 0.7rem; font-weight: 700; color: var(--t3); margin-bottom: 0.3rem; text-transform: uppercase; letter-spacing: 0.09em; }
.form-input { width: 100%; background: var(--s1); border: 1px solid var(--b2); border-radius: var(--r); padding: 0.7rem 0.9rem; color: var(--t1); font-family: var(--fb); font-size: 0.94rem; outline: none; transition: border-color 0.2s, box-shadow 0.2s; }
.form-input:focus { border-color: var(--or); box-shadow: 0 0 0 3px var(--or-dim); background: var(--s2); }
.form-input::placeholder { color: var(--t3); }
select.form-input { cursor: pointer; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* ════════════════════════════════════════════════════════════
   PAGINATION
════════════════════════════════════════════════════════════ */
.pagination { display: flex; justify-content: center; align-items: center; gap: 4px; margin-top: 2rem; flex-wrap: wrap; }
.pag-btn { background: var(--s1); border: 1px solid var(--b1); border-radius: 8px; padding: 0.4rem 0.8rem; color: var(--t2); text-decoration: none; font-family: var(--fd); font-weight: 700; font-size: 0.84rem; transition: all 0.18s; }
.pag-btn:hover { border-color: var(--b2); color: var(--t1); }
.pag-btn.active { background: var(--or); border-color: var(--or); color: white; }
.pag-btn.disabled { opacity: 0.3; pointer-events: none; }

/* ════════════════════════════════════════════════════════════
   MODAL
════════════════════════════════════════════════════════════ */
.modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.75); z-index: 500; align-items: center; justify-content: center; padding: 1rem; backdrop-filter: blur(8px); }
.modal-overlay.open { display: flex; }
.modal-box { background: var(--s1); border: 1px solid var(--b2); border-radius: var(--rxl); padding: clamp(1.25rem, 4vw, 1.75rem); width: 100%; max-width: 420px; box-shadow: 0 40px 80px rgba(0,0,0,0.6); animation: modalUp 0.28s var(--spring); position: relative; overflow: hidden; }
.modal-box::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--or), transparent); }
.modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.25rem; padding-bottom: 0.9rem; border-bottom: 1px solid var(--b1); }
.modal-title { font-family: var(--fd); font-weight: 800; font-size: 1.05rem; text-transform: uppercase; letter-spacing: 0.06em; }
.modal-close { background: var(--s2); border: 1px solid var(--b1); border-radius: 7px; width: 28px; height: 28px; cursor: pointer; color: var(--t3); display: flex; align-items: center; justify-content: center; font-size: 0.85rem; transition: all 0.18s; }
.modal-close:hover { color: var(--t1); border-color: var(--b2); }
.modal-footer { display: flex; gap: 0.6rem; margin-top: 1.25rem; }

/* ════════════════════════════════════════════════════════════
   ALERTS / BADGES / TOAST
════════════════════════════════════════════════════════════ */
.alert { border-radius: var(--r); padding: 0.75rem 1rem; font-size: 0.85rem; margin-bottom: 1rem; border-left: 2px solid; }
.alert-error   { background: rgba(224,48,48,0.07); border-color: #e03030; color: #c02020; }
.alert-success { background: var(--gr-dim); border-color: var(--gr); color: #2d6b1e; }
.alert-info    { background: var(--or-dim); border-color: var(--or); color: var(--or-dk); }
.alert-ok      { background: var(--gr-dim); border-color: var(--gr); color: var(--gr); }
.badge { display: inline-flex; align-items: center; border-radius: 5px; padding: 0.12rem 0.48rem; font-size: 0.64rem; font-weight: 800; font-family: var(--fd); letter-spacing: 0.07em; text-transform: uppercase; }
.badge-or  { background: var(--or-dim); color: var(--or);  border: 1px solid rgba(253,86,45,0.2); }
.badge-gr  { background: var(--gr-dim); color: var(--gr);  border: 1px solid rgba(61,139,44,0.2); }
.badge-dim { background: var(--s3);     color: var(--t3);  border: 1px solid var(--b1); }
.toast-container { position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 600; display: flex; flex-direction: column; gap: 0.4rem; pointer-events: none; max-width: calc(100vw - 3rem); }
.toast { background: var(--s1); border: 1px solid var(--b2); border-radius: var(--r); padding: 0.65rem 1rem; font-family: var(--fd); font-weight: 700; font-size: 0.84rem; display: flex; align-items: center; gap: 0.5rem; min-width: 190px; box-shadow: 0 8px 28px rgba(0,0,0,0.15); transform: translateX(110%); opacity: 0; transition: all 0.3s var(--spring); }
.toast.show { transform: none; opacity: 1; }
.toast.success { border-left: 3px solid var(--gr); }
.toast.error   { border-left: 3px solid #e03030; }
.toast.default { border-left: 3px solid var(--or); }
.empty-state { grid-column: 1/-1; text-align: center; padding: 5rem 2rem; }
.empty-state-icon { font-size: 2.5rem; margin-bottom: 1rem; opacity: 0.3; }
.empty-state h3 { font-family: var(--fd); font-weight: 800; font-size: 1.1rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--t2); margin-bottom: 0.4rem; }
.empty-state p { font-size: 0.85rem; color: var(--t3); }

/* ════════════════════════════════════════════════════════════
   TABLAS
════════════════════════════════════════════════════════════ */
td { font-size: 0.8rem; }
.table-wrapper { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--rl); border: 1px solid var(--b1); box-shadow: var(--sh-sm); }
.data-table { width: 100%; border-collapse: collapse; background: var(--s1); min-width: 600px; }
.data-table thead tr { background: var(--t1); }
.data-table th { padding: .75rem 1rem; text-align: left; font-size: .75rem; font-weight: 700; color: white; text-transform: uppercase; letter-spacing: .08em; white-space: nowrap; }
.data-table td { padding: .75rem 1rem; border-bottom: 1px solid var(--b1); font-size: .875rem; color: var(--t2); vertical-align: middle; }
.data-table tbody tr:last-child td { border-bottom: none; }
@media (hover: hover) and (pointer: fine) {
    .data-table tbody tr:hover td { background: var(--s2); }
}

/* ════════════════════════════════════════════════════════════
   UTILIDADES
════════════════════════════════════════════════════════════ */
.card { background: var(--s1); border: 1px solid var(--b1); border-radius: var(--rl); box-shadow: var(--sh-sm); }

/* ════════════════════════════════════════════════════════════
   FOOTER
════════════════════════════════════════════════════════════ */
.site-footer { background: var(--bg2); border-top: 1px solid var(--b1); padding: 2rem clamp(1rem, 3vw, 2rem); margin-top: 4rem; }
.footer-inner { max-width: 1360px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 0.5rem; text-decoration: none; }
.footer-brand-icon { width: 28px; height: 28px; background: var(--or); border-radius: 7px; display: flex; align-items: center; justify-content: center; }
.footer-brand-icon svg { width: 16px; height: 16px; }
.footer-brand-name { font-family: var(--fd); font-weight: 800; font-size: 1.1rem; color: var(--t1); }
.footer-copy { font-size: 0.74rem; color: var(--t3); }
.footer-copy a { color: var(--or); text-decoration: none; }
.footer-links { display: flex; gap: 1.25rem; align-items: center; flex-wrap: wrap; }
.footer-link { font-size: 0.78rem; color: var(--t3); text-decoration: none; transition: color 0.18s; }
.footer-link:hover { color: var(--t1); }

/* ════════════════════════════════════════════════════════════
   ANIMATIONS
════════════════════════════════════════════════════════════ */
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes modalUp { from { transform: translateY(20px) scale(0.96); opacity: 0; } to { transform: none; opacity: 1; } }
.product-card:nth-child(1)  { animation-delay: 0.03s }
.product-card:nth-child(2)  { animation-delay: 0.06s }
.product-card:nth-child(3)  { animation-delay: 0.09s }
.product-card:nth-child(4)  { animation-delay: 0.12s }
.product-card:nth-child(5)  { animation-delay: 0.15s }
.product-card:nth-child(6)  { animation-delay: 0.18s }
.product-card:nth-child(7)  { animation-delay: 0.21s }
.product-card:nth-child(8)  { animation-delay: 0.24s }
.product-card:nth-child(n+9){ animation-delay: 0.26s }

/* ════════════════════════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════════════════════════ */

/* ── 1920px+ ── */
@media (min-width: 1920px) {
    .layout       { max-width: 1680px; grid-template-columns: 260px 1fr; }
    .product-grid       { gap: 1.5rem; }
    .hero-inner   { max-width: 1560px; }
}

/* ── 1440px+ ── */
@media (min-width: 1440px) {
    .layout       { grid-template-columns: 230px 1fr; }
    .product-grid       { gap: 1.4rem; }
}

/* ── Pantallas cortas ≤820px alto, ≥900px ancho ── */
@media (max-height: 820px) and (min-width: 900px) {
    .hero               { min-height: clamp(400px, 66vh, 640px); }
    .hero-inner         { padding-top: clamp(2rem, 5vh, 3.5rem); padding-bottom: clamp(2rem, 5vh, 3.5rem); }
    .hero-stat-num      { font-size: clamp(1.2rem, 1.8vw, 1.6rem); }
    .hero-title-line    { font-size: clamp(2.4rem, 4.5vw, 4rem); }
    .hero-title-line.big{ font-size: clamp(3.5rem, 7vw, 5.8rem); }
    .hero-content       { gap: 1.3rem; }
}

/* ── 1366×768 Dell corporativo ── */
@media (max-width: 1366px) and (max-height: 768px) {
    .hero               { min-height: clamp(340px, 58vh, 520px); }
    .hero-content       { max-width: min(580px, 56%); gap: 1rem; }
    .hero-title-line    { font-size: clamp(2.2rem, 3.8vw, 3.4rem); }
    .hero-title-line.big{ font-size: clamp(3rem, 6.2vw, 4.8rem); }
    .hero-desc          { font-size: 0.87rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
    .hero-stat-num      { font-size: 1.3rem; }
    .chip-val           { font-size: 1rem; }
    .layout             { grid-template-columns: 185px 1fr; gap: 1.1rem; padding: 1rem 1.25rem; }
    .product-grid       { gap: 0.9rem; }
    .card-body          { padding: 0.75rem; }
}

/* ── 1280×800 MacBook Pro 13" ── */
@media (max-width: 1280px) and (max-height: 800px) {
    .hero               { min-height: clamp(360px, 60vh, 560px); }
    .hero-content       { max-width: min(560px, 57%); gap: 1.1rem; }
    .hero-title-line    { font-size: clamp(2.3rem, 4vw, 3.6rem); }
    .hero-title-line.big{ font-size: clamp(3.2rem, 6.5vw, 5rem); }
    .layout             { grid-template-columns: 190px 1fr; gap: 1.25rem; padding: 1rem 1.25rem; }
    .product-grid       { gap: 0.95rem; }
}

/* ── MacBook Air 1440×900 ── */
@media (max-width: 1440px) and (max-height: 900px) and (min-width: 1281px) {
    .hero               { min-height: clamp(420px, 68vh, 640px); }
    .hero-title-line.big{ font-size: clamp(4rem, 7.2vw, 5.8rem); }
    .layout             { grid-template-columns: 210px 1fr; }
    /* product-grid columns handled by fluid Amazon grid */
}

/* ── 1280px ── */
@media (max-width: 1280px) {
    .layout             { grid-template-columns: 205px 1fr; }
    /* product-grid columns handled by fluid Amazon grid */
    .hero-title-line.big{ font-size: clamp(3.8rem, 8vw, 6.5rem); }
}

/* ── 1100px ── */
@media (max-width: 1100px) {
    .hero-content       { max-width: min(530px, 58%); }
    .hero-title-line    { font-size: clamp(2.5rem, 5.2vw, 4.2rem); }
    .hero-title-line.big{ font-size: clamp(3.8rem, 8.5vw, 6.2rem); }
    .hero-spec-chip-1   { top: 12%; right: 2%; }
    .hero-spec-chip-2   { bottom: 14%; right: 9%; }
    .product-grid       { gap: 1rem; }
}

/* ── 1024px ── */
@media (max-width: 1024px) {
    .layout             { grid-template-columns: 185px 1fr; gap: 1.1rem; }
    .brand-tag          { display: none; }
    .hero-content       { max-width: min(500px, 62%); }
    /* con sidebar 185px + gap, 2 col respira mejor */
    .product-grid       { gap: 1rem; }
}

/* ── 900px ── */
@media (max-width: 900px) {
    .hero               { min-height: clamp(420px, 68vw, 620px); }
    .hero-bg-img        { background-position: 62% 32%; }
    .hero-overlay {
        background:
            linear-gradient(105deg, rgba(6,8,16,0.94) 0%, rgba(6,8,16,0.82) 40%, rgba(6,8,16,0.50) 65%, rgba(6,8,16,0.20) 100%),
            linear-gradient(to bottom, transparent 55%, rgba(14,16,24,0.75) 82%, var(--bg) 100%);
    }
    .hero-content       { max-width: min(500px, 75%); }
    .hero-spec-chip     { display: none; }
    .hero-title-line    { font-size: clamp(2.6rem, 7vw, 4.2rem); }
    .hero-title-line.big{ font-size: clamp(4rem, 12.5vw, 7rem); }
    .product-grid       { gap: 0.9rem; }
}

/* ── 820px — sidebar a pills ── */
@media (max-width: 820px) {
    .layout             { grid-template-columns: 1fr; gap: 0.85rem; }
    .sidebar            { position: static; background: none; border: none; box-shadow: none; padding: 0; border-radius: 0; }
    .sidebar-section    { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; padding-bottom: 0.75rem; border-bottom: 1px solid var(--b1); }
    .sidebar-label      { display: none; }
    .cat-item           { padding: 0.32rem 0.85rem; font-size: 0.78rem; border-radius: 20px; border: 1px solid var(--b2); background: var(--s1); }
    .cat-item.active    { box-shadow: 0 0 10px var(--or-glow-sm); }
    .sidebar-cta        { display: none; }
    /* sin sidebar: 3 col de nuevo */
    .product-grid       { gap: 0.9rem; }
}

/* ── 768px — navbar móvil ── */
@media (max-width: 768px) {
    .navbar             { height: 56px; padding: 0 1rem; gap: 0.5rem; }
    .nav-search         { display: none; }
    .nav-sep            { display: none; }
    .nav-actions        { display: none; }
    .nav-hamburger      { display: flex; }
    .nav-drawer         { inset: 56px 0 0 0; }

    .stats-bar          { padding: 0 1rem; }
    .stat-item          { padding: 0.45rem 0.7rem; }
    .stat-num           { font-size: 0.95rem; }
    .stat-lbl           { font-size: 0.58rem; }
    .stats-tagline,
    .stats-divider      { display: none; }

    .layout             { padding: 0.9rem; }
    .main-bar           { flex-direction: column; align-items: flex-start; gap: 0.5rem; }

    .hero               { min-height: clamp(380px, 62vw, 520px); }
    .hero-inner         { padding: clamp(2rem, 6vw, 3.5rem) 1.25rem; }
    .hero-bg-img        { background-position: 68% 28%; }
    .hero-overlay {
        background:
            linear-gradient(to bottom, rgba(6,8,16,0.55) 0%, rgba(6,8,16,0.48) 30%, rgba(6,8,16,0.72) 70%, var(--bg) 100%),
            linear-gradient(to right, rgba(6,8,16,0.88) 0%, rgba(6,8,16,0.60) 50%, transparent 100%);
    }
    .hero-content       { max-width: 85%; gap: 1.2rem; }
    .hero-title-line    { font-size: clamp(2.4rem, 8vw, 3.8rem); }
    .hero-title-line.big{ font-size: clamp(3.8rem, 14vw, 6rem); }
    .hero-desc          { font-size: clamp(0.83rem, 2.4vw, 0.95rem); max-width: 100%; }
    .hero-actions       { flex-direction: column; gap: 0.6rem; }
    .hero-actions .btn,
    .hero-actions .btn-ghost-hero { width: 100%; justify-content: center; }
    .hero-stats         { flex-wrap: wrap; gap: 1rem 1.5rem; padding-top: 1rem; }
    .hero-stat          { border-right: none !important; padding-right: 0 !important; margin-right: 0 !important; }
    .hero-stat-num      { font-size: clamp(1.4rem, 4.5vw, 1.8rem); }
    .hero-spec-chip     { display: none; }

    /* tablet portrait: 2 col */
    .product-grid       { gap: 0.75rem; }
}

/* ── 600px ── */
@media (max-width: 600px) {
    .product-grid       { gap: 0.6rem; }
    .card-body          { padding: 0.7rem; }
    .card-footer        { padding: 0 0.7rem 0.7rem; }
    .card-name          { font-size: 0.92rem; }
    .card-price         { font-size: 1rem; }
    .hero-inner         { padding-inline: 1rem; }
    .hero-content       { max-width: 90%; }
    .hero-stats         { gap: 0.85rem 1.25rem; }
    .hero-pill          { font-size: 0.62rem; }

    /* tabla responsive */
    .table-wrapper      { border: none; box-shadow: none; overflow-x: visible; }
    .data-table         { min-width: unset; }
    .data-table,
    .data-table tbody   { display: block; width: 100%; }
    .data-table thead   { display: none; }
    .data-table tr      { display: block; background: var(--s1); border: 1px solid var(--b1); border-radius: var(--rl); padding: .75rem 1rem; margin-bottom: .75rem; box-shadow: var(--sh-sm); }
    .data-table td      { display: flex; justify-content: space-between; align-items: center; gap: .5rem; padding: .45rem 0; border-bottom: 1px solid var(--b1); font-size: .85rem; text-align: right; }
    .data-table td:last-child  { border-bottom: none; padding-bottom: 0; }
    .data-table td:first-child { padding-top: 0; }
    .data-table td::before     { content: attr(data-label); font-size: .7rem; font-weight: 700; color: var(--t3); text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; flex-shrink: 0; text-align: left; }
    .data-table td:first-child { flex-direction: column; align-items: flex-start; text-align: left; padding-bottom: .6rem; }
    .data-table td:first-child::before { display: none; }
    .data-table td:last-child  { flex-direction: column; align-items: flex-start; padding-top: .6rem; }
    .data-table td:last-child::before { display: none; }
    .data-table td:last-child > div { width: 100%; }
    .data-table td:last-child .btn  { flex: 1; justify-content: center; }
    .form-grid-2        { grid-template-columns: 1fr; }
}

/* ── 480px ── */
@media (max-width: 480px) {
    .hero               { min-height: clamp(340px, 92vw, 480px); }
    .hero-bg-img        { background-position: 72% 25%; }
    .hero-content       { max-width: 92%; }
    .hero-title-line    { font-size: clamp(2.2rem, 9.5vw, 3.2rem); }
    .hero-title-line.big{ font-size: clamp(3.5rem, 16vw, 5.5rem); }
    .hero-title-line.outline { -webkit-text-stroke-width: 1.2px; }
    .hero-desc          { font-size: 0.84rem; }
    .hero-stats         { gap: 0.7rem 1.1rem; }
    .layout             { padding: 0.75rem; }
    .product-grid       { gap: 0.5rem; }
}

/* ── 430px ── */
@media (max-width: 430px) {
    .navbar             { height: 52px; padding: 0 0.85rem; }
    .brand-icon         { width: 32px; height: 32px; border-radius: 8px; }
    .brand-icon svg     { width: 18px; height: 18px; }
    .brand-name         { font-size: 1.18rem; }
    .nav-drawer         { inset: 52px 0 0 0; }
    .hero               { min-height: clamp(320px, 88vw, 440px); }
    .hero-inner         { padding: 1.75rem 0.9rem; }
    .hero-content       { max-width: 95%; gap: 1rem; }
    .hero-title-line    { font-size: clamp(2rem, 10.5vw, 3rem); }
    .hero-title-line.big{ font-size: clamp(3.2rem, 17vw, 5rem); }
    .hero-title-line.outline { -webkit-text-stroke-width: 1px; }
    .hero-desc          { font-size: 0.82rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
    .hero-pill          { font-size: 0.6rem; }
    .hero-stat-num      { font-size: 1.25rem; }
    .layout             { padding: 0.65rem; }
    .product-grid       { gap: 0.45rem; }
    .main-bar h2        { font-size: 0.85rem; }
    .main-bar p         { font-size: 0.72rem; }
}

/* ── 390px ── */
@media (max-width: 390px) {
    .hero               { min-height: clamp(300px, 85vw, 400px); }
    .hero-title-line    { font-size: clamp(1.85rem, 10vw, 2.7rem); }
    .hero-title-line.big{ font-size: clamp(3rem, 16vw, 4.5rem); }
    .hero-content       { gap: 0.9rem; }
    .hero-desc          { -webkit-line-clamp: 2; }
    .product-grid       { gap: 0.4rem; }
    .card-body          { padding: 0.55rem; }
    .card-name          { font-size: 0.82rem; }
    .card-price         { font-size: 0.9rem; }
}

/* ── 360px ── */
@media (max-width: 360px) {
    .navbar             { padding: 0 0.7rem; }
    .brand-name         { font-size: 1.1rem; }
    .hero               { min-height: clamp(285px, 82vw, 380px); }
    .hero-inner         { padding: 1.5rem 0.75rem; }
    .hero-title-line    { font-size: clamp(1.75rem, 10.5vw, 2.5rem); }
    .hero-title-line.big{ font-size: clamp(2.8rem, 17vw, 4.2rem); }
    .hero-stats         { gap: 0.55rem 0.9rem; }
    .hero-stat-num      { font-size: 1.1rem; }
    .layout             { padding: 0.55rem; }
    .product-grid       { gap: 0.35rem; }
}

/* ── 320px ── */
@media (max-width: 320px) {
    .brand-name         { font-size: 1rem; }
    .brand-icon         { width: 28px; height: 28px; }
    .hero               { min-height: 270px; }
    .hero-inner         { padding: 1.25rem 0.65rem; }
    .hero-title-line    { font-size: clamp(1.6rem, 11vw, 2.3rem); }
    .hero-title-line.big{ font-size: clamp(2.5rem, 17.5vw, 3.8rem); }
    .hero-pill          { font-size: 0.55rem; }
    .hero-desc          { font-size: 0.78rem; -webkit-line-clamp: 2; }
    .hero-stat-num      { font-size: 1rem; }
    .product-grid       { gap: 0.3rem; }
    .card-body          { padding: 0.45rem; }
    .card-name          { font-size: 0.75rem; }
    .card-price         { font-size: 0.82rem; }
    .layout             { padding: 0.45rem; }
    .stats-bar          { padding: 0 0.5rem; }
}

/* ── Landscape móvil ── */
@media (max-height: 500px) and (orientation: landscape) {
    .navbar             { height: 46px; }
    .nav-drawer         { inset: 46px 0 0 0; }
    .hero               { min-height: auto; }
    .hero-inner         { padding: 1.25rem clamp(1rem, 4vw, 2.5rem); }
    .hero-content       { gap: 0.75rem; max-width: min(52%, 500px); }
    .hero-title-line    { font-size: clamp(1.8rem, 5vw, 3rem); }
    .hero-title-line.big{ font-size: clamp(2.8rem, 8vw, 4.5rem); }
    .hero-desc, .hero-stats { display: none; }
    .hero-actions       { flex-direction: row; }
    .hero-actions .btn,
    .hero-actions .btn-ghost-hero { width: auto; }
    .stats-bar          { display: none; }
    .layout             { padding: 0.65rem; gap: 0.75rem; }
    .product-grid       { gap: 0.45rem; }
}



/* ════════════════════════════════════════════════════════════
   AMAZON PRO FLUID PRODUCT RESPONSIVE
   Una sola fuente para columnas + altura de imagen
   Mobile-first seguro para iPhone, Android, WebView y pantallas raras
════════════════════════════════════════════════════════════ */
@media (min-width: 1920px) {
    .product-grid { --product-card-min: 250px; --product-img-height: 300px; }
}

@media (max-width: 1440px) {
    .product-grid { --product-card-min: 230px; --product-img-height: 250px; }
}

@media (max-width: 1366px) {
    .product-grid { --product-card-min: 220px; --product-img-height: 235px; }
}

@media (max-width: 1100px) {
    .product-grid { --product-card-min: 215px; --product-img-height: 225px; }
}

@media (max-width: 900px) {
    .product-grid { --product-card-min: 205px; --product-img-height: 215px; }
}

/* Tablets pequeñas y móviles: 1 card por fila para producto premium/B2B */
@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: minmax(0, 1fr);
        --product-card-min: 100%;
        --product-img-height: clamp(255px, 62vw, 340px);
        gap: 0.95rem;
    }

    .product-card {
        width: 100%;
        max-width: 460px;
        margin-inline: auto;
    }

    .card-name {
        font-size: 1.05rem;
        min-height: auto;
    }

    .card-price {
        font-size: 1.32rem;
    }
}

/* iPhone/Android comunes: más presencia visual, sin apretar el card */
@media (max-width: 600px) {
    .product-grid {
        grid-template-columns: minmax(0, 1fr);
        --product-card-min: 100%;
        --product-img-height: clamp(245px, 68vw, 320px);
        gap: 0.85rem;
    }

    .product-card { max-width: 430px; }
    .card-body { padding: 0.85rem; }
    .card-footer { padding: 0 0.85rem 0.85rem; }
    .card-name { font-size: 1rem; }
    .card-price { font-size: 1.25rem; }
}

@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: minmax(0, 1fr);
        --product-card-min: 100%;
        --product-img-height: clamp(235px, 72vw, 300px);
        gap: 0.8rem;
    }

    .product-card { max-width: 410px; }
}

@media (max-width: 390px) {
    .product-grid {
        grid-template-columns: minmax(0, 1fr);
        --product-card-min: 100%;
        --product-img-height: clamp(220px, 76vw, 280px);
        gap: 0.75rem;
    }

    .product-card { max-width: 100%; }
    .card-body { padding: 0.75rem; }
    .card-name { font-size: 0.95rem; }
    .card-price { font-size: 1.18rem; }
}

@media (max-width: 320px) {
    .product-grid {
        grid-template-columns: minmax(0, 1fr);
        --product-card-min: 100%;
        --product-img-height: 215px;
        gap: 0.7rem;
    }

    .card-body { padding: 0.65rem; }
    .card-name { font-size: 0.9rem; }
    .card-price { font-size: 1.08rem; }
}

/* Móviles en landscape: más columnas, pero sin recortar imagen */
@media (max-height: 500px) and (orientation: landscape) {
    .product-grid {
        --product-card-min: 170px;
        --product-img-height: 150px;
    }

    .product-card { max-width: none; }
}

/* ── Print ── */
@media print {
    .navbar, .hero, .stats-bar, .sidebar, .pagination, .site-footer { display: none; }
    .layout { grid-template-columns: 1fr; padding: 0; }
    .product-grid { grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
    .product-card { border: 1px solid #ccc; box-shadow: none; }
    .card-footer { display: none; }
}

/* ════════════════════════════════════════════════════════════
   PRODUCT IMAGE RADIUS FIX — scoped, no afecta logos ni categorías
════════════════════════════════════════════════════════════ */
.product-card .card-img {
    margin: 10px 10px 0;
    width: calc(100% - 20px);
    border-radius: 15px;
    overflow: hidden;
    border-bottom: none;
}

.product-card .card-img img,
.product-card .card-img .img-main,
.product-card .card-img .img-hover {
    border-radius: 15px;
}

.brand img,
.brand-icon img,
.footer-brand img,
.footer-brand-icon img,
.navbar img,
.cat-card img,
.cat-card-img-wrap img,
.hero img {
    border-radius: 0 !important;
}

@media (max-width: 768px) {
    .product-card .card-img {
        margin: 10px 10px 0;
        width: calc(100% - 20px);
    }
}


/* ════════════════════════════════════════════════════════════
   FINAL PRODUCT IMAGE RADIUS OVERRIDE
   Aplica SOLO al área de imagen de producto. No toca logos,
   categorías, hero ni imágenes genéricas del sitio.
════════════════════════════════════════════════════════════ */
.product-card .card-img {
    margin: 10px 10px 0 !important;
    width: calc(100% - 20px) !important;
    border-radius: 15px !important;
    overflow: hidden !important;
    border-bottom: none !important;
    clip-path: inset(0 round 15px);
}

.product-card .card-img::before,
.product-card .card-img::after,
.product-card .card-img img,
.product-card .card-img .img-main,
.product-card .card-img .img-hover,
.product-card .card-img .service-card-icon {
    border-radius: inherit !important;
}

.product-card .card-img img,
.product-card .card-img .img-main,
.product-card .card-img .img-hover {
    overflow: hidden !important;
}

.product-card .product-fallback-icon {
    border-radius: 15px !important;
}

.brand img,
.brand-icon img,
.footer-brand img,
.footer-brand-icon img,
.navbar img,
.cat-card img,
.cat-card-img-wrap img,
.hero img,
.site-footer img {
    border-radius: 0 !important;
}


/* ════════════════════════════════════════════════════════════
   TOUCH DEVICES — sin hover fantasma en fotos de producto
════════════════════════════════════════════════════════════ */
@media (hover: none), (pointer: coarse) {
    .product-card .card-img .img-main { opacity: 1 !important; }
    .product-card .card-img .img-hover { opacity: 0 !important; display: none !important; }
    .product-card .card-img img { transform: none !important; }
    .product-card .card-img::after { display: none !important; }
}


/* ════════════════════════════════════════════════════════════
   FINAL PRODUCT IMAGE GUARANTEE
   - radius solo en imagen de producto
   - sin hover fantasma en touch
   - no afecta logos, categorías ni footer
════════════════════════════════════════════════════════════ */
.product-grid .product-card > .card-img {
    margin: 10px 10px 0 !important;
    width: calc(100% - 20px) !important;
    border-radius: 15px !important;
    overflow: hidden !important;
    border-bottom: none !important;
    clip-path: inset(0 round 15px) !important;
    isolation: isolate;
}

.product-grid .product-card > .card-img::before,
.product-grid .product-card > .card-img::after,
.product-grid .product-card > .card-img img,
.product-grid .product-card > .card-img .img-main,
.product-grid .product-card > .card-img .img-hover,
.product-grid .product-card > .card-img .service-card-icon {
    border-radius: inherit !important;
}

.product-grid .product-card > .card-img img {
    overflow: hidden !important;
}

.brand img,
.brand-icon img,
.footer-brand img,
.footer-brand-icon img,
.navbar img,
.cat-card img,
.cat-card-img-wrap img,
.hero img,
.site-footer img {
    border-radius: 0 !important;
}

@media (hover: none), (pointer: coarse) {
    .product-grid .product-card > .card-img .img-main {
        opacity: 1 !important;
    }

    .product-grid .product-card > .card-img .img-hover {
        opacity: 0 !important;
        display: none !important;
    }

    .product-grid .product-card > .card-img img {
        transform: none !important;
    }

    .product-grid .product-card > .card-img::after {
        display: none !important;
    }
}

/* ════════════════════════════════════════════════════════════
   B2B — GRID 3 COLUMNAS + IMAGEN COMPLETA + RADIUS REAL
   PEGAR AL FINAL DEL main.css
════════════════════════════════════════════════════════════ */

@media (min-width: 1025px) {
    .product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 1.35rem !important;
        --product-img-height: 340px;
    }

    .product-card {
        max-width: 100% !important;
    }

    .product-grid .product-card > .card-img {
        height: var(--product-img-height) !important;
        background: #fff !important;

        border-radius: 15px !important;
        overflow: hidden !important;

        clip-path: inset(0 round 15px) !important;
        -webkit-clip-path: inset(0 round 15px) !important;

        isolation: isolate !important;
        transform: translateZ(0);
        box-shadow: 0 4px 14px rgba(0,0,0,0.06);
    }

    .product-grid .product-card > .card-img::before,
    .product-grid .product-card > .card-img::after {
        border-radius: 15px !important;
        overflow: hidden !important;
        clip-path: inset(0 round 15px) !important;
        -webkit-clip-path: inset(0 round 15px) !important;
    }

    .product-grid .product-card > .card-img img {
        position: absolute !important;
        inset: 0 !important;

        width: 100% !important;
        height: 100% !important;

        object-fit: contain !important;
        object-position: center center !important;

        padding: 0 !important;
        margin: 0 !important;

        border-radius: 15px !important;
        clip-path: inset(0 round 15px) !important;
        -webkit-clip-path: inset(0 round 15px) !important;

        transform: none !important;
    }
}

/* Laptop corporativo */
@media (max-width: 1366px) and (min-width: 1025px) {
    .product-grid {
        --product-img-height: 310px;
        gap: 1.1rem !important;
    }
}

/* Pantallas muy grandes */
@media (min-width: 1800px) {
    .product-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    }
}



/* ════════════════════════════════════════════════════════════
   DISTRIBUIDORES FORM — HARD OVERRIDE
   Pegar al FINAL de main.css
════════════════════════════════════════════════════════════ */

body .card {
    background: #ffffff !important;
    border: 2px solid rgba(30,45,90,0.16) !important;
    border-radius: 22px !important;
    box-shadow:
        0 18px 45px rgba(20,35,80,0.14),
        0 0 0 1px rgba(255,255,255,0.9) inset !important;
}

body .card .form-label {
    color: #475a80 !important;
    font-weight: 900 !important;
    letter-spacing: 0.12em !important;
}

body .card .form-input {
    background: #f9fafd !important;
    border: 2px solid rgba(71,90,128,0.28) !important;
    border-radius: 14px !important;
    min-height: 54px !important;
    padding: 0.82rem 1rem !important;
    color: #131d35 !important;
    box-shadow:
        0 2px 8px rgba(20,35,80,0.06),
        inset 0 1px 0 rgba(255,255,255,0.9) !important;
}

body .card .form-input:hover {
    background: #ffffff !important;
    border-color: rgba(71,90,128,0.48) !important;
}

body .card .form-input:focus {
    background: #ffffff !important;
    border-color: #e8471e !important;
    box-shadow:
        0 0 0 4px rgba(232,71,30,0.13),
        0 8px 20px rgba(20,35,80,0.10) !important;
}

body .card .form-input::placeholder {
    color: #7f8fad !important;
    opacity: 1 !important;
}

body .card select.form-input {
    background-color: #f9fafd !important;
    font-weight: 700 !important;
}

body .card textarea.form-input {
    min-height: 115px !important;
}

body .card .btn-orange {
    min-height: 48px !important;
    border-radius: 14px !important;
    box-shadow:
        0 10px 22px rgba(232,71,30,0.24),
        inset 0 1px 0 rgba(255,255,255,0.25) !important;
}

body .card .btn-ghost {
    min-height: 48px !important;
    border-radius: 14px !important;
    background: #ffffff !important;
    border: 2px solid rgba(71,90,128,0.22) !important;
}

/* Prueba visual fuerte: si ves esta línea naranja arriba del card, el CSS sí cargó */
body .card::before {
    content: '' !important;
    display: block !important;
    height: 4px !important;
    background: linear-gradient(90deg, #e8471e, rgba(232,71,30,0.25)) !important;
    border-radius: 22px 22px 0 0 !important;
    margin: -2rem -2rem 1.5rem -2rem !important;
}