/* ==========================================================================
   Lucky Michi · Rediseño "Galaxia kawaii"
   Identidad nueva inspirada en el logo (gatita astronauta + estrella):
   cielo nocturno violeta, pasteles de la marca original como "planetas"
   y un celeste nuevo. Tema de noche por defecto, tema de día opcional.
   ========================================================================== */

/* Fuentes propias (antes: Google Fonts). Subconjunto con los caracteres que usa el sitio.
   Si agregás textos con letras japonesas nuevas, puede que se vean con la fuente del sistema. */
@font-face { font-family: 'Dela Gothic One'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/delagothicone-regular-v1.woff2') format('woff2'); }
@font-face { font-family: 'M PLUS Rounded 1c'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/mplusrounded1c-regular-v1.woff2') format('woff2'); }
@font-face { font-family: 'M PLUS Rounded 1c'; font-style: normal; font-weight: 700; font-display: swap; src: url('fonts/mplusrounded1c-bold-v1.woff2') format('woff2'); }
@font-face { font-family: 'M PLUS Rounded 1c'; font-style: normal; font-weight: 800; font-display: swap; src: url('fonts/mplusrounded1c-extrabold-v1.woff2') format('woff2'); }

:root {
  color-scheme: dark;
  interpolate-size: allow-keywords;

  /* Pasteles heredados de la marca original + celeste nuevo */
  --pink: #ff8fb8;
  --pink-soft: #ffc2d9;
  --butter: #ffe48a;
  --lilac: #d6c3fa;
  --mint: #bdeedb;
  --sky: #a9cbff;
  --plum: #3a2340;

  /* Noche (por defecto) */
  --bg: #140d27;
  --bg-2: #1d1338;
  --surface: rgb(255 255 255 / .06);
  --surface-2: rgb(255 255 255 / .1);
  --surface-solid: #231842;
  --line: rgb(255 255 255 / .12);
  --line-strong: rgb(255 255 255 / .24);
  --ink: #fbf3ff;
  --ink-soft: #c4b5e3;
  --ink-mute: #8f80b3;
  --accent: var(--pink);
  --on-accent: #2a1033;
  --grad: linear-gradient(100deg, var(--pink) 0%, var(--lilac) 45%, var(--sky) 75%, var(--mint) 100%);
  --glow: 0 0 0 1px rgb(255 143 184 / .5), 0 10px 40px -8px rgb(255 143 184 / .6);
  --card-shadow: 0 24px 60px -30px rgb(0 0 0 / .8);
  --star: 255 255 255;
  --pink-text: var(--pink);          /* rosa usado como COLOR DE TEXTO */

  /* Estilo sticker heredado de la marca: contorno ciruela + sombra desplazada */
  --outline: #3a2340;
  --sticker: var(--pink);            /* color de la sombra desplazada */
  --sticker-s: 3px 3px 0 var(--sticker);
  --sticker-m: 5px 5px 0 var(--sticker);
  --sticker-l: 8px 8px 0 var(--sticker);

  --font-display: 'Dela Gothic One', 'Arial Black', system-ui, sans-serif;
  --font-body: 'M PLUS Rounded 1c', 'Nunito', system-ui, sans-serif;

  --gutter: clamp(16px, 5vw, 56px);
  --section: clamp(80px, 11vw, 140px);
  --r-s: 14px;
  --r-m: 22px;
  --r-l: 32px;
  --r-xl: 44px;

  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
}

/* Día: la paleta rosa clara de la Lucky Michi original */
:root[data-theme='day'] {
  color-scheme: light;
  --bg: #fff5fa;
  --bg-2: #ffe6f0;
  --surface: rgb(255 255 255 / .72);
  --surface-2: rgb(255 255 255 / .96);
  --surface-solid: #ffffff;
  --line: rgb(58 35 64 / .16);
  --line-strong: rgb(58 35 64 / .32);
  --ink: #3a2340;
  --ink-soft: #6c5573;
  --ink-mute: #77607d;
  --grad: linear-gradient(100deg, #e0457f 0%, #b55ad6 50%, #7a6cf0 100%);
  --glow: 0 0 0 1px rgb(224 69 127 / .35), 0 10px 30px -10px rgb(224 69 127 / .5);
  --card-shadow: 0 24px 50px -30px rgb(58 35 64 / .4);
  --star: 255 143 184;
  --sticker: #3a2340;
  --pink-text: #b02a66;              /* rosa oscuro: contraste 5.8:1 sobre el fondo claro */
}

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

html {
  overflow-x: hidden; /* respaldo para iOS 15 o anterior */
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}

html:has(dialog[open]) { overflow: hidden; }

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden; /* respaldo para iOS 15 o anterior */
  overflow-x: clip;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { margin: 0; font-weight: 400; line-height: 1.05; text-wrap: balance; }
h1, h2 { font-family: var(--font-display); letter-spacing: -.01em; }
h3 { font-weight: 800; }
p { margin: 0; text-wrap: pretty; }
ul { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
::selection { background: var(--pink); color: var(--on-accent); }
:focus-visible { outline: 2px solid var(--pink); outline-offset: 3px; border-radius: 8px; }

.container { width: min(100%, 1240px); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.skip-link {
  position: fixed; top: 8px; left: 8px; z-index: 100;
  padding: 10px 16px; border-radius: var(--r-s);
  background: var(--pink); color: var(--on-accent); font-weight: 800;
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

.grad {
  background: var(--grad);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
/* Animar background-position repinta el texto en CADA cuadro (no lo puede hacer la placa de video).
   Medido: era el 100% del trabajo en reposo con el catálogo en pantalla. Se deja solo en el título
   principal; los títulos de sección muestran el mismo degradado, quieto. */
.hero .grad { animation: grad-move 6s ease-in-out infinite alternate; }

@keyframes grad-move { to { background-position: 100% 0; } }

/* Fondo: estrellas + aurora ================================================ */
.starfield { position: fixed; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; }
.star-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.star-drift { position: absolute; top: 0; left: 0; width: 100%; height: 200%; will-change: transform; }
.star-drift .dot { position: absolute; border-radius: 50%; background: rgb(var(--star) / .85); }
.twinkle {
  position: absolute; width: 3px; height: 3px; border-radius: 50%;
  background: rgb(var(--star));
  box-shadow: 0 0 6px 1px rgb(var(--star) / .7);
  animation: star-blink var(--t, 3s) ease-in-out var(--d, 0s) infinite;
}
@keyframes star-blink { 0%, 100% { opacity: .15; transform: scale(.6); } 50% { opacity: 1; transform: scale(1.25); } }
.shooting-star {
  position: absolute; top: 12%; left: 70%;
  width: 140px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, rgb(var(--star)), transparent);
  opacity: 0; rotate: -25deg;
  animation: shoot 9s ease-in 3s infinite;
}
@keyframes shoot {
  0% { opacity: 0; transform: translateX(0); }
  2% { opacity: 1; }
  8%, 100% { opacity: 0; transform: translateX(-60vw); }
}

.aurora { position: fixed; inset: 0; z-index: -3; overflow: hidden; pointer-events: none; }
.aurora span {
  position: absolute; border-radius: 50%;
  opacity: .55;
  /* Degradado radial en vez de filter: blur (el desenfoque grande trababa la página) */
  -webkit-mask-image: radial-gradient(closest-side, #000 0%, rgb(0 0 0 / .5) 40%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 0%, rgb(0 0 0 / .5) 40%, transparent 100%);
  will-change: transform;
  animation: drift 22s ease-in-out infinite alternate;
}
.aurora span:nth-child(1) { width: 46vmax; height: 46vmax; top: -18vmax; left: -10vmax; background: #6a2f8f; }
.aurora span:nth-child(2) { width: 38vmax; height: 38vmax; top: 30vh; right: -14vmax; background: #b0336f; animation-delay: -7s; opacity: .3; }
.aurora span:nth-child(3) { width: 34vmax; height: 34vmax; bottom: -16vmax; left: 30vw; background: #2c4fa8; animation-delay: -12s; opacity: .3; }
:root[data-theme='day'] .aurora span { opacity: .55; }
:root[data-theme='day'] .aurora span:nth-child(1) { background: #ffc2d9; }
:root[data-theme='day'] .aurora span:nth-child(2) { background: #d6c3fa; }
:root[data-theme='day'] .aurora span:nth-child(3) { background: #bfe0ff; }

@keyframes drift {
  50% { transform: translate(6vw, 4vh) scale(1.1); }
  100% { transform: translate(-4vw, 8vh) scale(.95); }
}

.scroll-progress {
  position: fixed; inset: 0 0 auto; z-index: 60; height: 3px;
  background: var(--grad);
  transform: scaleX(var(--progress, 0)); transform-origin: left;
}

/* Botones ================================================================== */
.btn {
  position: relative; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 12px 26px;
  overflow: hidden;
  border: 1px solid transparent; border-radius: 999px;
  font-weight: 800; font-size: 1rem; line-height: 1.2;
  text-decoration: none;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), background-color .3s ease;
  translate: var(--mag-x, 0) var(--mag-y, 0);
}
.btn i { font-style: normal; display: inline-block; transition: transform .4s var(--ease-spring); }
.btn:hover i { transform: translateX(4px) rotate(-8deg); }
.btn:active { transform: scale(.96); }
.btn-sm { min-height: 42px; padding: 8px 18px; font-size: .9375rem; }

.btn-glow {
  background: var(--pink); color: var(--on-accent);
  border: 2px solid var(--outline);
  box-shadow: var(--sticker-s), 0 10px 40px -10px rgb(255 143 184 / .7);
}
:root[data-theme='day'] .btn-glow { --sticker: #3a2340; }
.btn-glow:active { transform: translate(3px, 3px); box-shadow: 0 0 0 var(--sticker); }
.btn-glow::before {
  content: ''; position: absolute; inset: -2px; z-index: -1;
  background: conic-gradient(from var(--angle, 0deg), var(--pink), var(--lilac), var(--sky), var(--mint), var(--butter), var(--pink));
  opacity: 0; transition: opacity .4s ease;
}
.btn-glow:hover::before { opacity: 1; animation: spin-angle 3s linear infinite; }
.btn-glow:hover { transform: translate(-2px, -2px); box-shadow: var(--sticker-m), 0 16px 50px -10px rgb(255 143 184 / .85); }
.btn-light { border: 2px solid var(--outline); box-shadow: 4px 4px 0 var(--outline) !important; }
.btn-light:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--outline) !important; }

@property --angle { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@keyframes spin-angle { to { --angle: 360deg; } }

.btn-glass {
  background: var(--surface); color: var(--ink);
  border: 2px solid var(--line-strong);
}
.btn-glass:hover { background: var(--surface-2); border-color: var(--pink); }

.btn-light { background: #fff; color: #2a1033; box-shadow: 0 14px 40px -14px rgb(0 0 0 / .5); }
.btn-light:hover { box-shadow: 0 20px 50px -12px rgb(0 0 0 / .6); }

.link-btn {
  min-height: 40px; padding: 0 6px;
  border: 0; background: none;
  color: var(--ink-soft); font-weight: 700; font-size: .875rem;
  text-decoration: underline; text-underline-offset: 4px;
  transition: color .2s ease;
}
.link-btn:hover { color: var(--pink-text); }

.round-btn {
  display: grid; place-items: center; flex: none;
  width: 44px; height: 44px;
  border: 1px solid var(--line-strong); border-radius: 50%;
  background: var(--surface);
  font-size: 1.05rem; line-height: 1;
  transition: transform .4s var(--ease-spring), background-color .2s ease, border-color .2s ease;
}
.round-btn:hover { background: var(--surface-2); border-color: var(--pink); transform: rotate(-15deg) scale(1.06); }
.round-btn:active { transform: scale(.9); }

.chip {
  display: inline-flex; align-items: center; gap: 6px; width: fit-content;
  padding: 3px 12px;
  border: 1px solid var(--line-strong); border-radius: 999px;
  background: var(--surface);
  color: var(--pink-text); font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
}

/* Navegación =============================================================== */
.nav-wrap {
  position: sticky; top: 0; z-index: 50;
  padding: 14px var(--gutter) 0;
  pointer-events: none;
}

.nav {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  width: min(100%, 1180px); margin-inline: auto;
  padding: 8px 8px 8px 18px;
  border: 1px solid var(--line); border-radius: 999px;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  box-shadow: 0 10px 40px -20px rgb(0 0 0 / .6);
  pointer-events: auto;
  transition: transform .5s var(--ease-out), background-color .3s ease;
}
/* El desenfoque de fondo se recalcula en cada cuadro: solo en pantallas grandes con mouse. */
@media (min-width: 961px) and (hover: hover) {
  .nav { background: color-mix(in srgb, var(--bg) 70%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
}
.nav-wrap.is-hidden .nav { transform: translateY(-140%); }
.nav-wrap.is-scrolled .nav { background: color-mix(in srgb, var(--bg) 82%, transparent); }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { width: 36px; fill: var(--pink); stroke: var(--plum); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .5s var(--ease-spring); }
.brand-face { fill: none; }
.brand:hover .brand-mark { transform: rotate(-14deg) scale(1.1); }
.brand-name { font-family: var(--font-display); font-size: 1.25rem; letter-spacing: -.01em; }
.brand-name b { font-weight: 400; color: var(--pink-text); }

.nav-links { position: relative; display: flex; gap: 2px; }
.nav-links a {
  position: relative; z-index: 1;
  padding: 8px 16px; border-radius: 999px;
  color: var(--ink-soft); font-weight: 700; font-size: .9375rem; text-decoration: none;
  transition: color .25s ease;
}
.nav-links a:hover, .nav-links a.is-active { color: var(--ink); }
.nav-pill {
  position: absolute; top: 0; left: 0; z-index: 0;
  height: 100%; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--line);
  opacity: 0;
  transition: transform .45s var(--ease-out), width .45s var(--ease-out), opacity .3s ease;
}

.nav-actions { display: flex; align-items: center; gap: 8px; }
.menu-btn { display: none; }
.menu-btn span { display: block; width: 18px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .35s var(--ease-out); }
.menu-btn span { grid-area: 1 / 1; }
.menu-btn span:first-child { transform: translateY(-4px); }
.menu-btn span:last-child { transform: translateY(4px); }
.menu-btn[aria-expanded='true'] span:first-child { transform: rotate(45deg); }
.menu-btn[aria-expanded='true'] span:last-child { transform: rotate(-45deg); }

.cart-btn {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 4px 5px 4px 14px;
  border: 2px solid var(--outline); border-radius: 999px;
  background: var(--pink); color: var(--on-accent);
  font-weight: 800;
  box-shadow: 3px 3px 0 var(--outline), 0 8px 30px -8px rgb(255 143 184 / .6);
  transition: transform .3s var(--ease-spring);
}
.cart-btn:hover { transform: scale(1.05); }
.cart-btn svg { width: 18px; fill: currentColor; }
.cart-btn b {
  display: grid; place-items: center; min-width: 32px; height: 32px; padding-inline: 6px;
  border-radius: 999px; background: var(--on-accent); color: var(--pink); font-size: .875rem;
}
.cart-btn.is-bumping { animation: bump .5s var(--ease-spring); }
@keyframes bump { 40% { transform: scale(1.18) rotate(-6deg); } }

/* Hero ===================================================================== */
.hero {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  align-items: center; gap: clamp(32px, 5vw, 80px);
  width: min(100%, 1280px); min-height: min(calc(100svh - 80px), 920px);
  margin-inline: auto;
  padding: clamp(48px, 7vw, 96px) var(--gutter) clamp(80px, 9vw, 120px);
}

.tag-line {
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 22px; padding: 6px 16px 6px 6px;
  border: 1px solid var(--line-strong); border-radius: 999px;
  background: var(--surface);
  color: var(--ink-soft); font-size: .875rem; font-weight: 700;
}
.jp { padding: 3px 10px; border-radius: 999px; background: var(--pink); color: var(--on-accent); font-weight: 800; letter-spacing: .05em; }

.hero h1 { font-size: clamp(2.5rem, 5.2vw, 4.75rem); line-height: 1.02; }
.hero h1 .line { display: block; overflow: clip; padding-bottom: .06em; }
.hero h1 .line > span { display: inline-block; }
.h1-star { color: var(--butter); font-size: .55em; vertical-align: .55em; animation: twinkle 2.4s ease-in-out infinite; }

.hero-lead { max-width: 40ch; margin-top: 26px; color: var(--ink-soft); font-size: clamp(1.0625rem, 1.6vw, 1.1875rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

.hero-stats {
  display: flex; flex-wrap: wrap; gap: 14px 40px;
  margin: 44px 0 0; padding-top: 26px;
  border-top: 1px solid var(--line);
}
.hero-stats div { display: flex; flex-direction: column-reverse; }
.hero-stats dt { color: var(--ink-mute); font-size: .8125rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.hero-stats dd { min-width: 2ch; margin: 0; font-family: var(--font-display); font-size: 1.75rem; line-height: 1.2; font-variant-numeric: tabular-nums; }

.hero-visual {
  --mx: 0; --my: 0;
  position: relative; justify-self: center;
  width: min(100%, 520px); aspect-ratio: 1;
}

.planet {
  position: absolute; inset: 21% 24% 21%;
  transform: translate(calc(var(--mx) * 14px), calc(var(--my) * 14px));
  transition: transform .6s var(--ease-out);
  animation: planet-in 1.1s var(--ease-spring) .2s both;
}
.planet-halo { /* resplandor detrás de la michi */
  position: absolute; inset: -12%;
  border-radius: 50%;
  background: radial-gradient(circle, rgb(255 143 184 / .55), rgb(214 195 250 / .25) 45%, transparent 70%);
  animation: halo 4s ease-in-out infinite alternate;
}
@keyframes halo { to { transform: scale(1.12); opacity: .7; } }
.planet-back, .planet-shape { position: absolute; inset: 0; clip-path: url(#cat-shape); }
.planet-back { background: var(--pink); transform: translate(12px, 12px); }
:root[data-theme='day'] .planet-back { background: var(--outline); }
.planet-shape { background: radial-gradient(circle at 30% 25%, var(--pink-soft), var(--lilac) 60%, #9a7ae0 100%); }
.planet-shape img { width: 100%; height: 100%; object-fit: cover; }
.planet-outline { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; fill: none; stroke: var(--outline); stroke-width: 3; stroke-linejoin: round; }
:root[data-theme='day'] .planet-outline { stroke: var(--outline); }

/* Stickers redondos del hero (como en la página original) */
.sticker {
  position: absolute; z-index: 2;
  display: grid; place-items: center;
  width: clamp(92px, 22%, 118px); aspect-ratio: 1; padding: 10px;
  border: 2px solid var(--outline); border-radius: 50%;
  color: var(--outline); font-weight: 800; font-size: .8125rem; line-height: 1.15; text-align: center;
  box-shadow: 4px 4px 0 var(--sticker);
  transition: transform .6s var(--ease-out);
  animation: hover-float 4.5s ease-in-out infinite;
}
.sticker-a { top: 52%; left: 0; background: var(--butter); transform: translate(calc(var(--mx) * 22px), calc(var(--my) * 22px)) rotate(-10deg); }
.sticker-b { right: 0; bottom: 4%; background: var(--mint); transform: translate(calc(var(--mx) * 30px), calc(var(--my) * 30px)) rotate(8deg); animation-delay: -2s; }
@keyframes planet-in { from { opacity: 0; scale: .6; rotate: -20deg; } }

.orbit {
  position: absolute; border: 1px dashed var(--line-strong); border-radius: 50%;
  animation: spin 40s linear infinite;
}
.orbit-1 { inset: 6%; }
.orbit-2 { inset: -4%; animation-duration: 60s; animation-direction: reverse; }
@keyframes spin { to { rotate: 360deg; } }

.orbiter {
  position: absolute;
  padding: 5px 13px; border-radius: 999px;
  border: 2px solid var(--outline);
  color: #2a1033; font-size: .8125rem; font-weight: 800; white-space: nowrap;
  box-shadow: 2px 2px 0 var(--outline);
  animation: spin 40s linear infinite reverse; /* contra-rota para quedar derecho */
}
.orbit-2 .orbiter { animation-duration: 60s; animation-direction: normal; }
.o-pink { top: -4%; left: 50%; translate: -50% 0; background: var(--pink); }
.o-butter { bottom: -4%; left: 50%; translate: -50% 0; background: var(--butter); }
.o-mint { top: 18%; left: -2%; background: var(--mint); }
.o-lilac { top: 26%; right: -4%; background: var(--lilac); }
.o-sky { bottom: 8%; left: 18%; background: var(--sky); }

.moon { position: absolute; border-radius: 50%; transition: transform .6s var(--ease-out); }
.moon-a { width: 13%; aspect-ratio: 1; top: 8%; right: 10%; background: radial-gradient(circle at 35% 30%, #fff6c9, var(--butter) 60%, #e0b94a); box-shadow: 0 0 40px rgb(255 228 138 / .5); transform: translate(calc(var(--mx) * 30px), calc(var(--my) * 30px)); }
.moon-b { width: 7%; aspect-ratio: 1; bottom: 14%; left: 6%; background: radial-gradient(circle at 35% 30%, #e9fff6, var(--mint) 60%, #79c7a9); box-shadow: 0 0 30px rgb(189 238 219 / .45); transform: translate(calc(var(--mx) * 44px), calc(var(--my) * 44px)); }


.scroll-hint {
  position: absolute; left: 50%; bottom: 24px;
  display: grid; justify-items: center;
  width: 26px; height: 42px; padding-top: 8px;
  border: 2px solid var(--line-strong); border-radius: 999px;
  translate: -50% 0;
}
.scroll-hint span { width: 4px; height: 8px; border-radius: 4px; background: var(--pink); animation: scroll-dot 1.8s ease-in-out infinite; }
@keyframes scroll-dot { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }

@keyframes twinkle { 50% { opacity: .35; scale: .75; rotate: 30deg; } }

/* Cinta ==================================================================== */
.ticker {
  overflow: hidden;
  padding-block: 18px;
  border-block: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg-2) 70%, transparent);
  rotate: -1.5deg; margin-inline: -2%;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.ticker-track {
  display: flex; align-items: center; gap: 28px; width: max-content;
  animation: marquee 34s linear infinite;
}
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker span { font-family: var(--font-display); font-size: clamp(1.75rem, 4.5vw, 3.25rem); line-height: 1.1; white-space: nowrap; }
.ticker span:nth-of-type(odd) { -webkit-text-stroke: 1.5px var(--ink); color: transparent; }
.ticker i { font-style: normal; color: var(--pink-text); font-size: 1.5rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Secciones ================================================================ */
.section { position: relative; padding-block: var(--section); }

.head { max-width: 680px; margin-bottom: clamp(36px, 5vw, 60px); }
.head h2, .lucky-copy h2, .about-copy h2, .contact-copy h2, .gift-copy h2 { font-size: clamp(2.1rem, 5vw, 3.75rem); }
.head > p:not(.eyebrow) { margin-top: 16px; color: var(--ink-soft); font-size: 1.0625rem; }
.head a { color: var(--pink-text); font-weight: 800; }
.head-row { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 40px; max-width: none; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 18px;
  color: var(--ink-soft); font-size: .8125rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
}
.eyebrow span {
  display: grid; place-items: center; width: 34px; height: 34px;
  border: 1px solid var(--line-strong); border-radius: 50%;
  color: var(--pink-text); font-family: var(--font-display); font-size: .75rem; letter-spacing: 0;
}

/* Bento de categorías */
.bento {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: minmax(260px, auto);
  gap: 18px;
}
.bento-xl { grid-column: span 2; grid-row: span 2; }

.tile {
  --tint: var(--pink);
  position: relative; isolation: isolate;
  display: flex; flex-direction: column; justify-content: flex-end;
  height: 100%; min-height: 260px; padding: 22px;
  overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--r-l);
  background: linear-gradient(160deg, color-mix(in srgb, var(--tint) 34%, transparent), color-mix(in srgb, var(--tint) 8%, transparent) 70%), var(--surface);
  text-decoration: none;
  transition: transform .5s var(--ease-out), border-color .3s ease;
}
.tile:hover { transform: translate(-4px, -6px) rotate(-.6deg); border-color: var(--tint); }
:root[data-theme='day'] .tile { border: 2px solid var(--outline); }
:root[data-theme='day'] .tile:hover { border-color: var(--outline); }
.tile .spot { --spot-color: color-mix(in srgb, var(--tint) 40%, transparent); --spot-size: 720px; z-index: -1; }

/* Sombra "sticker" al pasar el mouse: se dibuja UNA vez en una capa aparte (::after del <li>)
   y solo se anima su opacidad y posición. Antes se animaba box-shadow (repintado en cada cuadro). */
.bento > li, .grid > li { position: relative; isolation: isolate; }
.bento > li::after, .grid > li::after {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  border-radius: var(--r-l);
  box-shadow: var(--lift-shadow);
  opacity: 0;
  transition: opacity .35s ease, transform .5s var(--ease-out);
}
.bento > li { --lift-shadow: 8px 8px 0 var(--tint-li, var(--pink)), 0 30px 60px -30px color-mix(in srgb, var(--tint-li, var(--pink)) 70%, transparent); }
/* Mismo orden que en el HTML: figuras (rosa), maquillaje, blind box, accesorios, cartas. */
.bento > li:nth-child(2) { --tint-li: var(--butter); }
.bento > li:nth-child(3) { --tint-li: var(--mint); }
.bento > li:nth-child(4) { --tint-li: var(--lilac); }
.bento > li:nth-child(5) { --tint-li: var(--sky); }
:root[data-theme='day'] .bento > li { --lift-shadow: 8px 8px 0 var(--outline); }
.bento > li:hover::after { opacity: 1; transform: translate(-4px, -6px) rotate(-.6deg); }

.tile img {
  position: absolute; z-index: -2;
  top: 18px; right: 18px; width: 40%; aspect-ratio: 1; object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 20px 40px -20px rgb(0 0 0 / .6);
  transition: transform .7s var(--ease-out);
}
.bento-xl .tile img { width: 58%; top: 28px; right: 28px; }
.tile-text { position: relative; }
.tile h3 { text-shadow: 0 2px 18px rgb(20 13 39 / .55); }
:root[data-theme='day'] .tile h3 { text-shadow: 0 2px 14px rgb(255 255 255 / .8); }
.tile:hover img { transform: scale(1.08) rotate(6deg); }

.tile-text { max-width: calc(100% - 56px); }
.tile h3 { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.2rem, 1.7vw, 1.45rem); }
.bento-xl h3 { font-size: clamp(1.75rem, 3.2vw, 2.6rem); }
.tile p { margin-top: 4px; color: var(--ink-soft); font-size: .9375rem; }

.tile-count {
  position: absolute; top: 18px; left: 18px;
  padding: 2px 10px; border-radius: 999px;
  background: var(--tint); color: #2a1033;
  font-size: .75rem; font-weight: 800;
}
.tile-go {
  position: absolute; right: 18px; bottom: 18px;
  display: grid; place-items: center; width: 44px; height: 44px;
  border-radius: 50%; background: var(--tint); color: #2a1033; font-weight: 800; font-size: 1.1rem;
  transform: scale(.7) rotate(-45deg); opacity: 0;
  transition: transform .45s var(--ease-spring), opacity .3s ease;
}
.tile:hover .tile-go { transform: none; opacity: 1; }

.tile-pink { --tint: var(--pink); }
.tile-butter { --tint: var(--butter); }
.tile-mint { --tint: var(--mint); }
.tile-lilac { --tint: var(--lilac); }
.tile-sky { --tint: var(--sky); }

/* Caja de la suerte */
.lucky-layout { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: center; gap: clamp(32px, 6vw, 96px); }
.lucky-copy p:not(.eyebrow) { max-width: 44ch; margin: 18px 0 30px; color: var(--ink-soft); font-size: 1.0625rem; }

.lucky-stage {
  position: relative;
  display: grid; place-items: center;
  min-height: 420px; padding: 32px;
  border: 1px solid var(--line); border-radius: var(--r-xl);
  background:
    radial-gradient(circle at 50% 60%, rgb(255 143 184 / .22), transparent 60%),
    var(--surface);
  overflow: hidden;
}
.lucky-stage::before { /* anillos */
  content: ''; position: absolute; width: 380px; aspect-ratio: 1; border-radius: 50%;
  border: 1px dashed var(--line-strong);
  box-shadow: 0 0 0 60px rgb(255 255 255 / .015), 0 0 0 120px rgb(255 255 255 / .01);
  animation: spin 50s linear infinite;
}

.lucky-box {
  position: relative; width: 190px; height: 190px;
  border: 0; background: none; padding: 0;
  animation: hover-float 3.2s ease-in-out infinite;
}
.box-body {
  position: absolute; left: 10px; right: 10px; bottom: 0; height: 64%;
  display: grid; place-items: center;
  border-radius: 18px 18px 26px 26px;
  background:
    linear-gradient(90deg, transparent 43%, var(--butter) 43% 57%, transparent 57%),
    linear-gradient(160deg, var(--pink), #d9578d);
  box-shadow: inset 0 -16px 30px rgb(0 0 0 / .18), 0 30px 50px -20px rgb(255 143 184 / .6);
}
.box-body b { font-family: var(--font-display); font-weight: 400; font-size: 3rem; color: #fff; text-shadow: 0 3px 0 rgb(0 0 0 / .15); z-index: 1; }
.box-lid {
  position: absolute; left: 0; right: 0; top: 22%; height: 22%;
  border-radius: 14px;
  background:
    linear-gradient(90deg, transparent 43%, var(--butter) 43% 57%, transparent 57%),
    linear-gradient(160deg, #ffa9c9, var(--pink));
  box-shadow: 0 8px 14px -6px rgb(0 0 0 / .3);
  transform-origin: 10% 100%;
  transition: transform .6s var(--ease-spring);
  z-index: 2;
}
.box-bow {
  position: absolute; left: 50%; top: -30px; width: 60px; height: 34px; translate: -50% 0;
  background:
    radial-gradient(ellipse at 25% 60%, var(--butter) 0 45%, transparent 47%),
    radial-gradient(ellipse at 75% 60%, var(--butter) 0 45%, transparent 47%);
}
.box-glow { position: absolute; inset: 20% 10% 0; border-radius: 50%; background: radial-gradient(circle, rgb(255 228 138 / .9), transparent 65%); opacity: 0; filter: blur(10px); transition: opacity .4s ease; }
.lucky-box:hover .box-lid { transform: translateY(-8px) rotate(-6deg); }
.lucky-box.is-shaking { animation: shake .6s ease-in-out; }
.lucky-box.is-open .box-lid { transform: translate(-30px, -70px) rotate(-35deg); }
.lucky-box.is-open .box-glow { opacity: 1; }

@keyframes hover-float { 50% { translate: 0 -10px; } }
@keyframes shake {
  15%, 45%, 75% { transform: rotate(-8deg) scale(1.04); }
  30%, 60%, 90% { transform: rotate(8deg) scale(1.04); }
}

.lucky-result {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 160px minmax(0, 1fr); align-items: center; gap: 22px;
  width: min(100%, 520px); padding: 18px;
  border: 2px solid var(--outline); border-radius: var(--r-l);
  background: color-mix(in srgb, var(--surface-solid) 82%, transparent);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: var(--sticker-l);
  animation: pop-in .6s var(--ease-spring);
}
@keyframes pop-in { from { opacity: 0; scale: .7; translate: 0 30px; } }
.lucky-photo { overflow: hidden; aspect-ratio: 1; border-radius: var(--r-m); border: 2px solid var(--outline); background: linear-gradient(150deg, var(--pink-soft), var(--lilac)); }
.lucky-photo img { width: 100%; height: 100%; object-fit: cover; }
.lucky-info h3 { margin-top: 10px; font-size: 1.1875rem; line-height: 1.25; }
.lucky-price { margin-top: 6px; font-family: var(--font-display); font-size: 1.5rem; }
.lucky-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; }

.confetti { position: absolute; z-index: 3; width: 9px; height: 14px; border-radius: 3px; pointer-events: none; }

/* Catálogo */
.catalog-status { color: var(--ink-soft); font-weight: 700; }
.catalog-status b { color: var(--pink-text); }

.toolbar {
  position: sticky; top: 84px; z-index: 10;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
  margin-bottom: 30px; padding: 8px;
  border: 1px solid var(--line); border-radius: 999px;
  /* Sin backdrop-filter: esta barra queda fija ENCIMA de las tarjetas y el desenfoque
     se recalculaba en cada cuadro del scroll (causa principal de los tirones). */
  background: color-mix(in srgb, var(--bg) 94%, transparent);
}

.tabs { position: relative; display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  position: relative; z-index: 1; flex: none;
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 42px; padding: 6px 16px;
  border: 0; border-radius: 999px; background: none;
  color: var(--ink-soft); font-weight: 800; font-size: .9375rem;
  transition: color .3s ease;
}
.tab:hover { color: var(--ink); }
.tab[aria-pressed='true'] { color: var(--on-accent); }
.tab .count { font-size: .75rem; opacity: .7; }
.tabs-pill {
  position: absolute; top: 0; left: 0; z-index: 0; height: 100%;
  border-radius: 999px; background: var(--pink); box-shadow: var(--glow);
  transition: transform .45s var(--ease-out), width .45s var(--ease-out);
}

.search {
  display: flex; flex: 1 1 220px; align-items: center; gap: 10px;
  max-width: 300px; min-height: 44px; padding-inline: 16px 8px;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.search:focus-within { border-color: var(--pink); box-shadow: 0 0 0 4px rgb(255 143 184 / .2); }
.search svg { width: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; color: var(--ink-mute); }
.search input { width: 100%; min-width: 0; min-height: 40px; border: 0; outline: 0; background: transparent; }
.search input::placeholder { color: var(--ink-mute); }
.search kbd { padding: 1px 8px; border: 1px solid var(--line-strong); border-radius: 6px; color: var(--ink-mute); font: inherit; font-size: .75rem; }

.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }

.card {
  position: relative; display: flex; flex-direction: column; height: 100%;
  overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--r-l);
  background: var(--surface);
  transition: transform .5s var(--ease-out), border-color .3s ease;
}
.card:hover { transform: translate(-3px, -6px); border-color: var(--pink); }
:root[data-theme='day'] .card { border: 2px solid var(--outline); background: var(--surface-solid); }
:root[data-theme='day'] .card:hover { border-color: var(--outline); }
.card-photo { border: 2px solid transparent; }
:root[data-theme='day'] .card-photo { border-color: var(--outline); }
.grid > li { --lift-shadow: var(--sticker-m), 0 30px 60px -30px rgb(255 143 184 / .45); }
.grid > li:hover::after { opacity: 1; transform: translate(-3px, -6px); }
.card .spot { z-index: 2; }

/* Foco de luz que sigue al mouse: un círculo con degradado FIJO que se mueve con transform
   (lo mueve rediseno.js). Antes se cambiaba la posición del degradado y se repintaba todo. */
.spot {
  --spot-size: 600px;
  position: absolute; top: 0; left: 0; pointer-events: none;
  width: var(--spot-size); height: var(--spot-size);
  margin: calc(var(--spot-size) / -2) 0 0 calc(var(--spot-size) / -2);
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--spot-color, rgb(255 255 255 / .1)), transparent);
  opacity: 0; transition: opacity .3s ease;
  transform: translate3d(50%, 0, 0);
}
.tile:hover .spot, .card:hover .spot { opacity: 1; }

.card-photo { position: relative; margin: 8px 8px 0; aspect-ratio: 1; overflow: hidden; border-radius: calc(var(--r-l) - 8px); background: linear-gradient(150deg, var(--pink-soft), var(--lilac)); cursor: zoom-in; }
.card-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }
.card:hover .card-photo img { transform: scale(1.08); }
.card-tag {
  position: absolute; top: 10px; left: 10px; max-width: calc(100% - 20px);
  padding: 3px 10px; overflow: hidden; border-radius: 999px;
  background: var(--butter); border: 2px solid var(--outline);
  color: var(--outline); font-size: .75rem; font-weight: 800; white-space: nowrap; text-overflow: ellipsis;
}

.card-body { display: flex; flex: 1; flex-direction: column; padding: 14px 18px 16px; }
.card-cat { color: var(--pink-text); font-size: .6875rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.card h3 {
  display: -webkit-box; min-height: 2.5em; margin-top: 4px; overflow: hidden;
  font-size: 1rem; line-height: 1.25;
  -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2;
}
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 14px; }
.card-price { min-width: 0; font-family: var(--font-display); font-size: 1.25rem; white-space: nowrap; }
.add-btn {
  position: relative; z-index: 3;
  display: grid; place-items: center; flex: none; width: 44px; height: 44px;
  border: 2px solid var(--outline); border-radius: 50%;
  background: var(--pink); color: var(--on-accent); font-size: 1.5rem; font-weight: 800; line-height: 1;
  box-shadow: 2px 2px 0 var(--outline);
  transition: transform .4s var(--ease-spring), background-color .3s ease;
}
.add-btn:hover { transform: rotate(90deg) scale(1.1); }
.add-btn:active { transform: scale(.85); }
.add-btn.is-added { background: var(--mint); transform: rotate(360deg); }
.card-detail {
  position: relative; z-index: 3;
  align-self: flex-start; margin-top: 8px; padding: 0;
  border: 0; background: none;
  color: var(--ink-mute); font-size: .8125rem; font-weight: 700;
  text-decoration: underline; text-underline-offset: 3px;
  transition: color .2s ease;
}
.card-detail:hover { color: var(--pink-text); }

.more { display: flex; justify-content: center; margin-top: 44px; }

.empty { display: grid; justify-items: center; gap: 8px; padding: 60px 20px; border: 1px dashed var(--line-strong); border-radius: var(--r-l); text-align: center; }
.empty-face { font-size: 2.25rem; color: var(--pink-text); }
.empty h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.5rem; }
.empty p { color: var(--ink-soft); margin-bottom: 12px; }

/* Regalo */
.gift-card {
  position: relative; overflow: hidden;
  border: 2px solid var(--outline);
  box-shadow: var(--sticker-l);
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); align-items: center;
  padding: clamp(36px, 6vw, 72px);
  border-radius: var(--r-xl);
  background: linear-gradient(120deg, #ff8fb8 0%, #c79bf2 50%, #8fb6ff 100%);
  color: #2a1033;
}
.gift-card::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 80% 20%, rgb(255 255 255 / .5), transparent 40%); pointer-events: none; }
.gift-copy { position: relative; }
.gift-copy .eyebrow { color: #2a1033; }
.gift-copy .eyebrow span { border-color: rgb(42 16 51 / .3); color: #2a1033; }
.gift-copy p:not(.eyebrow) { max-width: 42ch; margin: 16px 0 28px; font-size: 1.0625rem; font-weight: 400; }
.gift-art { position: relative; height: 260px; }
.gift-emoji { position: absolute; font-size: clamp(3rem, 6vw, 4.5rem); filter: drop-shadow(0 14px 18px rgb(0 0 0 / .2)); animation: hover-float 4s ease-in-out infinite; }
.g1 { top: 20%; left: 30%; font-size: clamp(4.5rem, 9vw, 6.5rem); }
.g2 { top: 0; right: 10%; animation-delay: -1s; }
.g3 { bottom: 4%; right: 24%; animation-delay: -2s; }
.g4 { bottom: 10%; left: 4%; animation-delay: -3s; }

/* Nosotras */
.about { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: center; gap: clamp(36px, 7vw, 110px); }
.about-art { position: relative; width: min(100%, 440px); justify-self: center; }
.about-frame {
  overflow: hidden; aspect-ratio: 4 / 5;
  border-radius: 220px 220px var(--r-xl) var(--r-xl);
  background: linear-gradient(160deg, var(--mint), var(--lilac));
  box-shadow: 0 0 0 1px var(--line-strong), 0 0 0 14px var(--surface), var(--card-shadow);
}
.about-frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out); }
.about-art:hover .about-frame img { transform: scale(1.05); }
.about-art figcaption {
  position: absolute; left: -12px; bottom: 36px;
  padding: 10px 18px; border-radius: 999px;
  border: 2px solid var(--outline);
  background: var(--butter); color: #2a1033; font-weight: 800;
  box-shadow: 4px 4px 0 var(--outline);
  rotate: -5deg;
}
.about-copy > p:not(.eyebrow) { max-width: 54ch; margin-top: 18px; color: var(--ink-soft); font-size: 1.0625rem; }
.values { display: grid; gap: 12px; margin-top: 32px; }
.values li {
  display: flex; align-items: center; gap: 16px;
  padding: 14px 18px;
  border: 1px solid var(--line); border-radius: var(--r-m);
  background: var(--surface);
  transition: transform .4s var(--ease-out), border-color .3s ease;
}
.values li:hover { transform: translateX(8px); border-color: rgb(255 143 184 / .5); }
.values b { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border: 2px solid var(--outline); border-radius: 14px; background: var(--pink); color: #2a1033; font-size: 1.1rem; box-shadow: 2px 2px 0 var(--outline); }
.values li:nth-child(2) b { background: var(--mint); }
.values li:nth-child(3) b { background: var(--butter); }
.values strong { display: block; font-weight: 800; }
.values span { color: var(--ink-soft); font-size: .9375rem; line-height: 1.45; }
.values span strong { color: var(--ink); }

/* FAQ */
.faq { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 6vw, 90px); align-items: start; }
.faq .head { position: sticky; top: 110px; }
.faq-list { display: grid; gap: 12px; }
.faq-list details {
  border: 1px solid var(--line); border-radius: var(--r-m);
  background: var(--surface);
  transition: border-color .3s ease, background-color .3s ease;
}
.faq-list details:hover { border-color: var(--line-strong); }
.faq-list details[open] { border-color: rgb(255 143 184 / .55); background: var(--surface-2); }
.faq-list details::details-content { block-size: 0; overflow: hidden; transition: block-size .4s var(--ease-out), content-visibility .4s allow-discrete; }
.faq-list details[open]::details-content { block-size: auto; }
.faq-list summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 64px; padding: 14px 22px;
  font-weight: 800; font-size: 1.0625rem; list-style: none; cursor: pointer;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: '+'; display: grid; place-items: center; flex: none;
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--line-strong);
  font-size: 1.3rem; font-weight: 400; line-height: 1;
  transition: transform .45s var(--ease-spring), background-color .3s ease, color .3s ease;
}
.faq-list details[open] summary::after { transform: rotate(135deg); background: var(--pink); color: var(--on-accent); border-color: var(--pink); }
.faq-list details p { padding: 0 22px 22px; color: var(--ink-soft); }

/* Contacto */
.contact { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(28px, 6vw, 90px); align-items: start; }
.contact-copy > p:not(.eyebrow) { max-width: 38ch; margin-top: 16px; color: var(--ink-soft); font-size: 1.0625rem; }
.wave { display: inline-block; transform-origin: 70% 80%; animation: wave 2.4s ease-in-out infinite; }
@keyframes wave { 0%, 60%, 100% { rotate: 0deg; } 10%, 30% { rotate: 16deg; } 20%, 40% { rotate: -8deg; } }

.wa-card {
  display: flex; align-items: center; gap: 14px; width: fit-content;
  margin-top: 28px; padding: 12px 20px 12px 12px;
  border: 1px solid var(--line-strong); border-radius: var(--r-m);
  background: var(--surface);
  text-decoration: none;
  transition: transform .4s var(--ease-out), border-color .3s ease, box-shadow .4s ease;
}
.wa-card:hover { transform: translateY(-4px); border-color: var(--mint); box-shadow: 0 20px 40px -20px rgb(189 238 219 / .5); }
.wa-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--mint); color: #12352a; font-size: 1.4rem; }
.wa-card small { display: block; color: var(--ink-mute); font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.wa-card strong { font-size: 1.125rem; }
.wa-card i { font-style: normal; margin-left: 8px; transition: transform .4s var(--ease-spring); }
.wa-card:hover i { transform: translate(3px, -3px); }

.form {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px;
  padding: clamp(22px, 3.5vw, 40px);
  border: 1px solid var(--line); border-radius: var(--r-xl);
  background: var(--surface);
  box-shadow: var(--sticker-l);
}
:root[data-theme='day'] .form { border: 2px solid var(--outline); background: var(--surface-solid); }
.field { position: relative; }
.field-wide { grid-column: 1 / -1; }
.field input, .field textarea {
  width: 100%; min-height: 60px; padding: 26px 18px 10px;
  border: 1px solid var(--line-strong); border-radius: var(--r-s);
  background: color-mix(in srgb, var(--bg) 50%, transparent);
  font-size: 1rem; resize: vertical;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field textarea { min-height: 150px; }
.field label {
  position: absolute; left: 19px; top: 19px;
  color: var(--ink-mute); font-weight: 700; pointer-events: none;
  transform-origin: left top;
  transition: transform .3s var(--ease-out), color .2s ease;
}
.field input:focus, .field textarea:focus { outline: 0; border-color: var(--pink); box-shadow: 0 0 0 4px rgb(255 143 184 / .18); }
.field input:focus + label, .field textarea:focus + label,
.field input:not(:placeholder-shown) + label, .field textarea:not(:placeholder-shown) + label { transform: translateY(-11px) scale(.78); color: var(--pink-text); }
.field input:user-invalid, .field textarea:user-invalid { border-color: #ff7a8a; }
.char-count { position: absolute; right: 14px; bottom: 12px; color: var(--ink-mute); font-size: .75rem; font-weight: 700; }
.form .btn { justify-self: start; }

/* Pie ====================================================================== */
.footer { position: relative; padding: 70px 0 28px; border-top: 1px solid var(--line); background: color-mix(in srgb, var(--bg-2) 70%, transparent); overflow: hidden; }
.footer-top { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 30px 70px; }
.footer-brand { font-family: var(--font-display); font-size: 1.75rem; }
.footer-brand b { font-weight: 400; color: var(--pink-text); }
.footer-tag { margin-top: 6px; color: var(--ink-soft); }
.footer-nav, .socials { display: flex; flex-direction: column; gap: 4px; }
.footer-nav a, .socials a { color: var(--ink-soft); font-weight: 700; text-decoration: none; padding-block: 3px; transition: color .2s ease, transform .3s var(--ease-out); display: inline-block; }
.footer-nav a:hover, .socials a:hover { color: var(--pink-text); transform: translateX(4px); }
.socials a::after { content: ' ↗'; color: var(--pink-text); }
.footer-giant {
  margin: 40px 0 10px;
  font-family: var(--font-display); font-size: clamp(2.5rem, 11vw, 9rem); line-height: .95; text-align: center; white-space: nowrap;
  background: linear-gradient(180deg, var(--line-strong), transparent 85%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  user-select: none;
}
.footer-legal { display: block; color: var(--ink-mute); font-size: .875rem; text-align: center; }

.to-top {
  position: fixed; right: 18px; bottom: 18px; z-index: 40;
  display: grid; place-items: center; width: 50px; height: 50px;
  border-radius: 50%; background: var(--pink); color: var(--on-accent);
  font-weight: 800; font-size: 1.25rem; text-decoration: none;
  box-shadow: var(--glow);
  opacity: 0; visibility: hidden; transform: translateY(20px) scale(.7);
  transition: opacity .3s ease, transform .45s var(--ease-spring), visibility .3s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { transform: translateY(-4px); }

.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 80;
  max-width: calc(100vw - 32px); margin: 0; padding: 12px 22px;
  border: 1px solid var(--line-strong); border-radius: 999px;
  background: color-mix(in srgb, var(--surface-solid) 85%, transparent);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  font-weight: 800; text-align: center;
  box-shadow: var(--sticker-s), var(--card-shadow);
  opacity: 0; visibility: hidden; transform: translate(-50%, 20px) scale(.9);
  transition: opacity .3s ease, transform .45s var(--ease-spring), visibility .3s;
}
.toast::before { content: '✦ '; color: var(--pink-text); }
.toast.is-visible { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

.fly-image { position: fixed; z-index: 90; border-radius: 20px; object-fit: cover; pointer-events: none; box-shadow: 0 10px 30px rgb(255 143 184 / .6); }
.spark { position: fixed; z-index: 90; pointer-events: none; color: var(--butter); font-size: 1rem; }

/* Diálogos ================================================================= */
dialog {
  padding: 0; border: 1px solid var(--line-strong);
  background: var(--surface-solid); color: var(--ink);
  opacity: 0;
  transition: opacity .35s ease, transform .45s var(--ease-out), overlay .45s allow-discrete, display .45s allow-discrete;
}
dialog[open] { opacity: 1; }
dialog::backdrop { background: rgb(8 4 20 / 0); transition: background-color .35s ease, overlay .45s allow-discrete, display .45s allow-discrete; }
dialog[open]::backdrop { background: rgb(8 4 20 / .72); }
@starting-style {
  dialog[open] { opacity: 0; }
  dialog[open]::backdrop { background: rgb(8 4 20 / 0); }
}

.modal { width: min(92vw, 900px); max-height: 90dvh; overflow: auto; border-radius: var(--r-xl); box-shadow: 0 40px 100px -30px rgb(0 0 0 / .8); transform: translateY(30px) scale(.94); }
.modal[open] { transform: none; }
@starting-style { .modal[open] { transform: translateY(30px) scale(.94); } }
.modal-sm { width: min(92vw, 560px); }
.dialog-close { position: absolute; top: 14px; right: 14px; z-index: 3; background: color-mix(in srgb, var(--surface-solid) 80%, transparent); }

.drawer { width: min(100%, 440px); max-width: none; height: 100dvh; max-height: none; margin: 0 0 0 auto; border-width: 0 0 0 1px; transform: translateX(100%); }
.drawer[open] { display: flex; flex-direction: column; transform: none; }
@starting-style { .drawer[open] { transform: translateX(100%); } }

.dialog-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.dialog-head h2 { font-size: 1.6rem; }
.cart-items { flex: 1; overflow: auto; padding-inline: 24px; }
.cart-items:empty { display: none; }
.cart-line { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 14px; align-items: start; padding-block: 18px; border-bottom: 1px solid var(--line); animation: line-in .45s var(--ease-out); }
@keyframes line-in { from { opacity: 0; transform: translateX(24px); } }
.cart-line img { width: 72px; height: 72px; object-fit: cover; border-radius: var(--r-s); background: linear-gradient(150deg, var(--pink-soft), var(--lilac)); }
.cart-line h3 { font-size: 1rem; line-height: 1.25; }
.cart-line-price { margin-top: 2px; color: var(--pink-text); font-weight: 800; }
.qty { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; padding: 3px; border: 1px solid var(--line-strong); border-radius: 999px; }
.qty button { width: 34px; height: 34px; border: 0; border-radius: 50%; background: var(--surface-2); font-weight: 800; transition: background-color .2s ease, transform .2s var(--ease-spring); }
.qty button:hover:not(:disabled) { background: var(--pink); color: var(--on-accent); }
.qty button:active:not(:disabled) { transform: scale(.85); }
.qty button:disabled { opacity: .35; cursor: not-allowed; }
.qty output { min-width: 2ch; font-weight: 800; text-align: center; }
.cart-empty { display: grid; flex: 1; place-content: center; justify-items: center; gap: 14px; padding: 24px; text-align: center; color: var(--ink-soft); font-size: 1.0625rem; }
.cart-empty-icon { font-size: 3.5rem; animation: hover-float 3s ease-in-out infinite; }
.cart-summary { display: grid; gap: 12px; padding: 20px 24px 24px; border-top: 1px solid var(--line); background: var(--surface); }
.cart-total { display: flex; align-items: baseline; justify-content: space-between; font-weight: 800; }
.cart-total strong { font-family: var(--font-display); font-weight: 400; font-size: 1.6rem; }
.cart-summary small { color: var(--ink-mute); text-align: center; }

.detail { display: grid; grid-template-columns: 1fr 1fr; }
.gallery { position: relative; min-width: 0; min-height: 420px; background: linear-gradient(150deg, var(--pink-soft), var(--lilac)); }
.gallery-track { position: absolute; inset: 0; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; overscroll-behavior-x: contain; }
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-track img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; scroll-snap-align: start; scroll-snap-stop: always; }
.gallery-arrow, .gallery-dots { display: none; }
.has-many .gallery-arrow {
  position: absolute; top: 50%; z-index: 1; display: grid; place-items: center;
  width: 44px; height: 44px; padding-bottom: 4px;
  border: 0; border-radius: 50%; background: rgb(20 13 39 / .7); color: #fff;
  font-size: 1.75rem; line-height: 1; translate: 0 -50%;
  transition: opacity .3s ease, scale .3s var(--ease-spring), background-color .2s ease;
}
.has-many .gallery-arrow:hover:not(:disabled) { scale: 1.1; background: var(--pink); color: var(--on-accent); }
.has-many .gallery-arrow:disabled { opacity: 0; pointer-events: none; }
.gallery-prev { left: 14px; }
.gallery-next { right: 14px; }
.has-many .gallery-dots { position: absolute; left: 50%; bottom: 16px; z-index: 1; display: flex; gap: 6px; padding: 6px 9px; border-radius: 999px; background: rgb(20 13 39 / .5); translate: -50% 0; }
.gallery-dots span { width: 8px; height: 8px; border-radius: 999px; background: rgb(255 255 255 / .5); transition: width .35s var(--ease-out), background-color .3s ease; }
.gallery-dots span.is-current { width: 24px; background: #fff; }
.detail-copy { display: grid; align-content: center; justify-items: start; gap: 12px; padding: 64px 36px 36px; }
.detail-copy h2 { font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.15; }
.detail-price { font-family: var(--font-display); font-size: 2rem; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.detail-desc { color: var(--ink-soft); }
.availability { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: rgb(189 238 219 / .14); color: var(--mint); font-size: .8125rem; font-weight: 700; }
:root[data-theme='day'] .availability { color: #1f6b52; background: rgb(189 238 219 / .6); }
.availability span { position: relative; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.availability span::after { content: ''; position: absolute; inset: 0; border-radius: inherit; background: currentColor; animation: ping 1.8s ease-out infinite; }
@keyframes ping { 0% { transform: scale(1); opacity: .6; } 70%, 100% { transform: scale(3); opacity: 0; } }

.preview { padding: 36px 28px 28px; }
.preview h2 { padding-right: 52px; font-size: 1.75rem; }
#preview-hint { margin-top: 8px; color: var(--ink-soft); }
#preview-message { max-height: 40dvh; overflow: auto; margin: 18px 0; padding: 16px; border: 1px dashed var(--line-strong); border-radius: var(--r-s); background: color-mix(in srgb, var(--bg) 50%, transparent); font-family: var(--font-body); white-space: pre-wrap; overflow-wrap: anywhere; }
.preview-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* Responsive =============================================================== */
@media (max-width: 1100px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bento-xl { grid-column: span 2; grid-row: span 1; }
  .bento-xl .tile { min-height: 300px; }
  .bento-xl .tile img { width: 40%; }
}

@media (max-width: 960px) {
  .menu-btn { display: grid; }
  .nav-links {
    position: absolute; top: calc(100% + 10px); left: 0; right: 0;
    flex-direction: column; gap: 4px; padding: 10px;
    border: 1px solid var(--line); border-radius: var(--r-l);
    background: var(--surface-solid);
    box-shadow: 0 30px 60px -30px rgb(0 0 0 / .7);
    opacity: 0; visibility: hidden; transform: translateY(-10px) scale(.98); transform-origin: top;
    transition: opacity .3s ease, transform .4s var(--ease-out), visibility .3s;
  }
  .nav { position: relative; }
  .nav-links.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav-links a { padding: 14px 18px; font-size: 1.0625rem; }
  .nav-links a:hover, .nav-links a.is-active { background: var(--surface-2); }
  .nav-pill { display: none; }

  .hero { grid-template-columns: minmax(0, 1fr); min-height: 0; text-align: left; }
  .hero-visual { width: min(86%, 440px); order: -1; }
  .scroll-hint { display: none; }
  .lucky-layout, .about, .faq, .contact { grid-template-columns: minmax(0, 1fr); }
  .faq .head { position: static; }
  .gift-card { grid-template-columns: minmax(0, 1fr); }
  .gift-art { height: 160px; }
  .footer-top { grid-template-columns: minmax(0, 1fr) auto; }
  .footer-top > div:first-child { grid-column: 1 / -1; }
  .toolbar { border-radius: var(--r-l); top: 80px; }
  .tabs { width: 100%; }
  .search { max-width: none; flex-basis: 100%; }
  .search kbd { display: none; }
}

@media (max-width: 640px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .card-body { padding: 12px 12px 14px; }
  .card-price { font-size: .875rem; letter-spacing: -.02em; }
  .o-sky { left: -2%; bottom: 20%; }
  .card-foot { gap: 6px; }
  .add-btn { width: 36px; height: 36px; font-size: 1.25rem; }
  .sticker { width: 84px; font-size: .6875rem; padding: 8px; }
  .tile-text { max-width: 60%; }
  .tile img, .bento-xl .tile img { width: 34%; top: 50%; right: 16px; translate: 0 -50%; }
  .tile-go { display: none; }
  .bento { grid-template-columns: minmax(0, 1fr); grid-auto-rows: auto; }
  .bento-xl { grid-column: auto; }
  .tile, .bento-xl .tile { min-height: 190px; }
  .lucky-stage { min-height: 360px; padding: 20px; }
  .lucky-result { grid-template-columns: minmax(0, 1fr); text-align: left; }
  .lucky-photo { width: 140px; }
  .form { grid-template-columns: minmax(0, 1fr); }
  .form .btn, .hero-actions .btn { width: 100%; }
  .detail { grid-template-columns: minmax(0, 1fr); }
  .gallery { min-height: 0; height: 320px; }
  .detail-copy { padding: 24px; }
  .cart-label { display: none; }
  .cart-btn { padding-left: 10px; }
  .nav-actions { gap: 6px; }
  .round-btn { width: 40px; height: 40px; }
  .cart-btn { min-height: 40px; }
  .cart-btn b { min-width: 28px; height: 28px; }
  .nav { gap: 8px; }
  .brand-name { font-size: 1.05rem; }
  .nav { padding-left: 12px; }
  .hero-stats { gap: 14px 28px; }
  .hero-stats dd { font-size: 1.4rem; }
  .footer-top { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 380px) {
  .brand-name { display: none; }
}

/* Ajustes para celular ===================================================== */
@media (max-width: 640px) {
  :root { --section: clamp(56px, 14vw, 80px); }

  /* Hero: más lugar para la michi y etiquetas más chicas para que no se pisen */
  .hero-visual { width: min(90%, 380px); }
  .orbit { z-index: 3; }
  .orbit-2 { inset: 2%; }                      /* la órbita exterior no se sale de la pantalla */                       /* las etiquetas quedan por encima de los stickers */
  .orbiter { padding: 3px 9px; font-size: .75rem; box-shadow: 1.5px 1.5px 0 var(--outline); }
  .sticker { width: 80px; padding: 6px; font-size: .6875rem; line-height: 1.1; }
  .sticker-a { top: 56%; left: -2%; }
  .sticker-b { right: -2%; bottom: 0; }

  /* Filtros: degradado en el borde para indicar que se pueden deslizar */
  .tabs {
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 32px), transparent);
            mask-image: linear-gradient(to right, #000 calc(100% - 32px), transparent);
    padding-right: 24px;
  }
  .tab { min-height: 40px; padding: 6px 14px; }
  .search input { min-height: 38px; }

  /* Tarjetas: etiquetas en dos líneas en vez de cortarlas con "…" */
  .card-tag {
    top: 8px; left: 8px; max-width: calc(100% - 16px);
    padding: 3px 9px; border-radius: 12px;
    font-size: .6875rem; line-height: 1.2; white-space: normal; text-overflow: clip;
  }
  /* Botones más fáciles de tocar (zona táctil de 44 px) */
  .add-btn { width: 40px; height: 40px; }
  .add-btn::before { content: ""; position: absolute; inset: -4px; border-radius: 50%; }
  .card-detail { margin-top: 2px; padding: 10px 0; }

  /* Pie: links con más alto y espacio para que el botón ↑ no tape el texto */
  .footer { padding-bottom: 88px; }
  .footer-nav a, .socials a { padding-block: 9px; }
  .footer-legal-nav { gap: 2px 20px; }
  .footer .footer-legal-nav a:not(.regret-button), .footer .footer-legal-nav button { padding: 11px 0; }
  .footer-legal-nav .regret-button { margin-bottom: 6px; }

  /* Botón volver arriba: más chico y pegado a la esquina */
  .to-top { right: 12px; bottom: 12px; width: 44px; height: 44px; font-size: 1.125rem; }
}

/* Animaciones de entrada (solo con .motion-ok) ============================= */
.motion-ok .reveal { opacity: 0; translate: 0 40px; transition: opacity .8s var(--ease-out) var(--delay, 0s), translate .9s var(--ease-out) var(--delay, 0s); }
.motion-ok .reveal.is-in { opacity: 1; translate: 0 0; }

.motion-ok .split .line > span { animation: word-up .9s var(--ease-out) both; animation-delay: calc(.15s + var(--w, 0) * 70ms); }
@keyframes word-up { from { transform: translateY(110%) rotate(6deg); opacity: 0; } }
.motion-ok .hero-copy > :not(h1) { animation: fade-up .9s var(--ease-out) both; }
.motion-ok .hero-copy > .tag-line { animation-delay: .05s; }
.motion-ok .hero-copy > .hero-lead { animation-delay: .55s; }
.motion-ok .hero-copy > .hero-actions { animation-delay: .65s; }
.motion-ok .hero-copy > .hero-stats { animation-delay: .75s; }
@keyframes fade-up { from { opacity: 0; transform: translateY(24px); } }

/* Sin JS o con movimiento reducido no se oculta nada. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .card:hover, .tile:hover, .card:hover .card-photo img, .tile:hover img,
  .bento > li:hover::after, .grid > li:hover::after, .values li:hover, .about-art:hover .about-frame img { transform: none; }
  .spot, .star-drift .twinkle { display: none; }
  .btn { translate: none; }
}

/* Rendimiento: las animaciones infinitas se pausan fuera de pantalla o con la pestaña oculta. */
.is-offscreen, .is-offscreen *, .is-offscreen::before, .page-hidden, .page-hidden * { animation-play-state: paused !important; }

/* Formularios, legales y anti-spam ======================================== */
.field-error { display: block; margin-top: 6px; color: #ff7a8a; font-size: .8125rem; font-weight: 800; }
:root[data-theme='day'] .field-error { color: #b02a66; }
.field-error:empty { display: none; }
.field [aria-invalid='true'] { border-color: #ff7a8a; box-shadow: 0 0 0 4px rgb(255 122 138 / .18); }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-privacy { color: var(--ink-mute); font-size: .8125rem; }
.form-privacy a, .cart-summary small a, .faq-list details a { color: var(--pink-text); font-weight: 800; text-underline-offset: 3px; }

.footer-legal-nav {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px;
  margin-top: 36px; padding-top: 24px;
  border-top: 1px solid var(--line);
}
.footer-legal-nav a, .footer-legal-nav button {
  padding: 4px 0; border: 0; background: none;
  color: var(--ink-soft); font: inherit; font-size: .875rem; font-weight: 700;
  text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 4px;
  cursor: pointer; transition: color .2s ease;
}
.footer-legal-nav a:hover, .footer-legal-nav button:hover { color: var(--pink-text); }
/* Botón de arrepentimiento: visible desde el primer acceso (Res. 424/2020). */
.footer-legal-nav .regret-button {
  padding: 8px 16px; border: 2px solid var(--outline); border-radius: 999px;
  background: var(--pink); color: var(--on-accent); text-decoration: none;
  box-shadow: 3px 3px 0 var(--sticker);
  transition: transform .2s ease, box-shadow .2s ease;
}
.footer-legal-nav .regret-button:hover { color: var(--on-accent); transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--sticker); }
