/* =========================================================
   JESS MUSIC — Design system
   Tokens, reveal/animation system, layout, components
   ========================================================= */

:root {
  --bg: #0b0908;
  --bg-2: #060504;
  --panel: #1a1512;
  --panel-2: #150f0b;
  --cream: #f3ead9;
  --green: #1fae7a;
  --green-dim: #167f59;
  --whatsapp: #25d366;
  --accent: #1fae7a;
  --accent-dim: #167f59;
  --accent-2: #2e6fe0;
  --accent-2-dim: #1f4ea6;
  --line: rgba(243, 234, 217, 0.14);
  --line-2: rgba(243, 234, 217, 0.07);
  --muted: rgba(243, 234, 217, 0.62);
  --muted-2: rgba(243, 234, 217, 0.4);
  --cursor-note: url("../img/bolillo-cursor.png") 2 2;
  --danger: #e0604a;
  --radius: 8px;
  --radius-sm: 5px;
  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);
  --container: 1180px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 320'%3E%3Cg transform='translate(30 40) rotate(-12) scale(1.15)'%3E%3Cpath d='M9 18V5l12-2v13' fill='none' stroke='rgba(243,234,217,0.07)' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3Ccircle cx='6' cy='18' r='3' fill='rgba(243,234,217,0.07)'/%3E%3Ccircle cx='18' cy='16' r='3' fill='rgba(243,234,217,0.07)'/%3E%3C/g%3E%3Cg transform='translate(230 60) rotate(18) scale(1.2)'%3E%3Cellipse cx='0' cy='0' rx='6' ry='4.6' transform='rotate(-18)' fill='rgba(243,234,217,0.07)'/%3E%3Cline x1='5.6' y1='-0.8' x2='5.6' y2='-22' stroke='rgba(243,234,217,0.07)' stroke-width='1.5'/%3E%3C/g%3E%3Ctext x='160' y='140' transform='rotate(-8 160 140)' font-family='Georgia, serif' font-size='40' fill='rgba(243,234,217,0.07)' text-anchor='middle'%3E♭%3C/text%3E%3Cg transform='translate(90 190) rotate(8) scale(1)'%3E%3Cpath d='M9 18V5l12-2v13' fill='none' stroke='rgba(243,234,217,0.07)' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3Ccircle cx='6' cy='18' r='3' fill='rgba(243,234,217,0.07)'/%3E%3Ccircle cx='18' cy='16' r='3' fill='rgba(243,234,217,0.07)'/%3E%3C/g%3E%3Ctext x='260' y='230' transform='rotate(14 260 230)' font-family='Georgia, serif' font-size='34' fill='rgba(243,234,217,0.07)' text-anchor='middle'%3E♯%3C/text%3E%3Cg transform='translate(20 260) rotate(-20) scale(0.95)'%3E%3Cellipse cx='0' cy='0' rx='6' ry='4.6' transform='rotate(-18)' fill='rgba(243,234,217,0.07)'/%3E%3Cline x1='5.6' y1='-0.8' x2='5.6' y2='-22' stroke='rgba(243,234,217,0.07)' stroke-width='1.5'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 320px 320px;
  color: var(--cream);
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  cursor: var(--cursor-note), auto;
}
body.no-bg-notes { background-image: none; }

input[type="text"], input[type="search"], input[type="number"], textarea {
  cursor: text;
}

/* Native form controls (checkboxes, radios, selects) and labels carry their
   own browser-default cursor that wins over inherited body/a/button rules —
   override them explicitly or the custom cursor "disappears" over them.
   :active and :focus get their own line too — browsers also swap in a
   default cursor for the pressed/focused state specifically, which is why
   the stick was flashing back to the system arrow right at the moment of
   the click, not just on hover. */
input[type="checkbox"], input[type="radio"], select, label,
a:active, a:focus,
button:active, button:focus,
input[type="checkbox"]:active, input[type="radio"]:active {
  cursor: var(--cursor-note), pointer;
}

h1, h2, h3, h4 {
  font-family: "Playfair Display", "Inter", system-ui, serif;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.005em;
}

a {
  color: inherit;
  text-decoration: none;
  cursor: var(--cursor-note), pointer;
}

img { max-width: 100%; display: block; }
button { font: inherit; cursor: var(--cursor-note), pointer; }
ul { list-style: none; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent);
  color: #1a1006;
  padding: 12px 18px;
  z-index: 999;
  border-radius: 0 0 8px 0;
  font-weight: 600;
}
.skip-link:focus { left: 0; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 96px 0;
  position: relative;
}
@media (max-width: 700px) {
  .section { padding: 64px 0; }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.section-title {
  font-size: clamp(28px, 4vw, 42px);
  margin-bottom: 16px;
  text-transform: uppercase;
}

.section-sub {
  color: var(--muted);
  max-width: 620px;
  font-size: 17px;
}

.text-gradient {
  background: linear-gradient(100deg, var(--accent), var(--accent-2) 70%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-brand .text-gradient { font-style: italic; font-weight: 600; }

/* ---------------------------------------------------------
   Stage light — single warm spotlight beam + film grain,
   replaces the old multi-blob ambient glow
   --------------------------------------------------------- */
.glow-field {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.glow-field::before {
  content: "";
  position: absolute;
  top: -30%; left: 50%;
  width: 90vw; height: 70vw;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at 50% 0%, rgba(46, 111, 224, 0.16), transparent 62%);
}
.glow-field::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 -120px 160px -80px var(--bg);
}
.glow { display: none; }

.grid-bg { position: relative; }
.grid-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(243, 234, 217, 0.05) 1px, transparent 1px);
  background-size: 26px 26px;
  pointer-events: none;
}

/* Subtle film-grain overlay, whole site — reinforces the stage/backstage mood */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------------------------------------------------------
   Scroll reveal system
   --------------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: var(--d, 0s);
}
.is-in[data-reveal], .is-in [data-reveal] { opacity: 1; transform: none; }

[data-reveal="line"] {
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.9s var(--ease);
  transition-delay: var(--d, 0s);
}
.is-in[data-reveal="line"] { transform: scaleX(1); }

.mask-line { display: block; overflow: hidden; padding-bottom: 0.1em; }
.mask-line > span {
  display: inline-block;
  transform: translateY(105%);
  transition: transform 1s var(--ease);
  transition-delay: var(--d, 0s);
}
.is-in .mask-line > span { transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  [data-reveal], [data-reveal="line"] { opacity: 1 !important; transform: none !important; }
  .mask-line > span { transform: none !important; }
}

/* ---------------------------------------------------------
   Header / nav
   --------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 13, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-2);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
}
.brand { display: flex; align-items: center; gap: 10px; font-family: "Oswald", sans-serif; font-weight: 600; font-size: 20px; text-transform: uppercase; letter-spacing: 0.01em; }
.brand-mark {
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}
.brand-mark img { width: 100%; height: 100%; object-fit: cover; display: block; }
.brand small { display: block; font-size: 10px; font-weight: 500; color: var(--muted); letter-spacing: 0.04em; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 14.5px;
  font-weight: 500;
}
.nav-links a {
  color: var(--muted);
  transition: color 0.2s var(--ease);
  position: relative;
  padding: 6px 0;
}
.nav-links a:hover, .nav-links a.active { color: var(--cream); }
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.nav-actions { display: flex; align-items: center; gap: 12px; }

.icon-btn {
  position: relative;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--cream);
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.icon-btn:hover { border-color: var(--accent); transform: translateY(-2px); }
.cart-badge {
  position: absolute;
  top: -6px; right: -6px;
  background: var(--accent);
  color: #1a1006;
  font-size: 11px;
  font-weight: 700;
  min-width: 18px; height: 18px;
  border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 4px;
}

.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
  color: var(--cream);
  align-items: center;
  justify-content: center;
}

@media (max-width: 900px) {
  .nav-links { position: fixed; inset: 76px 0 0 0; background: var(--bg); flex-direction: column; justify-content: flex-start; padding: 32px 24px; gap: 22px; font-size: 18px; transform: translateX(100%); transition: transform 0.4s var(--ease); overflow-y: auto; }
  .nav-links.open { transform: translateX(0); }
  .nav-toggle { display: flex; }
}

/* En pantallas angostas, el subtítulo de la marca y el botón de WhatsApp
   del header no caben junto al carrito y el menú — se desbordaban y
   partían el header en varias líneas. WhatsApp sigue disponible en el
   hero, el footer, la página de contacto y el chat. */
@media (max-width: 560px) {
  .brand small { display: none; }
  .nav-actions .btn-whatsapp { display: none; }
}

/* ---------------------------------------------------------
   Buttons
   --------------------------------------------------------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--cream);
  overflow: hidden;
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), background 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.btn::after {
  content: "";
  position: absolute;
  top: 0; left: -80%;
  width: 45%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  transform: skewX(-18deg);
  transition: left 0.6s var(--ease);
}
.btn:hover::after { left: 130%; }
.btn:hover {
  border-color: var(--accent);
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 0 0 5px rgba(31, 174, 122, 0.16), 0 10px 22px rgba(6, 4, 2, 0.35);
}
.btn:active {
  transform: translateY(-1px) scale(0.98);
  transition-duration: 0.08s;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--whatsapp));
  border-color: transparent;
  color: #06170e;
  box-shadow: 0 6px 20px rgba(31, 174, 122, 0.25);
}

.btn-whatsapp {
  background: linear-gradient(120deg, var(--whatsapp), var(--accent));
  border-color: transparent;
  color: #06170e;
}

.btn-ghost { background: rgba(244, 244, 240, 0.04); }
.btn-sm { padding: 9px 16px; font-size: 13.5px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.5; pointer-events: none; }

/* ---------------------------------------------------------
   Hero
   --------------------------------------------------------- */
.hero {
  position: relative;
  padding: 140px 0 100px;
  overflow: hidden;
}
.hero .container { display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero-sub { margin-left: auto; margin-right: auto; }
.hero-ctas { justify-content: center; }
.hero-stats { justify-content: center; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 26px;
}
.hero h1 { margin-bottom: 0; }
.hero-brand {
  font-family: "Playfair Display", serif;
  font-weight: 700;
  font-size: clamp(56px, 12vw, 150px);
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-transform: none;
}
.hero-brand .mask-line { padding-top: 0.15em; padding-bottom: 0.18em; }
.hero-brand-tag {
  font-family: "Inter", sans-serif;
  font-size: clamp(12px, 1.4vw, 15px);
  font-weight: 600;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin: 14px 0 32px;
}
.hero-sub { font-size: 18px; color: var(--muted); max-width: 560px; margin-bottom: 34px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 40px; margin-top: 64px; flex-wrap: wrap; }
.hero-stat b { display: block; font-family: "Oswald", sans-serif; font-size: 26px; color: var(--accent); }
.hero-stat span { color: var(--muted-2); font-size: 13px; }

/* ---------------------------------------------------------
   Cards
   --------------------------------------------------------- */
.card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 0%), rgba(31, 174, 122, 0.14), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  pointer-events: none;
}
.card:hover { transform: translateY(-6px); border-color: var(--accent-dim); }
.card:hover::before { opacity: 1; }

/* Vuelve clickeable toda la tarjeta cuando contiene un solo link de acción
   (ej. tarjetas de contacto), sin perder el link real de accesibilidad. */
.card-link::after {
  content: "";
  position: absolute;
  inset: 0;
}

.icon-badge {
  width: 52px; height: 52px;
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  background: transparent;
  border: 1.5px solid var(--line);
  color: var(--accent);
  margin-bottom: 18px;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}
.card:hover .icon-badge { transform: scale(1.06) rotate(-4deg); border-color: var(--accent-dim); }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
@media (max-width: 980px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------
   Lineup — concert set-list style list, used instead of an
   icon-in-circle feature grid
   --------------------------------------------------------- */
.lineup { display: flex; flex-direction: column; }
.lineup-item {
  display: flex;
  align-items: baseline;
  gap: 28px;
  padding: 30px 0;
  border-top: 1px solid var(--line-2);
  transition: padding-left 0.3s var(--ease), border-color 0.3s var(--ease);
}
.lineup-item:last-child { border-bottom: 1px solid var(--line-2); }
.lineup-item:hover { padding-left: 10px; border-color: var(--line); }
.lineup-num {
  font-family: "Oswald", sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.05em;
  width: 34px;
  flex-shrink: 0;
}
.lineup-body h3 { font-size: 21px; margin-bottom: 6px; text-transform: uppercase; }
.lineup-body p { color: var(--muted); font-size: 15px; max-width: 480px; }
@media (max-width: 600px) {
  .lineup-item { gap: 16px; padding: 22px 0; }
  .lineup-body h3 { font-size: 18px; }
}

/* ---------------------------------------------------------
   Product cards / catalog
   --------------------------------------------------------- */
.category-icon-wrap {
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-sm);
  background: linear-gradient(155deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  color: var(--accent);
}
.category-icon-wrap svg { width: 42%; height: 42%; }
.category-icon-wrap img { width: 100%; height: 100%; object-fit: contain; padding: 10%; border-radius: inherit; background: #fff; }

.product-card { padding: 18px; display: flex; flex-direction: column; }
.product-card .cat-tag {
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted-2);
  margin-bottom: 6px;
}
.product-card h3 { font-size: 16.5px; font-weight: 600; font-family: "Inter", sans-serif; margin-bottom: 6px; }
.product-card .brand-name { font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.product-card .price-row { display: flex; align-items: baseline; gap: 8px; margin-bottom: 4px; }
.price { color: var(--accent); font-weight: 600; font-size: 19px; font-family: "Oswald", sans-serif; }
.price-crc { color: var(--muted-2); font-size: 12.5px; }
.stock-line { font-size: 12.5px; color: var(--green); margin-bottom: 14px; }
.stock-line.low { color: var(--danger); }

/* ---------------------------------------------------------
   Shop layout (tienda.html)
   --------------------------------------------------------- */
.shop-layout { display: grid; grid-template-columns: 240px 1fr; gap: 36px; align-items: start; }
@media (max-width: 860px) { .shop-layout { grid-template-columns: 1fr; } }

.filters-toggle {
  display: none;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 16px;
  margin-bottom: 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--cream);
  font-weight: 600;
  font-size: 14.5px;
}
.filters-toggle svg { flex-shrink: 0; }

.filters-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  position: sticky;
  top: 96px;
}
@media (max-width: 860px) {
  .filters-toggle { display: flex; }
  .filters-panel { position: static; display: none; margin-bottom: 20px; }
  .filters-panel.open { display: block; }
}
.filters-panel h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); margin-bottom: 14px; }
.filter-option { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 0; border-bottom: 1px solid var(--line-2); font-size: 14.5px; cursor: var(--cursor-note), pointer; }
.filter-option input { accent-color: var(--green); }
.filter-option span.count { color: var(--muted-2); font-size: 12.5px; }
.filter-clear { margin-top: 14px; font-size: 13px; color: var(--accent); }

.shop-toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; gap: 16px; flex-wrap: wrap; }
.shop-count { color: var(--muted); font-size: 14px; }
.sort-select {
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--cream);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
}

.category-banner {
  position: relative;
  padding: 46px 0;
  text-align: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line-2);
  margin-bottom: 40px;
}
.category-banner .bg-word {
  position: absolute;
  inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: "Oswald", sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(60px, 14vw, 180px);
  color: transparent;
  -webkit-text-stroke: 1px var(--line);
  white-space: nowrap;
  pointer-events: none;
}

.search-bar-shell {
  display: flex;
  gap: 0;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px;
  max-width: 560px;
  margin: 0 auto;
}
.search-bar-shell input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--cream);
  padding: 10px 18px;
  font-size: 14.5px;
}
.search-bar-shell input:focus { outline: none; }
.search-bar-shell button {
  background: var(--accent);
  color: #1a1006;
  border: none;
  width: 42px; height: 42px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}

/* ---------------------------------------------------------
   Product detail (producto.html)
   --------------------------------------------------------- */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
@media (max-width: 860px) { .product-detail { grid-template-columns: 1fr; gap: 32px; } }

.product-gallery {
  aspect-ratio: 1 / 1;
  background: linear-gradient(155deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  position: relative;
  overflow: hidden;
}
.product-gallery svg { width: 34%; height: 34%; }
.product-gallery img { width: 100%; height: 100%; object-fit: contain; padding: 8%; border-radius: inherit; background: #fff; cursor: var(--cursor-note), zoom-in; }
.zoom-badge {
  position: absolute; right: 14px; bottom: 14px;
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(10,9,8,0.72); backdrop-filter: blur(2px);
  display: flex; align-items: center; justify-content: center;
  color: #fff; pointer-events: none;
  transition: transform 0.2s ease;
}
.product-gallery:hover .zoom-badge { transform: scale(1.08); }

/* ---------------------------------------------------------
   Lightbox: acercar foto de producto
   --------------------------------------------------------- */
.lightbox-overlay {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(6,4,2,0.94);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.lightbox-overlay.open { opacity: 1; visibility: visible; }
.lightbox-stage {
  width: min(92vw, 1100px); height: 86vh;
  overflow: auto; border-radius: var(--radius);
  background: #fff;
  display: flex; align-items: center; justify-content: center;
  cursor: zoom-in;
}
.lightbox-stage.zoomed { align-items: flex-start; justify-content: flex-start; cursor: zoom-out; }
.lightbox-stage img { max-width: 100%; max-height: 86vh; object-fit: contain; user-select: none; -webkit-user-drag: none; }
.lightbox-stage.zoomed img { max-width: none; max-height: none; width: 1700px; }
.lightbox-close {
  position: absolute; top: 18px; right: 18px;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--panel); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  color: var(--cream); cursor: var(--cursor-note), pointer;
}
.lightbox-close:hover { border-color: var(--accent); }
.lightbox-hint {
  position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
  font-size: 12.5px; color: #fff; background: rgba(0,0,0,0.55);
  padding: 7px 16px; border-radius: 999px; pointer-events: none;
  white-space: nowrap;
}
@media (max-width: 640px) {
  .lightbox-stage { width: 96vw; height: 78vh; }
  .lightbox-stage.zoomed img { width: 1100px; }
}

.product-gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; }
.gallery-thumb {
  width: 64px; height: 64px; flex-shrink: 0; padding: 0;
  background: #fff; border: 2px solid var(--line); border-radius: 8px;
  overflow: hidden; cursor: var(--cursor-note), pointer;
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 6%; }
.gallery-thumb.active { border-color: var(--accent); }

.qty-stepper { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; width: fit-content; }
.qty-stepper button { width: 40px; height: 40px; background: transparent; border: none; color: var(--cream); font-size: 18px; }
.qty-stepper button:hover { background: var(--panel); }
.qty-stepper input { width: 44px; text-align: center; background: transparent; border: none; color: var(--cream); font-weight: 600; }

.feature-list { margin: 20px 0; }
.feature-list li { display: flex; gap: 10px; padding: 6px 0; color: var(--muted); font-size: 14.5px; }
.feature-list li::before { content: "\2713"; color: var(--green); flex-shrink: 0; }

.share-row { display: flex; align-items: center; gap: 12px; margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line-2); }
.share-row a { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; transition: border-color .2s var(--ease), transform .2s var(--ease); }
.share-row a:hover { border-color: var(--accent); transform: translateY(-2px); }

.accordion-item { border-top: 1px solid var(--line-2); }
.accordion-item:last-child { border-bottom: 1px solid var(--line-2); }
.accordion-trigger { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 18px 0; background: none; border: none; color: var(--cream); font-weight: 600; font-size: 15px; text-align: left; }
.accordion-trigger .chev { transition: transform .3s var(--ease); }
.accordion-item.open .chev { transform: rotate(180deg); }
.accordion-body { max-height: 0; overflow: hidden; transition: max-height .35s var(--ease); color: var(--muted); font-size: 14.5px; }
.accordion-item.open .accordion-body { padding-bottom: 18px; }

.related-scroller { display: flex; gap: 18px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x proximity; }
.related-scroller .product-card { min-width: 220px; scroll-snap-align: start; }

/* ---------------------------------------------------------
   Cart drawer
   --------------------------------------------------------- */
.drawer-overlay {
  position: fixed; inset: 0;
  background: rgba(4, 5, 6, 0.6);
  backdrop-filter: blur(2px);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s var(--ease);
}
.drawer-overlay.open { opacity: 1; pointer-events: auto; }

.cart-drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(420px, 92vw);
  background: var(--bg-2);
  border-left: 1px solid var(--line);
  z-index: 201;
  display: flex; flex-direction: column;
  transform: translateX(105%);
  transition: transform .45s var(--ease);
}
.cart-drawer.open { transform: translateX(0); }
.cart-drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 22px 24px; border-bottom: 1px solid var(--line-2); }
.cart-drawer-body { flex: 1; overflow-y: auto; padding: 18px 24px; }
.cart-drawer-foot { padding: 20px 24px; border-top: 1px solid var(--line-2); }

.cart-item { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line-2); }
.cart-item .ci-icon { width: 52px; height: 52px; border-radius: 6px; background: var(--panel); display: flex; align-items: center; justify-content: center; color: var(--accent); flex-shrink: 0; }
.cart-item .ci-icon svg { width: 55%; height: 55%; }
.cart-item .ci-icon img { width: 100%; height: 100%; object-fit: contain; padding: 8%; border-radius: inherit; background: #fff; }
.cart-item .ci-info { flex: 1; min-width: 0; }
.cart-item .ci-info h5 { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.cart-item .ci-actions { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.cart-item .ci-remove {
  background: none; border: none; padding: 6px; margin: -6px;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted-2); border-radius: 6px;
  transition: color 0.15s, background 0.15s;
}
.cart-item .ci-remove:hover { color: var(--danger); background: rgba(224,96,74,0.12); }

.cart-empty { text-align: center; padding: 60px 20px; color: var(--muted); }
.cart-empty svg { margin: 0 auto 16px; opacity: .5; }

.cart-disclaimer { font-size: 12px; color: var(--muted-2); line-height: 1.5; margin-top: 12px; }
.cart-total-row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; font-size: 15px; }
.cart-total-row b { font-family: "Oswald", sans-serif; font-size: 20px; color: var(--accent); }

/* ---------------------------------------------------------
   Toast
   --------------------------------------------------------- */

/* ---------------------------------------------------------
   Chatbot "J-ai" — botón flotante + panel
   --------------------------------------------------------- */
.chat-launcher {
  position: fixed;
  right: 22px; bottom: 22px;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: var(--bg-2);
  border: 2px solid var(--accent);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  z-index: 150;
  box-shadow: 0 10px 30px rgba(31, 174, 122, 0.35);
  transition: transform .25s var(--ease), border-color .25s var(--ease);
}
.chat-launcher:hover { transform: scale(1.08); animation-play-state: paused; }
.chat-launcher.is-open { transform: scale(0.9); opacity: 0.85; }
.chat-launcher.has-notify { animation: chat-launcher-breathe 2.2s ease-in-out infinite; }
@keyframes chat-launcher-breathe {
  0%, 100% { transform: scale(1); box-shadow: 0 10px 30px rgba(31, 174, 122, 0.35); }
  50% { transform: scale(1.08); box-shadow: 0 10px 34px rgba(31, 174, 122, 0.6); }
}
.chat-notify-badge {
  position: absolute;
  top: -3px; right: -3px;
  min-width: 20px; height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--danger);
  color: #fff;
  font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 3px var(--bg);
  animation: chat-notify-pop .3s var(--ease), chat-notify-pulse-ring 2.2s ease-in-out infinite;
}
@keyframes chat-notify-pop { from { transform: scale(0); } to { transform: scale(1); } }
@keyframes chat-notify-pulse-ring {
  0%, 100% { box-shadow: 0 0 0 3px var(--bg), 0 0 0 3px var(--bg); }
  50% { box-shadow: 0 0 0 3px var(--bg), 0 0 0 7px rgba(224, 96, 74, 0.35); }
}

.chat-panel {
  position: fixed;
  right: 22px; bottom: 92px;
  width: min(380px, 92vw);
  height: min(560px, 74vh);
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  z-index: 151;
  display: flex; flex-direction: column;
  overflow: hidden;
  opacity: 0;
  transform: translateY(16px) scale(0.98);
  pointer-events: none;
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.chat-panel.open { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }

.chat-panel-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line-2);
  flex-shrink: 0;
}
.chat-panel-title { display: flex; align-items: center; gap: 12px; }
.chat-panel-title strong { display: block; font-size: 14.5px; }
.chat-panel-title span { display: block; font-size: 12px; color: var(--muted); }
.chat-panel-title .chat-avatar {
  width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: transparent;
  border: 1.5px solid var(--line);
  color: var(--accent);
}

.chat-panel-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 18px;
  display: flex; flex-direction: column; gap: 10px;
  scrollbar-color: var(--line) transparent;
  scrollbar-width: thin;
}
.chat-panel-body::-webkit-scrollbar { width: 8px; }
.chat-panel-body::-webkit-scrollbar-track { background: transparent; }
.chat-panel-body::-webkit-scrollbar-thumb { background: var(--line); border-radius: 8px; }
.chat-panel-body::-webkit-scrollbar-thumb:hover { background: var(--muted-2); }
.chat-msg { display: flex; }
.chat-msg.user { justify-content: flex-end; }
.chat-msg.bot { justify-content: flex-start; }
.chat-bubble {
  max-width: 82%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.5;
  white-space: pre-wrap;
  word-wrap: break-word;
}
.chat-msg.bot .chat-bubble { background: var(--panel); border: 1px solid var(--line-2); border-bottom-left-radius: 4px; }
.chat-msg.user .chat-bubble { background: linear-gradient(135deg, var(--accent), var(--whatsapp)); color: #06170e; border-bottom-right-radius: 4px; }

.chat-typing .chat-bubble { display: flex; gap: 4px; align-items: center; padding: 14px; }
.chat-typing .chat-bubble span {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--muted);
  animation: chat-typing-bounce 1.2s infinite ease-in-out;
}
.chat-typing .chat-bubble span:nth-child(2) { animation-delay: .15s; }
.chat-typing .chat-bubble span:nth-child(3) { animation-delay: .3s; }
@keyframes chat-typing-bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: .5; }
  30% { transform: translateY(-4px); opacity: 1; }
}

.chat-panel-foot {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 14px;
  border-top: 1px solid var(--line-2);
  flex-shrink: 0;
}
.chat-panel-foot input {
  flex: 1;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 10px 16px;
  color: var(--cream);
  font-size: 14px;
}
.chat-panel-foot input:focus { outline: none; border-color: var(--accent-dim); }
.chat-panel-foot .chat-send {
  background: linear-gradient(135deg, var(--accent), var(--whatsapp));
  color: #06170e;
  border-radius: 50%;
  width: 38px; height: 38px;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(31, 174, 122, 0.3);
  transition: transform 0.2s var(--ease);
}
.chat-panel-foot .chat-send:hover { transform: scale(1.08); }
.chat-panel-foot .chat-send:active { transform: scale(0.94); }
.chat-panel-foot .chat-send:disabled,
.chat-panel-foot input:disabled { opacity: 0.6; }

@media (max-width: 480px) {
  .chat-launcher { right: 16px; bottom: 16px; }
  .chat-panel { right: 8px; left: 8px; width: auto; bottom: 82px; height: min(70vh, 520px); }
}

.toast {
  position: fixed;
  left: 50%; bottom: 28px;
  transform: translate(-50%, 20px);
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 14px 22px;
  border-radius: 999px;
  font-size: 14px;
  display: flex; align-items: center; gap: 10px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s var(--ease), transform .3s var(--ease);
  z-index: 250;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }

/* ---------------------------------------------------------
   Footer
   --------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--line-2); padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h5 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); margin-bottom: 16px; }
.footer-grid li { margin-bottom: 10px; color: var(--muted); font-size: 14.5px; }
.footer-grid a { color: var(--muted); font-size: 14.5px; }
.footer-grid a:hover { color: var(--cream); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 28px; border-top: 1px solid var(--line-2); font-size: 13px; color: var(--muted-2); flex-wrap: wrap; gap: 12px; }
.footer-socials { display: flex; gap: 10px; }
.footer-socials a { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; }
.footer-socials a:hover { border-color: var(--accent); }

/* ---------------------------------------------------------
   Brand strip — static (no motion), replaces the old
   auto-scrolling marquee
   --------------------------------------------------------- */
.brand-strip { position: relative; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); padding: 40px 0 34px; }
.brand-strip .container {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
}
.brand-strip-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "Oswald", sans-serif;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.brand-strip-list { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; row-gap: 10px; }
.brand-strip-list span {
  font-family: "Oswald", sans-serif;
  font-weight: 600;
  font-size: 17px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0.85;
  padding: 0 22px;
  border-right: 1px solid var(--line);
}
.brand-strip-list span:last-child { border-right: none; }
@media (max-width: 700px) {
  .brand-strip-list { gap: 22px 28px; }
}

/* ---------------------------------------------------------
   Legal pages / prose
   --------------------------------------------------------- */
.prose { max-width: 760px; }
.prose h2 { font-size: 24px; margin: 40px 0 14px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--muted); font-size: 15.5px; margin-bottom: 14px; }
.prose li { margin-left: 20px; }
.prose strong { color: var(--cream); }
.prose .updated { color: var(--muted-2); font-size: 13px; margin-bottom: 40px; }
.callout {
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 24px 0;
  font-size: 14.5px;
  color: var(--muted);
}

/* ---------------------------------------------------------
   Misc utility
   --------------------------------------------------------- */
.text-center { text-align: center; }
.mt-40 { margin-top: 40px; }
.center-col { display: flex; flex-direction: column; align-items: center; }

/* ---------------------------------------------------------
   Drumstick click "hit" — a little spark/ring burst wherever
   the user clicks, like the drumstick cursor striking a drum
   --------------------------------------------------------- */
.drum-hit-fx {
  position: fixed;
  left: 0; top: 0;
  width: 0; height: 0;
  pointer-events: none;
  z-index: 9999;
}
.drum-hit-stick {
  position: absolute;
  left: 0; top: 0;
  width: 48px;
  max-width: none;
  height: auto;
  transform-origin: 4% 4%;
  animation: drum-stick-hit 0.2s ease-out forwards;
}
@keyframes drum-stick-hit {
  0%   { transform: rotate(-22deg); opacity: 0.9; }
  55%  { transform: rotate(4deg); opacity: 0.9; }
  100% { transform: rotate(4deg); opacity: 0; }
}
.drum-hit-ring {
  position: absolute;
  left: 0; top: 0;
  width: 10px; height: 10px;
  margin: -5px 0 0 -5px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  opacity: 0.85;
  animation: drum-ring 0.5s ease-out forwards;
}
.drum-hit-spark {
  position: absolute;
  left: 0; top: 0;
  width: 6px; height: 6px;
  margin: -3px 0 0 -3px;
  border-radius: 1px;
  transform: rotate(var(--angle, 0deg)) translateX(0);
  opacity: 1;
  animation: drum-spark 0.5s ease-out forwards;
}
@keyframes drum-ring {
  to { width: 50px; height: 50px; margin: -25px 0 0 -25px; opacity: 0; border-width: 1px; }
}
@keyframes drum-spark {
  to { transform: rotate(var(--angle, 0deg)) translateX(30px) scale(0.4); opacity: 0; }
}
