/* Fuentes alojadas en la propia web (sin Google). Licencia: SIL Open Font License, ver fonts/ */
@font-face {
  font-family: 'Unbounded';
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url('../fonts/unbounded.woff2') format('woff2');
}
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/onest.woff2') format('woff2');
}

/* =========================================================
   TapKora · web informativa
   Paleta: lienzo lila grisáceo, ciruela, granada y carbón
   ========================================================= */

:root {
  color-scheme: light;
  --on-ink: #FFFFFF;
  --banda: #5E4B8B;
  --pie: #1C1A1F;
  --anillos: rgba(94, 75, 139, .08);
  --borde-suave: rgba(28, 26, 31, .18);
  --lienzo: #F2F0F5;
  --papel: #FFFFFF;
  --carbon: #1C1A1F;
  --gris: #5C5763;
  --linea: #DCD6E4;
  --ciruela: #5E4B8B;
  --lila: #E6E0F0;
  --granada: #C2414B;
  --granada-suave: #E58A91;
  --repisa: #CFC6DC;
  --wa: #25D366;
  --wa-ink: #0B2A18;

  --display: 'Unbounded', system-ui, sans-serif;
  --texto: 'Onest', system-ui, sans-serif;

  --r-xl: 32px;
  --r-md: 14px;
  --r-pill: 999px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --sombra: 0 18px 40px -18px rgba(46, 30, 80, .28);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  background: var(--lienzo);
  color: var(--carbon);
  font-family: var(--texto);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

svg { display: block; }
[hidden] { display: none !important; }
button, input, textarea { font: inherit; color: inherit; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -.02em; }

.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }

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

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--carbon); color: var(--on-ink); padding: 8px 14px; border-radius: 8px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 26px;
  border: 1.5px solid transparent; border-radius: var(--r-pill);
  font-weight: 600; font-size: 16px; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .2s var(--ease), background-color .2s, border-color .2s, color .2s;
}
.btn:active { transform: scale(.97); }
.btn-sm { height: 42px; padding: 0 18px; font-size: 15px; }
.btn-primary { background: var(--carbon); color: var(--on-ink); }
.btn-primary:hover { background: var(--ciruela); }
.btn-ghost { background: transparent; border-color: var(--carbon); }
.btn-ghost:hover { background: var(--carbon); color: var(--on-ink); }
.btn-wa { background: var(--wa); color: var(--wa-ink); }
.btn-wa:hover { background: #1FBE5B; }
.wa-ico { width: 20px; height: 20px; flex: none; }

.icon-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 12px; border: 0; border-radius: var(--r-pill);
  background: none; font-weight: 500; font-size: 15px; cursor: pointer;
  transition: background-color .2s;
}
.icon-btn:hover { background: var(--lila); }
.icon-btn svg { width: 22px; height: 22px; flex: none; }

/* ---------- Cabecera ---------- */
.utility { display: flex; justify-content: space-between; align-items: center; padding-block: 12px; }
.brandmark { display: block; padding: 4px; border-radius: 10px; }
.brandmark img { display: block; width: auto; height: 44px; transition: transform .3s var(--ease), filter .3s; }
.brandmark:hover img { transform: translateY(-2px) scale(1.04); }
:root[data-theme="dark"] .brandmark img { filter: brightness(1.35) saturate(1.1) drop-shadow(0 0 10px rgba(150, 90, 255, .35)); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .brandmark img { filter: brightness(1.35) saturate(1.1) drop-shadow(0 0 10px rgba(150, 90, 255, .35)); }
}
.utility-actions { display: flex; align-items: center; gap: 4px; }
.utility-actions .btn-wa { margin-left: 8px; }

.lang { position: relative; }
.lang-btn svg { width: 16px; height: 16px; }
.lang-current { font-weight: 600; }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 30;
  min-width: 150px; padding: 6px;
  background: var(--papel); border: 1px solid var(--linea); border-radius: var(--r-md);
  box-shadow: var(--sombra);
}
.lang-menu button { display: block; width: 100%; padding: 9px 12px; border: 0; border-radius: 9px; background: none; text-align: left; cursor: pointer; }
.lang-menu button:hover, .lang-menu button[aria-current="true"] { background: var(--lila); }

.wordmark {
  display: flex; justify-content: center;
  font-family: var(--display); font-weight: 800;
  font-size: clamp(46px, 9vw, 112px); line-height: .9; letter-spacing: -.035em;
  text-decoration: none; color: var(--carbon);
}
.wordmark span {
  display: inline-block;
  animation: rise .9s var(--ease) both;
  animation-delay: calc(var(--i) * 70ms);
  transition: transform .35s var(--ease), color .35s;
}
.wordmark:hover span:nth-child(odd) { transform: translateY(-6px); }
.wordmark:hover span:nth-child(even) { transform: translateY(4px); color: var(--ciruela); }
.slogan {
  margin: 16px 0 0; padding-bottom: 22px; text-align: center;
  font-weight: 500; font-size: clamp(16px, 1.7vw, 21px); letter-spacing: .02em; color: var(--gris);
  animation: rise .9s var(--ease) .55s both;
}

/* ---------- Navegación ---------- */
.nav-sentinel { height: 1px; }
.mainnav {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--lienzo) 86%, transparent);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-block: 1px solid var(--linea);
}
.mainnav-inner { display: flex; align-items: center; gap: 8px; height: 64px; }
.menu-btn { display: none; }
.mini-brand {
  max-width: 0; overflow: hidden; opacity: 0; white-space: nowrap;
  font-family: var(--display); font-weight: 800; font-size: 19px; letter-spacing: -.03em; text-decoration: none;
  transition: max-width .45s var(--ease), opacity .3s, margin .45s var(--ease);
}
body.nav-stuck .mini-brand { max-width: 140px; opacity: 1; margin-right: 10px; }
.navlinks { display: flex; gap: 2px; margin: 0; padding: 0; list-style: none; }
.navlinks a {
  display: block; padding: 10px 14px; border-radius: var(--r-pill);
  font-weight: 500; font-size: 15px; text-decoration: none;
  transition: background-color .2s, color .2s;
}
.navlinks a:hover { background: var(--lila); }
.navlinks a.is-active { color: var(--ciruela); }
.nav-contact { margin-left: auto; }

/* ---------- Inicio ---------- */
.hero {
  display: grid; grid-template-columns: 1.05fr 1fr; align-items: center;
  gap: clamp(32px, 5vw, 72px);
  padding-block: clamp(20px, 3vw, 40px) clamp(56px, 7vw, 96px);
}
.hero h1 { margin: 0 0 18px; font-weight: 700; font-size: clamp(31px, 3.4vw, 48px); line-height: 1.05; max-width: 14ch; }
.lead { max-width: 46ch; margin: 0 0 26px; font-size: 18px; color: var(--gris); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 12px; }
.cta-note { margin: 0 0 26px; font-size: 14px; color: var(--gris); }
.how-cta { margin-top: 36px; }

.perks { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 0; padding: 0; list-style: none; font-size: 15px; color: var(--gris); }
.perks li { display: flex; align-items: center; gap: 8px; }
.perks svg { width: 16px; height: 16px; color: var(--ciruela); }

/* Escenario de la tarjeta */
.stage {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; place-items: center;
  aspect-ratio: 1 / 1;
  border-radius: var(--r-xl);
  background: repeating-radial-gradient(circle at 50% 50%, transparent 0 46px, var(--anillos) 46px 47px), var(--lila);
  animation: stageIn 1s var(--ease) .2s both;
}
.card-wrap { position: relative; z-index: 1; width: min(230px, 48%); perspective: 1000px; animation: cardIn 1.1s var(--ease) .45s both; }
.card {
  --card-r: 3.4% / 2.24%;
  position: relative; overflow: hidden; display: block;
  width: 100%; aspect-ratio: 208 / 312; padding: 0;
  border: 0; border-radius: var(--card-r); cursor: pointer;
  background: var(--art) center / 100% 100% no-repeat;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .6s var(--ease);
  box-shadow: 0 40px 60px -30px rgba(40, 25, 70, .55), 0 10px 22px -12px rgba(40, 25, 70, .35);
}
.card.is-tilting { transition: transform .1s linear; }
.card:focus-visible { outline-offset: 6px; border-radius: var(--card-r); }
.card[data-color="negro"] { --art: url(../assets/productos/soporte-negro.png); }
.card[data-color="blanco"] { --art: url(../assets/productos/soporte-blanco.png); }
:root[data-theme="dark"] .card { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1), 0 40px 60px -30px rgba(0, 0, 0, .85), 0 0 60px -20px rgba(166, 147, 219, .35); }

.card-shine {
  position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 30%), rgba(255, 255, 255, .28), transparent 45%);
  mix-blend-mode: soft-light; opacity: 0; transition: opacity .3s;
}
.stage:hover .card-shine { opacity: 1; }
.card-foot { display: none; }

.ripples, .burst { position: absolute; inset: 0; pointer-events: none; }
.ripples { z-index: 0; }
.burst { z-index: 2; }
.ripple {
  position: absolute; left: 50%; top: 50%;
  width: 220px; height: 220px; margin: -110px 0 0 -110px;
  border: 2px solid var(--ciruela); border-radius: 50%; opacity: 0;
  animation: ripple 1.3s var(--ease) forwards;
  animation-delay: calc(var(--i) * 170ms);
}
.burst-star {
  position: absolute; left: 50%; top: 50%;
  width: 34px; height: 34px; margin: -17px 0 0 -17px;
  color: var(--granada); opacity: 0;
  filter: drop-shadow(0 6px 10px rgba(194, 65, 75, .35));
  animation: starPop 1.5s var(--ease) forwards;
  animation-delay: calc(120ms + var(--i) * 90ms);
}
.burst-star svg { width: 100%; height: 100%; }
.stage-hint { position: absolute; left: 0; right: 0; bottom: 18px; z-index: 2; margin: 0; text-align: center; font-size: 14px; color: var(--gris); }

/* ---------- Títulos de sección ---------- */
.how h2, .products h2, .about h2, .faq h2, .contact h2 { margin: 0 0 12px; font-weight: 700; font-size: clamp(30px, 4vw, 48px); line-height: 1.08; }
.section-lead { max-width: 46ch; margin: 0 0 40px; font-size: 18px; color: var(--gris); }

/* ---------- Cómo funciona ---------- */
.how { padding-block: clamp(64px, 9vw, 120px); background: var(--banda); color: #F1EDF8; }
.how .section-lead { color: inherit; opacity: .85; }
.how-grid { display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: clamp(40px, 6vw, 96px); }
.steps { display: grid; gap: 30px; margin: 0; padding: 0; list-style: none; position: relative; }
.steps::before { content: ""; position: absolute; top: 30px; bottom: 30px; left: 29px; width: 1px; background: rgba(255, 255, 255, .3); }
.step { display: grid; grid-template-columns: 60px 1fr; gap: 22px; align-items: start; }
.step-n {
  position: relative; display: grid; place-items: center;
  width: 60px; height: 60px;
  border: 1.5px solid rgba(255, 255, 255, .5); border-radius: 50%;
  background: var(--banda);
  font-family: var(--display); font-weight: 700; font-size: 22px;
}
.step:last-child .step-n { background: var(--granada); border-color: var(--granada); }
.step h3 { margin: 12px 0 6px; font-weight: 600; font-size: 21px; }
.step p { max-width: 40ch; margin: 0; opacity: .85; }

.how-media { display: grid; justify-items: center; gap: 18px; }
.phone {
  position: relative; margin: 0;
  width: min(320px, 78vw); aspect-ratio: 9 / 16;
  padding: 10px; border-radius: 46px;
  background: #121015;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .12), 0 50px 80px -40px rgba(0, 0, 0, .7);
}
.phone video { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 37px; background: #000; }
.video-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.video-list button {
  height: 40px; padding: 0 16px; border: 1.5px solid rgba(255, 255, 255, .35); border-radius: var(--r-pill);
  background: none; color: inherit; font-weight: 500; font-size: 15px; cursor: pointer;
}
.video-list button[aria-pressed="true"] { background: #fff; color: var(--banda); border-color: #fff; }

/* ---------- Productos: sobre el mostrador ---------- */
.products { padding-block: clamp(64px, 9vw, 120px) clamp(48px, 6vw, 80px); }
.products-head { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 8px 32px; margin-bottom: 36px; }
.products-head h2 { grid-column: 1 / -1; }
.products-head .section-lead { margin: 0; }

.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatch {
  position: relative; display: flex; align-items: center; gap: 10px;
  padding: 10px 20px 10px 12px;
  border: 1.5px solid var(--linea); border-radius: var(--r-pill); background: var(--papel);
  font-weight: 500; cursor: pointer; transition: border-color .2s, box-shadow .2s;
}
.swatch:hover { border-color: var(--ciruela); }
.swatch input { position: absolute; opacity: 0; pointer-events: none; }
.swatch:has(input:checked) { border-color: var(--carbon); box-shadow: 0 0 0 3px var(--lila); }
.swatch:has(input:focus-visible) { outline: 2px solid var(--ciruela); outline-offset: 3px; }
.swatch-dot { width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--borde-suave); }
.swatch-dot--negro { background: #1C1A1F; }
.swatch-dot--blanco { background: #FCFBFD; }

.counter {
  display: grid; grid-template-columns: repeat(2, 1fr);
  border-radius: var(--r-xl); overflow: hidden;
  background: var(--papel);
}
.item { display: grid; grid-template-rows: auto auto 1fr auto; padding: 0 0 30px; }
.item-stage {
  display: grid; place-items: end center;
  height: 340px; padding-top: 40px;
  background: var(--lila);
  border-bottom: 14px solid var(--repisa);
}
.item h3, .item p, .item-link { margin-inline: clamp(20px, 2.4vw, 32px); }
.item h3 { margin-top: 26px; margin-bottom: 8px; font-weight: 600; font-size: 22px; }
.item p { margin-top: 0; margin-bottom: 18px; max-width: 34ch; color: var(--gris); }
.item-link {
  justify-self: start; font-weight: 600; color: var(--ciruela);
  text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px;
}
.item-link:hover { color: var(--granada); }
.item + .item { border-left: 1px solid var(--linea); }

.art {
  position: relative; display: block; isolation: isolate;
  background: var(--art) center / 100% 100% no-repeat;
  box-shadow: 0 26px 30px -20px rgba(40, 25, 70, .55);
  transition: transform .5s var(--ease);
}
.item:hover .art { transform: translateY(-6px); }
.art--tarjeta { width: 150px; aspect-ratio: 208 / 312; border-radius: 3.4% / 2.24%; margin-bottom: 2px; transform: rotate(-4deg); }
.item:hover .art--tarjeta { transform: rotate(-4deg) translateY(-6px); }
.art--soporte { width: 172px; aspect-ratio: 208 / 312; border-radius: 3.4% / 2.24%; margin-bottom: 26px; }
.art--adhesiva { width: 190px; aspect-ratio: 1; border-radius: 7.9%; margin-bottom: 2px; }
.art-foot {
  position: absolute; left: -6%; right: -6%; bottom: -26px; height: 30px; z-index: -1;
  border-radius: 6px;
  background: linear-gradient(180deg, #E4E3E8 0%, #B7B6BF 55%, #8F8E98 100%);
  transform: perspective(200px) rotateX(55deg); transform-origin: top center;
}
.counter[data-color="negro"] .art--tarjeta, .counter[data-color="negro"] .art--soporte { --art: url(../assets/productos/soporte-negro.png); }
.counter[data-color="blanco"] .art--tarjeta, .counter[data-color="blanco"] .art--soporte { --art: url(../assets/productos/soporte-blanco.png); }
.counter[data-color="negro"] .art--adhesiva { --art: url(../assets/productos/adhesiva-negro.png); }
.counter[data-color="blanco"] .art--adhesiva { --art: url(../assets/productos/adhesiva-blanco.png); }
.counter.is-swapping .art { animation: flip .5s var(--ease); }

.for-who { max-width: 70ch; margin: 28px 0 0; font-size: 17px; color: var(--gris); }
.for-who span:first-child { font-weight: 600; color: var(--carbon); }

/* ---------- Quiénes somos, preguntas, contacto ---------- */
.about, .faq, .contact { display: grid; grid-template-columns: 1fr 1.4fr; align-items: start; gap: clamp(24px, 5vw, 72px); }
.about { padding-block: clamp(48px, 7vw, 96px); border-top: 1px solid var(--linea); }
.about-body p { max-width: 58ch; margin: 0 0 16px; font-size: 19px; line-height: 1.6; color: var(--gris); }
.about-body p:first-child { font-size: 22px; line-height: 1.5; color: var(--carbon); }

.faq { padding-block: 0 clamp(64px, 9vw, 120px); }
.faq-list details { border-top: 1px solid var(--linea); }
.faq-list details:last-child { border-bottom: 1px solid var(--linea); }
.faq-list summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 22px 0; list-style: none; cursor: pointer; font-weight: 600; font-size: 18px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: ""; flex: none; width: 10px; height: 10px; margin-right: 6px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: translateY(-3px) rotate(45deg); transition: transform .3s var(--ease);
}
.faq-list details[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.faq-list summary:hover { color: var(--ciruela); }
.faq-list details p { max-width: 60ch; margin: 0 0 22px; color: var(--gris); }
.faq-list details[open] p { animation: fadeDown .35s var(--ease); }

.contact { padding-block: clamp(56px, 8vw, 104px); border-top: 1px solid var(--linea); }
.contact-intro > p { max-width: 40ch; margin: 0 0 28px; font-size: 18px; color: var(--gris); }
.wa-panel {
  display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; align-items: center;
  padding: 24px; border-radius: var(--r-xl);
  background: var(--carbon); color: var(--on-ink);
}
.wa-panel-ico { width: 46px; height: 46px; color: var(--wa); grid-row: span 2; align-self: start; }
.wa-panel h3 { margin: 0; font-weight: 600; font-size: 20px; }
.wa-panel p { margin: 0; font-size: 15px; opacity: .8; }
.wa-panel .btn { grid-column: 1 / -1; margin-top: 14px; }
.contact-mail { margin: 18px 0 0; color: var(--gris); }
.contact-mail a { color: var(--carbon); font-weight: 600; }

.contact-form {
  display: grid; gap: 18px;
  padding: clamp(24px, 4vw, 40px);
  border-radius: var(--r-xl); background: var(--papel);
}
.contact-form h3 { margin: 0; font-weight: 600; font-size: 22px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 14px; }
.span-2 { grid-column: span 2; }
.field-label { display: grid; gap: 8px; font-weight: 600; font-size: 15px; }
.input {
  width: 100%; height: 50px; padding: 0 16px; font-weight: 400;
  border: 1.5px solid var(--linea); border-radius: var(--r-md); background: var(--lienzo);
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.input:focus { outline: none; border-color: var(--ciruela); box-shadow: 0 0 0 4px var(--lila); background: var(--papel); }
.input[aria-invalid="true"] { border-color: var(--granada); }
.textarea { height: auto; min-height: 130px; padding: 14px 16px; resize: vertical; }
.contact-form .btn { justify-self: start; }
.form-status { margin: 0; font-size: 15px; color: var(--ciruela); }
.form-status:empty { display: none; }
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Pie ---------- */
.site-footer { padding-block: 44px; background: var(--pie); color: #CFC9D8; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; }
.footer-brand { display: grid; gap: 2px; }
.footer-word { font-family: var(--display); font-weight: 800; font-size: 26px; letter-spacing: -.03em; color: #fff; }
.footer-slogan { font-size: 14px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer-links a { text-decoration: none; font-size: 15px; }
.footer-links a:hover { color: #fff; text-decoration: underline; }
.site-footer p { margin: 0; font-size: 14px; }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 40;
  display: grid; place-items: center;
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--wa); color: var(--wa-ink);
  box-shadow: 0 14px 30px -10px rgba(11, 42, 24, .55);
  transform: translateY(24px) scale(.8); opacity: 0; pointer-events: none;
  transition: transform .45s var(--ease), opacity .3s;
}
.wa-float svg { width: 30px; height: 30px; }
body.nav-stuck .wa-float { transform: none; opacity: 1; pointer-events: auto; }
body.at-contact .wa-float { transform: translateY(24px) scale(.8); opacity: 0; pointer-events: none; }
.wa-float:hover { background: #1FBE5B; }

/* ---------- Menú lateral ---------- */
dialog { padding: 0; border: 0; color: var(--carbon); }
dialog::backdrop { background: rgba(28, 26, 31, .42); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
dialog[open]::backdrop { animation: fade .3s ease; }
dialog.closing::backdrop { animation: fade .25s ease reverse forwards; }
.drawer { position: fixed; inset-block: 0; margin: 0; width: min(420px, 92vw); height: 100%; max-height: 100dvh; max-width: none; background: var(--papel); }
.drawer--left { inset-inline: 0 auto; }
.drawer--left[open] { animation: slideFromLeft .45s var(--ease); }
.drawer--left.closing { animation: slideToLeft .25s ease-in forwards; }
.drawer-inner { display: flex; flex-direction: column; height: 100%; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px 18px 24px; border-bottom: 1px solid var(--linea); }
.drawer-head h2 { margin: 0; font-weight: 700; font-size: 22px; }
.drawer-body { flex: 1; overflow-y: auto; padding: 8px 24px; }
.drawer-foot { display: grid; gap: 12px; padding: 20px 24px 24px; border-top: 1px solid var(--linea); }
.menu-links { display: flex; flex-direction: column; padding-block: 16px; }
.menu-links a {
  padding: 14px 0; border-bottom: 1px solid var(--linea);
  font-family: var(--display); font-weight: 600; font-size: 22px; letter-spacing: -.02em; text-decoration: none;
  transition: color .2s, padding-left .3s var(--ease);
}
.menu-links a:hover { color: var(--ciruela); padding-left: 6px; }
.menu-lang { display: flex; gap: 8px; }
.menu-lang button { flex: 1; height: 42px; border: 1.5px solid var(--linea); border-radius: var(--r-pill); background: none; cursor: pointer; font-weight: 500; }
.menu-lang button[aria-current="true"] { border-color: var(--carbon); background: var(--lila); }

.toast {
  position: fixed; inset: auto auto 24px 50%; margin: 0; z-index: 200;
  padding: 14px 22px; border: 0; border-radius: var(--r-pill);
  background: var(--carbon); color: var(--on-ink); font-weight: 500; font-size: 15px;
  max-width: calc(100vw - 32px);
  translate: -50% 16px; opacity: 0; pointer-events: none;
  transition: translate .35s var(--ease), opacity .35s;
}
.toast.show { translate: -50% 0; opacity: 1; }

/* ---------- Modo oscuro ---------- */
:root[data-theme="dark"] {
  color-scheme: dark;
  --lienzo: #141217; --papel: #1E1B23; --carbon: #F1EEF6; --gris: #A9A3B3; --linea: #34303C;
  --lila: #2A2434; --ciruela: #A693DB; --granada: #E06C75; --granada-suave: #E58A91; --on-ink: #141217;
  --banda: #2E2645; --pie: #0D0C0F; --anillos: rgba(166, 147, 219, .09); --repisa: #3A3346;
  --borde-suave: rgba(241, 238, 246, .25); --sombra: 0 18px 40px -18px rgba(0, 0, 0, .7);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --lienzo: #141217; --papel: #1E1B23; --carbon: #F1EEF6; --gris: #A9A3B3; --linea: #34303C;
    --lila: #2A2434; --ciruela: #A693DB; --granada: #E06C75; --on-ink: #141217;
    --banda: #2E2645; --pie: #0D0C0F; --anillos: rgba(166, 147, 219, .09); --repisa: #3A3346;
    --borde-suave: rgba(241, 238, 246, .25); --sombra: 0 18px 40px -18px rgba(0, 0, 0, .7);
  }
}
:root[data-theme="dark"] .wa-panel { background: var(--papel); color: var(--carbon); border: 1px solid var(--linea); }

.theme-btn .i-sun { display: none; }
:root[data-theme="dark"] .theme-btn .i-sun { display: block; }
:root[data-theme="dark"] .theme-btn .i-moon { display: none; }
.theme-btn svg { transition: transform .5s var(--ease); }
.theme-btn:hover svg { transform: rotate(-20deg); }
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }

/* ---------- Animaciones ---------- */
@keyframes rise { from { transform: translateY(45%); opacity: 0; } }
@keyframes stageIn { from { transform: scale(.96); opacity: 0; } }
@keyframes cardIn { from { transform: translateY(48px) rotate(-8deg); opacity: 0; } }
@keyframes flip { 50% { transform: rotateY(90deg) scale(.96); } }
@keyframes ripple { from { transform: scale(.6); opacity: .55; } to { transform: scale(3.2); opacity: 0; } }
@keyframes starPop {
  0% { transform: translate(0, 0) scale(.3) rotate(-60deg); opacity: 0; }
  20% { opacity: 1; }
  55% { transform: translate(var(--x), var(--y)) scale(1.1) rotate(0); }
  80% { opacity: 1; }
  100% { transform: translate(var(--x), calc(var(--y) - 22px)) scale(.9); opacity: 0; }
}
@keyframes fade { from { opacity: 0; } }
@keyframes fadeDown { from { opacity: 0; transform: translateY(-6px); } }
@keyframes slideFromLeft { from { transform: translateX(-100%); } }
@keyframes slideToLeft { to { transform: translateX(-100%); } }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .navlinks { display: none; }
  .menu-btn { display: inline-flex; }
  .hero { grid-template-columns: 1fr; }
  .stage { width: 100%; max-width: 560px; margin-inline: auto; aspect-ratio: 1 / 1.05; }
  .hero-copy { max-width: 640px; margin-inline: auto; order: -1; }
  .how-grid { grid-template-columns: 1fr; }
  .counter { grid-template-columns: 1fr; }
  .item + .item { border-left: 0; border-top: 1px solid var(--linea); }
  .item-stage { height: 300px; }
  .products-head { grid-template-columns: 1fr; }
  .about, .faq, .contact { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .brandmark img { height: 36px; }
  .utility-actions .btn-wa span { display: none; }
  .utility-actions .btn-wa { width: 42px; padding: 0; }
  .slogan { margin-top: 8px; padding-bottom: 14px; font-size: 15px; }
  .utility { padding-block: 8px; }
  .hero { padding-top: 22px; gap: 28px; }
  .hero h1 { font-size: 31px; margin-bottom: 12px; }
  .lead { margin-bottom: 20px; }
  .hero-actions { margin-bottom: 10px; }
  .stage { aspect-ratio: 1 / 1; }
  .card-wrap { width: min(180px, 50%); }
  .hero-actions .btn { flex: 1 1 100%; height: 50px; }
  .hero-actions .btn-ghost { display: none; }
  .lead { font-size: 17px; }
  .item-stage { height: 270px; }
  .art--tarjeta { width: 130px; } .art--soporte { width: 148px; } .art--adhesiva { width: 168px; }
  .form-grid { grid-template-columns: 1fr; }
  .span-2 { grid-column: auto; }
  .contact-form .btn { justify-self: stretch; }
  .about-body p:first-child { font-size: 19px; }
  .wa-float { right: 16px; bottom: 16px; width: 56px; height: 56px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0ms !important;
    transition-duration: .01ms !important;
  }
}

/* ---------- Privacidad en el formulario ---------- */
.consent { display: flex; align-items: flex-start; gap: 12px; font-size: 15px; cursor: pointer; }
.consent input { flex: none; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--ciruela); cursor: pointer; }
.consent input[aria-invalid="true"] { outline: 2px solid var(--granada); outline-offset: 2px; }
.consent a, .privacy-note a { color: var(--ciruela); font-weight: 600; }
.privacy-note { margin: 0; font-size: 13px; line-height: 1.5; color: var(--gris); }

/* ---------- Páginas legales ---------- */
.legal-top { display: flex; align-items: center; justify-content: space-between; padding-block: 14px; border-bottom: 1px solid var(--linea); }
.legal-top .brandmark img { height: 40px; }
.legal-back { font-weight: 600; text-decoration: none; color: var(--ciruela); }
.legal-back:hover { text-decoration: underline; }
.legal { padding-block: clamp(40px, 7vw, 88px); }
.legal h1 { margin: 0 0 8px; font-weight: 700; font-size: clamp(32px, 4.4vw, 52px); line-height: 1.06; }
.legal .updated { margin: 0 0 36px; color: var(--gris); font-size: 15px; }
.legal h2 { margin: 40px 0 12px; font-weight: 600; font-size: 22px; letter-spacing: -.01em; }
.legal p, .legal li { max-width: 72ch; color: var(--gris); line-height: 1.7; }
.legal strong { color: var(--carbon); }
.legal a { color: var(--ciruela); font-weight: 600; }
.legal ul { padding-left: 20px; }
.legal-table { width: 100%; max-width: 900px; border-collapse: collapse; margin: 12px 0 8px; font-size: 15px; }
.legal-table th, .legal-table td { padding: 12px 14px; border-bottom: 1px solid var(--linea); text-align: left; vertical-align: top; color: var(--gris); }
.legal-table th { color: var(--carbon); font-weight: 600; background: var(--lila); }
.table-scroll { overflow-x: auto; }
.legal .disclaimer { margin-top: 48px; font-size: 13px; }
