/* =========================================================
   ALFA — Sistema de diseño
   Minimalista · Blanco & Azul
   ========================================================= */

:root {
  /* Paleta — azul de marca Alfa (#003566) */
  --blue-900: #001b33;
  --blue-800: #002649;
  --blue-700: #002b52;
  --blue-600: #003566;
  --blue-500: #0a4a85;
  --blue-400: #3d6ea3;
  --blue-300: #8fadc9;
  --blue-100: #dce7f1;
  --blue-50:  #f0f5f9;

  --white: #ffffff;
  --gray-50: #fafbfc;
  --gray-100: #f4f6f8;
  --gray-200: #e7eaee;
  --gray-300: #d5dae1;
  --gray-400: #a8b1bd;
  --gray-500: #77818f;
  --gray-600: #545d6a;
  --gray-700: #363e49;
  --gray-900: #12161c;

  --green-600: #0f9d58;
  --green-100: #e6f6ee;
  --amber-600: #b4770a;
  --amber-100: #fdf3e0;
  --red-600: #d1384f;
  --red-100: #fdeced;

  /* Tokens */
  --ink: var(--gray-900);
  --ink-soft: var(--gray-600);
  --ink-muted: var(--gray-500);
  --line: var(--gray-200);
  --brand: var(--blue-600);
  --brand-deep: var(--blue-900);

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  --shadow-xs: 0 1px 2px rgba(10, 37, 64, .06);
  --shadow-sm: 0 2px 8px rgba(10, 37, 64, .06);
  --shadow-md: 0 8px 24px rgba(10, 37, 64, .08);
  --shadow-lg: 0 20px 50px rgba(10, 37, 64, .12);
  --shadow-blue: 0 10px 30px rgba(21, 101, 216, .22);

  --maxw: 1200px;
  --header-h: 68px;

  --ease: cubic-bezier(.22, .61, .36, 1);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, sans-serif;
  --font-display: "ClashDisplay", var(--font);
}

/* ---------- Tipografía de marca: ClashDisplay (títulos y logo) ---------- */
@font-face { font-family: "ClashDisplay"; src: url("../fonts/ClashDisplay-Regular.otf") format("opentype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "ClashDisplay"; src: url("../fonts/ClashDisplay-Medium.otf") format("opentype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "ClashDisplay"; src: url("../fonts/ClashDisplay-Semibold.otf") format("opentype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "ClashDisplay"; src: url("../fonts/ClashDisplay-Bold.otf") format("opentype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "ClashDisplay"; src: url("../fonts/ClashDisplay-Light.otf") format("opentype"); font-weight: 300; font-display: swap; }
@font-face { font-family: "ClashDisplay"; src: url("../fonts/ClashDisplay-Extralight.otf") format("opentype"); font-weight: 200; font-display: swap; }

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  font-size: 15.5px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: none; cursor: pointer; }
ul, ol { list-style: none; }

::selection { background: var(--blue-100); color: var(--blue-900); }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--gray-100); }
::-webkit-scrollbar-thumb { background: var(--gray-300); border-radius: 99px; border: 2px solid var(--gray-100); }
::-webkit-scrollbar-thumb:hover { background: var(--gray-400); }

/* ---------- Tipografía ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  letter-spacing: -.022em;
  font-weight: 700;
  color: var(--brand-deep);
}
h1 { font-size: clamp(2rem, 4.4vw, 3.4rem); letter-spacing: -.032em; }
h2 { font-size: clamp(1.5rem, 2.8vw, 2.25rem); letter-spacing: -.028em; }
h3 { font-size: 1.2rem; }
h4 { font-size: 1rem; }

.eyebrow {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--brand);
}
.lead { font-size: 1.05rem; color: var(--ink-soft); }
.muted { color: var(--ink-muted); }
.small { font-size: .84rem; }
.tiny { font-size: .76rem; }
.mono { font-family: "SF Mono", "Roboto Mono", ui-monospace, Menlo, Consolas, monospace; }
.center { text-align: center; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }
.section { padding-block: clamp(48px, 7vw, 88px); }
.section--tight { padding-block: clamp(32px, 4vw, 52px); }
.section--tint { background: var(--gray-50); }
.section--blue { background: var(--blue-50); }

.sec-head { margin-bottom: 34px; }
.sec-head p { color: var(--ink-soft); margin-top: 8px; max-width: 62ch; }
.sec-head--row {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 20px; flex-wrap: wrap;
}

.stack-4 { display: grid; gap: 4px; }
.stack-8 { display: grid; gap: 8px; }
.stack-16 { display: grid; gap: 16px; }
.stack-24 { display: grid; gap: 24px; }
.row { display: flex; align-items: center; gap: 12px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.wrap-row { flex-wrap: wrap; }
.grow { flex: 1; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  font-weight: 600; font-size: .93rem;
  border: 1.5px solid transparent;
  transition: all .22s var(--ease);
  white-space: nowrap;
  cursor: pointer;
  text-align: center;
}
.btn svg { width: 17px; height: 17px; flex-shrink: 0; }

.btn-primary { background: var(--brand); color: #fff; box-shadow: var(--shadow-blue); }
.btn-primary:hover { background: var(--blue-700); transform: translateY(-2px); box-shadow: 0 14px 34px rgba(21,101,216,.3); }
.btn-primary:active { transform: translateY(0); }

.btn-dark { background: var(--brand-deep); color: #fff; }
.btn-dark:hover { background: var(--blue-800); transform: translateY(-2px); }

.btn-ghost { background: var(--white); color: var(--brand-deep); border-color: var(--gray-300); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); background: var(--blue-50); }

.btn-soft { background: var(--blue-100); color: var(--blue-700); }
.btn-soft:hover { background: var(--blue-300); color: var(--blue-900); }

.btn-line { background: transparent; color: var(--brand); border-color: var(--blue-300); }
.btn-line:hover { background: var(--blue-50); border-color: var(--brand); }

.btn-lg { padding: 15px 30px; font-size: 1rem; }
.btn-sm { padding: 9px 16px; font-size: .84rem; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none !important; box-shadow: none !important; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--brand); font-weight: 600; font-size: .92rem;
}
.link-arrow:hover { gap: 10px; }
.link-arrow { transition: gap .2s var(--ease); }

/* ---------- Badges / chips ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 11px; border-radius: var(--radius-pill);
  font-size: .72rem; font-weight: 700; letter-spacing: .03em;
  background: var(--blue-100); color: var(--blue-700);
  text-transform: uppercase;
}
.badge-green { background: var(--green-100); color: var(--green-600); }
.badge-amber { background: var(--amber-100); color: var(--amber-600); }
.badge-red { background: var(--red-100); color: var(--red-600); }
.badge-gray { background: var(--gray-100); color: var(--gray-600); }
.badge-solid { background: var(--brand); color: #fff; }

.chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 14px; border-radius: var(--radius-pill);
  border: 1.5px solid var(--gray-200); background: var(--white);
  font-size: .85rem; font-weight: 500; color: var(--ink-soft);
  cursor: pointer; transition: all .18s var(--ease);
}
.chip:hover { border-color: var(--blue-300); color: var(--brand); }
.chip.is-active { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; }

.spec-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 11px; border-radius: var(--radius-sm);
  background: var(--gray-100); color: var(--gray-600);
  font-size: .76rem; font-weight: 600;
}

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 200;
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  height: var(--header-h);
  display: flex; align-items: center; gap: 28px;
}
.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo-mark {
  width: 32px; height: 32px;
  display: grid; place-items: center;
}
.logo-mark img { width: 100%; height: 100%; object-fit: contain; }
.logo-text {
  font-family: var(--font-display);
  font-size: 1.32rem; font-weight: 700; letter-spacing: -.02em;
  color: var(--brand-deep);
}
.logo-text span { color: var(--brand); }

.nav { display: flex; align-items: center; gap: 26px; }
.nav a {
  font-size: .92rem; font-weight: 500; color: var(--ink-soft);
  position: relative; padding-block: 4px; transition: color .18s;
}
.nav a:hover, .nav a.is-active { color: var(--brand); }
.nav a.is-active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px; background: var(--brand); border-radius: 2px;
}

.header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center; position: relative;
  color: var(--gray-600); transition: all .18s var(--ease);
}
.icon-btn:hover { background: var(--blue-50); color: var(--brand); }
.icon-btn svg { width: 20px; height: 20px; }
.cart-count {
  position: absolute; top: 3px; right: 2px;
  min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 99px; background: var(--brand); color: #fff;
  font-size: .66rem; font-weight: 800;
  display: grid; place-items: center;
  border: 2px solid #fff;
}
.cart-count[data-empty="true"] { display: none; }

.burger { display: none; }

/* ---------- Search ---------- */
.searchbar {
  flex: 1; max-width: 380px; position: relative;
}
.searchbar input {
  width: 100%; padding: 10px 16px 10px 40px;
  border: 1.5px solid var(--gray-200); border-radius: var(--radius-pill);
  background: var(--gray-50); font-size: .9rem; outline: none;
  transition: all .2s var(--ease);
}
.searchbar input:focus { background: #fff; border-color: var(--blue-400); box-shadow: 0 0 0 4px var(--blue-50); }
.searchbar svg {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  width: 16px; height: 16px; color: var(--gray-400); pointer-events: none;
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1000px 460px at 82% -8%, var(--blue-100) 0%, transparent 62%),
    radial-gradient(700px 380px at 4% 105%, var(--blue-50) 0%, transparent 60%),
    var(--white);
  border-bottom: 1px solid var(--line);
}
.hero-inner {
  display: grid; grid-template-columns: 1.02fr .98fr;
  gap: 52px; align-items: center;
  padding-block: clamp(48px, 6.5vw, 92px);
}
.hero h1 { margin-block: 16px 20px; }
.hero h1 em { font-style: normal; color: var(--brand); }
.hero-lead { font-size: 1.08rem; color: var(--ink-soft); max-width: 46ch; }
.hero-cta { display: flex; gap: 12px; margin-top: 30px; flex-wrap: wrap; }

.hero-stats {
  display: flex; gap: 34px; margin-top: 42px;
  padding-top: 26px; border-top: 1px solid var(--gray-200);
  flex-wrap: wrap;
}
.hero-stat strong {
  display: block; font-size: 1.55rem; font-weight: 800;
  color: var(--brand-deep); letter-spacing: -.03em;
}
.hero-stat span { font-size: .8rem; color: var(--ink-muted); }

.hero-visual { position: relative; }
.hero-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 26px; box-shadow: var(--shadow-lg);
  position: relative; z-index: 2;
}
.hero-card img { width: 100%; border-radius: var(--radius); }
.hero-float {
  position: absolute; z-index: 3;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px 16px; box-shadow: var(--shadow-md);
  display: flex; align-items: center; gap: 11px;
}
.hero-float--tl { top: 8px; left: -22px; }
.hero-float--br { bottom: 18px; right: -18px; }
.hero-float svg { width: 20px; height: 20px; color: var(--brand); }
.hero-float strong { display: block; font-size: .85rem; color: var(--brand-deep); }
.hero-float span { font-size: .73rem; color: var(--ink-muted); }

/* ---------- Marquee de valor ---------- */
.valuebar { border-bottom: 1px solid var(--line); background: var(--white); }
.valuebar-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: var(--line);
}
.valuebar-item {
  background: #fff; padding: 22px 20px;
  display: flex; align-items: flex-start; gap: 13px;
}
.valuebar-item svg { width: 22px; height: 22px; color: var(--brand); flex-shrink: 0; margin-top: 2px; }
.valuebar-item strong { display: block; font-size: .9rem; color: var(--brand-deep); }
.valuebar-item span { font-size: .78rem; color: var(--ink-muted); line-height: 1.45; }

/* ---------- Grid de productos ---------- */
.toolbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; margin-bottom: 26px;
}
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.sort-select {
  padding: 9px 14px; border-radius: var(--radius-pill);
  border: 1.5px solid var(--gray-200); background: #fff;
  font-size: .85rem; color: var(--ink-soft); cursor: pointer; outline: none;
}
.sort-select:focus { border-color: var(--blue-400); }

.grid-products {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(258px, 1fr));
  gap: 22px;
}

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: all .26s var(--ease); position: relative;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--blue-300); }

.card-media {
  position: relative; background: var(--gray-50);
  aspect-ratio: 4 / 3; display: grid; place-items: center;
  overflow: hidden; border-bottom: 1px solid var(--line);
}
.card-media img { width: 88%; transition: transform .4s var(--ease); }
.card:hover .card-media img { transform: scale(1.055); }
.card-tags { position: absolute; top: 11px; left: 11px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.card-fav {
  position: absolute; top: 10px; right: 10px;
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255,255,255,.92); display: grid; place-items: center;
  color: var(--gray-400); box-shadow: var(--shadow-xs);
  transition: all .2s var(--ease);
}
.card-fav:hover { color: var(--red-600); transform: scale(1.1); }
.card-fav.is-on { color: var(--red-600); }
.card-fav svg { width: 16px; height: 16px; }
.card-fav.is-on svg { fill: currentColor; }

.card-body { padding: 16px 17px 18px; display: flex; flex-direction: column; flex: 1; gap: 9px; }
.card-brand { font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--brand); }
.card-title { font-size: 1rem; font-weight: 700; color: var(--brand-deep); line-height: 1.3; }
.card-title a:hover { color: var(--brand); }
.card-specs { display: flex; flex-wrap: wrap; gap: 5px; }
.card-rating { display: flex; align-items: center; gap: 6px; font-size: .78rem; color: var(--ink-muted); }
.stars { display: inline-flex; gap: 1px; }
.stars svg { width: 13px; height: 13px; color: #f5a623; fill: currentColor; }
.stars svg.off { color: var(--gray-300); }

.card-foot { margin-top: auto; padding-top: 12px; display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.price { line-height: 1.15; }
.price-now { font-size: 1.28rem; font-weight: 800; color: var(--brand-deep); letter-spacing: -.03em; }
.price-old { font-size: .82rem; color: var(--gray-400); text-decoration: line-through; }
.price-bs { font-size: .72rem; color: var(--ink-muted); }

.add-btn {
  width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0;
  background: var(--blue-50); color: var(--brand);
  display: grid; place-items: center; transition: all .2s var(--ease);
}
.add-btn:hover { background: var(--brand); color: #fff; transform: scale(1.06); }
.add-btn svg { width: 19px; height: 19px; }
.add-btn.is-done { background: var(--green-600); color: #fff; }

.stock-line { font-size: .74rem; display: flex; align-items: center; gap: 5px; }
.dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.dot-green { background: var(--green-600); }
.dot-amber { background: #e8a33d; }
.dot-red { background: var(--red-600); }

.empty-state {
  grid-column: 1 / -1; text-align: center; padding: 70px 20px;
  color: var(--ink-muted);
}
.empty-state svg { width: 46px; height: 46px; color: var(--gray-300); margin: 0 auto 14px; }

/* ---------- Carrito lateral ---------- */
.overlay {
  position: fixed; inset: 0; background: rgba(10,37,64,.42);
  backdrop-filter: blur(3px); z-index: 300;
  opacity: 0; visibility: hidden; transition: all .3s var(--ease);
}
.overlay.is-open { opacity: 1; visibility: visible; }

.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100%);
  background: #fff; z-index: 310; display: flex; flex-direction: column;
  transform: translateX(102%); transition: transform .34s var(--ease);
  box-shadow: var(--shadow-lg);
}
.drawer.is-open { transform: translateX(0); }
.drawer-head {
  padding: 20px 22px; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
}
.drawer-head h3 { font-size: 1.05rem; }
.drawer-body { flex: 1; overflow-y: auto; padding: 18px 22px; }
.drawer-foot { border-top: 1px solid var(--line); padding: 18px 22px; background: var(--gray-50); }

.cart-item { display: flex; gap: 13px; padding: 14px 0; border-bottom: 1px solid var(--gray-100); }
.cart-item:last-child { border-bottom: none; }
.cart-thumb {
  width: 72px; height: 62px; border-radius: 10px; background: var(--gray-50);
  border: 1px solid var(--line); display: grid; place-items: center; flex-shrink: 0; padding: 5px;
}
.cart-thumb img { width: 100%; }
.cart-info { flex: 1; min-width: 0; }
.cart-info h4 { font-size: .88rem; font-weight: 600; color: var(--brand-deep); line-height: 1.3; }
.cart-info .cart-sub { font-size: .74rem; color: var(--ink-muted); margin-top: 2px; }
.qty {
  display: inline-flex; align-items: center; border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-pill); overflow: hidden; background: #fff;
}
.qty button {
  width: 28px; height: 28px; display: grid; place-items: center;
  color: var(--gray-600); font-size: 1rem; line-height: 1; transition: all .15s;
}
.qty button:hover { background: var(--blue-50); color: var(--brand); }
.qty span { min-width: 26px; text-align: center; font-size: .84rem; font-weight: 700; }
.cart-remove { color: var(--gray-400); font-size: .76rem; transition: color .15s; }
.cart-remove:hover { color: var(--red-600); }

.totals { display: grid; gap: 8px; margin-bottom: 14px; }
.total-row { display: flex; justify-content: space-between; font-size: .88rem; color: var(--ink-soft); }
.total-row.is-grand {
  padding-top: 10px; margin-top: 4px; border-top: 1px solid var(--gray-200);
  font-size: 1.12rem; font-weight: 800; color: var(--brand-deep);
}

/* ---------- Producto ---------- */
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: .82rem; color: var(--ink-muted); padding-block: 18px; flex-wrap: wrap; }
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb span { color: var(--gray-300); }

.pdp { display: grid; grid-template-columns: 1.05fr .95fr; gap: 52px; align-items: start; }
.gallery { position: sticky; top: calc(var(--header-h) + 20px); }
.gallery-main {
  background: var(--gray-50); border: 1px solid var(--line); border-radius: var(--radius-lg);
  aspect-ratio: 4/3; display: grid; place-items: center; padding: 30px; position: relative;
  overflow: hidden;
}
.gallery-main img { width: 90%; transition: opacity .25s; }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 13px; flex-wrap: wrap; }
.gallery-thumb {
  width: 78px; height: 66px; border-radius: 11px; background: var(--gray-50);
  border: 1.5px solid var(--line); display: grid; place-items: center; padding: 7px;
  cursor: pointer; transition: all .2s var(--ease);
}
.gallery-thumb:hover { border-color: var(--blue-300); }
.gallery-thumb.is-active { border-color: var(--brand); background: var(--blue-50); }
.gallery-thumb img { width: 100%; }

.pdp-info h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.pdp-price { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.pdp-price .price-now { font-size: 2.1rem; }
.pdp-buy { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }

.specs-table { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.specs-row {
  display: grid; grid-template-columns: 168px 1fr; gap: 16px;
  padding: 12px 18px; font-size: .88rem;
  border-bottom: 1px solid var(--gray-100);
}
.specs-row:last-child { border-bottom: none; }
.specs-row:nth-child(odd) { background: var(--gray-50); }
.specs-row dt { color: var(--ink-muted); font-weight: 500; }
.specs-row dd { color: var(--brand-deep); font-weight: 600; }

.feature-list { display: grid; gap: 10px; }
.feature-list li { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--ink-soft); }
.feature-list svg { width: 17px; height: 17px; color: var(--brand); flex-shrink: 0; margin-top: 3px; }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 26px; flex-wrap: wrap; }
.tab {
  padding: 12px 18px; font-size: .92rem; font-weight: 600; color: var(--ink-muted);
  border-bottom: 2px solid transparent; margin-bottom: -1px; transition: all .2s;
}
.tab:hover { color: var(--brand); }
.tab.is-active { color: var(--brand); border-bottom-color: var(--brand); }
.tab-panel { display: none; }
.tab-panel.is-active { display: block; animation: fade .3s var(--ease); }

@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.review { padding: 18px 0; border-bottom: 1px solid var(--gray-100); }
.review:last-child { border-bottom: none; }
.avatar {
  width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0;
  background: var(--blue-100); color: var(--blue-700);
  display: grid; place-items: center; font-weight: 800; font-size: .84rem;
}

/* ---------- Formularios ---------- */
.field { display: grid; gap: 6px; }
.field label { font-size: .82rem; font-weight: 600; color: var(--gray-700); }
.field label .req { color: var(--red-600); }
.input, .select, .textarea {
  width: 100%; padding: 11px 14px;
  border: 1.5px solid var(--gray-200); border-radius: var(--radius-sm);
  background: #fff; font-size: .92rem; outline: none;
  transition: all .18s var(--ease);
}
.input:focus, .select:focus, .textarea:focus {
  border-color: var(--blue-400); box-shadow: 0 0 0 4px var(--blue-50);
}
.input::placeholder, .textarea::placeholder { color: var(--gray-400); }
.input.is-error, .select.is-error { border-color: var(--red-600); box-shadow: 0 0 0 4px var(--red-100); }
.textarea { resize: vertical; min-height: 88px; }
.select { cursor: pointer; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2377818f' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 16px;
  padding-right: 38px;
}
.field-error { font-size: .74rem; color: var(--red-600); display: none; }
.field-error.is-shown { display: block; }
.field-hint { font-size: .74rem; color: var(--ink-muted); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.col-span-2 { grid-column: span 2; }

/* Opciones tipo tarjeta (radio) */
.opt-cards { display: grid; gap: 12px; }
.opt-cards.cols-2 { grid-template-columns: 1fr 1fr; }
.opt {
  position: relative; display: flex; gap: 13px; align-items: flex-start;
  padding: 16px 18px; border: 1.5px solid var(--gray-200); border-radius: var(--radius);
  cursor: pointer; transition: all .2s var(--ease); background: #fff;
}
.opt:hover { border-color: var(--blue-300); background: var(--blue-50); }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt-mark {
  width: 19px; height: 19px; border-radius: 50%; flex-shrink: 0; margin-top: 2px;
  border: 2px solid var(--gray-300); display: grid; place-items: center;
  transition: all .2s var(--ease);
}
.opt-mark::after {
  content: ""; width: 9px; height: 9px; border-radius: 50%;
  background: #fff; transform: scale(0); transition: transform .2s var(--ease);
}
.opt input:checked ~ .opt-mark { border-color: var(--brand); background: var(--brand); }
.opt input:checked ~ .opt-mark::after { transform: scale(1); }
.opt:has(input:checked) { border-color: var(--brand); background: var(--blue-50); box-shadow: 0 0 0 3px var(--blue-100); }
.opt-body { flex: 1; }
.opt-body strong { display: block; font-size: .93rem; color: var(--brand-deep); }
.opt-body span { font-size: .8rem; color: var(--ink-muted); line-height: 1.45; display: block; margin-top: 2px; }
.opt-icon { width: 22px; height: 22px; color: var(--brand); flex-shrink: 0; }
.opt-price { font-size: .86rem; font-weight: 700; color: var(--brand); white-space: nowrap; }

.check {
  display: flex; gap: 10px; align-items: flex-start; cursor: pointer;
  font-size: .85rem; color: var(--ink-soft);
}
.check input { position: absolute; opacity: 0; pointer-events: none; }
.check-mark {
  width: 19px; height: 19px; border-radius: 5px; flex-shrink: 0; margin-top: 1px;
  border: 2px solid var(--gray-300); display: grid; place-items: center;
  transition: all .18s var(--ease); color: #fff;
}
.check-mark svg { width: 12px; height: 12px; opacity: 0; transition: opacity .15s; }
.check input:checked ~ .check-mark { background: var(--brand); border-color: var(--brand); }
.check input:checked ~ .check-mark svg { opacity: 1; }

/* ---------- Checkout ---------- */
.checkout-grid { display: grid; grid-template-columns: 1fr 372px; gap: 38px; align-items: start; }

.steps { display: flex; align-items: center; margin-bottom: 34px; }
.step { display: flex; align-items: center; gap: 10px; }
.step-num {
  width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center; font-size: .84rem; font-weight: 800;
  background: var(--gray-100); color: var(--gray-400);
  border: 2px solid var(--gray-200); transition: all .28s var(--ease);
}
.step-label { font-size: .84rem; font-weight: 600; color: var(--gray-400); white-space: nowrap; }
.step.is-active .step-num { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 0 0 4px var(--blue-100); }
.step.is-active .step-label { color: var(--brand-deep); }
.step.is-done .step-num { background: var(--green-600); border-color: var(--green-600); color: #fff; }
.step.is-done .step-label { color: var(--ink-soft); }
.step-line { flex: 1; height: 2px; background: var(--gray-200); margin-inline: 12px; min-width: 18px; border-radius: 2px; }
.step-line.is-done { background: var(--green-600); }

.panel {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 28px;
}
.panel + .panel { margin-top: 20px; }
.panel-head { margin-bottom: 20px; }
.panel-head h2 { font-size: 1.22rem; }
.panel-head p { font-size: .86rem; color: var(--ink-muted); margin-top: 4px; }

.checkout-step { display: none; }
.checkout-step.is-active { display: block; animation: fade .32s var(--ease); }

.summary {
  position: sticky; top: calc(var(--header-h) + 20px);
  background: var(--gray-50); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 22px;
}
.summary h3 { font-size: 1.02rem; margin-bottom: 14px; }
.summary-items { display: grid; gap: 12px; max-height: 264px; overflow-y: auto; margin-bottom: 16px; padding-right: 4px; }
.summary-item { display: flex; gap: 11px; align-items: center; }
.summary-thumb {
  width: 50px; height: 44px; border-radius: 9px; background: #fff;
  border: 1px solid var(--line); display: grid; place-items: center; padding: 4px; flex-shrink: 0;
}
.summary-item h5 { font-size: .82rem; font-weight: 600; color: var(--brand-deep); line-height: 1.25; }
.summary-item p { font-size: .74rem; color: var(--ink-muted); }
.summary-item .amt { margin-left: auto; font-size: .86rem; font-weight: 700; color: var(--brand-deep); white-space: nowrap; }

.bank-box {
  background: var(--blue-50); border: 1.5px dashed var(--blue-300);
  border-radius: var(--radius); padding: 20px;
}
.bank-row {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 9px 0; border-bottom: 1px dashed var(--blue-300);
}
.bank-row:last-child { border-bottom: none; }
.bank-row dt { font-size: .8rem; color: var(--blue-700); font-weight: 500; }
.bank-row dd { font-size: .93rem; font-weight: 700; color: var(--blue-900); display: flex; align-items: center; gap: 8px; }
.copy-btn { color: var(--brand); display: grid; place-items: center; padding: 3px; border-radius: 5px; }
.copy-btn:hover { background: var(--blue-100); }
.copy-btn svg { width: 14px; height: 14px; }

.notice {
  display: flex; gap: 11px; align-items: flex-start;
  padding: 13px 15px; border-radius: var(--radius-sm); font-size: .84rem; line-height: 1.5;
}
.notice svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; }
.notice-blue { background: var(--blue-50); color: var(--blue-800); }
.notice-green { background: var(--green-100); color: var(--green-600); }
.notice-amber { background: var(--amber-100); color: var(--amber-600); }
.notice-red { background: var(--red-100); color: var(--red-600); }

.step-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 26px; flex-wrap: wrap; }

/* Confirmación */
.confirm-hero { text-align: center; padding: 20px 0 34px; }
.confirm-icon {
  width: 82px; height: 82px; border-radius: 50%; margin: 0 auto 22px;
  background: var(--green-100); color: var(--green-600);
  display: grid; place-items: center;
  animation: pop .5s var(--ease);
}
.confirm-icon svg { width: 40px; height: 40px; }
@keyframes pop { 0% { transform: scale(.4); opacity: 0; } 60% { transform: scale(1.12); } 100% { transform: scale(1); opacity: 1; } }

.order-code {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--blue-50); border: 1.5px dashed var(--blue-300);
  padding: 13px 22px; border-radius: var(--radius); margin-top: 6px;
}
.order-code strong { font-size: 1.28rem; letter-spacing: .06em; color: var(--blue-900); }

/* ---------- Tracking ---------- */
.track-hero {
  background: radial-gradient(760px 340px at 50% -20%, var(--blue-100), transparent 62%), var(--white);
  border-bottom: 1px solid var(--line);
  padding-block: clamp(38px, 5vw, 64px);
}
.track-form {
  display: flex; gap: 10px; max-width: 560px; margin: 24px auto 0; flex-wrap: wrap;
}
.track-form .input { flex: 1; min-width: 220px; padding: 14px 18px; border-radius: var(--radius-pill); text-align: center; font-weight: 700; letter-spacing: .07em; }

.track-panel { display: none; }
.track-panel.is-shown { display: block; animation: fade .34s var(--ease); }

.track-header {
  display: flex; justify-content: space-between; gap: 22px;
  padding-bottom: 22px; border-bottom: 1px solid var(--line); flex-wrap: wrap;
}

.timeline { position: relative; padding-left: 40px; }
.timeline::before {
  content: ""; position: absolute; left: 15px; top: 12px; bottom: 12px;
  width: 2px; background: var(--gray-200); border-radius: 2px;
}
.timeline-fill {
  position: absolute; left: 15px; top: 12px; width: 2px;
  background: linear-gradient(var(--blue-500), var(--green-600));
  border-radius: 2px; transition: height .8s var(--ease);
}
.tl-item { position: relative; padding-bottom: 30px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-dot {
  position: absolute; left: -40px; top: 0;
  width: 32px; height: 32px; border-radius: 50%;
  background: #fff; border: 2px solid var(--gray-200);
  display: grid; place-items: center; color: var(--gray-400);
  transition: all .35s var(--ease); z-index: 2;
}
.tl-dot svg { width: 15px; height: 15px; }
.tl-item.is-done .tl-dot { background: var(--green-600); border-color: var(--green-600); color: #fff; }
.tl-item.is-current .tl-dot {
  background: var(--brand); border-color: var(--brand); color: #fff;
  box-shadow: 0 0 0 5px var(--blue-100);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 5px var(--blue-100); }
  50% { box-shadow: 0 0 0 10px rgba(43,124,255,.12); }
}
.tl-item h4 { font-size: .96rem; color: var(--gray-400); transition: color .3s; }
.tl-item.is-done h4, .tl-item.is-current h4 { color: var(--brand-deep); }
.tl-item p { font-size: .83rem; color: var(--ink-muted); margin-top: 3px; max-width: 58ch; }
.tl-time { font-size: .74rem; color: var(--gray-400); margin-top: 5px; display: block; }

.map-box {
  background: var(--blue-50); border: 1px solid var(--blue-100);
  border-radius: var(--radius); padding: 20px; position: relative; overflow: hidden;
}
.map-track { position: relative; height: 6px; background: var(--white); border-radius: 99px; margin: 26px 0 12px; }
.map-progress { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, var(--blue-500), var(--green-600)); border-radius: 99px; transition: width 1s var(--ease); }
.map-truck {
  position: absolute; top: 50%; transform: translate(-50%, -50%);
  width: 34px; height: 34px; border-radius: 50%; background: #fff;
  border: 2px solid var(--brand); display: grid; place-items: center;
  color: var(--brand); box-shadow: var(--shadow-sm); transition: left 1s var(--ease);
}
.map-truck svg { width: 17px; height: 17px; }
.map-ends { display: flex; justify-content: space-between; font-size: .76rem; color: var(--blue-700); font-weight: 600; }

.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.info-cell { background: #fff; padding: 16px 18px; }
.info-cell dt { font-size: .72rem; text-transform: uppercase; letter-spacing: .09em; color: var(--ink-muted); font-weight: 700; }
.info-cell dd { font-size: .92rem; font-weight: 600; color: var(--brand-deep); margin-top: 4px; word-break: break-word; }

.order-mini {
  display: flex; align-items: center; gap: 14px; padding: 13px 0;
  border-bottom: 1px solid var(--gray-100);
}
.order-mini:last-child { border-bottom: none; }

/* ---------- Footer ---------- */
.footer { background: var(--brand-deep); color: rgba(255,255,255,.66); padding-block: 54px 26px; margin-top: 0; }
.footer h4 { color: #fff; font-size: .88rem; margin-bottom: 14px; letter-spacing: .02em; }
.footer a { transition: color .18s; font-size: .87rem; }
.footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr; gap: 40px; }
.footer .logo-text { color: #fff; }
.footer .logo-text span { color: var(--blue-400); }
.footer-desc { font-size: .87rem; margin-top: 14px; max-width: 34ch; line-height: 1.65; }
.footer ul { display: grid; gap: 9px; }
.footer-bottom {
  margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .8rem;
}
.socials { display: flex; gap: 10px; margin-top: 18px; }
.socials a {
  width: 34px; height: 34px; border-radius: 10px; background: rgba(255,255,255,.08);
  display: grid; place-items: center; transition: all .2s var(--ease);
}
.socials a:hover { background: var(--brand); transform: translateY(-2px); }
.socials svg { width: 16px; height: 16px; }

/* ---------- Toast ---------- */
.toasts {
  position: fixed; bottom: 22px; right: 22px; z-index: 400;
  display: grid; gap: 10px; pointer-events: none;
}
.toast {
  display: flex; align-items: center; gap: 11px;
  background: var(--brand-deep); color: #fff;
  padding: 13px 18px; border-radius: var(--radius);
  box-shadow: var(--shadow-lg); font-size: .88rem; font-weight: 500;
  animation: toastIn .34s var(--ease);
  max-width: 340px;
}
.toast svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--blue-400); }
.toast.is-out { animation: toastOut .3s var(--ease) forwards; }
@keyframes toastIn { from { transform: translateX(110%); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes toastOut { to { transform: translateX(110%); opacity: 0; } }

/* ---------- Utilidades ---------- */
.hidden { display: none !important; }
.icon-16 { width: 16px; height: 16px; }
.icon-22 { width: 22px; height: 22px; }
.no-shrink { flex-shrink: 0; }
.divider { height: 1px; background: var(--line); border: none; }
.skeleton { background: linear-gradient(90deg, var(--gray-100), var(--gray-200), var(--gray-100)); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: var(--radius-sm); }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { max-width: 520px; margin-inline: auto; width: 100%; }
  .hero-float--tl { left: 4px; }
  .hero-float--br { right: 4px; }
  .pdp { grid-template-columns: 1fr; gap: 34px; }
  .gallery { position: static; }
  .checkout-grid { grid-template-columns: 1fr; }
  .summary { position: static; }
  .valuebar-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 980px) {
  .hide-sm { display: none !important; }
}

@media (max-width: 780px) {
  .nav, .searchbar { display: none; }
  .burger { display: grid; }
  .nav.is-open {
    display: flex; position: absolute; top: var(--header-h); left: 0; right: 0;
    background: #fff; flex-direction: column; align-items: stretch;
    padding: 14px 24px 20px; gap: 4px; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
  }
  .nav.is-open a { padding: 11px 0; border-bottom: 1px solid var(--gray-100); }
  .nav.is-open a.is-active::after { display: none; }
  .grid-2, .grid-3, .opt-cards.cols-2 { grid-template-columns: 1fr; }
  .col-span-2 { grid-column: auto; }
  .step-label { display: none; }
  .step-line { margin-inline: 8px; }
  .panel { padding: 20px; }
  .specs-row { grid-template-columns: 1fr; gap: 3px; }
  .track-header { flex-direction: column; }
  .grid-products { grid-template-columns: repeat(auto-fill, minmax(158px, 1fr)); gap: 14px; }
  .card-body { padding: 13px 13px 15px; }
  .price-now { font-size: 1.1rem; }
  .hero-stats { gap: 24px; }
  .toasts { left: 16px; right: 16px; bottom: 16px; }
  .toast { max-width: none; }
}

@media (max-width: 480px) {
  .wrap { padding-inline: 16px; }
  .footer-grid { grid-template-columns: 1fr; }
  .valuebar-grid { grid-template-columns: 1fr; }
  .btn-lg { padding: 13px 22px; font-size: .94rem; }
}

@media print {
  .header, .footer, .drawer, .overlay, .toasts, .btn { display: none !important; }
}
