/* ============================================================================
   La Casita 420 — TIENDA "smoke session".
   Oscuro y humo: la paleta sale del arte original (lima sobre negro-verdoso).
   Tres voces tipograficas, ni una mas: Luckiest Guy para display (hermana del
   lettering del arte), Hanken Grotesk para cuerpo, y JetBrains Mono mayuscula
   para TODO control (botones, chips, badges) — el amarillo y las fuentes
   "marker" se retiraron el 2026-08-18 a pedido de Christian (efecto Simpsons).
   El admin NO usa este archivo (usa casita.css).
   ============================================================================ */
@import url('https://api.fontshare.com/v2/css?f[]=hanken-grotesk@400,500,600,700&f[]=jet-brains-mono@500&display=swap');

@font-face {
  font-family: 'Luckiest Guy'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('fonts/luckiest-guy.woff2') format('woff2');
  unicode-range: U+0000-00FF;
}
@font-face {
  font-family: 'Luckiest Guy'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('fonts/luckiest-guy-ext.woff2') format('woff2');
  unicode-range: U+0100-024F, U+1E00-1EFF, U+2020, U+20A0-20AB;
}

:root {
  --f-display: 'Luckiest Guy', 'Hanken Grotesk', system-ui, sans-serif;
  --f-body: 'Hanken Grotesk', ui-sans-serif, system-ui, sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, monospace;

  --bg: #0b0f0b; --bg-2: #0e130e;
  --surface: #131a13; --surface-2: #1a231a; --surface-3: #223022;
  --line: rgba(226, 255, 209, .13); --line-strong: rgba(226, 255, 209, .26);
  --ink: #f2f7ec; --ink-2: #c9d4c0; --muted: #8d9a85;

  --lime: #8fe14b; --lime-strong: #6fc72d; --lime-deep: #3f8f1d;
  --blue: #57a8f0; --pink: #f04ac9; --orange: #ff7a3c;
  --wa: #25d366; --wa-deep: #128c4b;
  --danger: #ff5d4d;

  --on-lime: #0c1405;

  --r-xs: 5px; --r-sm: 8px; --r-md: 14px; --r-lg: 20px; --r-pill: 999px;
  --dur: .2s; --ease: cubic-bezier(.4, 0, .2, 1);
  --pop: cubic-bezier(.34, 1.56, .64, 1);
  --shadow-pop: 0 24px 70px rgba(0, 0, 0, .6), 0 6px 18px rgba(0, 0, 0, .4);
  --glow-lime: 0 0 34px rgba(143, 225, 75, .35);
  --focus: 0 0 0 3px rgba(143, 225, 75, .4);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--f-body); background: var(--bg); color: var(--ink);
  -webkit-font-smoothing: antialiased; font-size: 15px; line-height: 1.55;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: none; color: inherit; }
::selection { background: var(--lime); color: var(--on-lime); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-2); }
::-webkit-scrollbar-thumb { background: var(--surface-3); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--lime-deep); }

/* ---------- atmósfera: grano + humo ---------- */
.smoke-scene { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.smoke {
  position: absolute; width: 55vmax; height: 55vmax; border-radius: 50%;
  filter: blur(70px); opacity: .16; will-change: transform;
}
.smoke--1 { background: radial-gradient(circle, #2e5e21 0%, transparent 62%); top: -18vmax; left: -12vmax; }
.smoke--2 { background: radial-gradient(circle, #17434d 0%, transparent 60%); top: 22vh; right: -20vmax; opacity: .13; }
.smoke--3 { background: radial-gradient(circle, #3c2b52 0%, transparent 58%); bottom: -22vmax; left: 18vw; opacity: .11; }
body::after {
  content: ''; position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.7'/%3E%3C/svg%3E");
}
.site { position: relative; z-index: 2; }

/* ---------- primitivas ---------- */
.k-label { font-family: var(--f-mono); font-size: 10.5px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.k-display { font-family: var(--f-display); font-weight: 400; line-height: 1.04; letter-spacing: .01em; }

/* Botones: UNA sola voz — mono mayuscula espaciada — y cuerpo con relieve
   (borde luminoso arriba + halo del color) para que no se pierdan en el fondo */
.k-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--f-mono); font-weight: 700; font-size: 12px; line-height: 1;
  letter-spacing: .13em; text-transform: uppercase;
  padding: 15px 24px; border-radius: var(--r-pill); border: 1px solid transparent;
  position: relative;
  transition: transform var(--dur) var(--pop), background var(--dur) var(--ease),
              border-color var(--dur) var(--ease), color var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
}
.k-btn svg { width: 15px; height: 15px; flex-shrink: 0; }
.k-btn:hover { transform: translateY(-2px); }
.k-btn:active { transform: translateY(0) scale(.98); }
.k-btn:focus-visible { outline: none; box-shadow: var(--focus); }
.k-btn--acc {
  background: linear-gradient(180deg, #a9f068 0%, var(--lime) 55%, var(--lime-strong) 100%);
  color: var(--on-lime); border-color: rgba(255, 255, 255, .28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 6px 20px rgba(143, 225, 75, .22);
}
.k-btn--acc:hover {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), 0 10px 34px rgba(143, 225, 75, .42);
}
.k-btn--ink { background: var(--ink); color: var(--bg); }
.k-btn--outline {
  background: rgba(19, 26, 19, .6); border-color: var(--line-strong); color: var(--ink);
  backdrop-filter: blur(6px);
}
.k-btn--outline:hover { border-color: var(--lime); color: var(--lime); box-shadow: 0 0 0 1px rgba(143, 225, 75, .35), 0 6px 20px rgba(0, 0, 0, .35); }
.k-btn--ghost { color: var(--ink-2); }
.k-btn--ghost:hover { background: var(--surface-2); }
.k-btn--wa {
  background: linear-gradient(180deg, #23a865 0%, var(--wa-deep) 60%, #0d723c 100%);
  color: #fff; border-color: rgba(255, 255, 255, .22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 6px 20px rgba(18, 140, 75, .28);
}
.k-btn--wa:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), 0 10px 34px rgba(18, 140, 75, .5); }
.k-btn--sm { padding: 10px 15px; font-size: 10.5px; }
.k-btn--lg { padding: 18px 30px; font-size: 12.5px; }
.k-btn[disabled] { opacity: .45; pointer-events: none; }

.k-badge {
  display: inline-flex; align-items: center; gap: 5px; font-family: var(--f-mono);
  font-size: 10.5px; font-weight: 500; letter-spacing: .06em; padding: 4px 9px;
  border-radius: var(--r-xs); background: rgba(143, 225, 75, .14);
  color: var(--lime); border: 1px solid rgba(143, 225, 75, .35);
}
.k-badge--solid { background: var(--lime); color: var(--on-lime); border-color: var(--lime); }
.k-badge--danger { background: rgba(255, 93, 77, .14); color: var(--danger); border-color: rgba(255, 93, 77, .4); }

/* etiquetas de estado (oferta / top / agotado): misma voz mono que los botones */
.stk {
  font-family: var(--f-mono); font-weight: 700; font-size: 10.5px; line-height: 1;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--on-lime); background: var(--lime); padding: 5px 9px;
  border-radius: var(--r-xs); display: inline-block;
  box-shadow: 0 3px 10px rgba(0, 0, 0, .4);
}
.stk--ink { background: var(--surface-3); color: var(--lime); border: 1px solid rgba(143, 225, 75, .4); }
.stk--danger { background: var(--danger); color: #fff; }

.k-input, .k-select, .k-textarea {
  font-family: var(--f-body); font-size: 14px; color: var(--ink); width: 100%;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r-sm);
  padding: 12px 14px; transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.k-input::placeholder, .k-textarea::placeholder { color: var(--muted); }
.k-input:focus, .k-select:focus, .k-textarea:focus { outline: none; border-color: var(--lime); box-shadow: var(--focus); }
.k-textarea { resize: vertical; min-height: 84px; }
.k-field { display: flex; flex-direction: column; gap: 6px; }
.k-select option { background: var(--surface); color: var(--ink); }

.wrap { max-width: 1300px; margin: 0 auto; padding: 0 clamp(16px, 3.5vw, 44px); }

/* ---------- ticker de aviso (datos reales) ---------- */
.annc {
  background: #060906; color: var(--lime); overflow: hidden; white-space: nowrap;
  font-family: var(--f-mono); font-size: 11.5px; font-weight: 500;
  letter-spacing: .15em; text-transform: uppercase;
  padding: 10px 0; border-bottom: 1px solid var(--line); position: relative; z-index: 3;
}
.annc__track { display: inline-flex; gap: 64px; animation: marquee 80s linear infinite; padding-left: 24px; }
.annc__track span::after { content: '✦'; margin-left: 64px; color: var(--muted); }
/* al posar el cursor se detiene, para poder leerla con calma */
.annc:hover .annc__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- header ---------- */
.hdr {
  position: sticky; top: 0; z-index: 100;
  background: rgba(11, 15, 11, .8); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.hdr__in { display: flex; align-items: center; gap: clamp(12px, 2vw, 28px); padding: 12px 0; }
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand img { height: 46px; width: auto; filter: drop-shadow(0 2px 8px rgba(0, 0, 0, .5)); transition: transform var(--dur) var(--pop); }
.brand:hover img { transform: rotate(-5deg) scale(1.08); }
.hdr__search { flex: 1; max-width: 440px; position: relative; }
.hdr__search .k-input { padding: 10px 14px 10px 38px; border-radius: var(--r-pill); background: var(--surface); border-color: var(--line); }
.hdr__search svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--muted); pointer-events: none; }
.hdr__spacer { flex: 1; }
.hdr__acts { display: flex; align-items: center; gap: 4px; }
.icon-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: var(--r-pill); color: var(--ink-2); transition: background var(--dur) var(--ease), color var(--dur) var(--ease), transform var(--dur) var(--pop); }
.icon-btn:hover { background: var(--surface-2); color: var(--lime); transform: translateY(-1px); }
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn__n {
  position: absolute; top: 1px; right: 1px; min-width: 17px; height: 17px; padding: 0 4px;
  border-radius: var(--r-pill); background: var(--lime); color: var(--on-lime);
  font-family: var(--f-mono); font-size: 10px; font-weight: 700; display: flex; align-items: center; justify-content: center;
}
.icon-btn__n:empty { display: none; }

/* ---------- hero ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.hero { position: relative; border-bottom: 1px solid var(--line); overflow: hidden; }
.hero__in {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(20px, 3.5vw, 56px); padding: clamp(14px, 2.5vw, 34px) 0 clamp(20px, 3vw, 40px);
  align-items: center;
}
.hero__brand { max-width: 640px; }
/* índice del catálogo: la izquierda dice QUÉ HAY (el arte ya dice quiénes son) */
.hcat { list-style: none; display: grid; }
.hcat a {
  display: flex; align-items: baseline; gap: 14px; padding: 8px 0 5px;
  border-bottom: 1px dashed var(--line);
  font-family: var(--f-display); font-weight: 400;
  font-size: clamp(20px, 2.6vw, 33px); line-height: 1.06; letter-spacing: .02em;
  color: var(--ink); text-shadow: 2px 2px 0 rgba(0, 0, 0, .5);
  transition: color var(--dur) var(--ease), transform var(--dur) var(--pop), padding-left var(--dur) var(--ease);
}
.hcat li:last-child a { border-bottom: 0; }
.hcat .idx { font-family: var(--f-mono); font-size: 10px; color: var(--muted); width: 20px; flex-shrink: 0; text-shadow: none; }
.hcat .cnt { margin-left: auto; font-family: var(--f-mono); font-size: 11px; color: var(--muted); text-shadow: none; }
.hcat a:hover { color: var(--lime); transform: translateX(10px); }
.hcat a:hover .cnt { color: var(--lime); }
.hero__info { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 0; }
.ichip {
  display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--ink-2);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-pill);
  padding: 7px 13px;
}
.ichip svg { width: 13px; height: 13px; color: var(--lime); flex-shrink: 0; }
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }
.hero__art { position: relative; display: flex; align-items: center; justify-content: center; min-height: 300px; }
.hero__art img {
  max-height: min(58vh, 560px); width: auto; position: relative; z-index: 2;
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, .65)) drop-shadow(0 0 44px rgba(143, 225, 75, .18));
  will-change: transform;
}
.hero__halo {
  position: absolute; inset: 8%; z-index: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(143, 225, 75, .16) 0%, rgba(87, 168, 240, .07) 45%, transparent 68%);
  filter: blur(18px);
}

/* ---------- rail ---------- */
.rail { position: sticky; top: 66px; z-index: 90; background: rgba(11, 15, 11, .85); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.rail__wrap { position: relative; display: flex; align-items: center; }
.rail__in { flex: 1; min-width: 0; display: flex; gap: 8px; overflow-x: auto; padding: 12px 0; scrollbar-width: none; }
.rail__in::-webkit-scrollbar { display: none; }
/* flechas para desktop: sin ellas, con la barra oculta, el mouse no tenia
   forma de desplazar los chips cuando desbordan */
.rail__nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
  width: 32px; height: 32px; border-radius: 50%; display: none;
  align-items: center; justify-content: center;
  background: var(--surface-2); border: 1px solid var(--line-strong); color: var(--ink-2);
  transition: all var(--dur) var(--ease); box-shadow: 0 4px 14px rgba(0, 0, 0, .45);
}
.rail__nav:hover { color: var(--lime); border-color: var(--lime); }
.rail__nav svg { width: 15px; height: 15px; }
.rail__nav--l { left: -8px; }
.rail__nav--r { right: -8px; }
.rail.has-overflow .rail__nav { display: flex; }
.rail.has-overflow .rail__in {
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 30px, #000 calc(100% - 30px), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 30px, #000 calc(100% - 30px), transparent 100%);
}
.chip {
  flex-shrink: 0; font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase;
  padding: 9px 15px; border-radius: var(--r-pill); border: 1px solid var(--line-strong); color: var(--ink-2);
  transition: all var(--dur) var(--ease);
}
.chip:hover { border-color: var(--lime); color: var(--lime); }
.chip.on { background: var(--lime); border-color: var(--lime); color: var(--on-lime); font-weight: 700; }

/* ---------- secciones ---------- */
.sect { padding: clamp(30px, 4.5vw, 60px) 0; }
.sect__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.sect__head h2 { font-family: var(--f-display); font-weight: 400; font-size: clamp(23px, 2.9vw, 38px); letter-spacing: .02em; color: var(--ink); text-shadow: 2px 2px 0 rgba(0, 0, 0, .5); }
.sect__head h2 .hl { color: var(--lime); }
.sect__head .n { font-family: var(--f-mono); font-size: 12px; color: var(--muted); }
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.toolbar .k-select { width: auto; padding: 8px 32px 8px 12px; font-size: 13px; }

/* ---------- grid productos ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(235px, 1fr)); gap: 14px; }
.card {
  /* lo que no esta en pantalla no se pinta (148 tarjetas en la home) */
  content-visibility: auto; contain-intrinsic-size: auto 330px;

  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 14px; display: flex; flex-direction: column; gap: 10px;
  cursor: pointer; transition: transform .25s var(--pop), border-color var(--dur) var(--ease), box-shadow .25s var(--ease);
  will-change: transform;
}
.card:hover { transform: translateY(-5px); border-color: rgba(143, 225, 75, .45); box-shadow: 0 18px 40px rgba(0, 0, 0, .45), 0 0 0 1px rgba(143, 225, 75, .2); }
.card__imgbox {
  position: relative; aspect-ratio: 1; background: #fff; border-radius: var(--r-sm);
  overflow: hidden; display: flex; align-items: center; justify-content: center;
}
.card__imgbox img { width: 100%; height: 100%; object-fit: contain; transition: transform .4s var(--ease); }
.card:hover .card__imgbox img { transform: scale(1.06) rotate(-1deg); }
.card__noimg { color: var(--surface-3); }
.card__tags { position: absolute; top: 9px; left: 9px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; z-index: 2; }
.card__fav {
  position: absolute; top: 7px; right: 7px; z-index: 2; width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center; border-radius: var(--r-pill);
  color: #9aa593; background: rgba(255, 255, 255, .85); opacity: 0;
  transition: opacity var(--dur) var(--ease), color var(--dur) var(--ease), transform var(--dur) var(--pop);
}
.card:hover .card__fav, .card__fav.on { opacity: 1; }
.card__fav:hover { transform: scale(1.15); }
.card__fav.on { color: var(--pink); }
.card__fav svg { width: 17px; height: 17px; }
.card__cat { font-family: var(--f-mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.card__name { font-weight: 600; font-size: 14.5px; line-height: 1.3; min-height: 2.6em; color: var(--ink); }
.card__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; }
.price { display: flex; align-items: baseline; gap: 7px; flex-wrap: wrap; }
.price__now { font-family: var(--f-display); font-weight: 400; font-size: 19px; color: var(--lime); }
.price__now .cur { font-size: .6em; color: var(--muted); margin-right: 2px; font-family: var(--f-mono); }
.price__old { font-size: 12.5px; color: var(--muted); text-decoration: line-through; }
.card__add {
  width: 38px; height: 38px; border-radius: var(--r-pill); border: 1px solid var(--line-strong);
  display: flex; align-items: center; justify-content: center; color: var(--ink-2);
  transition: all var(--dur) var(--pop);
}
.card__add:hover { background: var(--lime); border-color: var(--lime); color: var(--on-lime); transform: scale(1.12) rotate(90deg); }
.card__add svg { width: 16px; height: 16px; }
.card--out .card__imgbox img { filter: grayscale(1); opacity: .5; }

.empty { text-align: center; padding: 70px 20px; color: var(--muted); }
.empty b { display: block; font-family: var(--f-display); font-weight: 400; font-size: 24px; color: var(--ink-2); margin-bottom: 6px; }

/* ---------- ficha producto ---------- */
.pd { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); padding: clamp(24px, 4vw, 56px) 0; }
.pd__imgbox {
  position: relative; aspect-ratio: 1; background: #fff; border-radius: var(--r-lg);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .5);
}
.pd__imgbox img { width: 92%; height: 92%; object-fit: contain; }
.pd__crumb { margin-bottom: 16px; display: flex; gap: 8px; align-items: center; }
.pd__crumb a:hover { color: var(--lime); }
.pd h1 { font-family: var(--f-display); font-weight: 400; font-size: clamp(30px, 3.8vw, 52px); line-height: 1.04; margin-bottom: 14px; color: var(--ink); }
.pd .price { margin-bottom: 6px; }
.pd .price__now { font-size: clamp(28px, 3vw, 40px); }
.pd .price__old { font-size: 15px; }
.pd__desc { color: var(--ink-2); white-space: pre-line; margin: 18px 0 26px; max-width: 56ch; }
.pd__row { display: flex; gap: 12px; align-items: stretch; flex-wrap: wrap; margin-bottom: 12px; }
/* jerarquía de acciones: primaria (carrito, lima) › secundaria (consultar) › terciaria (favorito, ícono) */
.pd__fav { width: 50px; padding: 0; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.pd__fav svg { width: 19px; height: 19px; }
.pd__fav.on { color: var(--pink); border-color: color-mix(in srgb, var(--pink) 45%, transparent); }
.pd__fav.on:hover { color: var(--pink); border-color: var(--pink); }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); border-radius: var(--r-pill); overflow: hidden; background: var(--surface); }
.qty button { width: 44px; align-self: stretch; font-size: 18px; color: var(--ink-2); transition: background var(--dur) var(--ease), color var(--dur) var(--ease); }
.qty button:hover { background: var(--surface-3); color: var(--lime); }
.qty b { min-width: 44px; text-align: center; font-family: var(--f-mono); font-size: 14px; }
.pd__meta { border-top: 1px solid var(--line); padding-top: 16px; margin-top: 24px; display: grid; gap: 8px; color: var(--muted); font-size: 13.5px; }
.pd__meta b { color: var(--ink-2); font-weight: 600; }

/* ---------- drawer / modales ---------- */
.scrim { position: fixed; inset: 0; z-index: 1000; background: rgba(4, 6, 4, .72); backdrop-filter: blur(3px); opacity: 0; pointer-events: none; transition: opacity .22s var(--ease); }
.scrim.open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 1001; width: min(440px, 100vw);
  background: var(--bg-2); border-left: 1px solid var(--line-strong); display: flex; flex-direction: column;
  transform: translateX(102%); transition: transform .3s var(--ease);
}
.drawer.open { transform: none; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.drawer__head h3 { font-family: var(--f-display); font-weight: 400; font-size: 22px; }
.drawer__body { flex: 1; overflow-y: auto; padding: 8px 22px; }
.drawer__foot { border-top: 1px solid var(--line); padding: 16px 22px 20px; display: grid; gap: 10px; }
.cline { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cline__img { width: 64px; height: 64px; flex-shrink: 0; background: #fff; border-radius: var(--r-sm); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.cline__img img { width: 100%; height: 100%; object-fit: contain; }
.cline__mid { flex: 1; min-width: 0; }
.cline__name { font-weight: 600; font-size: 13.5px; line-height: 1.25; }
.cline__unit { color: var(--muted); font-size: 12px; margin: 3px 0 8px; }
.cline .qty { transform: scale(.86); transform-origin: left; }
.cline__right { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; }
.cline__right b { font-family: var(--f-display); font-weight: 400; font-size: 15px; color: var(--lime); }
.cline__rm { color: var(--muted); font-size: 12px; }
.cline__rm:hover { color: var(--danger); }
.totrow { display: flex; justify-content: space-between; font-size: 14px; color: var(--ink-2); }
.totrow--big { font-size: 17px; color: var(--ink); font-weight: 700; }
.totrow--big span:last-child { font-family: var(--f-display); font-weight: 400; color: var(--lime); }
.freeship { font-size: 12.5px; color: var(--lime); background: rgba(143, 225, 75, .1); border: 1px solid rgba(143, 225, 75, .3); border-radius: var(--r-sm); padding: 8px 10px; text-align: center; }

.modal { position: fixed; z-index: 1002; inset: 0; display: flex; align-items: flex-end; justify-content: center; pointer-events: none; }
.modal__card {
  width: min(560px, 100vw); max-height: 92dvh; overflow-y: auto; background: var(--bg-2);
  border: 1px solid var(--line-strong); border-radius: var(--r-lg) var(--r-lg) 0 0; box-shadow: var(--shadow-pop);
  padding: 26px; transform: translateY(103%); transition: transform .3s var(--ease); pointer-events: auto;
}
.modal.open .modal__card { transform: none; }
@media (min-width: 640px) {
  .modal { align-items: center; }
  .modal__card { border-radius: var(--r-lg); transform: translateY(24px); opacity: 0; transition: transform .25s var(--ease), opacity .25s var(--ease); }
  .modal.open .modal__card { transform: none; opacity: 1; }
}
.modal:not(.open) { visibility: hidden; }
.modal h3 { font-family: var(--f-display); font-weight: 400; font-size: 26px; margin-bottom: 4px; }
.modal .sub { color: var(--muted); font-size: 13.5px; margin-bottom: 18px; }
.form-grid { display: grid; gap: 14px; }
.form-grid--2 { grid-template-columns: 1fr 1fr; }
@media (max-width: 520px) { .form-grid--2 { grid-template-columns: 1fr; } }
.opt-row { display: flex; gap: 8px; flex-wrap: wrap; }
.opt {
  flex: 1; min-width: 100px; text-align: center; padding: 12px 10px; border: 1px solid var(--line-strong);
  border-radius: var(--r-sm); font-size: 13.5px; font-weight: 600; color: var(--ink-2);
  background: var(--surface); transition: all var(--dur) var(--ease);
}
.opt:hover { border-color: var(--lime); color: var(--lime); }
.opt.on { background: var(--lime); color: var(--on-lime); border-color: var(--lime); }
.err { color: var(--danger); font-size: 13px; min-height: 1em; }

/* caja de pago digital del checkout: datos + comprobante */
.payinfo {
  display: grid; gap: 9px; padding: 13px 14px;
  background: rgba(143, 225, 75, .07); border: 1px solid rgba(143, 225, 75, .3);
  border-radius: var(--r-sm);
}
.payinfo__dato { font-size: 13.5px; color: var(--ink-2); }
.payinfo__dato b { color: var(--lime); font-family: var(--f-mono); letter-spacing: .04em; }
html[data-theme="light"] .payinfo__dato b { color: var(--lime-deep); }

.done { text-align: center; padding: 10px 4px; }
.done__check { width: 68px; height: 68px; margin: 0 auto 16px; border-radius: 50%; background: var(--lime); color: var(--on-lime); display: flex; align-items: center; justify-content: center; box-shadow: var(--glow-lime); }
.done__check svg { width: 32px; height: 32px; }
.done b.code { font-family: var(--f-mono); background: var(--surface-3); padding: 3px 8px; border-radius: var(--r-xs); color: var(--lime); }

/* ---------- footer: compacto, dos sedes clickeables a Maps ---------- */
.foot { border-top: 1px solid var(--line); margin-top: 44px; background: var(--bg-2); position: relative; }
.foot__in {
  display: flex; align-items: center; gap: clamp(18px, 3vw, 40px);
  padding: clamp(22px, 3vw, 34px) 0; flex-wrap: wrap;
}
.foot__brand { display: flex; align-items: center; gap: 14px; }
.foot__brand img { height: 58px; width: auto; filter: drop-shadow(0 4px 12px rgba(0, 0, 0, .5)); transition: transform var(--dur) var(--pop); }
.foot__brand:hover img { transform: rotate(-4deg) scale(1.05); }
.foot__tag { font-family: var(--f-mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); max-width: 20ch; line-height: 1.6; }
.foot__locs { display: flex; gap: 12px; flex: 1; flex-wrap: wrap; }
.loc {
  flex: 1; min-width: 230px; display: flex; flex-direction: column; gap: 3px;
  padding: 13px 16px; border: 1px solid var(--line); border-radius: var(--r-md);
  background: var(--surface); position: relative;
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--pop), box-shadow var(--dur) var(--ease);
}
.loc:hover { border-color: rgba(143, 225, 75, .5); transform: translateY(-2px); box-shadow: 0 10px 26px rgba(0, 0, 0, .3); }
.loc__dist { font-family: var(--f-display); font-size: 16px; color: var(--lime); letter-spacing: .03em; }
.loc__addr { font-size: 12.5px; color: var(--ink-2); line-height: 1.45; }
.loc__addr small { display: block; font-size: 11px; color: var(--muted); }
.loc__go {
  display: inline-flex; align-items: center; gap: 4px; margin-top: 6px;
  font-family: var(--f-mono); font-size: 10px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
  transition: color var(--dur) var(--ease), gap var(--dur) var(--ease);
}
.loc__go svg { width: 12px; height: 12px; }
.loc:hover .loc__go { color: var(--lime); gap: 7px; }
.foot__cta { display: flex; flex-direction: column; gap: 9px; align-items: flex-end; }
.foot__legal { border-top: 1px solid var(--line); }
.foot__legal-in { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; padding: 16px 0; }
.foot__links { display: flex; gap: 18px; flex-wrap: wrap; }
.foot__links a { font-size: 13px; color: var(--ink-2); }
.foot__links a:hover { color: var(--lime); }
.foot__lr { display: inline-flex; align-items: center; gap: 9px; border: 1px solid var(--line-strong); border-radius: var(--r-sm); padding: 8px 13px; transition: border-color var(--dur) var(--ease); }
.foot__lr:hover { border-color: var(--lime); }
.foot__lr-book { font-size: 20px; }
.foot__lr span:last-child { font-family: var(--f-mono); font-size: 9.5px; line-height: 1.25; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.foot__bar { border-top: 1px solid var(--line); }
/* tres textos repartidos en una sola fila; en móvil se apilan centrados */
.foot__bar-in { display: flex; align-items: center; justify-content: space-between; gap: 10px 20px; flex-wrap: wrap; padding: 12px 0; font-family: var(--f-mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.foot__bar-in span:nth-child(2) { flex: 1; text-align: center; }
.foot__bar-in a { color: var(--ink-2); }
.foot__bar-in a:hover { color: var(--lime); }
@media (max-width: 760px) {
  .foot__bar-in { justify-content: center; text-align: center; }
  .foot__bar-in span:nth-child(2) { flex: none; }
}
@media (max-width: 760px) {
  .foot__in { flex-direction: column; align-items: stretch; }
  .foot__brand { justify-content: center; }
  .foot__cta { flex-direction: row; align-items: center; justify-content: center; flex-wrap: wrap; }
}

/* ---------- age gate ---------- */
.gate[hidden], .wa-fab[hidden], .player[hidden] { display: none !important; }
.gate {
  position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center;
  padding: 24px; background:
    radial-gradient(60vmax 60vmax at 20% -10%, rgba(63, 143, 29, .25), transparent 60%),
    radial-gradient(50vmax 50vmax at 110% 110%, rgba(87, 168, 240, .12), transparent 60%),
    #080c08;
}
.gate__card { max-width: 500px; text-align: center; }
.gate__logo { height: 170px; width: auto; margin: 0 auto 20px; filter: drop-shadow(0 16px 40px rgba(0, 0, 0, .6)); }
.gate h2 { font-family: var(--f-display); font-weight: 400; font-size: clamp(32px, 5vw, 46px); line-height: 1.02; margin-bottom: 12px; color: var(--lime); }
.gate p { color: var(--ink-2); margin-bottom: 26px; }
.gate__row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- toast ---------- */
.toast {
  position: fixed; z-index: 1500; left: 50%; bottom: 86px; transform: translate(-50%, 80px);
  background: var(--ink); color: var(--bg); padding: 12px 20px; border-radius: var(--r-pill);
  font-size: 14px; font-weight: 700; opacity: 0; transition: all .25s var(--pop); pointer-events: none;
  display: flex; gap: 10px; align-items: center; max-width: min(90vw, 420px);
  box-shadow: 0 10px 34px rgba(0, 0, 0, .5);
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }
.toast svg { width: 16px; height: 16px; color: var(--lime-deep); flex-shrink: 0; }

/* ---------- WhatsApp flotante ---------- */
.wa-fab {
  position: fixed; right: 18px; bottom: 18px; z-index: 900; width: 56px; height: 56px;
  border-radius: 50%; background: var(--wa-deep); color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 30px rgba(18, 140, 75, .45); transition: transform var(--dur) var(--pop);
}
.wa-fab:hover { transform: scale(1.1) rotate(8deg); }
.wa-fab svg { width: 28px; height: 28px; }

/* ---------- reproductor ---------- */
.player {
  position: fixed; left: 16px; bottom: 16px; z-index: 950;
  display: flex; align-items: center; gap: 10px;
  background: rgba(14, 19, 14, .92); backdrop-filter: blur(14px);
  border: 1px solid var(--line-strong); border-radius: var(--r-pill);
  padding: 8px 14px 8px 8px; max-width: min(92vw, 420px);
  box-shadow: 0 14px 40px rgba(0, 0, 0, .55);
  transition: padding .28s var(--pop), gap .28s var(--pop), box-shadow .28s var(--ease);
}
/* contraído: queda SOLO el disco girando; posa el cursor 2 s (o tócalo) y se abre */
.player.mini { gap: 0; padding: 4px; }
.player.mini .player__meta, .player.mini .player__ctl, .player.mini .player__min { display: none; }
.player.mini .player__disc { width: 50px; height: 50px; }
.player__min {
  width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; color: var(--muted);
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.player__min:hover { color: var(--lime); background: var(--surface-2); }
.player__min svg { width: 14px; height: 14px; }
.player__disc {
  width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0; position: relative; cursor: pointer;
  background: conic-gradient(from 0deg, #101510 0 40%, #1d271d 0 45%, #101510 0 70%, #202b20 0 78%, #101510 0);
  border: 2px solid var(--surface-3);
  display: flex; align-items: center; justify-content: center;
}
.player__disc::after { content: ''; width: 13px; height: 13px; border-radius: 50%; background: var(--lime); }
.player.playing .player__disc { animation: spin 3.2s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.player__meta { min-width: 0; flex: 1; line-height: 1.25; cursor: pointer; }
.player__title { font-weight: 700; font-size: 13px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player__artist { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player__ctl { display: flex; align-items: center; gap: 2px; }
.player__ctl button { width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--ink-2); transition: all var(--dur) var(--ease); }
.player__ctl button:hover { color: var(--lime); background: var(--surface-2); }
.player__ctl svg { width: 16px; height: 16px; }
.player__ctl .big { width: 40px; height: 40px; background: var(--lime); color: var(--on-lime); }
.player__ctl .big:hover { background: #a4ef62; color: var(--on-lime); box-shadow: var(--glow-lime); }
.player__ctl .big svg { width: 18px; height: 18px; }

.plist {
  position: fixed; left: 16px; bottom: 84px; z-index: 951; width: min(92vw, 360px);
  background: var(--bg-2); border: 1px solid var(--line-strong); border-radius: var(--r-md);
  box-shadow: var(--shadow-pop); overflow: hidden;
  transform: translateY(12px); opacity: 0; pointer-events: none; transition: all .22s var(--pop);
}
.plist.open { transform: none; opacity: 1; pointer-events: auto; }
.plist__head { padding: 13px 16px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: baseline; }
.plist__head b { font-family: var(--f-display); font-weight: 400; font-size: 16px; }
.plist__head span { font-family: var(--f-mono); font-size: 10px; color: var(--muted); letter-spacing: .1em; }
.plist__body { max-height: 300px; overflow-y: auto; }
.ptrack { display: flex; align-items: center; gap: 11px; width: 100%; text-align: left; padding: 11px 16px; border-bottom: 1px solid var(--line); transition: background var(--dur) var(--ease); }
.ptrack:hover { background: var(--surface); }
.ptrack.on { background: rgba(143, 225, 75, .08); }
.ptrack__n { font-family: var(--f-mono); font-size: 10px; color: var(--muted); width: 16px; flex-shrink: 0; }
.ptrack.on .ptrack__n { color: var(--lime); }
.ptrack__meta { min-width: 0; flex: 1; }
.ptrack__t { font-size: 13px; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ptrack__a { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ptrack__a a:hover { color: var(--lime); text-decoration: underline; }
.plist__foot { padding: 10px 16px; font-size: 11px; color: var(--muted); border-top: 1px solid var(--line); }

/* ---------- animaciones de entrada (GSAP toma el control si está) ---------- */
.gs-reveal { opacity: 0; transform: translateY(26px); }
.no-gsap .gs-reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .gs-reveal { opacity: 1 !important; transform: none !important; }
}

/* ============================================================================
   MODO CLARO — el oscuro es el look por defecto; esto lo invierte cuando el
   usuario toca el sol/luna del header (html[data-theme="light"], persistido).
   El arte, la cinta negra, el age gate y el vinilo del reproductor se quedan
   oscuros a propósito: son la marca.
   ============================================================================ */
html[data-theme="light"] {
  --bg: #f3f5ed; --bg-2: #eaeee0;
  --surface: #ffffff; --surface-2: #eef1e4; --surface-3: #dde3ce;
  --line: rgba(19, 26, 15, .14); --line-strong: rgba(19, 26, 15, .3);
  --ink: #161b11; --ink-2: #3b432f; --muted: #6d7660;
  --glow-lime: 0 0 24px rgba(111, 199, 45, .35);
  --shadow-pop: 0 24px 70px rgba(19, 26, 15, .18), 0 6px 18px rgba(19, 26, 15, .1);
}
html[data-theme="light"] body::after { opacity: .035; }
html[data-theme="light"] .smoke--1 { opacity: .1; }
html[data-theme="light"] .smoke--2 { opacity: .08; }
html[data-theme="light"] .smoke--3 { opacity: .06; }
html[data-theme="light"] .hdr,
html[data-theme="light"] .rail { background: rgba(243, 245, 237, .85); }
html[data-theme="light"] .hcat a,
html[data-theme="light"] .sect__head h2 { text-shadow: 1px 2px 0 rgba(19, 26, 15, .12); }
html[data-theme="light"] .price__now,
html[data-theme="light"] .cline__right b,
html[data-theme="light"] .totrow--big span:last-child,
html[data-theme="light"] .freeship,
html[data-theme="light"] .k-badge { color: var(--lime-deep); }
html[data-theme="light"] .hcat a:hover,
html[data-theme="light"] .hcat a:hover .cnt,
html[data-theme="light"] .chip:hover,
html[data-theme="light"] .icon-btn:hover,
html[data-theme="light"] .qty button:hover,
html[data-theme="light"] .k-btn--outline:hover,
html[data-theme="light"] .foot a:hover,
html[data-theme="light"] .ptrack__a a:hover { color: var(--lime-deep); }
html[data-theme="light"] .k-btn--outline { background: rgba(255, 255, 255, .65); }
html[data-theme="light"] .k-btn--outline:hover { border-color: var(--lime-deep); }
html[data-theme="light"] .card__imgbox { border: 1px solid var(--line); }
html[data-theme="light"] .card:hover { box-shadow: 0 18px 40px rgba(19, 26, 15, .14), 0 0 0 1px rgba(111, 199, 45, .35); }
html[data-theme="light"] .player {
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 14px 40px rgba(19, 26, 15, .18);
}
html[data-theme="light"] .loc__dist { color: var(--lime-deep); }
html[data-theme="light"] .plist .ptrack.on { background: rgba(111, 199, 45, .12); }
html[data-theme="light"] .plist .ptrack.on .ptrack__n { color: var(--lime-deep); }
html[data-theme="light"] .toast svg { color: var(--lime); }

/* ---------- responsive ---------- */
@media (max-width: 940px) {
  .hero__in { grid-template-columns: 1fr; }
  .hero__art { order: -1; min-height: 0; }
  .hero__art img { max-height: 300px; }
  .pd { grid-template-columns: 1fr; }
  .foot__grid { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 640px) {
  /* las flechas del rail causaban scroll horizontal (sobresalen del wrap) y en
     táctil sobran: el dedo ya desliza los chips */
  .rail.has-overflow .rail__nav { display: none; }
  .rail.has-overflow .rail__in { -webkit-mask-image: none; mask-image: none; }
  .rail__in { padding-left: 2px; padding-right: 2px; }
  .chip { padding: 11px 16px; }            /* target táctil cómodo (≥44px) */
  .hdr__search { position: fixed; left: 0; right: 0; top: 0; padding: 12px 16px; background: var(--bg); border-bottom: 1px solid var(--line); max-width: none; transform: translateY(-130%); visibility: hidden; transition: transform .22s var(--ease), visibility .22s; z-index: 110; }
  .hdr__search.open { transform: none; visibility: visible; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .card { padding: 10px; }
  .card__name { font-size: 13px; }
  .price__now { font-size: 17px; }
  .player { left: 10px; bottom: 10px; max-width: calc(100vw - 86px); }
  .plist { left: 10px; bottom: 74px; }
  .wa-fab { right: 12px; bottom: 12px; }
  .toast { bottom: 78px; }
}

/* `hidden` por encima de cualquier display del sistema: si no, un panel "oculto"
   sigue tapando los clics del botón que lo abre (pasó con el chat y con el age gate) */
[hidden] { display: none !important; }

/* ---------- chat en vivo ----------
   Vive encima del WhatsApp flotante (que se queda abajo del todo): son dos
   caminos distintos y el visitante elige, no compiten por el mismo botón. */
.chatw__fab {
  position: fixed; right: 18px; bottom: 84px; z-index: 900; width: 56px; height: 56px;
  border-radius: 50%; border: 1px solid var(--line-strong); cursor: pointer; overflow: hidden;
  background: var(--acc); color: var(--on-acc); display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .45); transition: transform var(--dur) var(--pop);
}
.chatw__fab:hover { transform: scale(1.08); }
.chatw__fab.open { transform: scale(.9); opacity: .7; }
.chatw__fab svg { width: 26px; height: 26px; }
.chatw__fab img { width: 100%; height: 100%; object-fit: cover; }
.chatw__n {
  position: absolute; top: -2px; right: -2px; min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: var(--r-pill); background: #c0392b; color: #fff; font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; border: 2px solid var(--bg);
}
.chatw__panel {
  position: fixed; right: 18px; bottom: 84px; z-index: 940; width: min(360px, calc(100vw - 36px));
  height: min(520px, calc(100vh - 130px)); display: flex; flex-direction: column; overflow: hidden;
  background: rgba(14, 19, 14, .97); backdrop-filter: blur(16px);
  border: 1px solid var(--line-strong); border-radius: 16px; box-shadow: 0 24px 60px rgba(0, 0, 0, .6);
  animation: cwIn .22s var(--pop);
}
@keyframes cwIn { from { opacity: 0; transform: translateY(14px) scale(.97); } }
.chatw__head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.chatw__av { width: 36px; height: 36px; border-radius: 50%; overflow: hidden; background: var(--acc-soft); display: grid; place-items: center; font-size: 18px; flex: none; }
.chatw__av img { width: 100%; height: 100%; object-fit: cover; }
.chatw__ttl { flex: 1; min-width: 0; line-height: 1.25; }
.chatw__ttl b { display: block; font-size: 14.5px; }
.chatw__ttl small { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.chatw__ttl small.on { color: var(--acc-soft); }
.chatw__ttl small.on::before { content: '● '; color: #4ade80; }
.chatw__x { background: none; border: 0; color: var(--muted); font-size: 16px; cursor: pointer; padding: 4px 6px; }
.chatw__x:hover { color: var(--ink); }
.chatw__body { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 9px; }
.cwm { display: flex; flex-direction: column; max-width: 82%; }
.cwm--yo { align-self: flex-end; align-items: flex-end; }
.cwm--ellos { align-self: flex-start; }
.cwm__b { padding: 9px 13px; border-radius: 14px; font-size: 14px; line-height: 1.45; word-break: break-word; }
.cwm--yo .cwm__b { background: var(--acc); color: var(--on-acc); border-bottom-right-radius: 4px; }
.cwm--ellos .cwm__b { background: rgba(255, 255, 255, .09); border-bottom-left-radius: 4px; }
.cwm small { font-family: var(--f-mono); font-size: 10px; color: var(--muted); margin-top: 3px; }
.chatw__form { padding: 10px 12px 12px; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.chatw__ident { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.chatw__send { display: flex; gap: 8px; }
.chatw__form input {
  flex: 1; min-width: 0; padding: 10px 12px; border-radius: var(--r-pill); font: inherit; font-size: 14px;
  background: rgba(255, 255, 255, .07); border: 1px solid var(--line); color: var(--ink);
}
.chatw__form input:focus { outline: none; border-color: var(--acc); }
.chatw__form button {
  flex: none; width: 42px; height: 42px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--acc); color: var(--on-acc); display: grid; place-items: center;
}
.chatw__form button:hover { background: var(--acc-strong); }
.chatw__form button svg { width: 19px; height: 19px; }
.chatw__hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
@media (max-width: 480px) {
  .chatw__panel { right: 10px; left: 10px; width: auto; bottom: 78px; height: min(70vh, calc(100vh - 120px)); }
  .chatw__fab { right: 14px; bottom: 78px; }
  .chatw__ident { grid-template-columns: 1fr; }
}


/* ---------- títulos cinéticos ---------- */
.kin { display: inline-block; font-style: normal; will-change: transform; }
@media (prefers-reduced-motion: reduce) { .kin { opacity: 1 !important; transform: none !important; } }
