/* ═══════════════════════════════════════════════════════════
   MACSA AUTOPARTES — CSS principal
   ═══════════════════════════════════════════════════════════ */
:root {
  --bg:      #0A0A0B;
  --carbon:  #161618;
  --rojo:    #C41230;
  --verde:   #10B981;
  --texto:   #E8E8EA;
  --muted:   #A0A0A8;
  --dim:     rgba(255,255,255,0.06);
  --border:  rgba(255,255,255,0.08);
  --fh:      'Barlow Condensed', sans-serif;
  --fb:      'Inter', sans-serif;
  --max:     1440px;
  --px:      clamp(20px, 3.4vw, 48px);
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--bg); color: var(--texto); font-family: var(--fb); font-weight: 300; overflow-x: hidden; scroll-behavior: smooth; }
::selection { background: var(--rojo); color: #fff; }
a { color: var(--texto); text-decoration: none; }
a:hover { color: var(--rojo); }
img { display: block; max-width: 100%; }
button { cursor: pointer; }
select option { background: var(--carbon); color: var(--texto); }
input, select, textarea { font-family: var(--fb); }
input::placeholder, textarea::placeholder { color: rgba(255,255,255,0.2); }

/* ── ANIMACIONES ── */
@keyframes blurFadeUp { from { opacity:0; filter:blur(20px); transform:translateY(40px); } to { opacity:1; filter:blur(0); transform:translateY(0); } }
@keyframes macsaFade  { from { opacity:0; } to { opacity:1; } }
@keyframes macsaPulse { 0% { transform:scale(1); opacity:.55; } 70% { transform:scale(1.9); opacity:0; } 100% { transform:scale(1.9); opacity:0; } }
@keyframes macsaDot   { 0% { transform:scale(1); opacity:.7; } 70% { transform:scale(3); opacity:0; } 100% { transform:scale(3); opacity:0; } }
@keyframes macsaLetter { 0% { color:#fff; } 45% { color:var(--rojo); } 100% { color:#fff; } }
@keyframes scrollDot  { 0%,100% { transform:translateY(0); opacity:0; } 40% { opacity:1; } }
@keyframes floatY     { 0%,100% { transform:translateY(0) rotate(-2deg); } 50% { transform:translateY(-18px) rotate(2deg); } }
@keyframes rotateSlow { to { transform:rotate(360deg); } }
@keyframes ghostPulse { 0%,100% { opacity:.04; } 50% { opacity:.08; } }
@keyframes lineGrow   { from { transform:scaleX(0); } to { transform:scaleX(1); } }
@keyframes macsaPing  { 0% { transform:scale(1); opacity:.55; } 75% { transform:scale(2.6); opacity:0; } 100% { transform:scale(2.6); opacity:0; } }
@keyframes spin       { to { transform:rotate(360deg); } }

/* ── LIQUID GLASS ── */
.liquid-glass { position:relative; background:rgba(255,255,255,0.06); backdrop-filter:blur(4px); -webkit-backdrop-filter:blur(4px); border:0.5px solid rgba(255,255,255,0.12); box-shadow:inset 0 1px 1px rgba(255,255,255,0.08); }
.liquid-glass::before { content:""; position:absolute; inset:0; border-radius:inherit; padding:1.4px; background:linear-gradient(180deg,rgba(255,255,255,.35) 0%,rgba(255,255,255,.1) 20%,transparent 40%,transparent 60%,rgba(255,255,255,.1) 80%,rgba(255,255,255,.35) 100%); -webkit-mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0); -webkit-mask-composite:xor; mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0); mask-composite:exclude; pointer-events:none; }

/* ── REVEAL ON SCROLL ── */
.reveal { opacity:0; transform:translateY(28px); transition:opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity:1; transform:none; }
.reveal-delay-1, .d1 { transition-delay:.1s; }
.reveal-delay-2, .d2 { transition-delay:.2s; }
.reveal-delay-3, .d3 { transition-delay:.3s; }
.reveal-delay-4, .d4 { transition-delay:.4s; }
.d5 { transition-delay:.5s; } .d6 { transition-delay:.6s; }

/* ── MACSA WORD HOVER ── */
.macsa-word { display:inline-block; cursor:default; }
.macsa-word:hover span { animation:macsaLetter .6s ease-out both; }
.macsa-word span:nth-child(1) { animation-delay:0ms; }
.macsa-word span:nth-child(2) { animation-delay:40ms; }
.macsa-word span:nth-child(3) { animation-delay:80ms; }
.macsa-word span:nth-child(4) { animation-delay:120ms; }
.macsa-word span:nth-child(5) { animation-delay:160ms; }
.macsa-word span:nth-child(6) { animation-delay:200ms; }
.macsa-word span:nth-child(7) { animation-delay:240ms; }
.macsa-word span:nth-child(8) { animation-delay:280ms; }
.macsa-word span:nth-child(9) { animation-delay:320ms; }

/* ══════════════════════════════════════════════════════════
   NAVBAR
   ══════════════════════════════════════════════════════════ */
#navbar { position:fixed; top:0; left:0; right:0; z-index:80; background:transparent; border-bottom:1px solid transparent; transition:background .45s, border-color .45s, backdrop-filter .45s; }
#navbar.scrolled { background:rgba(10,10,11,.96); backdrop-filter:blur(16px); -webkit-backdrop-filter:blur(16px); border-bottom-color:rgba(255,255,255,.07); }
.nav-inner { display:flex; align-items:center; justify-content:space-between; gap:28px; max-width:var(--max); margin:0 auto; padding:14px var(--px); height:76px; }
.nav-left { display:flex; align-items:center; gap:40px; min-width:0; }
.nav-logo { display:flex; align-items:center; cursor:pointer; flex-shrink:0; transition:opacity .25s; }
.nav-logo:hover { opacity:.78; }
.nav-logo img { height:42px; width:auto; }
.nav-logo-text { display:flex; flex-direction:column; gap:2px; }
.nav-logo-name { font-family:var(--fh); font-weight:800; font-size:20px; letter-spacing:.16em; color:#fff; line-height:1; }
.nav-logo-sub { font-size:9px; letter-spacing:.28em; color:rgba(255,255,255,.4); font-weight:300; }
.nav-links { display:flex; align-items:center; gap:26px; font-size:13px; font-weight:400; letter-spacing:.04em; text-transform:uppercase; color:#A0A0A8; }
.nav-links a { white-space:nowrap; padding:6px 0; border-bottom:1px solid transparent; transition:color .25s, border-color .25s; }
.nav-links a:hover, .nav-links a.active { color:#fff; border-bottom-color:var(--rojo); }
.nav-right { display:flex; align-items:center; gap:10px; flex-shrink:0; }
.nav-btn-ghost { border-radius:999px; white-space:nowrap; color:#fff; padding:9px 20px; font-size:11px; font-weight:500; letter-spacing:.05em; border:none; background:none; transition:background .3s, transform .28s; }
.nav-btn-ghost:hover { background:rgba(255,255,255,.1); transform:scale(1.02); }
.nav-search-btn { padding:9px; display:flex; align-items:center; justify-content:center; cursor:pointer; }
/* Overlay de búsqueda inteligente (lupita) */
.nav-search-overlay { position:fixed; inset:0; z-index:200; background:rgba(10,10,11,.94); backdrop-filter:blur(14px); -webkit-backdrop-filter:blur(14px); display:flex; align-items:flex-start; justify-content:center; padding-top:18vh; opacity:0; pointer-events:none; transition:opacity .25s; }
.nav-search-overlay.open { opacity:1; pointer-events:auto; }
.nav-search-close { position:absolute; top:24px; right:28px; width:44px; height:44px; border-radius:50%; border:.5px solid rgba(255,255,255,.12); background:rgba(255,255,255,.04); color:rgba(255,255,255,.6); font-size:24px; line-height:1; cursor:pointer; transition:color .2s, border-color .2s; }
.nav-search-close:hover { color:#fff; border-color:#C41230; }
.nav-search-box { width:100%; max-width:640px; padding:0 24px; }
.nav-search-eyebrow { font-family:'Inter',sans-serif; font-size:11px; letter-spacing:.22em; text-transform:uppercase; color:#C41230; font-weight:600; margin-bottom:16px; }
.nav-search-field { display:flex; align-items:center; gap:12px; background:#111113; border:.5px solid rgba(255,255,255,.1); border-radius:14px; padding:6px 6px 6px 18px; transition:border-color .2s; }
.nav-search-field:focus-within { border-color:#C41230; }
.nav-search-field > svg { color:rgba(255,255,255,.4); flex-shrink:0; }
#nav-search-input { flex:1; background:none; border:none; outline:none; color:#fff; font-family:'Inter',sans-serif; font-size:16px; font-weight:300; padding:14px 0; }
#nav-search-input::placeholder { color:rgba(255,255,255,.3); }
.nav-search-go { background:#C41230; color:#fff; border:none; border-radius:10px; padding:13px 26px; font-family:'Inter',sans-serif; font-size:12px; font-weight:600; letter-spacing:.08em; text-transform:uppercase; cursor:pointer; transition:filter .2s; flex-shrink:0; }
.nav-search-go:hover { filter:brightness(1.12); }
.nav-search-hint { font-family:'Inter',sans-serif; font-size:12px; color:rgba(255,255,255,.4); margin-top:14px; text-align:center; }
.nav-btn-primary { border-radius:999px; white-space:nowrap; background:var(--rojo); color:#fff; padding:9px 20px; font-size:11px; font-weight:600; letter-spacing:.05em; border:none; transition:transform .28s, opacity .3s; }
.nav-btn-primary:hover { opacity:.9; transform:scale(1.02); }
.hamburger { display:none; align-items:center; justify-content:center; width:40px; height:40px; border-radius:999px; background:none; border:none; color:#fff; transition:background .3s; }
.hamburger:hover { background:rgba(255,255,255,.1); }
#mobile-menu { display:none; flex-direction:column; padding:14px var(--px) 22px; background:rgba(10,10,11,.97); backdrop-filter:blur(16px); border-bottom:1px solid rgba(255,255,255,.06); }
#mobile-menu.open { display:flex; }
#mobile-menu a { padding:13px 12px; border-radius:6px; font-size:14px; color:rgba(255,255,255,.72); display:block; transition:background .25s, color .25s; }
#mobile-menu a:hover { background:rgba(255,255,255,.04); color:#fff; }
.mob-btns { display:flex; flex-direction:column; gap:10px; margin-top:14px; padding-top:18px; border-top:1px solid rgba(255,255,255,.06); }

/* ══════════════════════════════════════════════════════════
   HERO HOME
   ══════════════════════════════════════════════════════════ */
#hero { position:relative; min-height:100vh; display:flex; flex-direction:column; justify-content:flex-end; overflow:hidden; }
#hero-video { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; z-index:0; }
.hero-grid-bg { position:absolute; inset:0; z-index:0; background:#0E0E10; background-image:repeating-linear-gradient(115deg,rgba(255,255,255,.022) 0 1px,transparent 1px 14px); }
.hero-glow { position:absolute; inset:0; z-index:0; background:radial-gradient(90% 70% at 62% 34%,rgba(196,18,48,.16) 0%,rgba(10,10,11,0) 66%); }
.hero-play { position:absolute; inset:0; z-index:0; display:flex; align-items:center; justify-content:center; pointer-events:none; }
.hero-play-ring { position:relative; width:96px; height:96px; display:flex; align-items:center; justify-content:center; }
.hero-play-ring::before { content:''; position:absolute; inset:0; border:1px solid rgba(255,255,255,.12); border-radius:50%; animation:macsaPulse 3.4s cubic-bezier(.2,.8,.2,1) infinite; }
.hero-play-icon { width:0; height:0; border-left:15px solid rgba(255,255,255,.35); border-top:10px solid transparent; border-bottom:10px solid transparent; margin-left:5px; }
.hero-blur-bottom { position:absolute; inset:0; z-index:1; backdrop-filter:blur(22px); -webkit-backdrop-filter:blur(22px); -webkit-mask-image:linear-gradient(to top,black 0%,transparent 45%); mask-image:linear-gradient(to top,black 0%,transparent 45%); pointer-events:none; }
.hero-content { position:relative; z-index:10; display:flex; flex-direction:column; align-items:flex-start; padding:0 var(--px) clamp(40px,7vh,64px); }
.hero-eyebrow { display:flex; align-items:center; gap:12px; animation:blurFadeUp 1s .3s ease-out both; }
.hero-eyebrow-line { width:32px; height:1px; background:var(--rojo); }
.hero-eyebrow-text { font-size:10px; letter-spacing:.3em; text-transform:uppercase; color:rgba(255,255,255,.5); font-weight:400; }
.hero-title { font-family:var(--fh); font-weight:800; font-size:clamp(52px,8.6vw,132px); line-height:1; letter-spacing:-.02em; text-transform:uppercase; color:#fff; margin:18px 0 clamp(24px,3.6vh,34px); animation:blurFadeUp 1s .4s ease-out both; }
.hero-subtitle { font-size:17px; line-height:1.7; font-weight:300; color:rgba(255,255,255,.45); max-width:520px; margin:0 0 clamp(30px,5vh,48px); animation:blurFadeUp 1s .5s ease-out both; }
.hero-stats { display:flex; align-items:center; gap:32px; margin-bottom:clamp(32px,5.5vh,54px); animation:blurFadeUp 1s .55s ease-out both; flex-wrap:wrap; }
.hero-stat-num { font-family:var(--fh); font-weight:700; font-size:26px; color:#fff; line-height:1; }
.hero-stat-label { font-size:11px; letter-spacing:.1em; text-transform:uppercase; color:rgba(255,255,255,.35); font-weight:300; margin-top:4px; }
.hero-stat-div { width:1px; height:34px; background:rgba(255,255,255,.1); }
.hero-ctas { display:flex; align-items:center; gap:12px; flex-wrap:wrap; animation:blurFadeUp 1s .65s ease-out both; }

/* ── BOTONES GLOBALES ── */
.btn-white { display:inline-flex; align-items:center; gap:8px; border-radius:999px; background:#fff; color:#0A0A0B; padding:14px 28px; font-size:12px; font-weight:600; letter-spacing:.05em; border:none; transition:transform .28s cubic-bezier(.2,.8,.2,1), background .3s; }
.btn-white:hover { background:#EDEDEF; transform:scale(1.02); }
.btn-glass { border-radius:999px; color:#fff; padding:14px 28px; font-size:12px; font-weight:500; letter-spacing:.05em; border:none; background:none; transition:transform .28s, background .3s; display:inline-flex; align-items:center; }
.btn-glass:hover { background:rgba(255,255,255,.12); transform:scale(1.02); }
.btn-red { border-radius:9999px; background:var(--rojo); color:#fff; padding:14px 32px; font-size:12px; font-weight:600; letter-spacing:.05em; border:none; transition:filter .25s, transform .25s; display:inline-flex; align-items:center; }
.btn-red:hover { filter:brightness(1.1); transform:scale(1.02); }
.btn-outline-red { display:inline-flex; align-items:center; gap:10px; border-radius:999px; border:1px solid rgba(196,18,48,.4); color:rgba(255,255,255,.7); padding:14px 36px; font-size:12px; font-weight:500; letter-spacing:.1em; text-transform:uppercase; background:none; transition:all .3s; }
.btn-outline-red:hover { background:var(--rojo); color:#fff; border-color:var(--rojo); transform:scale(1.02); }
.search-btn { display:inline-flex; align-items:center; justify-content:center; background:var(--rojo); color:#fff; border-radius:9999px; padding:14px 40px; font-size:11px; letter-spacing:.14em; text-transform:uppercase; font-weight:600; border:none; transition:transform .25s, box-shadow .25s, filter .25s; white-space:nowrap; align-self:flex-end; }
.search-btn:hover { transform:scale(1.02); filter:brightness(1.1); box-shadow:0 8px 24px rgba(196,18,48,.35); }

/* ── EYEBROWS / SECTION HEADERS ── */
.eyebrow, .section-eyebrow { display:flex; align-items:center; gap:14px; margin-bottom:20px; }
.eyebrow-line, .section-eyebrow-line { width:42px; height:1px; background:var(--rojo); flex-shrink:0; }
.eyebrow-text, .section-eyebrow-text { font-size:10px; letter-spacing:.3em; text-transform:uppercase; color:#A0A0A8; font-weight:400; }
.section-title { font-family:var(--fh); font-weight:800; font-size:clamp(40px,4.4vw,62px); line-height:1; text-transform:uppercase; color:#fff; margin-bottom:30px; }

/* ══════════════════════════════════════════════════════════
   STATS HOME
   ══════════════════════════════════════════════════════════ */
.stats-section { position:relative; border-top:1px solid rgba(255,255,255,.07); border-bottom:1px solid rgba(255,255,255,.07); overflow:hidden; }
.stats-glow { position:absolute; inset:0; background:radial-gradient(70% 90% at 88% 6%,rgba(196,18,48,.26) 0%,rgba(10,10,11,0) 60%); }
.stats-inner { position:relative; max-width:var(--max); margin:0 auto; padding:clamp(72px,9vw,128px) var(--px); display:grid; grid-template-columns:repeat(auto-fit,minmax(420px,1fr)); gap:72px; align-items:end; }
.stats-left h2 { font-family:var(--fh); font-weight:800; font-size:clamp(56px,7vw,108px); line-height:.88; letter-spacing:-.015em; text-transform:uppercase; color:#fff; }
.stats-left p { font-size:17px; line-height:1.75; color:#A0A0A8; max-width:520px; margin:28px 0 0; }
.stats-eyebrow { display:flex; align-items:center; gap:14px; margin-bottom:26px; }
.stats-eyebrow-line { width:42px; height:1px; background:var(--rojo); }
.stat-row { display:flex; justify-content:space-between; align-items:flex-end; gap:24px; padding:24px 0; border-bottom:1px solid rgba(255,255,255,.07); }
.stat-row-label { font-size:11px; letter-spacing:.2em; text-transform:uppercase; color:#6E6E76; }
.stat-row-num { font-family:var(--fh); font-weight:800; font-size:clamp(38px,3.6vw,52px); line-height:1; color:#fff; letter-spacing:-.01em; }

/* ══════════════════════════════════════════════════════════
   BUSCADOR
   ══════════════════════════════════════════════════════════ */
.search-section { max-width:var(--max); margin:0 auto; padding:clamp(72px,8vw,112px) var(--px) 0; }
.search-bar { max-width:var(--max); margin:0 auto; padding:0 var(--px) 32px; }
.search-box { border:1px solid rgba(255,255,255,.1); background:rgba(255,255,255,.02); padding:clamp(36px,4vw,56px) clamp(28px,3.6vw,52px); }
.search-tabs { display:flex; border-bottom:1px solid rgba(255,255,255,.08); margin-bottom:40px; }
.search-tab { padding:14px 28px; font-size:11px; font-weight:500; letter-spacing:.14em; text-transform:uppercase; color:rgba(255,255,255,.38); border-bottom:2px solid transparent; margin-bottom:-1px; background:none; border-top:none; border-left:none; border-right:none; transition:color .25s, border-color .25s; }
.search-tab.active { color:#fff; border-bottom-color:var(--rojo); }
.search-panel { display:none; }
.search-panel.active { display:block; animation:macsaFade .45s both; }
.search-inputs { display:grid; grid-template-columns:repeat(auto-fit,minmax(200px,1fr)); gap:40px; align-items:end; }
.search-field label { display:block; font-size:9px; font-weight:400; letter-spacing:.2em; text-transform:uppercase; color:rgba(255,255,255,.3); margin-bottom:14px; }
.search-field select, .search-field input { width:100%; background:transparent; border:none; border-bottom:1px solid rgba(255,255,255,.15); border-radius:0; color:#fff; font-family:var(--fh); font-weight:700; font-size:24px; letter-spacing:.06em; padding:0 0 12px; outline:none; transition:border-color .3s; appearance:none; }
.search-field select:focus, .search-field input:focus { border-bottom-color:var(--rojo); }
.search-match { display:flex; align-items:center; gap:12px; margin-top:48px; padding-top:28px; border-top:1px solid rgba(255,255,255,.05); }
.search-match-dot { position:relative; width:6px; height:6px; flex-shrink:0; }
.search-match-dot span { position:absolute; inset:0; border-radius:50%; background:var(--verde); display:block; }
.search-match-dot span:last-child { animation:macsaDot 2.4s ease-out infinite; }
.search-match-text { font-size:11px; font-weight:300; letter-spacing:.05em; color:var(--verde); }
.active-filter { display:none; align-items:center; justify-content:space-between; background:rgba(196,18,48,.06); border:.5px solid rgba(196,18,48,.2); border-radius:10px; padding:10px 16px; margin-top:20px; }
.active-filter.show { display:flex; }
.filter-dot { width:6px; height:6px; border-radius:50%; background:var(--verde); flex-shrink:0; margin-right:8px; }

/* ══════════════════════════════════════════════════════════
   LÍNEAS
   ══════════════════════════════════════════════════════════ */
.lines-section { max-width:var(--max); margin:0 auto; padding:clamp(72px,8vw,112px) var(--px) 0; }
.lines-header { display:flex; align-items:flex-end; justify-content:space-between; gap:30px; flex-wrap:wrap; margin-bottom:30px; }
.lines-nav { display:flex; gap:10px; }
.lines-track-wrap { overflow:hidden; }
.lines-track { display:flex; gap:12px; transition:transform .6s cubic-bezier(.2,.8,.2,1); }
.lines-track .line-card { flex:0 0 clamp(260px,24vw,340px); height:220px; }
.line-card { position:relative; border:0.5px solid rgba(255,255,255,.07); border-radius:20px; padding:32px; overflow:hidden; cursor:pointer; background:rgba(255,255,255,.02); transition:all .5s cubic-bezier(.4,0,.2,1); display:block; color:inherit; }
.line-card:hover { background:rgba(196,18,48,.08); border-color:rgba(196,18,48,.35); transform:translateY(-6px); box-shadow:0 26px 60px -34px rgba(196,18,48,.55); }
.line-card-accent { width:32px; height:1px; background:var(--rojo); margin-bottom:16px; }
.line-card-name { font-family:var(--fh); font-weight:800; font-size:clamp(22px,2.5vw,38px); color:#fff; line-height:1; }
.line-card-count { font-size:12px; color:rgba(255,255,255,.4); margin-top:8px; transition:color .4s; }
.line-card:hover .line-card-count { color:rgba(255,255,255,.6); }
.line-card-reveal { position:absolute; right:0; top:0; width:40%; height:100%; opacity:0; transform:translateX(20px); transition:all .5s cubic-bezier(.4,0,.2,1) .08s; }
.line-card:hover .line-card-reveal { opacity:1; transform:translateX(0); }
.line-card-arrow { position:absolute; bottom:28px; left:32px; opacity:0; transition:opacity .3s; font-size:18px; color:rgba(255,255,255,.5); }
.line-card:hover .line-card-arrow { opacity:1; }

/* ══════════════════════════════════════════════════════════
   MARCAS HOME
   ══════════════════════════════════════════════════════════ */
.brands-section { max-width:var(--max); margin:0 auto; padding:clamp(72px,8vw,112px) var(--px) 0; }
.brands-header { display:flex; align-items:flex-end; justify-content:space-between; gap:30px; flex-wrap:wrap; margin-bottom:30px; }
.brands-nav { display:flex; gap:10px; }
.brands-nav-btn { width:52px; height:52px; border:1px solid rgba(255,255,255,.14); display:flex; align-items:center; justify-content:center; background:none; color:#A0A0A8; font-size:18px; transition:border-color .3s, color .3s, transform .28s; }
.brands-nav-btn:hover { border-color:var(--rojo); color:#fff; }
.brands-track-wrap { overflow:hidden; }
.brands-track { display:flex; gap:20px; transition:transform .6s cubic-bezier(.2,.8,.2,1); }
.brand-card { position:relative; flex:0 0 clamp(240px,21vw,300px); aspect-ratio:1; background:#0E0E10; border:1px solid rgba(255,255,255,.08); cursor:pointer; overflow:hidden; display:flex; align-items:center; justify-content:center; transition:transform .4s cubic-bezier(.2,.8,.2,1), border-color .4s, box-shadow .4s; }
.brand-card:hover { transform:translateY(-4px); border-color:rgba(196,18,48,.8); box-shadow:0 26px 60px -32px rgba(196,18,48,.6); }
.brand-card-bg { position:absolute; inset:0; background-image:repeating-linear-gradient(115deg,rgba(255,255,255,.028) 0 1px,transparent 1px 12px); }
.brand-card-content { position:relative; display:flex; flex-direction:column; align-items:center; gap:18px; width:100%; height:100%; justify-content:center; padding:24px; }
.brand-card-name { font-family:var(--fh); font-weight:800; font-size:28px; letter-spacing:.12em; text-transform:uppercase; color:#fff; line-height:1.1; text-align:center; }
.brand-card-play { width:42px; height:42px; border:1px solid rgba(255,255,255,.18); border-radius:50%; display:flex; align-items:center; justify-content:center; }
.brand-card-play-icon { width:0; height:0; border-left:10px solid rgba(255,255,255,.4); border-top:7px solid transparent; border-bottom:7px solid transparent; margin-left:3px; }
.brand-card-overlay { position:absolute; left:0; right:0; bottom:0; padding:22px; background:linear-gradient(180deg,rgba(10,10,11,0) 0%,rgba(10,10,11,.94) 60%); opacity:0; transition:opacity .4s; }
.brand-card:hover .brand-card-overlay { opacity:1; }
.brand-card-line { font-size:10px; letter-spacing:.24em; text-transform:uppercase; color:#6E6E76; }
.brand-card-cta { font-size:12px; letter-spacing:.14em; text-transform:uppercase; color:var(--rojo); font-weight:500; margin-top:8px; }

/* ══════════════════════════════════════════════════════════
   PRODUCTOS GRID
   ══════════════════════════════════════════════════════════ */
.products-section { max-width:var(--max); margin:0 auto; padding:clamp(72px,8vw,112px) var(--px) 0; }
.products-header { display:flex; align-items:flex-end; justify-content:space-between; gap:30px; flex-wrap:wrap; margin-bottom:30px; }
.filter-tabs { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.filter-tab { padding:7px 18px; border-radius:9999px; font-size:10px; font-weight:500; letter-spacing:.12em; text-transform:uppercase; border:none; background:transparent; color:rgba(255,255,255,.35); transition:all .25s; }
.filter-tab.active { background:var(--rojo); color:#fff; box-shadow:0 4px 16px rgba(196,18,48,.3); }
.filter-tab:hover:not(.active) { color:rgba(255,255,255,.7); }
.products-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:16px; margin-bottom:40px; }
.product-card { background:rgba(255,255,255,.02); border:0.5px solid rgba(255,255,255,.07); border-radius:16px; overflow:hidden; cursor:pointer; transition:all .25s; display:block; color:inherit; }
.product-card:hover { border-color:rgba(196,18,48,.25); background:rgba(196,18,48,.03); transform:translateY(-3px); }
.product-img { aspect-ratio:1; background:rgba(255,255,255,.03); display:flex; align-items:center; justify-content:center; font-size:10px; letter-spacing:1px; color:rgba(255,255,255,.15); overflow:hidden; }
.product-img img { width:100%; height:100%; object-fit:contain; }
.product-info { padding:16px; }

/* ── Vista lista del catálogo (modificador sobre .products-grid) ──────────────
   El contenedor conserva SIEMPRE .products-grid; .list-view solo cambia el
   layout a filas con imagen fija a la izquierda. Quitar la clase devuelve el
   grid normal sin residuos. */
.products-grid.list-view { display:flex; flex-direction:column; gap:12px; }
.products-grid.list-view .product-card { display:flex; flex-direction:row; align-items:center; gap:16px; }
.products-grid.list-view .product-img { flex:0 0 100px; width:100px; height:100px; aspect-ratio:auto; }
.products-grid.list-view .product-info { flex:1 1 auto; padding:12px 16px 12px 0; }
@media (max-width:640px){
  .products-grid.list-view .product-img { flex-basis:80px; width:80px; height:80px; }
}
.product-cat { font-size:9px; letter-spacing:1.5px; color:var(--rojo); text-transform:uppercase; margin-bottom:6px; font-weight:400; display:block; }
.product-name { font-family:var(--fh); font-weight:700; font-size:16px; color:#fff; line-height:1.2; margin-bottom:6px; }
.product-key { font-size:10px; font-family:monospace; color:rgba(255,255,255,.25); margin-bottom:2px; display:block; }
.product-oem { font-size:10px; font-family:monospace; color:rgba(255,255,255,.18); margin-bottom:10px; display:block; }
.product-apps { font-size:11px; color:rgba(255,255,255,.4); line-height:1.5; display:block; }
.product-avail { display:flex; align-items:center; gap:6px; margin-top:10px; }
.avail-dot { width:6px; height:6px; border-radius:50%; background:var(--verde); flex-shrink:0; }
.avail-dot.out { background:rgba(255,255,255,.2); }
.avail-text { font-size:10px; letter-spacing:1px; color:var(--verde); font-weight:400; text-transform:uppercase; }
.avail-text.out { color:rgba(255,255,255,.25); }
.product-price { margin-top:10px; font-family:var(--fh); font-weight:700; font-size:20px; color:#fff; }
.product-price-login { font-size:11px; color:rgba(255,255,255,.3); margin-top:8px; }
.product-price-login a { color:var(--rojo); }
.products-cta { text-align:center; padding-bottom:clamp(72px,8vw,112px); }
.no-products { grid-column:1/-1; text-align:center; padding:60px; color:rgba(255,255,255,.3); font-size:14px; }

/* ── MAYORISTA BADGE ── */
.wholesale-price { color:#fff; }
.wholesale-badge { display:inline-block; background:rgba(16,185,129,.12); border:1px solid rgba(16,185,129,.25); color:var(--verde); font-size:10px; padding:2px 8px; border-radius:999px; margin-left:8px; font-family:var(--fb); font-weight:500; }

/* ══════════════════════════════════════════════════════════
   CATÁLOGO (layout sidebar)
   ══════════════════════════════════════════════════════════ */
.page-header { max-width:var(--max); margin:0 auto; padding:clamp(100px,10vw,140px) var(--px) clamp(24px,3vw,40px); }
.page-header-inner { display:flex; align-items:flex-end; justify-content:space-between; gap:24px; flex-wrap:wrap; }
.page-title { font-family:var(--fh); font-weight:800; font-size:clamp(36px,5vw,64px); line-height:1; text-transform:uppercase; color:#fff; }
.page-subtitle { font-size:14px; color:rgba(255,255,255,.4); margin-top:8px; }
.dl-btn { display:inline-flex; align-items:center; gap:8px; border-radius:9999px; border:.5px solid rgba(255,255,255,.15); background:transparent; color:rgba(255,255,255,.5); padding:10px 20px; font-size:12px; transition:all .2s; }
.dl-btn:hover { border-color:rgba(196,18,48,.3); color:rgba(255,255,255,.8); }
.main-layout { max-width:var(--max); margin:0 auto; padding:0 var(--px) 80px; display:flex; gap:32px; align-items:flex-start; }
.sidebar { width:260px; flex-shrink:0; position:sticky; top:100px; }
.sidebar-section { margin-bottom:28px; }
.sidebar-label { font-size:9px; letter-spacing:.2em; text-transform:uppercase; color:rgba(255,255,255,.25); font-weight:400; margin-bottom:12px; }
.sidebar-divider { width:100%; height:.5px; background:rgba(255,255,255,.06); margin-bottom:16px; }
.cat-item { display:flex; justify-content:space-between; align-items:center; padding:8px 0; cursor:pointer; }
.cat-item:hover .cat-name { color:rgba(255,255,255,.9); }
.cat-name { font-size:13px; color:rgba(255,255,255,.6); transition:color .2s; }
.cat-name.active { color:#fff; font-weight:500; }
.cat-count { font-size:10px; color:rgba(255,255,255,.25); background:rgba(255,255,255,.04); border-radius:10px; padding:1px 7px; }
.subcats { padding-left:16px; overflow:hidden; max-height:0; transition:max-height .3s ease; }
.subcats.open { max-height:300px; }
.subcat-item { display:block; font-size:12px; color:rgba(255,255,255,.45); padding:6px 0; cursor:pointer; transition:color .2s; }
.subcat-item:hover { color:rgba(255,255,255,.8); }
.subcat-item.active { color:var(--rojo); }
.checkbox-item { display:flex; align-items:center; gap:10px; padding:6px 0; cursor:pointer; }
.custom-cb { width:16px; height:16px; border:.5px solid rgba(255,255,255,.2); border-radius:3px; background:transparent; flex-shrink:0; display:flex; align-items:center; justify-content:center; transition:all .2s; }
.custom-cb.checked { background:var(--rojo); border-color:var(--rojo); }
.custom-cb.checked::after { content:''; display:block; width:10px; height:10px;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/contain no-repeat; }
.cb-label { font-size:12px; color:rgba(255,255,255,.55); transition:color .2s; }
.custom-cb.checked ~ .cb-label { color:rgba(255,255,255,.85); }
.radio-item { display:flex; align-items:center; gap:10px; padding:6px 0; cursor:pointer; }
.custom-radio { width:16px; height:16px; border:.5px solid rgba(255,255,255,.2); border-radius:50%; background:transparent; flex-shrink:0; transition:all .2s; display:flex; align-items:center; justify-content:center; }
.custom-radio.checked { border-color:var(--rojo); }
.custom-radio.checked::after { content:''; width:8px; height:8px; border-radius:50%; background:var(--rojo); }
.clear-btn { width:100%; border:.5px solid rgba(255,255,255,.1); border-radius:8px; padding:10px; font-size:11px; color:rgba(255,255,255,.4); text-align:center; background:none; transition:all .2s; margin-top:16px; }
.clear-btn:hover { border-color:rgba(196,18,48,.3); color:rgba(255,255,255,.7); }
.right-col { flex:1; min-width:0; }
.top-bar { display:flex; justify-content:space-between; align-items:center; margin-bottom:20px; flex-wrap:wrap; gap:12px; }
.results-count { font-size:12px; color:rgba(255,255,255,.4); }
.sort-sel { background:transparent; border:none; border-bottom:.5px solid rgba(255,255,255,.15); color:rgba(255,255,255,.5); font-size:12px; padding:4px 8px 4px 0; outline:none; cursor:pointer; font-family:var(--fb); appearance:none; }
.load-more-btn { display:block; width:100%; border:1px solid rgba(255,255,255,.12); border-radius:8px; padding:16px; font-size:12px; letter-spacing:.1em; text-transform:uppercase; color:rgba(255,255,255,.5); background:none; transition:all .2s; margin-top:32px; }
.load-more-btn:hover { border-color:rgba(196,18,48,.3); color:rgba(255,255,255,.8); }
.loading-spinner { display:flex; align-items:center; justify-content:center; padding:60px; }
.loading-spinner::after { content:''; width:32px; height:32px; border:2px solid rgba(255,255,255,.1); border-top-color:var(--rojo); border-radius:50%; animation:spin .8s linear infinite; }

/* ══════════════════════════════════════════════════════════
   MARCAS (página fullscreen)
   ══════════════════════════════════════════════════════════ */
.page-marcas body, body.page-marcas-fullscreen { overflow:hidden; height:100vh; }
.navbar-marcas { position:absolute; top:0; left:0; right:0; z-index:60; display:flex; align-items:center; justify-content:space-between; gap:24px; padding:24px 32px; }
.nav-center { font-size:10px; font-weight:400; letter-spacing:.3em; text-transform:uppercase; color:rgba(255,255,255,.4); }
.nav-arrows { display:flex; gap:8px; }
.arrow-btn { width:40px; height:40px; border:1px solid rgba(255,255,255,.2); border-radius:9999px; display:flex; align-items:center; justify-content:center; background:none; color:#fff; transition:border-color .3s, opacity .3s, transform .25s; opacity:.7; }
.arrow-btn:hover { border-color:rgba(255,255,255,.5); opacity:1; }
.grain { position:absolute; inset:0; z-index:50; pointer-events:none; opacity:.3; background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4'/></filter><rect width='200' height='200' filter='url(%23n)' opacity='0.06'/></svg>"); background-size:200px 200px; }
.ghost-brand { position:absolute; z-index:2; top:15%; left:0; right:0; text-align:center; pointer-events:none; font-family:var(--fh); font-weight:800; font-size:clamp(80px,22vw,320px); color:#fff; opacity:.04; letter-spacing:-.02em; white-space:nowrap; line-height:1; animation:ghostPulse 5s ease-in-out infinite; }
.brand-slide { position:absolute; display:flex; align-items:flex-end; justify-content:center; cursor:pointer; transition:all 650ms cubic-bezier(.4,0,.2,1); bottom:220px; }
.brand-card-inner { position:relative; width:100%; border:1px solid rgba(255,255,255,.1); display:flex; align-items:center; justify-content:center; overflow:hidden; aspect-ratio:3/4; padding:12%; }
.brand-pattern { position:absolute; inset:0; background-image:repeating-linear-gradient(115deg,rgba(255,255,255,.03) 0 1px,transparent 1px 12px); z-index:1; pointer-events:none; }
.brand-logo-img { position:relative; z-index:2; width:auto; height:auto; max-width:100%; max-height:76%; object-fit:contain; filter:drop-shadow(0 0 8px rgba(255,255,255,0.3)); }
.brand-name-display { position:relative; font-family:var(--fh); font-weight:800; font-size:28px; letter-spacing:.12em; text-transform:uppercase; color:#fff; text-align:center; line-height:1.1; z-index:2; }
.bottom-blur { position:fixed; inset:0; z-index:25; pointer-events:none; backdrop-filter:blur(22px); -webkit-mask-image:linear-gradient(to top,black 0%,transparent 40%); mask-image:linear-gradient(to top,black 0%,transparent 40%); }
.bottom-content { position:absolute; bottom:0; left:0; right:0; z-index:30; padding:0 32px 48px; }
.bottom-inner { display:flex; align-items:flex-end; justify-content:space-between; gap:40px; flex-wrap:wrap; }
.brand-info { display:flex; flex-direction:column; animation:blurFadeUp .8s ease-out both; }
.brand-specialty { display:flex; align-items:center; gap:12px; }
.specialty-line { width:32px; height:1px; background:var(--rojo); }
.specialty-text { font-size:11px; font-weight:300; letter-spacing:.14em; text-transform:uppercase; color:rgba(255,255,255,.45); }
.brand-title-display { font-family:var(--fh); font-weight:800; font-size:clamp(48px,8vw,96px); line-height:1; letter-spacing:-.02em; color:#fff; margin:18px 0 16px; }
.brand-sub { font-size:13px; font-weight:300; color:rgba(255,255,255,.4); margin-bottom:24px; }
.brand-cta-btn { border-radius:9999px; padding:13px 32px; font-size:11px; font-weight:600; letter-spacing:.09em; text-transform:uppercase; border:none; transition:transform .25s, filter .25s; color:#fff; display:inline-block; }
.brand-cta-btn:hover { filter:brightness(1.15); transform:scale(1.02); }
.brand-counter { font-family:var(--fh); font-weight:700; font-size:14px; letter-spacing:.16em; color:rgba(255,255,255,.3); }
/* Carrusel de marcas (id único). Se usa #carousel para ganarle en especificidad
   a la regla .carousel-wrap del carrusel de imágenes del home (más abajo). */
#carousel { position:absolute; inset:0; z-index:3; }

/* ══════════════════════════════════════════════════════════
   QUIÉNES SOMOS
   ══════════════════════════════════════════════════════════ */
.hero-qs { position:relative; height:calc(100vh - 0px); min-height:460px; overflow:hidden; background:var(--bg); }
.ghost-text { position:absolute; left:0; right:0; top:50%; transform:translateY(-50%); text-align:center; pointer-events:none; z-index:1; font-family:var(--fh); font-weight:800; font-size:clamp(56px,10vw,200px); color:#fff; letter-spacing:-.03em; line-height:.9; white-space:nowrap; text-transform:uppercase; animation:ghostPulse 5s ease-in-out infinite; }
.grain-overlay { position:absolute; inset:0; pointer-events:none; z-index:2; opacity:.25; background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4'/></filter><rect width='200' height='200' filter='url(%23n)' opacity='0.06'/></svg>"); background-size:200px 200px; }
.logo-magnet { position:absolute; left:50%; top:45%; transform:translate(-50%,-50%); z-index:10; will-change:transform; transition:transform .3s ease-out; }
.logo-magnet img { display:block; width:clamp(280px,30vw,480px); height:auto; filter:drop-shadow(0 20px 60px rgba(196,18,48,.2)); animation:floatY 6s ease-in-out infinite; }
.hero-blur { position:absolute; bottom:0; left:0; right:0; height:192px; pointer-events:none; z-index:15; backdrop-filter:blur(6px); -webkit-mask-image:linear-gradient(to top,black 0%,transparent 100%); mask-image:linear-gradient(to top,black 0%,transparent 100%); }
.hero-bottom { position:absolute; bottom:0; left:0; right:0; z-index:20; padding:0 var(--px) clamp(28px,5vh,64px); display:flex; align-items:flex-end; justify-content:space-between; gap:40px; }
.hero-title-qs { font-family:var(--fh); font-weight:800; font-size:clamp(38px,7vw,96px); line-height:.95; letter-spacing:-.03em; text-transform:uppercase; margin-top:12px; }
.scroll-hint { display:flex; flex-direction:column; align-items:center; flex-shrink:0; }
.scroll-line { position:relative; width:1px; height:64px; background:linear-gradient(180deg,rgba(196,18,48,.6),transparent); }
.scroll-dot { position:absolute; top:0; left:-2px; width:6px; height:6px; border-radius:50%; background:var(--rojo); animation:scrollDot 2s ease-in-out infinite; }
.scroll-label { font-size:9px; font-weight:300; letter-spacing:.3em; text-transform:uppercase; color:rgba(255,255,255,.2); margin-top:8px; }
.timeline-section { overflow:hidden; padding:clamp(64px,8vw,96px) var(--px); max-width:var(--max); margin:0 auto; }
.timeline-grid { display:flex; align-items:stretch; gap:16px; }
.era-card { position:relative; overflow:hidden; flex:1; min-width:260px; background:rgba(255,255,255,.02); border:1px solid rgba(255,255,255,.07); border-radius:20px; padding:32px; cursor:pointer; transition:flex .5s cubic-bezier(.4,0,.2,1), background .5s, border-color .5s; }
.era-card:hover { flex:2.5; background:rgba(196,18,48,.08); border-color:rgba(196,18,48,.35); }
.era-photo { position:absolute; right:0; bottom:0; top:0; width:45%; overflow:hidden; opacity:0; transform:translateX(20px); transition:opacity .5s cubic-bezier(.4,0,.2,1) .1s, transform .5s cubic-bezier(.4,0,.2,1) .1s; }
.era-card:hover .era-photo { opacity:1; transform:translateX(0); }
.era-photo-bg { position:absolute; inset:0; }
.era-photo-pattern { position:absolute; inset:0; background:repeating-linear-gradient(45deg,rgba(255,255,255,.02) 0 1px,transparent 1px 8px); }
.era-year { font-family:var(--fh); font-weight:800; font-size:clamp(48px,5vw,80px); line-height:1; color:rgba(196,18,48,.4); transition:color .4s; }
.era-card:hover .era-year { color:var(--rojo); }
.era-name { font-family:var(--fh); font-weight:700; font-size:20px; color:#fff; margin:12px 0 8px; text-transform:uppercase; }
.era-desc { font-size:13px; color:rgba(255,255,255,.45); line-height:1.6; max-width:280px; }
.stats-counter { border-top:1px solid rgba(255,255,255,.06); border-bottom:1px solid rgba(255,255,255,.06); background:rgba(255,255,255,.01); padding:clamp(48px,6vw,72px) var(--px); }
.stats-row { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:0; max-width:var(--max); margin:0 auto; }
.stat-item { flex:1; text-align:center; padding:0 clamp(20px,4vw,60px); position:relative; }
.stat-item + .stat-item::before { content:''; position:absolute; left:0; top:50%; transform:translateY(-50%); width:1px; height:60px; background:rgba(255,255,255,.06); }
.stat-num { font-family:var(--fh); font-weight:800; font-size:clamp(48px,6vw,88px); color:#fff; line-height:1; }
.stat-suf { color:var(--rojo); }
.stat-label { font-size:11px; letter-spacing:.2em; text-transform:uppercase; color:rgba(255,255,255,.35); margin-top:8px; font-weight:300; }
.mission-section { min-height:60vh; display:flex; align-items:center; justify-content:center; padding:clamp(64px,8vw,96px) var(--px); text-align:center; position:relative; overflow:hidden; }
.mission-glow { position:absolute; inset:0; background:radial-gradient(60% 60% at 50% 50%,rgba(196,18,48,.05) 0%,transparent 70%); pointer-events:none; }
.mission-ring { position:absolute; top:50%; left:50%; transform:translate(-50%,-50%); pointer-events:none; opacity:.03; animation:rotateSlow 25s linear infinite; }
.mission-content { position:relative; z-index:10; max-width:760px; margin:0 auto; }
.mission-text { font-family:var(--fh); font-weight:700; font-size:clamp(26px,3.5vw,48px); color:#fff; line-height:1.2; margin:20px 0; }
.mission-divider { width:64px; height:1px; background:var(--rojo); margin:28px auto; }
.vision-text { font-size:16px; color:rgba(255,255,255,.4); max-width:560px; margin:0 auto; line-height:1.8; }
.values-section { padding:clamp(64px,8vw,96px) var(--px); max-width:var(--max); margin:0 auto; }
.values-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:20px; margin-top:40px; }
.value-card { background:rgba(255,255,255,.02); border:.5px solid rgba(255,255,255,.06); border-radius:16px; padding:28px; position:relative; overflow:hidden; cursor:pointer; transition:transform .2s, border-color .3s, box-shadow .3s; }
.value-card:hover { transform:translateY(-2px); border-color:rgba(196,18,48,.2); box-shadow:0 8px 32px rgba(0,0,0,.3); }
.value-icon { color:var(--rojo); margin-bottom:16px; }
.value-name { font-family:var(--fh); font-weight:700; font-size:20px; color:#fff; margin-bottom:8px; text-transform:uppercase; }
.value-desc { font-size:12px; color:rgba(255,255,255,.4); line-height:1.6; }
.cta-section { min-height:40vh; display:flex; align-items:center; justify-content:center; text-align:center; padding:clamp(64px,8vw,96px) var(--px); position:relative; overflow:hidden; }
.cta-glow { position:absolute; inset:0; background:radial-gradient(60% 60% at 50% 50%,rgba(196,18,48,.05) 0%,transparent 70%); }
.cta-title { font-family:var(--fh); font-weight:800; font-size:clamp(32px,5vw,72px); color:#fff; line-height:1; letter-spacing:-.02em; margin-bottom:16px; }
.cta-sub { font-size:14px; color:rgba(255,255,255,.4); margin-bottom:40px; }
.cta-btns { display:flex; gap:12px; justify-content:center; flex-wrap:wrap; }

/* ══════════════════════════════════════════════════════════
   CONTACTO
   ══════════════════════════════════════════════════════════ */
.main-grid { display:flex; align-items:flex-start; gap:clamp(32px,4vw,64px); flex-wrap:wrap; padding:0 var(--px) 96px; max-width:var(--max); margin:0 auto; }
.contact-cards { display:flex; flex-direction:column; gap:16px; flex:0 1 340px; min-width:280px; }
.contact-card { background:rgba(255,255,255,.03); border:1px solid rgba(255,255,255,.07); border-radius:12px; padding:20px 24px; display:flex; align-items:flex-start; gap:16px; cursor:pointer; transition:border-color .25s, background .25s; color:inherit; }
.contact-card:hover { border-color:rgba(196,18,48,.25); background:rgba(196,18,48,.03); }
.contact-card.wa-card { border-color:rgba(37,211,102,.15); }
.contact-icon { flex-shrink:0; }
.contact-card-label { font-size:10px; font-weight:400; letter-spacing:.2em; text-transform:uppercase; color:rgba(255,255,255,.3); display:block; margin-bottom:4px; }
.contact-card-value { font-size:14px; font-weight:400; color:#fff; display:block; }
.wa-btn { border-radius:9999px; background:rgba(37,211,102,.12); border:1px solid rgba(37,211,102,.25); color:#25D366; padding:14px 24px; display:flex; align-items:center; justify-content:center; gap:10px; font-size:12px; font-weight:600; letter-spacing:.1em; text-transform:uppercase; transition:background .2s, transform .2s; }
.wa-btn:hover { background:rgba(37,211,102,.2); transform:scale(1.01); color:#25D366; }
.divider { width:100%; height:1px; background:rgba(255,255,255,.06); margin:24px 0; }
.map-placeholder { position:relative; height:160px; background:rgba(255,255,255,.02); border:1px solid rgba(255,255,255,.06); border-radius:12px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:14px; }
.map-dot { position:relative; width:12px; height:12px; }
.map-dot span { position:absolute; inset:0; border-radius:50%; background:var(--rojo); display:block; }
.map-dot span:last-child { animation:macsaPing 2.2s cubic-bezier(0,0,.2,1) infinite; }
.form-wrap { flex:1 1 360px; min-width:280px; }
.form-section-label { font-size:10px; font-weight:400; letter-spacing:.3em; text-transform:uppercase; color:rgba(255,255,255,.3); margin-bottom:32px; display:block; }
.form-field { margin-bottom:32px; }
.form-field label { display:block; font-size:9px; font-weight:400; letter-spacing:.2em; text-transform:uppercase; color:rgba(255,255,255,.3); margin-bottom:8px; }
.form-field input, .form-field textarea, .form-field select { width:100%; background:transparent; border:none; border-bottom:1px solid rgba(255,255,255,.15); border-radius:0; padding:0 0 12px; font-family:var(--fb); font-weight:300; font-size:16px; color:#fff; outline:none; transition:border-color .3s; resize:none; }
.form-field input:focus, .form-field textarea:focus, .form-field select:focus { border-bottom-color:var(--rojo); }
.submit-btn { display:flex; align-items:center; justify-content:center; gap:10px; margin-top:40px; border-radius:9999px; background:var(--rojo); color:#fff; padding:16px 48px; font-size:12px; font-weight:600; letter-spacing:.12em; text-transform:uppercase; border:none; transition:filter .25s, transform .25s, box-shadow .25s; }
.submit-btn:hover { filter:brightness(1.1); transform:scale(1.02); box-shadow:0 8px 28px rgba(196,18,48,.35); }
.submit-btn:disabled { opacity:.5; cursor:not-allowed; transform:none; }

/* ══════════════════════════════════════════════════════════
   PRODUCTO INDIVIDUAL
   ══════════════════════════════════════════════════════════ */
.product-single-wrap { max-width:var(--max); margin:0 auto; padding:clamp(100px,10vw,140px) var(--px) 80px; }
.product-breadcrumb { font-size:12px; color:rgba(255,255,255,.3); margin-bottom:40px; display:flex; align-items:center; gap:4px; flex-wrap:wrap; }
.product-breadcrumb a:hover { color:#fff; }
.bc-sep { color:rgba(255,255,255,.2); }
.product-single-grid { display:grid; grid-template-columns:1fr 1fr; gap:clamp(40px,5vw,80px); align-items:start; }
.gallery-main { aspect-ratio:1; background:rgba(255,255,255,.03); border:0.5px solid rgba(255,255,255,.07); display:flex; align-items:center; justify-content:center; overflow:hidden; border-radius:4px; }
.gallery-main img { width:100%; height:100%; object-fit:contain; }
.gallery-main--empty { color:rgba(255,255,255,.15); font-size:11px; letter-spacing:1px; }
.gallery-thumbs { display:flex; gap:8px; margin-top:8px; flex-wrap:wrap; }
.gallery-thumb { width:60px; height:60px; border:0.5px solid rgba(255,255,255,.1); overflow:hidden; cursor:pointer; border-radius:2px; transition:border-color .2s; flex-shrink:0; }
.gallery-thumb.active, .gallery-thumb:hover { border-color:var(--rojo); }
.gallery-thumb img { width:100%; height:100%; object-fit:cover; }
.product-single-title { font-family:var(--fh); font-weight:800; font-size:clamp(28px,3vw,48px); line-height:1; text-transform:uppercase; color:#fff; margin:16px 0 24px; }
.product-single-meta { margin-bottom:24px; display:flex; flex-direction:column; gap:10px; }
.product-meta-row { display:flex; align-items:center; gap:12px; font-size:12px; }
.meta-key { color:rgba(255,255,255,.3); letter-spacing:.08em; min-width:120px; }
.meta-val { font-family:monospace; color:rgba(255,255,255,.7); font-size:12px; background:rgba(255,255,255,.04); padding:2px 8px; border-radius:4px; }
.product-single-price { margin:24px 0; font-family:var(--fh); font-weight:800; font-size:38px; color:#fff; }
.price-gate { display:flex; align-items:center; gap:12px; flex-wrap:wrap; padding:20px; border:0.5px solid rgba(255,255,255,.07); border-radius:8px; background:rgba(255,255,255,.02); margin:24px 0; font-size:13px; color:rgba(255,255,255,.4); }
.price-gate a { color:var(--rojo); }
.qty-row { display:flex; align-items:center; gap:12px; margin-bottom:16px; }
.qty-btn { width:36px; height:36px; border:0.5px solid rgba(255,255,255,.15); background:none; color:#fff; font-size:18px; border-radius:4px; display:flex; align-items:center; justify-content:center; transition:border-color .2s; }
.qty-btn:hover { border-color:var(--rojo); }
.qty-display { font-family:var(--fh); font-weight:700; font-size:22px; color:#fff; min-width:36px; text-align:center; }
.add-cart-btn { border-radius:9999px; background:var(--rojo); color:#fff; padding:14px 36px; font-size:12px; font-weight:600; letter-spacing:.1em; text-transform:uppercase; border:none; transition:filter .25s, transform .25s; width:100%; margin-bottom:12px; }
.add-cart-btn:hover { filter:brightness(1.1); transform:scale(1.01); }
.btn-whatsapp { display:inline-flex; align-items:center; justify-content:center; gap:8px; border-radius:9999px; background:rgba(37,211,102,.12); border:1px solid rgba(37,211,102,.25); color:#25D366; padding:12px 24px; font-size:12px; font-weight:600; letter-spacing:.1em; text-transform:uppercase; transition:background .2s; width:100%; }
.btn-whatsapp:hover { background:rgba(37,211,102,.2); color:#25D366; }
.product-applications { margin:24px 0; padding:20px; border:0.5px solid rgba(255,255,255,.07); border-radius:8px; background:rgba(255,255,255,.02); }
.apps-label { font-size:9px; letter-spacing:.2em; text-transform:uppercase; color:rgba(255,255,255,.3); margin-bottom:8px; display:block; }
.apps-text { font-size:13px; color:rgba(255,255,255,.55); line-height:1.6; }
.product-description { font-size:15px; line-height:1.75; color:rgba(255,255,255,.55); margin:24px 0; }
.product-specs-table { width:100%; border-collapse:collapse; font-size:13px; margin-top:24px; }
.product-specs-table th, .product-specs-table td { padding:12px 16px; border-bottom:0.5px solid rgba(255,255,255,.06); text-align:left; }
.product-specs-table th { color:rgba(255,255,255,.3); font-weight:400; letter-spacing:.08em; width:200px; }
.product-specs-table td { color:rgba(255,255,255,.7); }

/* ══════════════════════════════════════════════════════════
   CARRUSEL HOME
   ══════════════════════════════════════════════════════════ */
.carousel-section { padding:clamp(72px,8vw,112px) 0; }
.carousel-wrap { position:relative; width:100%; overflow:hidden; }
.carousel-track { display:flex; transition:transform .6s cubic-bezier(.2,.8,.2,1); }
.carousel-slide { flex:0 0 100%; width:100%; aspect-ratio:21/9; background:rgba(255,255,255,.04); border-top:0.5px solid rgba(255,255,255,.08); border-bottom:0.5px solid rgba(255,255,255,.08); overflow:hidden; display:flex; align-items:center; justify-content:center; font-size:11px; color:rgba(255,255,255,.2); letter-spacing:1px; }
.carousel-slide img { width:100%; height:100%; object-fit:cover; }
.carousel-controls { display:flex; justify-content:center; align-items:center; gap:16px; margin-top:24px; padding:0 var(--px); }
.carousel-btn { width:44px; height:44px; border-radius:50%; border:0.5px solid rgba(255,255,255,.15); background:none; color:rgba(255,255,255,.5); display:flex; align-items:center; justify-content:center; transition:all .2s; font-size:18px; }
.carousel-btn:hover { border-color:rgba(196,18,48,.4); color:#fff; }
.carousel-dots { display:flex; gap:8px; align-items:center; }
.carousel-dot { width:8px; height:8px; border-radius:50%; background:rgba(255,255,255,.22); border:none; transition:all .3s; }
.carousel-dot.active { width:28px; border-radius:4px; background:var(--rojo); }

/* ══════════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════════ */
footer { border-top:0.5px solid rgba(255,255,255,.06); background:var(--bg); }
.footer-inner { max-width:var(--max); margin:0 auto; padding:clamp(48px,6vw,80px) var(--px) 0; }
.footer-top { display:grid; grid-template-columns:1.2fr 2fr 1fr; gap:60px; margin-bottom:48px; }
.footer-logo { height:44px; width:auto; max-width:200px; object-fit:contain; }
.footer-brand-name { font-family:var(--fh); font-weight:800; font-size:20px; letter-spacing:.16em; color:#fff; }
.footer-brand-sub { font-size:9px; letter-spacing:.28em; color:rgba(255,255,255,.4); margin-top:4px; font-weight:300; }
.footer-tagline { font-size:12px; color:rgba(255,255,255,.3); margin-top:12px; font-weight:300; font-style:italic; }
.footer-cols { display:grid; grid-template-columns:repeat(4,1fr); gap:32px; }
.footer-col-label, .footer-contact-label { font-size:9px; letter-spacing:.2em; text-transform:uppercase; color:rgba(255,255,255,.25); margin-bottom:14px; font-weight:400; display:block; }
.footer-col a { display:block; font-size:12px; color:rgba(255,255,255,.4); margin-bottom:10px; transition:color .2s; }
.footer-col a:hover { color:rgba(255,255,255,.8); }
.footer-contact-item { display:flex; align-items:center; gap:8px; font-size:12px; color:rgba(255,255,255,.4); margin-bottom:10px; }
.footer-contact-item a { color:inherit; transition:color .2s; }
.footer-contact-item a:hover { color:rgba(255,255,255,.8); }
.footer-wa-dot { width:6px; height:6px; border-radius:50%; background:#25D366; flex-shrink:0; }
.footer-bottom { border-top:0.5px solid rgba(255,255,255,.06); padding:24px 0; display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:12px; }
.footer-copy { font-size:11px; color:rgba(255,255,255,.2); font-weight:300; }
/* Páginas informativas / legales */
.legal-content { max-width:820px; margin:0 auto; padding:0 var(--px) clamp(60px,8vw,100px); }
.legal-content h2 { font-family:var(--fh); font-weight:700; font-size:22px; color:#fff; margin:32px 0 12px; letter-spacing:.02em; }
.legal-content p { font-size:14px; line-height:1.8; color:rgba(255,255,255,.55); margin-bottom:16px; }
.legal-content ul { margin:0 0 16px 20px; color:rgba(255,255,255,.55); font-size:14px; line-height:1.8; }
.legal-updated { font-size:12px; color:rgba(255,255,255,.3); margin-top:40px; font-style:italic; }

.footer-legal { display:flex; gap:20px; flex-wrap:wrap; justify-content:center; }
.footer-legal a { font-size:11px; color:rgba(255,255,255,.35); transition:color .2s; }
.footer-legal a:hover { color:rgba(255,255,255,.8); }

/* Logo dinámico (navbar + footer): parte invisible y aparece con transición
   suave cuando el JS le asigna el src (evita el flash del logo/fallback previo).
   Se usa animación (no transition) porque debe dispararse en el primer render
   con [src] ya presente. */
img[data-logo] { opacity:0; }
img[data-logo][src] { animation:logoFadeIn .45s ease forwards; }
@keyframes logoFadeIn { from { opacity:0; } to { opacity:1; } }

/* ══════════════════════════════════════════════════════════
   BANNER DE COOKIES
   ══════════════════════════════════════════════════════════ */
.cookie-banner { position:fixed; left:0; right:0; bottom:0; z-index:190; background:#161618; border-top:1px solid rgba(255,255,255,.1); box-shadow:0 -6px 28px rgba(0,0,0,.45); animation:cookieUp .35s ease both; }
@keyframes cookieUp { from { transform:translateY(100%); } to { transform:translateY(0); } }
.cookie-banner-inner { max-width:var(--max); margin:0 auto; padding:16px clamp(20px,3.4vw,48px); display:flex; align-items:center; justify-content:space-between; gap:20px; flex-wrap:wrap; }
.cookie-banner-text { font-size:13px; line-height:1.5; color:rgba(255,255,255,.7); margin:0; flex:1 1 240px; }
.cookie-banner-text a { color:#fff; text-decoration:underline; }
.cookie-banner-btns { display:flex; gap:10px; flex-shrink:0; }
.cookie-btn { font-size:12px; font-weight:600; letter-spacing:.04em; padding:10px 22px; border-radius:999px; cursor:pointer; white-space:nowrap; border:1px solid transparent; transition:all .2s; }
.cookie-btn-primary { background:#C41230; color:#fff; border-color:#C41230; }
.cookie-btn-primary:hover { background:#a30f28; border-color:#a30f28; }
.cookie-btn-ghost { background:transparent; color:#fff; border-color:rgba(255,255,255,.3); }
.cookie-btn-ghost:hover { border-color:#fff; }
@media (max-width:600px){
  .cookie-banner-inner { flex-direction:column; align-items:stretch; gap:12px; }
  .cookie-banner-btns { }
  .cookie-btn { flex:1; }
}

/* ══════════════════════════════════════════════════════════
   AUTH MODAL
   ══════════════════════════════════════════════════════════ */
.auth-overlay { position:fixed; inset:0; background:rgba(0,0,0,.7); z-index:200; display:flex; align-items:center; justify-content:center; padding:20px; backdrop-filter:blur(4px); }
.auth-modal { background:var(--carbon); border:1px solid rgba(255,255,255,.1); border-radius:16px; width:100%; max-width:420px; padding:36px; }
.auth-modal-logo { font-family:var(--fh); font-weight:800; font-size:18px; letter-spacing:.16em; color:#fff; margin-bottom:4px; }
.auth-modal-sub { font-size:9px; letter-spacing:.28em; color:rgba(255,255,255,.4); font-weight:300; margin-bottom:28px; display:block; }
.auth-tabs { display:flex; border-bottom:1px solid rgba(255,255,255,.08); margin-bottom:28px; }
.auth-tab { flex:1; padding:12px; text-align:center; font-size:12px; font-weight:500; letter-spacing:.1em; text-transform:uppercase; color:rgba(255,255,255,.38); background:none; border:none; border-bottom:2px solid transparent; margin-bottom:-1px; transition:color .25s, border-color .25s; }
.auth-tab.active { color:#fff; border-bottom-color:var(--rojo); }
.auth-field { margin-bottom:24px; }
.auth-field label { display:block; font-size:9px; letter-spacing:.2em; text-transform:uppercase; color:rgba(255,255,255,.3); margin-bottom:10px; }
.auth-field input { width:100%; background:transparent; border:none; border-bottom:1px solid rgba(255,255,255,.15); padding:0 0 10px; font-size:15px; color:#fff; outline:none; transition:border-color .3s; font-family:var(--fb); font-weight:300; }
.auth-field input:focus { border-bottom-color:var(--rojo); }
.auth-submit { width:100%; border-radius:9999px; background:var(--rojo); color:#fff; padding:14px; font-size:12px; font-weight:600; letter-spacing:.1em; text-transform:uppercase; border:none; margin-top:8px; transition:filter .25s, transform .25s; }
.auth-submit:hover { filter:brightness(1.1); transform:scale(1.01); }
.auth-error { color:#F87171; font-size:12px; margin-top:8px; display:none; }
.auth-close { position:absolute; top:16px; right:20px; background:none; border:none; color:rgba(255,255,255,.4); font-size:22px; transition:color .2s; }
.auth-close:hover { color:#fff; }
.auth-modal-wrap { position:relative; }
.auth-title { font-family:var(--fh); font-weight:800; font-size:24px; color:#fff; margin:0 0 6px; letter-spacing:.01em; }
.auth-sub-text { font-size:13px; color:rgba(255,255,255,.45); margin:0 0 22px; line-height:1.5; font-weight:300; }
.auth-alt { text-align:center; margin-top:18px; font-size:12px; color:rgba(255,255,255,.35); }
.auth-alt a { color:var(--rojo); text-decoration:none; }
.auth-alt a:hover { text-decoration:underline; }
.auth-dev { margin-top:14px; text-align:center; font-size:11px; color:#F59E0B; background:rgba(245,158,11,.08); border:1px dashed rgba(245,158,11,.3); border-radius:8px; padding:8px; }
.auth-divider { height:1px; background:rgba(255,255,255,.08); margin:16px 0 4px; }

/* ══════════════════════════════════════════════════════════
   AUTOCOMPLETE DROPDOWN
   ══════════════════════════════════════════════════════════ */
.autocomplete-wrap { position:relative; }
.autocomplete-drop { position:absolute; top:100%; left:0; right:0; background:var(--carbon); border:1px solid rgba(255,255,255,.1); border-radius:0 0 12px 12px; z-index:50; display:none; }
.autocomplete-drop.open { display:block; }
.autocomplete-item { display:flex; align-items:center; gap:12px; padding:10px 16px; cursor:pointer; border-bottom:1px solid rgba(255,255,255,.04); transition:background .15s; }
.autocomplete-item:last-child { border-bottom:none; }
.autocomplete-item:hover { background:rgba(255,255,255,.04); }
.ac-img { width:36px; height:36px; object-fit:contain; background:rgba(255,255,255,.04); border-radius:4px; flex-shrink:0; }
.ac-name { font-size:13px; color:#fff; font-weight:400; }
.ac-sku { font-size:10px; color:var(--muted); font-family:monospace; }

/* ══════════════════════════════════════════════════════════
   TOAST
   ══════════════════════════════════════════════════════════ */
#toast { position:fixed; bottom:28px; right:28px; background:var(--carbon); border:1px solid rgba(255,255,255,.1); border-radius:12px; padding:16px 22px; font-size:13px; z-index:300; box-shadow:0 8px 32px rgba(0,0,0,.5); max-width:340px; transform:translateY(20px); opacity:0; transition:all .3s; pointer-events:none; }
#toast.show { transform:translateY(0); opacity:1; }
#toast.success { border-color:rgba(16,185,129,.3); }
#toast.error { border-color:rgba(196,18,48,.3); }

/* ══════════════════════════════════════════════════════════
   CART SIDEBAR
   ══════════════════════════════════════════════════════════ */
.cart-overlay { position:fixed; inset:0; background:rgba(0,0,0,.5); z-index:150; opacity:0; pointer-events:none; transition:opacity .3s; }
.cart-overlay.open { opacity:1; pointer-events:all; }
.cart-sidebar { position:fixed; right:0; top:0; bottom:0; width:400px; max-width:100vw; background:var(--carbon); border-left:1px solid rgba(255,255,255,.08); z-index:160; transform:translateX(100%); transition:transform .4s cubic-bezier(.4,0,.2,1); display:flex; flex-direction:column; }
.cart-sidebar.open { transform:translateX(0); }
.cart-header { display:flex; align-items:center; justify-content:space-between; padding:20px 24px; border-bottom:1px solid rgba(255,255,255,.06); }
.cart-title { font-family:var(--fh); font-weight:700; font-size:20px; color:#fff; letter-spacing:.06em; }
.cart-close { background:none; border:none; color:rgba(255,255,255,.5); font-size:22px; transition:color .2s; }
.cart-close:hover { color:#fff; }
.cart-ship-banner { padding:11px 24px; font-size:12.5px; font-weight:500; text-align:center; letter-spacing:.01em; color:rgba(255,255,255,.75); background:rgba(255,255,255,.05); border-bottom:1px solid rgba(255,255,255,.06); }
.cart-ship-banner.near { color:#FBBF24; background:rgba(251,191,36,.08); }
.cart-ship-banner.free { color:#25D366; background:rgba(37,211,102,.1); }
.cart-items { flex:1; overflow-y:auto; padding:16px 24px; }
.cart-item { display:flex; gap:12px; padding:14px 0; border-bottom:1px solid rgba(255,255,255,.04); }
.cart-item-img { width:60px; height:60px; object-fit:contain; background:rgba(255,255,255,.04); border-radius:4px; flex-shrink:0; }
.cart-item-info { flex:1; min-width:0; }
.cart-item-name { font-size:13px; color:#fff; margin-bottom:4px; }
.cart-item-sku { font-size:10px; font-family:monospace; color:var(--muted); }
.cart-item-row { display:flex; align-items:center; justify-content:space-between; margin-top:8px; }
.cart-item-price { font-family:var(--fh); font-weight:700; font-size:16px; color:#fff; }
.cart-item-remove { background:none; border:none; color:rgba(255,255,255,.3); font-size:18px; transition:color .2s; }
.cart-item-remove:hover { color:var(--rojo); }
.cart-qty { display:flex; align-items:center; gap:8px; }
.cart-qty-btn { width:24px; height:24px; border:0.5px solid rgba(255,255,255,.15); background:none; color:#fff; border-radius:4px; display:flex; align-items:center; justify-content:center; font-size:14px; transition:border-color .2s; }
.cart-qty-btn:hover { border-color:var(--rojo); }
.cart-qty-val { font-size:13px; color:#fff; min-width:20px; text-align:center; }
.cart-empty { padding:60px 24px; text-align:center; color:rgba(255,255,255,.3); }
.cart-footer { padding:20px 24px; border-top:1px solid rgba(255,255,255,.06); }
.cart-breakdown { margin-bottom:14px; }
.cart-brk-row { display:flex; justify-content:space-between; font-size:13px; color:rgba(255,255,255,.55); padding:3px 0; }
.cart-brk-disc { color:#25D366; }
.cart-brk-total { margin-top:6px; padding-top:8px; border-top:1px solid rgba(255,255,255,.1); font-size:16px; font-weight:700; color:#fff; }
.cart-invoice-toggle { display:flex; align-items:center; gap:8px; font-size:12px; color:rgba(255,255,255,.55); margin-bottom:10px; cursor:pointer; }
.cart-invoice-toggle input { accent-color:var(--rojo); }
.cart-inv-fields { margin-bottom:10px; }
.cart-inv-fields select.cart-guest-input { appearance:none; }
.cart-wa-note { font-size:11px; color:rgba(255,255,255,.35); text-align:center; margin-top:8px; }
.cart-total-row { display:flex; justify-content:space-between; align-items:center; margin-bottom:16px; }
.cart-total-label { font-size:13px; color:rgba(255,255,255,.5); }
.cart-total-val { font-family:var(--fh); font-weight:700; font-size:24px; color:#fff; }
.cart-checkout-btn { width:100%; border-radius:9999px; background:var(--rojo); color:#fff; padding:14px; font-size:12px; font-weight:600; letter-spacing:.1em; text-transform:uppercase; border:none; transition:filter .25s, transform .25s; margin-bottom:8px; }
.cart-checkout-btn:hover { filter:brightness(1.1); transform:scale(1.01); }
.cart-wa-btn { width:100%; border-radius:9999px; background:rgba(37,211,102,.12); border:1px solid rgba(37,211,102,.25); color:#25D366; padding:12px; font-size:12px; font-weight:600; letter-spacing:.1em; text-transform:uppercase; display:flex; align-items:center; justify-content:center; gap:8px; transition:background .2s; }
.cart-wa-btn:hover { background:rgba(37,211,102,.2); }
/* Formulario de checkout como invitado */
.cart-guest-title { font-size:12px; color:rgba(255,255,255,.7); margin-bottom:12px; letter-spacing:.02em; }
.cart-guest-input { width:100%; box-sizing:border-box; border-radius:10px; background:rgba(255,255,255,.05); border:1px solid rgba(255,255,255,.1); color:#fff; padding:11px 14px; font-size:13px; margin-bottom:8px; outline:none; transition:border-color .2s; }
.cart-guest-input:focus { border-color:var(--rojo); }
.cart-guest-input::placeholder { color:rgba(255,255,255,.35); }
.cart-guest-cancel { width:100%; background:none; border:none; color:rgba(255,255,255,.45); font-size:11px; padding:8px; margin-top:4px; cursor:pointer; transition:color .2s; }
.cart-guest-cancel:hover { color:#fff; }
.cart-guest-note { font-size:11px; color:rgba(255,255,255,.4); text-align:center; margin-top:8px; }
.cart-guest-note a { color:var(--rojo); }
.cart-badge { position:absolute; top:-6px; right:-6px; width:18px; height:18px; background:var(--rojo); border-radius:50%; font-size:10px; font-weight:700; color:#fff; display:flex; align-items:center; justify-content:center; }
.cart-btn-wrap { position:relative; display:inline-flex; }

/* ══════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════ */
@media (max-width:1024px) {
  .products-grid { grid-template-columns:repeat(2,1fr); }
  .footer-top { grid-template-columns:1fr 1fr; }
  .footer-cols { grid-template-columns:repeat(2,1fr); }
  .nav-links { display:none; }
  .hamburger { display:flex; }
  .nav-btn-ghost, .nav-btn-primary { display:none; }
  .nav-search-btn { display:flex !important; }   /* la lupita sí se mantiene en móvil */
  .cart-btn-wrap .nav-btn-ghost { display:inline-flex !important; }   /* (1) carrito visible en móvil, junto a la lupa */
  .stats-inner { grid-template-columns:1fr; gap:48px; }
  .main-layout { flex-direction:column; }
  .sidebar { width:100%; position:static; }
  .product-single-grid { grid-template-columns:1fr; }
  .values-grid { grid-template-columns:repeat(2,1fr); }
  .timeline-grid { flex-direction:column; }
  .era-card { flex:none !important; min-width:auto; }
}
@media (max-width:768px) {
  .lines-track .line-card { flex:0 0 78vw; height:180px; }
  .lines-header { margin-bottom:20px; }
  .footer-top { grid-template-columns:1fr; gap:40px; }
  .footer-cols { grid-template-columns:repeat(2,1fr); }
  .products-grid { grid-template-columns:1fr; }
  .brands-track .brand-card { flex:0 0 240px; }
  .stats-row { flex-direction:column; gap:32px; }
  .stat-item + .stat-item::before { display:none; }
  .values-grid { grid-template-columns:1fr; }
  .cart-sidebar { width:100%; }
  .navbar-marcas { padding:16px; }
}
@media (max-width:480px) {
  .hero-stats { gap:16px; }
  .search-inputs { gap:24px; }
  .search-tabs { overflow-x:auto; }
  .search-tab { white-space:nowrap; padding:12px 16px; }
}

/* ══════════════════════════════════════════════════════════
   AJUSTES SOLO-MÓVIL (no afectan la versión de escritorio)
   ══════════════════════════════════════════════════════════ */
/* Controles del panel de filtros del catálogo — ocultos en escritorio */
.filters-open-btn, .filters-close-btn, .filters-overlay { display:none; }

@media (max-width:768px){
  /* (2) Tabs del buscador: scroll horizontal + indicador (gradiente + flecha) */
  .search-tabs-wrap { position:relative; }
  .search-tabs { overflow-x:auto; scrollbar-width:none; -webkit-overflow-scrolling:touch; }
  .search-tabs::-webkit-scrollbar { display:none; }
  .search-tab { flex:0 0 auto; white-space:nowrap; }
  .search-tabs-wrap::after {
    content:'›'; position:absolute; top:0; right:0; height:100%; width:44px;
    display:flex; align-items:center; justify-content:flex-end; padding-right:6px;
    font-size:22px; color:rgba(255,255,255,.55); pointer-events:none;
    background:linear-gradient(90deg, rgba(10,10,11,0), var(--bg) 70%);
  }

  /* (3) Filtros en panel deslizante (off-canvas) con botón "Filtros" */
  .filters-open-btn {
    display:inline-flex; align-items:center; gap:8px; margin:0 var(--px) 16px;
    padding:11px 18px; border-radius:999px; background:rgba(255,255,255,.06);
    border:1px solid rgba(255,255,255,.14); color:#fff; font-size:13px; font-weight:600;
    letter-spacing:.02em; cursor:pointer;
  }
  .sidebar {
    position:fixed; top:0; left:0; bottom:0; width:84%; max-width:340px;
    background:var(--carbon); z-index:210; overflow-y:auto; padding:56px 22px 24px;
    transform:translateX(-100%); transition:transform .3s ease;
    box-shadow:2px 0 30px rgba(0,0,0,.55);
  }
  #filters-toggle:checked ~ .main-layout .sidebar { transform:translateX(0); }
  .filters-overlay { position:fixed; inset:0; background:rgba(0,0,0,.6); z-index:205; }
  #filters-toggle:checked ~ .filters-overlay { display:block; }
  .filters-close-btn {
    display:flex; align-items:center; justify-content:center; position:absolute; top:14px; right:14px;
    width:34px; height:34px; border-radius:999px; background:rgba(255,255,255,.08); color:#fff;
    font-size:15px; cursor:pointer;
  }

  /* (5) Destacados del home: sin tabs de categoría → scroll vertical de 8 productos */
  .products-header .filter-tabs { display:none; }
}
