/* ============================================================
   EXABYTE EL SALVADOR — Sistema de diseño premium
   Corporativo · Alta tecnología · Seguridad B2B
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  /* Marca */
  --navy-950: #060C1F;
  --navy-900: #0A1230;
  --navy-800: #0E1A3D;   /* color del logo */
  --navy-700: #14224E;
  --navy-600: #1C2F66;
  --navy-500: #26408A;

  --red-500: #E63946;
  --red-600: #D62839;
  --red-glow: rgba(230, 57, 70, .35);

  --steel-050: #F5F7FB;
  --steel-100: #EDF1F7;
  --steel-200: #DCE3EF;
  --steel-300: #BFC9DB;
  --steel-400: #8A93A6;

  --ink: #0F172A;
  --muted: #475569;
  --muted-2: #64748B;
  --white: #FFFFFF;

  --bg: #F4F6FB;
  --surface: #FFFFFF;
  --surface-2: #FAFBFE;

  /* Degradados */
  --grad-navy: linear-gradient(135deg, #0E1A3D 0%, #14224E 45%, #0A1230 100%);
  --grad-steel: linear-gradient(135deg, #ffffff 0%, #e9eef7 50%, #cdd6e6 100%);
  --grad-red: linear-gradient(135deg, #26408A 0%, #26408A 100%);
  --gold: #D4AF37;
  --grad-gold: linear-gradient(135deg, #F7E7A6 0%, #E6C860 30%, #C9A24B 55%, #A87B2C 100%);
  --grad-hero-mesh:
    radial-gradient(1200px 600px at 12% -10%, rgba(38,64,138,.55), transparent 60%),
    radial-gradient(900px 500px at 100% 0%, rgba(230,57,70,.18), transparent 55%),
    radial-gradient(700px 700px at 85% 110%, rgba(38,64,138,.35), transparent 60%);

  /* Sombras */
  --sh-sm: 0 1px 2px rgba(14,26,61,.06), 0 1px 3px rgba(14,26,61,.08);
  --sh-md: 0 4px 12px rgba(14,26,61,.08), 0 12px 28px rgba(14,26,61,.08);
  --sh-lg: 0 18px 48px rgba(14,26,61,.16);
  --sh-red: 0 10px 30px -8px var(--red-glow);

  /* Radios */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-pill: 999px;

  /* Layout */
  --maxw: 1200px;
  --gutter: clamp(18px, 4vw, 40px);
  --header-h: 76px;

  /* Tipografía */
  --font-head: 'Sora', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;

  --z-header: 100;
  --z-drawer: 300;
  --z-modal: 400;
  --z-toast: 500;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.12; letter-spacing: -.02em; color: var(--navy-800); }
ul { list-style: none; padding: 0; }
:focus-visible { outline: 3px solid var(--navy-500); outline-offset: 2px; border-radius: 6px; }

/* ---------- Utilidades ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(64px, 9vw, 120px); }
.section--tint { background: var(--surface-2); }
.section--navy { background: var(--grad-navy); color: #dbe3f3; position: relative; overflow: hidden; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-weight: 600; font-size: .78rem;
  letter-spacing: .16em; text-transform: uppercase; color: var(--red-500);
}
.eyebrow-grande{
    font-size: 25px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--grad-red); border-radius: 2px; }
.section--navy .eyebrow { color: #ff8a94; }
.section-head { max-width: 640px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); margin-top: 14px;text-shadow:
    0 2px 4px rgba(255,255,255,0.12),
    0 8px 18px rgba(0,0,0,0.20),
    0 20px 60px rgba(0,0,0,0.12); }
.section-head p { color: var(--muted); font-size: 1.05rem; margin-top: 14px; }
.section--navy .section-head h2 { color: #fff; }
.section--navy .section-head p { color: #aebbd6; }
.center { text-align: center; margin-inline: auto; }

.grad-text { background: var(--grad-red); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Botones ---------- */
.btn {
  --bg: var(--navy-800); --fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 24px; border-radius: var(--r-pill);
  font-family: var(--font-head); font-weight: 600; font-size: .95rem;
  background: var(--bg); color: var(--fg);
  transition: transform .18s ease, box-shadow .22s ease, background .22s ease, color .22s ease;
  white-space: nowrap; box-shadow: var(--sh-sm);
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--sh-md); }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; }
.btn--primary { --bg: var(--grad-red); box-shadow: var(--sh-red); }
.btn--primary:hover { box-shadow: 0 16px 38px -10px var(--red-glow); }
.btn--navy { --bg: var(--grad-navy); }
.btn--light { --bg: #fff; --fg: var(--navy-800); border: 1px solid var(--steel-200); }
.btn--ghost { --bg: transparent; --fg: var(--navy-800); box-shadow: none; border: 1px solid var(--steel-300); }
.btn--ghost:hover { background: var(--steel-100); }
.btn--wa { --bg: #1FA855; --fg: #fff; }
.btn--wa:hover { --bg: #178a45; }
.btn--sm { padding: 9px 16px; font-size: .85rem; }
.btn--block { width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }

/* ============================================================
   HEADER
   ============================================================ */
.topbar {
  background: var(--navy-950); color: #b9c4dd;
  font-size: .82rem; border-bottom: 1px solid rgba(255,255,255,.06);
}
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 40px; }
.topbar__left { display: flex; gap: 22px; flex-wrap: wrap; }
.topbar a { display: inline-flex; align-items: center; gap: 7px; transition: color .2s; }
.topbar a:hover { color: #fff; }
.topbar svg { width: 15px; height: 15px; color: var(--red-500); }
.topbar__right { display: flex; align-items: center; gap: 10px; }
.topbar__badge { display: inline-flex; align-items: center; gap: 6px; color: #d7deec; }
.topbar__badge .dot { width: 8px; height: 8px; border-radius: 50%; background: #2ecc71; box-shadow: 0 0 0 3px rgba(46,204,113,.2); }
@media (max-width: 720px){ .topbar__left { display: none; } }

.header {
  position: sticky; top: 0; z-index: var(--z-header);
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--steel-200);
  transition: box-shadow .25s ease, transform .32s ease;
}
.header.is-scrolled { box-shadow: var(--sh-md); }
.header.nav-hidden { transform: translateY(-100%); }
.header .container { display: flex; align-items: center; gap: 22px; min-height: var(--header-h); }

/* Logo lockup */
.brand { display: inline-flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand__mark {
  display: grid; place-items: center;
  background: var(--navy-800); color: #fff;
  padding: 8px 14px; border-radius: 8px;
  font-family: var(--font-head); font-weight: 800; letter-spacing: .04em;
  font-size: 1.18rem; line-height: 1;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12), var(--sh-sm);
}
.brand__sub { font-family: var(--font-head); font-weight: 700; font-size: .62rem; letter-spacing: .35em; color: var(--muted-2); margin-top: 4px; }
.brand__wrap { display: flex; flex-direction: column; }

.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a {
  position: relative; padding: 10px 14px; border-radius: var(--r-sm);
  font-weight: 500; font-size: .94rem; color: var(--muted);
  transition: color .2s, background .2s;
}
.nav a:hover { color: var(--navy-800); background: var(--steel-100); }
.nav a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px;
  background: var(--grad-red); border-radius: 2px; transform: scaleX(0); transform-origin: left; transition: transform .25s;
}
.nav a:hover::after { transform: scaleX(1); }

.header__actions { display: flex; align-items: center; gap: 10px; }
.icon-btn {
  position: relative; display: grid; place-items: center;
  width: 46px; height: 46px; border-radius: var(--r-sm);
  background: var(--steel-100); color: var(--navy-800);
  transition: background .2s, transform .18s;
}
.icon-btn:hover { background: var(--steel-200); transform: translateY(-1px); }
.icon-btn svg { width: 21px; height: 21px; }
.cart-badge {
  position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px;
  background: var(--grad-red); color: #fff; border-radius: var(--r-pill);
  font-size: .72rem; font-weight: 700; font-family: var(--font-head);
  display: grid; place-items: center; box-shadow: var(--sh-red);
  transform: scale(0); transition: transform .2s cubic-bezier(.5,1.6,.6,1);
}
.cart-badge.show { transform: scale(1); }

.menu-toggle { display: none; }
@media (max-width: 960px){
  .nav { display: none; }
  .menu-toggle { display: grid; }
  .header__actions { margin-left: auto; }   /* empujar botones a la derecha */
  /* Ocultar solo el TEXTO del botón WhatsApp, no el ícono */
  .header__actions .btn--wa span:not([data-icon]) { display: none; }
  .header__actions .btn--wa { padding: 0; width: 46px; height: 46px; }
}
@media (max-width: 600px){
  .header .brand__wrap { display: none; }
  .header .container { gap: 10px; padding-inline: 14px; }
  .header__actions { gap: 8px; }
  /* Botones del mismo tamaño, alineados a la esquina derecha */
  .header__actions .icon-btn,
  .header__actions .btn--wa { width: 42px; height: 42px; }
}

/* Mobile drawer nav */
.mobile-nav {
  position: fixed; inset: 0; z-index: var(--z-drawer);
  background: rgba(6,12,31,.5); backdrop-filter: blur(4px);
  opacity: 0; visibility: hidden; transition: opacity .25s;
}
.mobile-nav.open { opacity: 1; visibility: visible; }
.mobile-nav__panel {
  position: absolute; top: 0; right: 0; height: 100%; width: min(320px, 86vw);
  background: var(--surface); padding: 24px; box-shadow: var(--sh-lg);
  transform: translateX(100%); transition: transform .3s cubic-bezier(.4,0,.2,1);
  display: flex; flex-direction: column; gap: 6px;
}
.mobile-nav.open .mobile-nav__panel { transform: translateX(0); }
.mobile-nav a { padding: 14px 12px; border-radius: var(--r-sm); font-family: var(--font-head); font-weight: 600; color: var(--navy-800); }
.mobile-nav a:hover { background: var(--steel-100); }
.mobile-nav__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; background: var(--grad-navy); color: #dbe3f3; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background: var(--grad-hero-mesh); }
.hero::after {
  content: ""; position: absolute; inset: 0; opacity: .5;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 46px 46px; mask-image: radial-gradient(80% 70% at 50% 30%, #000, transparent 75%);
}
.hero-video-wrap { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; filter: brightness(0.80);
  opacity: 0; transition: opacity 1.6s ease;
  transform: scale(1); will-change: opacity, transform;
}
/* El video "de frente" se ve; el otro espera detrás, listo para fundirse */
.hero-video.is-front { opacity: 1; z-index: 2; }
.hero-video.is-back { opacity: 0; z-index: 1; }
/* Zoom lento (Ken Burns): se relanza en cada video al empezar su turno,
   la duración se ajusta por JS a la duración real del clip. Disimula
   cualquier diferencia de encuadre entre el final y el inicio del loop. */
@keyframes heroKenBurns { from { transform: scale(1); } to { transform: scale(1.09); } }
.hero-video.kb-play { animation: heroKenBurns var(--kb-dur, 20s) linear forwards; }
@media (prefers-reduced-motion: reduce) {
  .hero-video { transition: none; }
  .hero-video.kb-play { animation: none; }
}
.hero .container { position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; padding-block: clamp(64px, 9vw, 118px); filter:
    drop-shadow(0 3px 6px rgba(0,0,0,0.25))
    drop-shadow(0 10px 25px rgba(0,0,0,0.18));}
.hero__badge {
  display: inline-flex; align-items: center; gap: 9px; padding: 7px 15px; border-radius: var(--r-pill);
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14);
  font-size: .8rem; font-weight: 600; color: #cdd8f0; margin-bottom: 22px;
}
.hero__badge .dot { width: 8px; height: 8px; border-radius: 50%; background: #2ecc71; box-shadow: 0 0 0 4px rgba(46,204,113,.22); }
.hero h1 { color: #fff; font-size: clamp(2.3rem, 5vw, 4rem); letter-spacing: -.03em; }
.hero h1 em { font-style: normal; }
.hero__lead { margin-top: 22px; font-size: clamp(1.02rem, 1.6vw, 1.2rem); color: #b6c3de; max-width: 540px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero__stats { display: flex; gap: 34px; margin-top: 44px; flex-wrap: wrap; }
.hero__stat b { display: block; font-family: var(--font-head); font-size: 1.9rem; color: #fff; font-weight: 700; }
.hero__stat span { font-size: .82rem; color: #93a3c6; letter-spacing: .02em; }

/* Panel visual (SVG/CSS) del hero */
.hero__visual { position: relative; aspect-ratio: 1/1; }
.hero__glass {
  position: absolute; inset: 0; border-radius: 28px;
  background: linear-gradient(160deg, rgba(255,255,255,.12), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: var(--sh-lg), inset 0 1px 0 rgba(255,255,255,.2);
  backdrop-filter: blur(8px); overflow: hidden;
}
.hero__scan { position: absolute; inset: 0; }
.hero__chip {
  position: absolute; display: flex; align-items: center; gap: 10px;
  background: rgba(9,17,42,.72); border: 1px solid rgba(255,255,255,.14);
  padding: 12px 16px; border-radius: 14px; box-shadow: var(--sh-md);
  backdrop-filter: blur(6px); animation: floaty 6s ease-in-out infinite;
}
.hero__chip svg { width: 22px; height: 22px; color: #6ee7a8; }
.hero__chip b { color: #fff; font-family: var(--font-head); font-size: .9rem; }
.hero__chip span { color: #9fb0d4; font-size: .74rem; }
.hero__chip.c1 { top: 8%; left: -6%; }
.hero__chip.c2 { bottom: 10%; right: -4%; animation-delay: -2s; }
.hero__chip.c2 svg { color: #7aa2ff; }
.hero__chip.c3 { bottom: 40%; left: -10%; animation-delay: -4s; }
.hero__chip.c3 svg { color: #ff8a94; }
@keyframes floaty { 0%,100%{ transform: translateY(0); } 50%{ transform: translateY(-12px); } }

@media (max-width: 900px){
  .hero .container { grid-template-columns: 1fr; }
  .hero__visual { max-width: 440px; margin-inline: auto; width: 100%; }
  .hero__chip.c1 { left: 2%; } .hero__chip.c3 { left: -2%; } .hero__chip.c2 { right: 2%; }
}

/* ============================================================
   MARCAS (slider)
   ============================================================ */
.brands { border-block: 1px solid rgba(212,175,55,.22); background: linear-gradient(180deg, #0A0E17 0%, #05070C 100%); }
.brands__inner { padding-block: 30px; overflow: hidden; }
.brands__label { text-align: center; font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; color: #C9A24B; font-weight: 600; margin-bottom: 22px; font-family: var(--font-head); }
.marquee { display: flex; width: max-content; animation: marquee 42s linear infinite; }
.brands__inner:hover .marquee { animation-play-state: paused; }
/* -50% = exactamente un grupo (el margen va dentro del chip → bucle sin costura) */
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.brand-chip {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 12px; padding: 14px 30px;
  margin-right: 56px;
  background: rgba(212,175,55,.06); border: 1px solid rgba(212,175,55,.4); border-radius: var(--r-pill);
  font-family: var(--font-head); font-weight: 700; letter-spacing: .08em;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 2px 10px rgba(0,0,0,.4); white-space: nowrap; font-size: 1.02rem;
}
.brand-chip .bmk { width: 9px; height: 9px; border-radius: 3px; background: var(--grad-gold); box-shadow: 0 0 8px rgba(212,175,55,.6); }
/* Nombre de la marca en dorado metálico */
.brand-chip .bname { background: var(--grad-gold); -webkit-background-clip: text; background-clip: text; color: transparent; }
@media (prefers-reduced-motion: reduce){ .marquee { animation: none; } }

/* ============================================================
   CATÁLOGO / TIENDA
   ============================================================ */
.catalog__bar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 30px; }
/* ---------- Desplegable de categorías (Todos ▾) ---------- */
.cat-dropdown { position: relative; }
.cat-dropdown__btn {
  display: inline-flex; align-items: center; gap: 9px; padding: 10px 16px;
  border-radius: var(--r-pill); background: var(--surface); border: 1px solid var(--steel-200);
  color: var(--navy-800); font-weight: 700; font-size: .9rem; font-family: var(--font-head);
  transition: border-color .2s, box-shadow .2s;
}
.cat-dropdown__btn svg { width: 17px; height: 17px; flex-shrink: 0; }
.cat-dropdown__btn:hover { border-color: var(--navy-500); }
.cat-dropdown.open .cat-dropdown__btn { border-color: var(--navy-500); box-shadow: 0 0 0 3px rgba(38,64,138,.12); }
.cat-dropdown__chev { color: var(--muted-2); transition: transform .2s; margin-left: 2px; }
.cat-dropdown.open .cat-dropdown__chev { transform: rotate(180deg); }

.cat-dropdown__list {
  position: absolute; top: calc(100% + 8px); left: 0; z-index: 40; min-width: 220px;
  max-height: 320px; overflow-y: auto; background: var(--surface); border: 1px solid var(--steel-200);
  border-radius: var(--r-md); box-shadow: var(--sh-lg); padding: 8px;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.cat-dropdown.open .cat-dropdown__list { opacity: 1; visibility: visible; transform: none; }
.cat-dropdown__item {
  display: block; width: 100%; text-align: left; padding: 10px 14px; border-radius: var(--r-sm);
  color: var(--muted); font-weight: 600; font-size: .9rem; font-family: var(--font-head);
  transition: background .16s, color .16s;
}
.cat-dropdown__item:hover { background: var(--steel-100); color: var(--navy-800); }
.cat-dropdown__item.active { background: var(--grad-navy); color: #fff; }
.search {
  display: flex; align-items: center; gap: 8px; margin-left: auto;
  background: var(--surface); border: 1px solid var(--steel-200); border-radius: var(--r-pill);
  padding: 9px 16px; min-width: 230px;
}
.search svg { width: 18px; height: 18px; color: var(--muted-2); flex-shrink: 0; }
.search input { border: none; outline: none; background: none; width: 100%; }

.grid-products { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (min-width: 720px){ .grid-products { grid-template-columns: repeat(3, 1fr); gap: 24px; } }

/* Paginación del catálogo */
.pagination { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 36px; flex-wrap: wrap; }
.page-btn { min-width: 42px; height: 42px; padding: 0 12px; border-radius: var(--r-sm); background: var(--surface); border: 1px solid var(--steel-200); color: var(--navy-700); font-family: var(--font-head); font-weight: 700; font-size: .95rem; display: grid; place-items: center; transition: background .2s, color .2s, border-color .2s; }
.page-btn:hover:not(:disabled):not(.active) { border-color: var(--navy-500); color: var(--navy-800); }
.page-btn.active { background: var(--grad-navy); color: #fff; border-color: transparent; box-shadow: var(--sh-sm); }
.page-btn:disabled { opacity: .4; cursor: not-allowed; }
.page-arrow svg { width: 18px; height: 18px; }


.pcard {
  background: var(--surface); border: 1px solid var(--steel-200); border-radius: var(--r-lg);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .22s ease, box-shadow .28s ease, border-color .22s;
}
.pcard:hover { transform: translateY(-4px); box-shadow: var(--sh-lg); border-color: var(--steel-300); }
.pcard__media { position: relative; aspect-ratio: 4/3; background: var(--grad-steel); overflow: hidden; }
.pcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.pcard:hover .pcard__media img { transform: scale(1.05); }
.pcard__media .ph { position: absolute; inset: 0; display: grid; place-items: center; color: var(--steel-400); }
.pcard__media .ph svg { width: 54px; height: 54px; opacity: .5; }
.pcard__brand {
  position: absolute; top: 12px; left: 12px; padding: 5px 12px; border-radius: var(--r-pill);
  background: rgba(14,26,61,.86); color: #fff; font-size: .72rem; font-weight: 600;
  font-family: var(--font-head); letter-spacing: .04em; backdrop-filter: blur(4px);
}
.stock {
  position: absolute; top: 12px; right: 12px; display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 11px; border-radius: var(--r-pill); font-size: .7rem; font-weight: 700;
  font-family: var(--font-head); backdrop-filter: blur(4px);
}
.stock .dot { width: 7px; height: 7px; border-radius: 50%; }
.stock--in { background: rgba(31,168,85,.14); color: #157a3d; } .stock--in .dot { background: #1FA855; }
.stock--low { background: rgba(230,145,20,.16); color: #b26a06; } .stock--low .dot { background: #E69114; }
.stock--out { background: rgba(230,57,70,.14); color: #c0202d; } .stock--out .dot { background: var(--red-500); }

.pcard__body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.pcard__title { font-size: 1.06rem; color: var(--navy-800); line-height: 1.25; }
.pcard__sku { font-size: .78rem; color: var(--muted-2); font-family: var(--font-head); letter-spacing: .02em; }
.pcard__sku b { color: var(--muted); font-weight: 600; }
.pcard__desc { font-size: .86rem; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pcard__price { margin-top: auto; display: flex; align-items: baseline; gap: 8px; padding-top: 8px; }
.pcard__price b { font-family: var(--font-head); font-size: 1.5rem; color: var(--navy-800); font-weight: 700; }
.pcard__price span { font-size: .74rem; color: var(--muted-2); }
.pcard__iva { font-size: .72rem; color: var(--muted-2); }

.install-check {
  display: flex; align-items: flex-start; gap: 10px; padding: 11px 12px; border-radius: var(--r-sm);
  background: var(--steel-050); border: 1px dashed var(--steel-300); cursor: pointer; transition: border-color .2s, background .2s;
}
.install-check:hover { border-color: var(--navy-500); }
.install-check input { margin-top: 3px; accent-color: var(--navy-600); width: 17px; height: 17px; flex-shrink: 0; cursor: pointer; }
.install-check .txt { font-size: .8rem; color: var(--muted); line-height: 1.4; }
.install-check .txt b { display: block; color: var(--navy-700); font-family: var(--font-head); font-size: .82rem; }

/* Clic en tarjeta para abrir detalle */
.pcard__media.p-open { cursor: pointer; }
.pcard__title.p-open { cursor: pointer; transition: color .2s; }
.pcard__title.p-open:hover { color: var(--red-600); }
/* Línea de stock visible en la tarjeta */
.pcard__stock { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-size: .82rem; font-family: var(--font-head); font-weight: 600; color: var(--muted); }
.pcard__stock .dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.pcard__stock.in { color: #157a3d; } .pcard__stock.in .dot { background: #1FA855; }
.pcard__stock.low { color: #b26a06; } .pcard__stock.low .dot { background: #E69114; }
.pcard__stock.out { color: #c0202d; } .pcard__stock.out .dot { background: var(--red-500); }
.pcard__stock b { font-weight: 800; color: inherit; }
.pcard__price { margin-top: 0 !important; }
.pcard__cta { display: flex; gap: 8px; }
.pcard__cta .p-add { flex: 1 1 auto; }
.pcard__cta .p-open { flex: 0 0 auto; }

.empty-state { text-align: center; padding: 72px 24px; border: 2px dashed var(--steel-200); border-radius: var(--r-lg); background: var(--surface); grid-column: 1/-1; }
.empty-state svg { width: 60px; height: 60px; color: var(--steel-300); margin-bottom: 18px; }
.empty-state h3 { color: var(--navy-700); font-size: 1.25rem; }
.empty-state p { color: var(--muted); margin-top: 8px; max-width: 420px; margin-inline: auto; }

/* ============================================================
   SERVICIOS — Paneles alternados con parallax
   ============================================================ */
.services { padding-block: clamp(60px, 9vw, 110px) 0; background: var(--surface-2); overflow: hidden; }
.services .section-head { margin-bottom: clamp(34px, 5vw, 56px); }
.services-panels { display: flex; flex-direction: column; }

.service-panel { display: grid; grid-template-columns: 1fr 1fr; min-height: min(82vh, 640px); align-items: stretch; }
.service-panel:nth-child(even) .sp-content { background: var(--surface); }
.service-panel--r .sp-content { order: 2; }
.service-panel--r .sp-visual { order: 1; }

.sp-content {
  display: flex; flex-direction: column; justify-content: center; gap: 16px;
  padding: clamp(34px, 6vw, 84px); background: var(--surface-2);
}
.sp-num {
  font-family: var(--font-head); font-weight: 800; font-size: clamp(3.2rem, 7vw, 6rem); line-height: .9;
  color: transparent; -webkit-text-stroke: 1.5px var(--steel-300); letter-spacing: -.02em;
}
.sp-title { font-size: clamp(1.6rem, 3vw, 2.4rem); color: var(--navy-800); line-height: 1.1; }
.sp-desc { color: var(--muted); font-size: 1.02rem; line-height: 1.7; max-width: 460px; }
.sp-cta {
  display: inline-flex; align-items: center; gap: 9px; margin-top: 8px; align-self: flex-start;
  font-family: var(--font-head); font-weight: 700; font-size: .92rem; color: var(--red-600);
  padding-bottom: 3px; border-bottom: 2px solid transparent; transition: gap .2s, border-color .2s;
}
.sp-cta svg { width: 18px; height: 18px; transition: transform .2s; }
.sp-cta:hover { gap: 14px; border-color: var(--red-500); }

.sp-visual { position: relative; overflow: hidden; min-height: 300px; background: var(--navy-900); }
.sp-mask { position: absolute; inset: 0; background-size: cover; background-position: center; }
/* ---- Revelado horizontal (estilo auditax) ----
   La imagen entra "abriéndose" como cortina cuando el panel
   aparece en pantalla, alternando la dirección por panel. */
.sp-visual.wipe .sp-mask {
  clip-path: inset(0 100% 0 0);              /* cerrada: se abre de izquierda a derecha */
  -webkit-clip-path: inset(0 100% 0 0);
  transform: scale(1.12);
  transition: clip-path 1.1s cubic-bezier(.77, 0, .18, 1), transform 1.4s cubic-bezier(.22, .8, .3, 1);
}
.service-panel--r .sp-visual.wipe .sp-mask {
  clip-path: inset(0 0 0 100%);              /* paneles alternos: de derecha a izquierda */
  -webkit-clip-path: inset(0 0 0 100%);
}
.sp-visual.wipe.in .sp-mask {
  clip-path: inset(0 0 0 0);
  -webkit-clip-path: inset(0 0 0 0);
  transform: scale(1);
}
@media (prefers-reduced-motion: reduce){
  .sp-visual.wipe .sp-mask { clip-path: none; -webkit-clip-path: none; transform: none; transition: none; }
}
.sp-visual--color::after { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 100% at 50% 0%, rgba(255,255,255,.08), transparent 60%); }
.sp-ic { position: absolute; inset: 0; display: grid; place-items: center; z-index: 2; color: rgba(255,255,255,.14); pointer-events: none; }
.sp-ic svg { width: clamp(120px, 22vw, 220px); height: clamp(120px, 22vw, 220px); }

@media (max-width: 860px){
  .service-panel { grid-template-columns: 1fr; min-height: 0; }
  .service-panel--r .sp-content { order: 2; }
  .service-panel--r .sp-visual { order: 1; }
  .service-panel .sp-content { order: 2; }
  .service-panel .sp-visual { order: 1; }
  .sp-visual { min-height: 240px; aspect-ratio: 16/10; }
  .sp-content { padding: 30px 22px 40px; }
  .sp-ic svg { width: 110px; height: 110px; }
}

/* ============================================================
   CASOS DE ÉXITO
   ============================================================ */
/* Cuadrícula deslizable (2 filas, columnas horizontales con scroll) */
.casos-wrap { position: relative; }
.casos-track {
  display: grid; grid-auto-flow: column; grid-template-rows: repeat(2, 1fr);
  grid-auto-columns: calc(50% - 8px); gap: 16px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding-bottom: 6px; -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.casos-track::-webkit-scrollbar { display: none; }
.caso-thumb {
  position: relative; scroll-snap-align: start; aspect-ratio: 4/3; border-radius: var(--r-md);
  overflow: hidden; cursor: pointer; background: var(--grad-navy); box-shadow: var(--sh-sm);
  border: 1px solid var(--steel-200); transition: transform .22s, box-shadow .28s;
}
.caso-thumb:hover { transform: translateY(-3px); box-shadow: var(--sh-lg); }
.caso-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.caso-thumb:hover img { transform: scale(1.06); }
.caso-thumb__ph { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255,255,255,.4); }
.caso-thumb__ph svg { width: 44px; height: 44px; }
.caso-thumb__overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6,12,31,0) 35%, rgba(6,12,31,.82) 100%); display: flex; flex-direction: column; justify-content: flex-end; padding: 16px; }
.caso-thumb__sector { align-self: flex-start; padding: 4px 11px; border-radius: var(--r-pill); background: var(--grad-navy); border: 1px solid rgba(255,255,255,.2); color: #fff; font-size: .68rem; font-weight: 700; font-family: var(--font-head); letter-spacing: .04em; margin-bottom: 8px; }
.caso-thumb__client { color: #fff; font-family: var(--font-head); font-weight: 700; font-size: .98rem; line-height: 1.2; }
.caso-thumb__view { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font-size: .74rem; color: #cdd8f0; font-weight: 600; font-family: var(--font-head); }
.caso-thumb__view svg { width: 14px; height: 14px; }

.casos-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  background: #fff; color: var(--navy-800); box-shadow: var(--sh-lg); border: 1px solid var(--steel-200);
  transition: background .2s, transform .2s;
}
.casos-arrow:hover { background: var(--navy-800); color: #fff; }
.casos-arrow svg { width: 22px; height: 22px; }
.casos-arrow--left { left: -6px; } .casos-arrow--right { right: -6px; }
@media (min-width: 720px){ .casos-track { grid-auto-columns: calc(33.333% - 11px); } }
@media (min-width: 1040px){ .casos-track { grid-auto-columns: calc(25% - 12px); } }

/* ============================================================
   CINTA DE LOGOS DE MARCAS (debajo de Casos)
   ============================================================ */
.logos-band { padding-block: clamp(30px, 5vw, 48px); background: var(--surface); border-block: 1px solid var(--steel-200); overflow: hidden; }
.logos-band__label { text-align: center; font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted-2); font-weight: 600; margin-bottom: 26px; font-family: var(--font-head); }
.logos-band__track-wrap { overflow: hidden; }
.marquee--logos { display: flex; width: max-content; align-items: center; animation: marquee 38s linear infinite; }
.logos-band:hover .marquee--logos { animation-play-state: paused; }
.logo-chip {
  flex: 0 0 auto; margin-right: 40px; width: 200px; height: 104px;
  border-radius: var(--r-md); overflow: hidden; background: var(--surface-2);
  display: grid; place-items: center;
}
/* La imagen cubre todo el rectángulo, sin marcos */
.logo-chip img { width: 100%; height: 100%; object-fit: cover; display: block; }
.logo-chip .logo-name { font-family: var(--font-head); font-weight: 800; font-size: 1.2rem; letter-spacing: .04em; color: var(--navy-700); }

/* ============================================================
   LIGHTBOX CASOS
   ============================================================ */
.lightbox { position: fixed; inset: 0; z-index: 420; display: grid; place-items: center; padding: 20px; background: rgba(6,12,31,.82); backdrop-filter: blur(6px); opacity: 0; visibility: hidden; transition: opacity .28s; }
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox__box { position: relative; width: min(1000px, 100%); max-height: 90vh; background: var(--surface); border-radius: var(--r-lg); overflow: hidden; display: grid; grid-template-columns: 1.15fr .85fr; box-shadow: var(--sh-lg); transform: scale(.97); transition: transform .28s; }
.lightbox.open .lightbox__box { transform: none; }
.lightbox__media { position: relative; background: #060C1F; cursor: pointer; min-height: 320px; }
.lightbox__media img { width: 100%; height: 100%; object-fit: cover; max-height: 90vh; }
.lightbox__hint { position: absolute; bottom: 14px; left: 14px; padding: 6px 13px; border-radius: var(--r-pill); background: rgba(6,12,31,.7); color: #fff; font-size: .74rem; font-weight: 600; font-family: var(--font-head); border: 1px solid rgba(255,255,255,.18); }
.lightbox__info { padding: clamp(24px, 3vw, 38px); overflow-y: auto; display: flex; flex-direction: column; }
.lightbox__sector { align-self: flex-start; padding: 5px 13px; border-radius: var(--r-pill); background: var(--steel-100); color: var(--navy-700); font-size: .72rem; font-weight: 700; font-family: var(--font-head); letter-spacing: .05em; text-transform: uppercase; margin-bottom: 14px; }
.lightbox__client { font-size: clamp(1.3rem, 2.4vw, 1.8rem); color: var(--navy-800); margin-bottom: 22px; }
.lightbox__field { margin-bottom: 20px; padding-left: 15px; border-left: 3px solid var(--navy-600); }
.lightbox__lbl { display: block; font-family: var(--font-head); font-weight: 700; font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 6px; }
.lightbox__field p { color: var(--muted); font-size: .96rem; line-height: 1.65; }
.lightbox__counter { margin-top: auto; padding-top: 18px; font-family: var(--font-head); font-weight: 600; color: var(--muted-2); font-size: .84rem; }
.lightbox__close { position: absolute; top: 14px; right: 14px; z-index: 6; width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,.92); color: var(--navy-800); display: grid; place-items: center; box-shadow: var(--sh-md); }
.lightbox__close svg { width: 20px; height: 20px; }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 6; width: 46px; height: 46px; border-radius: 50%; background: rgba(255,255,255,.92); color: var(--navy-800); display: grid; place-items: center; box-shadow: var(--sh-md); transition: background .2s, color .2s; }
.lightbox__nav:hover { background: var(--navy-800); color: #fff; }
.lightbox__nav svg { width: 22px; height: 22px; }
.lightbox__nav--prev { left: 12px; } .lightbox__nav--next { right: 12px; }
@media (max-width: 760px){
  .lightbox__box { grid-template-columns: 1fr; grid-template-rows: auto 1fr; overflow-y: auto; }
  .lightbox__media { min-height: 240px; max-height: 42vh; }
  .lightbox__nav--prev { left: 8px; } .lightbox__nav--next { right: 8px; }
  .lightbox__nav { width: 40px; height: 40px; }
}

/* ============================================================
   NOSOTROS
   ============================================================ */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.about__visual { position: relative; }
.about__card {
  background: var(--grad-navy); border-radius: var(--r-lg); padding: 40px; color: #dbe3f3; overflow: hidden; position: relative;
  box-shadow: var(--sh-lg);
}
.about__card::before { content: ""; position: absolute; inset: 0; background: var(--grad-hero-mesh); opacity: .8; }
.about__card > * { position: relative; z-index: 2; }
.about__card .big { font-family: var(--font-head); font-size: 3.4rem; font-weight: 800; color: #fff; line-height: 1; }
.about__card .lbl { color: #9fb0d4; margin-top: 8px; }
.about__quote { font-family: var(--font-head); font-size: 1.3rem; color: #fff; font-weight: 600; margin: 26px 0; line-height: 1.4; }
.pillars { display: grid; gap: 16px; margin-top: 26px; }
.pillar { display: flex; gap: 15px; align-items: flex-start; }
.pillar__ic { width: 46px; height: 46px; border-radius: 12px; background: var(--steel-100); display: grid; place-items: center; flex-shrink: 0; color: var(--navy-700); }
.pillar__ic svg { width: 22px; height: 22px; }
.pillar h4 { font-size: 1.02rem; color: var(--navy-800); margin-bottom: 3px; }
.pillar p { color: var(--muted); font-size: .9rem; }
@media (max-width: 860px){ .about { grid-template-columns: 1fr; } }

/* ============================================================
   SOPORTE
   ============================================================ */
.support { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: start; }
.support__aside { display: flex; flex-direction: column; gap: 16px; }
.support-card {
  background: var(--surface); border: 1px solid var(--steel-200); border-radius: var(--r-md); padding: 24px;
}
.support-card__head { display: flex; align-items: center; gap: 13px; margin-bottom: 8px; }
.support-card__head .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; flex-shrink: 0; }
.support-card__head .ic svg { width: 22px; height: 22px; }
.support-card--wa .ic { background: rgba(31,168,85,.12); color: #1FA855; }
.support-card--res .ic { background: var(--grad-navy); color: #fff; }
.support-card h3 { font-size: 1.12rem; }
.support-card p { color: var(--muted); font-size: .9rem; margin-bottom: 14px; }
.res-list { display: flex; flex-direction: column; gap: 8px; }
.res-item { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: var(--r-sm); background: var(--steel-050); border: 1px solid var(--steel-200); transition: border-color .2s, background .2s; }
.res-item:hover { border-color: var(--navy-500); background: #fff; }
.res-item svg.f { width: 22px; height: 22px; color: var(--red-500); flex-shrink: 0; }
.res-item .meta { flex: 1; min-width: 0; }
.res-item .meta b { display: block; font-size: .88rem; color: var(--navy-800); font-family: var(--font-head); font-weight: 600; }
.res-item .meta span { font-size: .74rem; color: var(--muted-2); }
.res-item .dl { width: 34px; height: 34px; border-radius: 9px; background: var(--steel-100); display: grid; place-items: center; color: var(--navy-700); }
.res-item .dl svg { width: 17px; height: 17px; }

/* Formularios */
.form-card { background: var(--surface); border: 1px solid var(--steel-200); border-radius: var(--r-lg); padding: clamp(24px, 4vw, 38px); box-shadow: var(--sh-sm); }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: .82rem; font-weight: 600; font-family: var(--font-head); color: var(--navy-700); margin-bottom: 7px; }
.field label .req { color: var(--red-500); }
.input, .select, .textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--steel-200); border-radius: var(--r-sm);
  background: var(--surface-2); transition: border-color .2s, box-shadow .2s; font-size: .95rem;
}
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--navy-500); box-shadow: 0 0 0 3px rgba(38,64,138,.12); background: #fff; }
.textarea { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px){ .form-row { grid-template-columns: 1fr; } .support { grid-template-columns: 1fr; } }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--navy-950); color: #9fb0d4; padding-block: 60px 28px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.footer h5 { font-family: var(--font-head); color: #fff; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 18px; }
.footer a { display: block; padding: 5px 0; font-size: .92rem; transition: color .2s; }
.footer a:hover { color: #fff; }
.footer__brand .brand__mark { margin-bottom: 14px; }
.footer__brand p { font-size: .92rem; max-width: 300px; }
.footer__contact li { display: flex; gap: 10px; align-items: flex-start; padding: 6px 0; font-size: .92rem; }
.footer__contact svg { width: 17px; height: 17px; color: var(--red-500); flex-shrink: 0; margin-top: 3px; }
.footer__terms-link {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; padding: 8px 0 0;
  font-size: .86rem; font-weight: 600; color: #cdd8f0; border-top: 1px solid rgba(255,255,255,.1);
}
.footer__terms-link svg { width: 15px; height: 15px; color: var(--red-500); flex-shrink: 0; }
.footer__terms-link:hover { color: #fff; }

/* Lista de Términos y Condiciones (dentro del modal) */
.terms-list { display: flex; flex-direction: column; gap: 14px; counter-reset: terms; }
.terms-list li {
  position: relative; padding-left: 34px; color: var(--muted); font-size: .95rem; line-height: 1.6;
  counter-increment: terms;
}
.terms-list li::before {
  content: counter(terms); position: absolute; left: 0; top: 0;
  width: 24px; height: 24px; border-radius: 50%; background: var(--grad-navy); color: #fff;
  font-family: var(--font-head); font-weight: 700; font-size: .74rem; display: grid; place-items: center;
}
.footer__bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 44px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.08); font-size: .84rem; }
.footer__bottom a { display: inline; }
.footer__social { display: flex; gap: 10px; }
.footer__social a { width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,.06); display: grid; place-items: center; }
.footer__social a:hover { background: var(--red-500); }
.footer__social svg { width: 18px; height: 18px; }
@media (max-width: 860px){ .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px){ .footer__grid { grid-template-columns: 1fr; } }

/* ============================================================
   CARRITO (drawer)
   ============================================================ */
.overlay {
  position: fixed; inset: 0; z-index: var(--z-drawer); background: rgba(6,12,31,.55);
  backdrop-filter: blur(4px); opacity: 0; visibility: hidden; transition: opacity .3s;
}
.overlay.open { opacity: 1; visibility: visible; }
.drawer {
  position: fixed; top: 0; right: 0; height: 100%; width: min(440px, 100vw); z-index: var(--z-drawer);
  background: var(--bg); box-shadow: var(--sh-lg); transform: translateX(100%);
  transition: transform .32s cubic-bezier(.4,0,.2,1); display: flex; flex-direction: column;
}
.drawer.open { transform: translateX(0); }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px; border-bottom: 1px solid var(--steel-200); background: var(--surface); }
.drawer__head h3 { display: flex; align-items: center; gap: 10px; font-size: 1.2rem; }
.drawer__head .count { font-size: .8rem; color: var(--muted-2); font-family: var(--font-body); font-weight: 500; }
.drawer__body { flex: 1; overflow-y: auto; padding: 18px 22px; }
.drawer__foot { padding: 20px 22px; border-top: 1px solid var(--steel-200); background: var(--surface); }

.citem { display: flex; gap: 13px; padding: 14px 0; border-bottom: 1px solid var(--steel-200); }
.citem__img { width: 66px; height: 66px; border-radius: var(--r-sm); background: var(--grad-steel); flex-shrink: 0; overflow: hidden; display: grid; place-items: center; }
.citem__img img { width: 100%; height: 100%; object-fit: cover; }
.citem__img svg { width: 26px; height: 26px; color: var(--steel-400); }
.citem__info { flex: 1; min-width: 0; }
.citem__info h4 { font-size: .92rem; color: var(--navy-800); font-family: var(--font-body); font-weight: 600; }
.citem__info .sku { font-size: .74rem; color: var(--muted-2); }
.citem__install { display: inline-flex; align-items: center; gap: 5px; font-size: .72rem; color: #157a3d; margin-top: 4px; font-weight: 600; }
.citem__install svg { width: 13px; height: 13px; }
.citem__bottom { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.qty { display: flex; align-items: center; gap: 4px; border: 1px solid var(--steel-200); border-radius: var(--r-pill); padding: 3px; background: var(--surface-2); }
.qty button { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; color: var(--navy-700); transition: background .2s; }
.qty button:hover { background: var(--steel-100); }
.qty span { min-width: 26px; text-align: center; font-weight: 700; font-family: var(--font-head); font-size: .9rem; }
.citem__price { font-family: var(--font-head); font-weight: 700; color: var(--navy-800); }
.citem__remove { color: var(--muted-2); transition: color .2s; }
.citem__remove:hover { color: var(--red-500); }
.citem__remove svg { width: 17px; height: 17px; }

.install-note { padding: 12px 14px; margin-bottom: 14px; border-radius: var(--r-sm); background: var(--steel-050); border: 1px solid var(--steel-200); border-left: 3px solid var(--navy-600); }
.install-note span { display: block; font-size: .82rem; color: var(--muted); line-height: 1.5; }
.install-note span b { color: var(--navy-800); font-weight: 600; }

/* Mensaje de éxito del formulario de soporte */
.ticket-success { text-align: center; padding: 20px 10px; animation: fadeUp .4s ease; }
.ticket-success__ic { width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; background: rgba(31,168,85,.12); color: #1FA855; }
.ticket-success__ic svg { width: 32px; height: 32px; }
.ticket-success h3 { font-size: 1.35rem; color: var(--navy-800); margin-bottom: 10px; }
.ticket-success p { color: var(--muted); max-width: 400px; margin: 0 auto 22px; line-height: 1.6; }
.ticket-success p b { color: var(--navy-700); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } }

.summary { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.summary__row { display: flex; justify-content: space-between; font-size: .92rem; color: var(--muted); }
.summary__row.total { font-family: var(--font-head); font-weight: 700; font-size: 1.3rem; color: var(--navy-800); padding-top: 10px; border-top: 1px dashed var(--steel-300); }
.summary__row.total span:last-child { color: var(--navy-800); }
.drawer__actions { display: grid; gap: 10px; }

.cart-empty { text-align: center; padding: 60px 20px; color: var(--muted); }
.cart-empty svg { width: 64px; height: 64px; color: var(--steel-300); margin-bottom: 16px; }
.cart-empty h4 { color: var(--navy-700); font-size: 1.1rem; margin-bottom: 6px; }

/* ============================================================
   MODAL (checkout)
   ============================================================ */
.modal {
  position: fixed; inset: 0; z-index: var(--z-modal); display: grid; place-items: center; padding: 20px;
  background: rgba(6,12,31,.62); backdrop-filter: blur(6px); opacity: 0; visibility: hidden; transition: opacity .28s;
}
.modal.open { opacity: 1; visibility: visible; }
.modal__box {
  background: var(--bg); border-radius: var(--r-lg); width: min(680px, 100%); max-height: 90vh; overflow: hidden;
  display: flex; flex-direction: column; box-shadow: var(--sh-lg); transform: translateY(16px) scale(.98); transition: transform .3s;
}
.modal.open .modal__box { transform: none; }
.modal__head { display: flex; align-items: center; justify-content: space-between; padding: 22px 26px; border-bottom: 1px solid var(--steel-200); background: var(--surface); }
.modal__head h3 { font-size: 1.3rem; }
.modal__head p { font-size: .84rem; color: var(--muted); margin-top: 2px; }
.modal__body { padding: 26px; overflow-y: auto; }
.modal__foot { padding: 18px 26px; border-top: 1px solid var(--steel-200); background: var(--surface); display: flex; gap: 12px; justify-content: flex-end; flex-wrap: wrap; }

.fieldset { border: 1px solid var(--steel-200); border-radius: var(--r-md); padding: 20px; margin-bottom: 18px; background: var(--surface); }
.fieldset > legend, .fieldset__title { font-family: var(--font-head); font-weight: 700; font-size: .92rem; color: var(--navy-800); padding: 0 8px; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.fieldset__title svg { width: 18px; height: 18px; color: var(--red-500); }

.pay-options { display: grid; gap: 12px; }
.pay-opt { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 1px solid var(--steel-200); border-radius: var(--r-sm); cursor: pointer; transition: border-color .2s, background .2s; }
.pay-opt:hover { border-color: var(--navy-500); }
.pay-opt input { margin-top: 3px; accent-color: var(--navy-600); width: 18px; height: 18px; }
.pay-opt.sel { border-color: var(--navy-600); background: rgba(38,64,138,.04); }
.pay-opt .pt { font-family: var(--font-head); font-weight: 600; color: var(--navy-800); font-size: .92rem; }
.pay-opt .pd { font-size: .82rem; color: var(--muted); margin-top: 2px; }
.bank-box { margin-top: 10px; padding: 14px; background: var(--steel-050); border: 1px dashed var(--steel-300); border-radius: var(--r-sm); font-size: .84rem; }
.bank-box .brow { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; }
.bank-box .brow b { color: var(--navy-800); font-family: var(--font-head); }

/* Toast */
.toast-wrap { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: var(--z-toast); display: flex; flex-direction: column; gap: 10px; }
.toast {
  display: flex; align-items: center; gap: 12px; padding: 14px 20px; border-radius: var(--r-pill);
  background: var(--navy-800); color: #fff; box-shadow: var(--sh-lg); font-weight: 500; font-size: .92rem;
  animation: toastIn .3s ease, toastOut .3s ease 2.7s forwards;
}
.toast svg { width: 20px; height: 20px; flex-shrink: 0; }
.toast--ok svg { color: #6ee7a8; }
.toast--err { background: var(--red-600); }
@keyframes toastIn { from { transform: translateY(20px); opacity: 0; } }
@keyframes toastOut { to { transform: translateY(20px); opacity: 0; } }

/* WhatsApp flotante */
.wa-float {
  position: fixed; bottom: 22px; right: 22px; z-index: var(--z-header);
  width: 58px; height: 58px; border-radius: 50%; background: #1FA855; color: #fff;
  display: grid; place-items: center; box-shadow: 0 12px 30px -6px rgba(31,168,85,.5);
  transition: transform .2s; animation: waPulse 2.6s infinite;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; }
@keyframes waPulse { 0%{ box-shadow: 0 12px 30px -6px rgba(31,168,85,.5), 0 0 0 0 rgba(31,168,85,.4); } 70%{ box-shadow: 0 12px 30px -6px rgba(31,168,85,.5), 0 0 0 16px rgba(31,168,85,0); } 100%{ box-shadow: 0 12px 30px -6px rgba(31,168,85,.5), 0 0 0 0 rgba(31,168,85,0); } }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce){ .reveal { opacity: 1; transform: none; transition: none; } .hero__chip, .wa-float { animation: none; } }

/* Scrollbar */
.drawer__body::-webkit-scrollbar, .modal__body::-webkit-scrollbar { width: 8px; }
.drawer__body::-webkit-scrollbar-thumb, .modal__body::-webkit-scrollbar-thumb { background: var(--steel-300); border-radius: 8px; }

/* ============================================================
   PRELOADER (video de intro)
   ============================================================ */
.preloader {
  position: fixed; inset: 0; z-index: 9999; background: #FFFFFF;
  display: grid; place-items: center; overflow: hidden;
  transition: opacity .6s ease, visibility .6s ease;
}
.preloader.hide { opacity: 0; visibility: hidden; pointer-events: none; }
.preloader__video {
  width: 50%; height: 25%; max-width: 900px; object-fit: cover; background: transparent;
  /* Difumina los bordes para que el video se funda con el fondo blanco (sin marco) */
  -webkit-mask-image: radial-gradient(ellipse 78% 80% at 50% 50%, #000 60%, transparent 100%);
          mask-image: radial-gradient(ellipse 78% 80% at 50% 50%, #000 60%, transparent 100%);
}
.preloader__skip {
  position: absolute; bottom: 26px; right: 26px; z-index: 2;
  padding: 9px 18px; border-radius: var(--r-pill);
  background: rgba(14,26,61,.05); border: 1px solid rgba(14,26,61,.14);
  color: var(--navy-800); font-family: var(--font-head); font-weight: 600; font-size: .84rem;
  transition: background .2s, transform .18s;
}
.preloader__skip:hover { background: rgba(14,26,61,.1); transform: translateY(-1px); }

/* ============================================================
   VISTA DE DETALLE DE PRODUCTO (in-page, sin nueva pestaña)
   ============================================================ */
.pv {
  position: fixed; inset: 0; z-index: 200; background: var(--bg);
  overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch;
}
.pv__back { display: inline-flex; }
@media (max-width: 600px){ .pv__back { display: none; } }
.pv__header {
  position: sticky; top: 0; z-index: 5;
  background: rgba(255,255,255,.86); backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px); border-bottom: 1px solid var(--steel-200);
}
.pv__header { transition: transform .32s ease; }
.pv__header.nav-hidden { transform: translateY(-100%); }
.pv__header .container { display: flex; align-items: center; gap: 22px; min-height: var(--header-h); }
.pv__nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.pv__nav a { padding: 10px 14px; border-radius: var(--r-sm); font-weight: 500; font-size: .94rem; color: var(--muted); transition: color .2s, background .2s; }
.pv__nav a:hover { color: var(--navy-800); background: var(--steel-100); }
@media (max-width: 960px){ .pv__nav { display: none; } }

/* Banda tipo hero */
.pv__banner { position: relative; background: var(--grad-navy); color: #dbe3f3; overflow: hidden; }
.pv__banner::before { content: ""; position: absolute; inset: 0; background: var(--grad-hero-mesh); }
.pv__banner::after {
  content: ""; position: absolute; inset: 0; opacity: .5;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 46px 46px; mask-image: radial-gradient(80% 80% at 50% 30%, #000, transparent 75%);
}
.pv__banner .container { position: relative; z-index: 2; padding-block: clamp(30px, 5vw, 54px); }
.pv__crumb { display: flex; align-items: center; gap: 10px; font-size: .84rem; color: #9fb0d4; margin-bottom: 14px; flex-wrap: wrap; }
.pv__crumb a { color: #cdd8f0; transition: color .2s; }
.pv__crumb a:hover { color: #fff; }
.pv__banner h1 { color: #fff; font-size: clamp(1.7rem, 3.6vw, 2.8rem); max-width: 820px; }

/* Detalle: imagen cuadrada + info, ancho completo */
.pv__detail { padding-block: clamp(36px, 6vw, 68px); }
.pv__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.pv__media {
  position: relative; aspect-ratio: 1/1; border-radius: var(--r-lg); overflow: hidden;
  background: var(--grad-steel); border: 1px solid var(--steel-200); box-shadow: var(--sh-md);
}
.pv__media img { width: 100%; height: 100%; object-fit: cover; }
.pv__media .ph { position: absolute; inset: 0; display: grid; place-items: center; color: var(--steel-400); }
.pv__media .ph svg { width: 96px; height: 96px; opacity: .5; }
.pv__media .pcard__brand { top: 16px; left: 16px; font-size: .8rem; padding: 6px 14px; }
.pv__info { display: flex; flex-direction: column; }
.pv__info .stock { position: static; display: inline-flex; margin-bottom: 14px; align-self: flex-start; }
.pv__info h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); color: var(--navy-800); line-height: 1.15; }
.pv__meta { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 14px 0; }
.pv__meta span { font-size: .86rem; color: var(--muted); font-family: var(--font-head); }
.pv__meta b { color: var(--navy-700); }
.pv__price { display: flex; align-items: baseline; gap: 12px; margin: 8px 0 6px; }
.pv__price b { font-family: var(--font-head); font-size: 2.4rem; font-weight: 800; color: var(--navy-800); }
.pv__price .iva { font-size: .82rem; color: var(--muted-2); }
.pv__stockline { font-size: .92rem; color: var(--muted); margin-bottom: 16px; }
.pv__stockline b { color: var(--navy-700); font-family: var(--font-head); }
.pv__desc { color: var(--muted); font-size: .98rem; line-height: 1.7; margin-bottom: 20px; }
.pv__qty { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.pv__qty .label { font-family: var(--font-head); font-weight: 600; font-size: .9rem; color: var(--navy-700); }
.pv__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.pv__actions .btn { flex: 1 1 auto; min-width: 200px; }
.pv .install-check { margin-bottom: 18px; }
.pv__divider { height: 1px; background: var(--steel-200); margin: 22px 0; }
.pv__trust { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.pv__trust .t { display: flex; gap: 10px; align-items: center; font-size: .84rem; color: var(--muted); }
.pv__trust .t svg { width: 26px; height: 26px; color: var(--navy-600); flex-shrink: 0; }

.pv__suggest { padding-block: clamp(40px, 6vw, 72px); background: var(--surface-2); border-top: 1px solid var(--steel-200); }

@media (max-width: 820px){
  .pv__grid { grid-template-columns: 1fr; }
  .pv__media { max-width: 460px; margin-inline: auto; width: 100%; }
  .pv__actions .btn { min-width: 100%; }
}
@media (max-width: 600px){
  .pv__header .brand__wrap { display: none; }
  .pv__header .container { gap: 10px; }
  .pv__header .header__actions { gap: 6px; }
  .pv__header .icon-btn { width: 42px; height: 42px; }
  .pv__banner h1 { font-size: clamp(1.4rem, 6vw, 1.9rem); }
}

/* ============================================================
   TARJETA DE PRODUCTO COMPACTA EN MÓVIL (colocado al final
   para ganar en la cascada sobre las reglas base de .pcard)
   Solo imagen, nombre, stock breve, precio y un botón.
   El resto (SKU, descripción, instalación) va al detalle.
   ============================================================ */
@media (max-width: 719px){
  .pcard__body { padding: 11px 11px 13px; gap: 6px; }
  .pcard__title { font-size: .9rem; line-height: 1.25; -webkit-line-clamp: 2; }
  .pcard__sku,
  .pcard__desc,
  .pcard .install-check { display: none !important; }
  .pcard__stock { font-size: .72rem; }
  .pcard__price { padding-top: 2px; }
  .pcard__price b { font-size: 1.18rem; }
  .pcard__price span { font-size: .66rem; }
  .pcard__brand { font-size: .62rem; padding: 4px 8px; }
  .pcard__cta .p-open { display: none !important; }
  .pcard__cta .p-add { width: 100%; font-size: .84rem; padding: 10px; }
}
