/* Crearia · crearia.app
   Usa los tokens de /brand/tokens.css. No pongas hex aquí salvo casos puntuales. */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--cr-font-body);
  font-size: var(--cr-text-base);
  line-height: 1.6;
  color: var(--cr-text);
  background: var(--cr-bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--cr-font-display); line-height: 1.08; letter-spacing: -0.02em; margin: 0; }
h1 { font-size: var(--cr-text-3xl); font-weight: 800; }
h2 { font-size: var(--cr-text-2xl); font-weight: 700; }
h3 { font-size: var(--cr-text-lg); font-weight: 600; }
p { margin: 0; }
svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: none; box-shadow: var(--cr-focus); border-radius: var(--cr-radius-sm); }

.container { width: min(100% - 32px, var(--cr-container)); margin-inline: auto; }
.section { padding-block: var(--cr-gap-section, 88px) 0; }
.section-tight { padding-block: var(--cr-space-6) 0; }
.grad {
  background: var(--cr-gradient-text);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.lead { font-size: var(--cr-text-lg); color: var(--cr-text-muted); max-width: 34ch; }
.fine { font-size: var(--cr-text-xs); color: var(--cr-text-muted); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; padding: 8px 14px; background: var(--cr-bg-elevated); border-radius: var(--cr-radius-pill); }
.skip:focus { left: 16px; }

/* ---------- Fondo con blobs ---------- */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); animation: drift 22s var(--cr-ease) infinite alternate; }
.b1 { width: 52vmax; height: 52vmax; background: var(--cr-blob-1); top: -18vmax; right: -14vmax; }
.b2 { width: 38vmax; height: 38vmax; background: var(--cr-blob-2); bottom: -12vmax; left: -12vmax; animation-delay: -7s; }
.b3 { width: 30vmax; height: 30vmax; background: var(--cr-blob-3); top: 40%; left: 35%; animation-delay: -14s; }
.grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--cr-border) 1px, transparent 1px),
    linear-gradient(90deg, var(--cr-border) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 65%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 65%);
  opacity: .5;
}
@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(4vmax, 3vmax, 0) scale(1.08); }
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px;
  font: 600 var(--cr-text-sm)/1 var(--cr-font-body);
  border-radius: var(--cr-radius-pill); border: 1px solid transparent;
  cursor: pointer; transition: transform var(--cr-dur) var(--cr-ease), box-shadow var(--cr-dur) var(--cr-ease), background var(--cr-dur);
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; transition: transform var(--cr-dur) var(--cr-ease); }
.btn:hover svg { transform: translateX(3px); }
.btn-primary {
  color: #fff; background: var(--cr-gradient);
  box-shadow: 0 10px 30px -10px rgba(127, 66, 235, .7), inset 0 1px 0 rgba(255,255,255,.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -12px rgba(127, 66, 235, .8), inset 0 1px 0 rgba(255,255,255,.35); }
.btn-glass {
  color: var(--cr-text); background: var(--cr-glass-bg-strong); border-color: var(--cr-glass-border);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.btn-glass:hover { transform: translateY(-2px); }
.btn-sm { min-height: 40px; padding: 0 16px; }
.btn-block { width: 100%; }
.icon-btn {
  display: grid; place-items: center; width: 40px; height: 40px;
  border-radius: 50%; border: 1px solid var(--cr-border); background: transparent; color: var(--cr-text);
  cursor: pointer; transition: background var(--cr-dur);
}
.icon-btn:hover { background: var(--cr-glass-bg-strong); }
.icon-btn svg { width: 20px; height: 20px; }

/* ---------- Navegación ---------- */
.nav-wrap { position: sticky; top: 12px; z-index: 50; padding-inline: 16px; }
.nav {
  max-width: var(--cr-container); margin: 12px auto 0;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 8px 8px 8px 20px; border-radius: var(--cr-radius-pill);
  background: var(--cr-glass-bg-strong);
}
.brand img { height: 30px; width: auto; }
.nav-links { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: var(--cr-radius-pill);
  font-size: var(--cr-text-sm); font-weight: 500; color: var(--cr-text-muted);
  transition: color var(--cr-dur), background var(--cr-dur);
}
.nav-links a:hover { color: var(--cr-text); background: var(--cr-purple-100); }
:root[data-theme="dark"] .nav-links a:hover { background: rgba(184,134,254,.12); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .nav-links a:hover { background: rgba(184,134,254,.12); } }
.nav-xmas .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cr-pink); box-shadow: 0 0 0 3px rgba(255,143,207,.25); }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.lang-btn {
  display: grid; place-items: center; height: 40px; min-width: 40px; padding: 0 10px;
  border-radius: var(--cr-radius-pill); border: 1px solid var(--cr-border);
  font: 700 var(--cr-text-xs)/1 var(--cr-font-display); letter-spacing: .06em; color: var(--cr-text-muted);
  transition: background var(--cr-dur), color var(--cr-dur);
}
.lang-btn:hover { background: var(--cr-glass-bg-strong); color: var(--cr-primary); }
.menu-btn { display: none; }

/* Icono de tema */
.i-moon { display: none; }
:root[data-theme="dark"] .i-sun { display: none; }
:root[data-theme="dark"] .i-moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .i-sun { display: none; }
  :root:not([data-theme="light"]) .i-moon { display: block; }
}

/* ---------- Hero ---------- */
.hero {
  display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: var(--cr-space-7);
  min-height: min(88vh, 820px); padding-block: var(--cr-space-8) var(--cr-space-6);
}
.hero h1 { margin-block: 18px 22px; font-size: clamp(2.6rem, 1.4rem + 3.4vw, 4.1rem); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: var(--cr-radius-pill);
  font-size: var(--cr-text-xs); font-weight: 600; letter-spacing: .02em;
  color: var(--cr-primary); background: var(--cr-glass-bg-strong); border: 1px solid var(--cr-border);
}
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--cr-mint); box-shadow: 0 0 0 0 rgba(95,224,196,.6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(95,224,196,0); } 100% { box-shadow: 0 0 0 0 rgba(95,224,196,0); } }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 30px; }
.trust { display: flex; flex-wrap: wrap; gap: 8px 20px; list-style: none; padding: 0; margin: 28px 0 0; font-size: var(--cr-text-sm); color: var(--cr-text-muted); }
.trust li { display: inline-flex; align-items: center; gap: 6px; }
.trust svg { width: 16px; height: 16px; color: var(--cr-primary); stroke-width: 2.5; }

/* Escena del cubo */
.hero-art { display: grid; place-items: center; }
.stage { position: relative; width: min(100%, 460px); aspect-ratio: 1; display: grid; place-items: center; }
.ring {
  position: absolute; inset: 6%;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 25%, rgba(255,255,255,.55), transparent 60%), var(--cr-glass-bg);
  border: 1px solid var(--cr-glass-border);
  box-shadow: var(--cr-glass-shadow);
  -webkit-backdrop-filter: blur(var(--cr-glass-blur)); backdrop-filter: blur(var(--cr-glass-blur));
}
.ring::after {
  content: ""; position: absolute; inset: -1px; border-radius: 50%;
  background: conic-gradient(from 200deg, transparent 0 60%, rgba(184,134,254,.9) 75%, transparent 90%);
  -webkit-mask: radial-gradient(circle, transparent calc(70% - 2px), #000 70%);
  mask: radial-gradient(circle, transparent calc(70% - 2px), #000 70%);
  animation: spin 9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 0%,100% { translate: 0 -6px; } 50% { translate: 0 10px; } }

.chip {
  position: absolute; display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: var(--cr-radius-pill) !important;
  font-size: var(--cr-text-sm); font-weight: 600; white-space: nowrap;
  background: var(--cr-glass-bg-strong) !important;
  animation: bob 7s ease-in-out infinite;
}
.chip i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.chip-emoji { padding: 10px; font-size: 1.6rem; line-height: 1; gap: 0; }
.c1 { top: 8%;  left: 2%; }
.c2 { top: 20%; right: -2%; animation-delay: -2s; }
.c3 { bottom: 18%; left: -4%; animation-delay: -4s; }
.c4 { bottom: 6%; right: 8%; animation-delay: -1s; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* ---------- Navidad ---------- */
.xmas {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1.4fr 1fr; gap: var(--cr-space-6); align-items: center;
  padding: clamp(24px, 4vw, 56px);
  border-radius: var(--cr-radius-xl) !important;
  background:
    radial-gradient(120% 120% at 100% 0%, rgba(255,143,207,.22), transparent 55%),
    radial-gradient(90% 90% at 0% 100%, rgba(184,134,254,.28), transparent 60%),
    var(--cr-glass-bg) !important;
}
.xmas h2 { font-size: var(--cr-text-xl); margin-block: 16px 14px; max-width: 22ch; }
.xmas p { color: var(--cr-text-muted); max-width: 52ch; }
.eyebrow-xmas { color: #c2387f; }
:root[data-theme="dark"] .eyebrow-xmas { color: var(--cr-pink); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .eyebrow-xmas { color: var(--cr-pink); } }
.xmas-snow {
  position: absolute; inset: 0; pointer-events: none; opacity: .55;
  background-image:
    radial-gradient(2px 2px at 20% 30%, #fff, transparent),
    radial-gradient(2px 2px at 70% 20%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 40% 70%, #fff, transparent),
    radial-gradient(2px 2px at 85% 60%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 10% 85%, #fff, transparent),
    radial-gradient(2px 2px at 55% 45%, #fff, transparent);
  background-size: 300px 300px;
  animation: snow 18s linear infinite;
}
@keyframes snow { to { background-position: 0 300px; } }
.tiers { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 22px 0 0; }
.tiers li {
  display: flex; flex-direction: column; gap: 2px; padding: 10px 16px;
  border-radius: var(--cr-radius-md); background: var(--cr-glass-bg-strong); border: 1px solid var(--cr-glass-border);
  font-size: var(--cr-text-sm);
}
.tiers li strong { font-weight: 600; }
.tiers li span { font-family: var(--cr-font-display); font-weight: 700; font-size: var(--cr-text-lg); color: var(--cr-primary); }
.tiers li.hot { border-color: var(--cr-purple-400); box-shadow: 0 0 0 3px rgba(184,134,254,.25); }
.xmas .cta-row { margin-top: 24px; }

.xmas-art { position: relative; height: 280px; }
.letter {
  position: absolute; inset: 10px 30px 30px 10px;
  padding: 34px 26px; border-radius: var(--cr-radius-lg);
  background: linear-gradient(180deg, #fffdf8, #fff4e8);
  box-shadow: 0 24px 50px -20px rgba(76,36,150,.45);
  transform: rotate(-5deg);
  display: flex; flex-direction: column; gap: 12px;
}
.seal { position: absolute; top: -14px; right: 26px; width: 38px; height: 38px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #ff7a9c, #c2185b); box-shadow: 0 6px 14px -4px rgba(194,24,91,.6); }
.line { height: 8px; border-radius: 4px; background: #ead9c4; }
.w60 { width: 60%; } .w70 { width: 70%; } .w80 { width: 80%; } .w90 { width: 90%; }
.wave { display: flex; align-items: center; gap: 4px; margin-top: auto; padding: 10px 12px; border-radius: var(--cr-radius-pill); background: var(--cr-gradient); width: fit-content; }
.wave i { width: 4px; border-radius: 2px; background: #fff; height: 10px; animation: eq 1.1s ease-in-out infinite; }
.wave i:nth-child(3n) { animation-delay: -.3s; } .wave i:nth-child(3n+1) { animation-delay: -.6s; } .wave i:nth-child(4n) { animation-delay: -.9s; }
@keyframes eq { 0%,100% { height: 6px; } 50% { height: 22px; } }
.ornament {
  position: absolute; right: 0; bottom: 0; width: 120px; height: 120px; border-radius: 50%;
  display: grid; place-items: center;
  background: radial-gradient(circle at 35% 30%, #e7c39b, #c08a5a 70%, #a87346);
  box-shadow: inset 0 -8px 16px rgba(0,0,0,.18), 0 20px 30px -12px rgba(120,70,30,.5);
  transform: rotate(8deg);
}
.ornament::before { content: ""; position: absolute; top: -16px; left: 50%; width: 2px; height: 18px; background: #c2387f; }
.ornament span { font-family: var(--cr-font-display); font-weight: 700; font-size: 22px; color: #5b3417; opacity: .85; text-shadow: 0 1px 0 rgba(255,255,255,.3); }

/* ---------- Encabezados de sección ---------- */
.section-head { display: grid; justify-items: center; text-align: center; gap: 16px; margin-bottom: var(--cr-gap-head, 40px); }
.section-head .lead { max-width: 52ch; }

/* ---------- Servicios ---------- */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service { padding: 28px; display: flex; flex-direction: column; gap: 14px; transition: transform var(--cr-dur) var(--cr-ease); }
.service:hover { transform: translateY(-6px); }
.service p { color: var(--cr-text-muted); }
.s-icon {
  width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, var(--c1), var(--c2));
  box-shadow: 0 12px 24px -10px var(--c2);
}
.s-icon svg { width: 28px; height: 28px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0; }
.tags li { padding: 4px 10px; border-radius: var(--cr-radius-pill); font-size: var(--cr-text-xs); font-weight: 600; color: var(--cr-primary); background: var(--cr-glass-bg-strong); border: 1px solid var(--cr-border); }
.machine { margin-top: auto !important; padding-top: 14px; border-top: 1px dashed var(--cr-border); font-size: var(--cr-text-xs); }

/* ---------- Ideas ---------- */
.ideas { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.idea { padding: 22px; display: flex; flex-direction: column; gap: 4px; transition: transform var(--cr-dur) var(--cr-ease), border-color var(--cr-dur); }
.idea:hover { transform: translateY(-4px) rotate(-.5deg); border-color: var(--a); }
.idea strong { font-family: var(--cr-font-display); font-size: var(--cr-text-lg); font-weight: 600; margin-top: 12px; }
.idea > span:last-child { font-size: var(--cr-text-sm); color: var(--cr-text-muted); }
.idea-art {
  width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--a) 22%, transparent);
  color: color-mix(in srgb, var(--a) 70%, var(--cr-text));
}
.idea-art svg { width: 40px; height: 40px; stroke-width: 2.5; }

/* ---------- Proceso ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; list-style: none; padding: 0; margin: 0; counter-reset: s; }
.step { padding: 26px; display: flex; flex-direction: column; gap: 10px; position: relative; }
.step p { color: var(--cr-text-muted); font-size: var(--cr-text-sm); }
.n {
  width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center;
  font-family: var(--cr-font-display); font-weight: 700; font-size: 20px; color: #fff;
  background: var(--cr-gradient); box-shadow: 0 10px 20px -8px rgba(127,66,235,.7);
}
.step:not(:last-child)::after {
  content: ""; position: absolute; top: 48px; right: -12px; width: 24px; height: 2px;
  background: linear-gradient(90deg, var(--cr-purple-400), transparent);
}

/* ---------- Marquee ---------- */
.marquee { margin-top: var(--cr-gap-section, 88px); overflow: hidden; padding-block: 18px; border-block: 1px solid var(--cr-border); background: var(--cr-glass-bg); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.track { display: flex; gap: 48px; width: max-content; animation: marquee 32s linear infinite; }
.track span { font-family: var(--cr-font-display); font-size: var(--cr-text-xl); font-weight: 600; color: var(--cr-text-muted); display: inline-flex; align-items: center; gap: 48px; }
.track span::after { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--cr-gradient); transform: rotate(45deg); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Cotiza ---------- */
.quote { display: grid; grid-template-columns: 1fr 1.1fr; gap: var(--cr-space-7); padding: clamp(24px, 4vw, 56px); border-radius: var(--cr-radius-xl) !important; }
.quote h2 { margin-block: 16px; }
.quote-copy > p { color: var(--cr-text-muted); }
.quote-points { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; }
.quote-points li { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.quote-ig { margin-top: 14px; font-size: var(--cr-text-sm); color: var(--cr-text-muted, inherit); }
.quote-ig a { color: var(--cr-primary); font-weight: 700; }
.quote-points li::before { content: ""; width: 20px; height: 20px; border-radius: 6px; background: var(--cr-gradient); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 6 9 17l-5-5' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/70% no-repeat, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; flex: none; }
.quote-form { display: grid; gap: 16px; }
.quote-form label { display: grid; gap: 6px; font-size: var(--cr-text-sm); font-weight: 600; }
.quote-form input, .quote-form select, .quote-form textarea {
  width: 100%; padding: 14px 16px; font: 400 var(--cr-text-base)/1.4 var(--cr-font-body); color: var(--cr-text);
  background: var(--cr-glass-bg-strong); border: 1px solid var(--cr-border); border-radius: var(--cr-radius-md);
  transition: border-color var(--cr-dur), box-shadow var(--cr-dur);
}
.quote-form select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='%239e60fe' stroke-width='2.5' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; padding-right: 44px; }
.quote-form textarea { resize: vertical; }
.quote-form input:focus, .quote-form select:focus, .quote-form textarea:focus { outline: none; border-color: var(--cr-purple-400); box-shadow: var(--cr-focus); }
.quote-form [aria-invalid="true"] { border-color: #e5484d; }
.quote-form .fine { text-align: center; }

/* ---------- Footer ---------- */
.footer { padding-block: var(--cr-gap-section, 88px) var(--cr-space-6); }
.footer-inner { display: grid; justify-items: center; text-align: center; gap: 12px; padding: 32px; }
.footer-inner nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; font-size: var(--cr-text-sm); color: var(--cr-text-muted); }
.footer-inner nav a:hover { color: var(--cr-primary); }
/* WhatsApp: icono verde de la marca de WhatsApp, texto con el estilo de Crearia */
.wa-ico { width: 1.15em; height: 1.15em; flex: none; color: #25d366; }
.footer-wa { display: inline-flex; align-items: center; gap: 6px; }
.quote-wa { margin-top: var(--cr-gap-block, 28px); }
.btn.quote-wa svg { width: 20px; height: 20px; }
.btn.quote-wa:hover svg { transform: none; }

/* ---------- Aparición al hacer scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--cr-ease), transform .8s var(--cr-ease); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; text-align: center; min-height: auto; padding-top: var(--cr-space-7); }
  .hero .lead { margin-inline: auto; }
  .cta-row, .trust { justify-content: center; }
  .hero-art { order: -1; }
  .stage { width: min(100%, 340px); --cube: 120px; }
  .xmas { grid-template-columns: 1fr; }
  .xmas-art { height: 220px; max-width: 360px; width: 100%; margin-inline: auto; }
  .services { grid-template-columns: 1fr; }
  .ideas { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step::after { display: none; }
  .quote { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .menu-btn { display: grid; }
  .nav { padding-left: 16px; }
  .nav-actions .btn-sm { display: none; }
  .nav-links {
    position: absolute; top: calc(100% + 8px); left: 16px; right: 16px;
    flex-direction: column; padding: 10px; border-radius: var(--cr-radius-lg);
    background: var(--cr-glass-bg-strong); border: 1px solid var(--cr-glass-border); box-shadow: var(--cr-glass-shadow);
    -webkit-backdrop-filter: blur(var(--cr-glass-blur)); backdrop-filter: blur(var(--cr-glass-blur));
    opacity: 0; pointer-events: none; transform: translateY(-8px); transition: opacity var(--cr-dur), transform var(--cr-dur);
  }
  .nav-links.open { opacity: 1; pointer-events: auto; transform: none; }
  .nav-links a { padding: 12px 16px; font-size: var(--cr-text-base); }
}
@media (max-width: 520px) {
  .ideas { grid-template-columns: 1fr 1fr; gap: 10px; }
  .idea { padding: 16px; }
  .idea strong { font-size: var(--cr-text-base); }
  .idea-art { width: 52px; height: 52px; border-radius: 16px; }
  .idea-art svg { width: 32px; height: 32px; }
  .steps { grid-template-columns: 1fr; }
  .chip { font-size: var(--cr-text-xs); padding: 6px 10px; }
  .chip-emoji { font-size: 1.3rem; padding: 8px; }
  .c2 { right: 0; } .c3 { left: 0; }
  .stage { width: min(100%, 280px); --cube: 104px; }
  .hero { padding-top: var(--cr-space-5); gap: var(--cr-space-5); }
  .cta-row .btn { width: 100%; }
  .xmas .cta-row .btn { width: 100%; }
}

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  .cube3d { clip-path: none !important; }
  .nozzle { display: none; }
  .engrave { stroke-dashoffset: 0; }
  .laser-glow { display: none; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   Vida: animaciones y microinteracciones
   ========================================================================== */

/* Barra de progreso de scroll */
.progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60;
  background: var(--cr-gradient); transform-origin: 0 50%; transform: scaleX(var(--p, 0));
}

/* Mini cubos flotando en el fondo */
.mini {
  position: absolute; width: 22px; aspect-ratio: 1 / 1.1547; opacity: .5;
  background:
    linear-gradient(160deg, #d6b8ff, #b886fe) top / 100% 50% no-repeat;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  background-image: conic-gradient(from 210deg at 50% 50%, #9e60fe 0 120deg, #7f42eb 120deg 240deg, #b886fe 240deg 360deg);
  animation: spinfloat 14s ease-in-out infinite;
  translate: 0 var(--py, 0px);
}
.m1 { top: 14%; left: 6%; }
.m2 { top: 62%; left: 3%; width: 14px; animation-delay: -3s; }
.m3 { top: 30%; right: 4%; width: 18px; animation-delay: -6s; }
.m4 { top: 78%; right: 10%; width: 26px; animation-delay: -9s; opacity: .35; }
.m5 { top: 48%; left: 46%; width: 12px; animation-delay: -2s; opacity: .3; }
.m6 { top: 90%; left: 30%; width: 16px; animation-delay: -5s; }
@keyframes spinfloat {
  0%,100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-24px) rotate(30deg); }
}

/* Título: líneas que suben + palabra que cambia */
.hero h1 .h-line { display: inline-block; animation: rise 1s var(--cr-ease) both; }
.hero h1 .h-line + br + .h-line { animation-delay: .15s; }
@keyframes rise { from { opacity: 0; transform: translateY(40%); } }
.swap {
  display: inline-block; background: var(--cr-gradient-text);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  transition: transform .45s var(--cr-ease), opacity .45s var(--cr-ease), filter .45s;
}
.swap.out { transform: translateY(-40%) rotateX(70deg); opacity: 0; filter: blur(6px); }
.swap.pre { transform: translateY(40%) rotateX(-70deg); opacity: 0; filter: blur(6px); transition: none; }

/* Cubo 3D que se "imprime" y gira */
.stage { --cube: 150px; perspective: 900px; }
.cube3d {
  position: relative; width: var(--cube); height: var(--cube);
  clip-path: inset(100% -100% -100% -100%);
  animation: build 2.8s cubic-bezier(.6,.1,.3,1) .3s forwards;
  cursor: grab; touch-action: pan-y;
}
.cube3d:active { cursor: grabbing; }
.cube3d.built { clip-path: none; animation: none; }
@keyframes build { to { clip-path: inset(-100%); } }
.cube-rot {
  position: absolute; inset: 0; transform-style: preserve-3d;
  transform: rotateX(var(--rx, -28deg)) rotateY(var(--ry, 45deg));
}
.cf {
  position: absolute; inset: 0; border-radius: 6px;
  border: 1px solid rgba(255,255,255,.35);
  background-image:
    repeating-linear-gradient(0deg, rgba(255,255,255,.10) 0 2px, transparent 2px 7px),
    var(--g);
  box-shadow: inset 0 0 30px rgba(255,255,255,.15);
}
.cf-front  { --g: linear-gradient(180deg, #ab74ff, #9e60fe 60%, #8b4ef5); transform: translateZ(calc(var(--cube) / 2)); }
.cf-back   { --g: linear-gradient(180deg, #8a4ff2, #6a33d1); transform: rotateY(180deg) translateZ(calc(var(--cube) / 2)); }
.cf-right  { --g: linear-gradient(180deg, #8a4ff2, #7f42eb 60%, #6a33d1); transform: rotateY(90deg) translateZ(calc(var(--cube) / 2)); }
.cf-left   { --g: linear-gradient(180deg, #b886fe, #9e60fe); transform: rotateY(-90deg) translateZ(calc(var(--cube) / 2)); }
.cf-top    { --g: linear-gradient(135deg, #e3cdff, #b886fe); transform: rotateX(90deg) translateZ(calc(var(--cube) / 2)); }
.cf-bottom { --g: linear-gradient(135deg, #6a33d1, #4c2496); transform: rotateX(-90deg) translateZ(calc(var(--cube) / 2)); }
.nozzle {
  position: absolute; left: -40%; right: -40%; height: 3px; bottom: 0;
  background: linear-gradient(90deg, transparent, var(--cr-mint), #fff, var(--cr-mint), transparent);
  box-shadow: 0 0 18px 4px rgba(95,224,196,.6);
  border-radius: 3px;
  animation: nozzle 2.8s cubic-bezier(.6,.1,.3,1) .3s forwards;
}
@keyframes nozzle {
  0% { bottom: -2%; opacity: 1; }
  92% { bottom: 160%; opacity: 1; }
  100% { bottom: 160%; opacity: 0; }
}
.cube-shadow {
  position: absolute; bottom: 18%; left: 50%; width: 46%; height: 18px; translate: -50% 0;
  border-radius: 50%; background: radial-gradient(closest-side, rgba(76,36,150,.35), transparent);
  filter: blur(4px); animation: shadow 6s ease-in-out infinite;
}
@keyframes shadow { 50% { transform: scale(.85); opacity: .7; } }
.stage:hover .ring::after { animation-duration: 3s; }

/* Taller en vivo */
.rec { width: 8px; height: 8px; border-radius: 50%; background: #ff4d6d; animation: blink 1.4s steps(2, start) infinite; }
@keyframes blink { to { visibility: hidden; } }
.workshop { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.ws-card { overflow: hidden; display: flex; flex-direction: column; }
.ws-stage {
  position: relative; aspect-ratio: 16 / 10; display: grid; place-items: center;
  background:
    radial-gradient(120% 90% at 50% 110%, rgba(127,66,235,.25), transparent 60%),
    linear-gradient(180deg, #1b1530, #2a1f4a);
  border-bottom: 1px solid var(--cr-glass-border);
}
.ws-live {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: var(--cr-radius-pill);
  font-size: var(--cr-text-xs); font-weight: 700; color: #fff; background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.15); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.ws-live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #ff4d6d; box-shadow: 0 0 8px #ff4d6d; }
.ws-copy { padding: 24px 26px 28px; display: grid; gap: 8px; }
.ws-copy p { color: var(--cr-text-muted); }
.ws-tag { font-size: var(--cr-text-xs); font-weight: 700; letter-spacing: .04em; color: var(--cr-primary); text-transform: uppercase; }
.laser-svg rect, .laser-svg circle { stroke: none; }
.laser-svg { width: 86%; filter: drop-shadow(0 20px 30px rgba(0,0,0,.45)); }
.engrave {
  fill: none; stroke: #4a2810; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 1; stroke-dashoffset: 1;
  filter: drop-shadow(0 0 .6px rgba(74,40,16,.8));
}
.laser-glow { filter: drop-shadow(0 0 6px #ffb347); }
.ws-card:hover .laser-svg { transform: scale(1.03) rotate(-1deg); transition: transform .6s var(--cr-ease); }

.printer-stage { --w: 70%; }
.printer-stage .frame { position: absolute; inset: 0 14%; }
.printer-stage .rail { position: absolute; left: 0; right: 0; height: 4px; top: calc(var(--hy, 60%) + 10px); background: linear-gradient(90deg, transparent, #8f86b0, transparent); border-radius: 2px; transition: top .2s linear; }
.printer-stage .head {
  position: absolute; top: var(--hy, 60%); left: var(--hx, 50%); translate: -50% 0;
  width: 34px; height: 26px; border-radius: 7px; background: linear-gradient(180deg, #a59cc8, #6b6485);
  border: 1px solid rgba(255,255,255,.12); transition: top .2s linear, left .24s ease-in-out;
}
.printer-stage .head i { position: absolute; bottom: -7px; left: 50%; translate: -50% 0; width: 6px; height: 8px; background: #ffb38a; clip-path: polygon(0 0, 100% 0, 60% 100%, 40% 100%); box-shadow: 0 6px 10px #ff8a3d; }
.printer-stage .layers { position: absolute; left: 50%; bottom: 22%; translate: -50% 0; display: flex; flex-direction: column-reverse; align-items: center; }
.printer-stage .layers span {
  display: block; height: 8px; border-radius: 3px; margin-top: 1px;
  background: linear-gradient(90deg, #7f42eb, #b886fe 50%, #7f42eb);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35);
  animation: lay .25s var(--cr-ease) both;
}
@keyframes lay { from { transform: scaleX(0); opacity: 0; filter: brightness(2); } }
.printer-stage .layers.done span { animation: done 1s var(--cr-ease) both; }
@keyframes done { to { opacity: 0; transform: translateY(-6px); } }
.printer-stage .bed { position: absolute; bottom: 18%; left: 20%; right: 20%; height: 8px; border-radius: 4px; background: linear-gradient(90deg, #3a3354, #5a5275, #3a3354); box-shadow: 0 10px 30px rgba(127,66,235,.35); }

/* Luz que sigue al cursor en las tarjetas */
.spot { position: relative; isolation: isolate; }
.spot::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: -1;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(184,134,254,.28), transparent 60%);
  opacity: 0; transition: opacity .3s;
}
.spot:hover::before { opacity: 1; }
.tilt { transform-style: preserve-3d; transition: transform .25s var(--cr-ease), border-color var(--cr-dur); }

/* Íconos que se dibujan al aparecer */
.draw svg * { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.4s var(--cr-ease) .2s; }
.reveal.in.draw svg *, .reveal.in .draw svg * { stroke-dashoffset: 0; }
.s-icon { transition: transform .4s var(--cr-ease); }
.service:hover .s-icon { transform: rotate(-8deg) scale(1.08); }
.idea:hover .idea-art { animation: wiggle .6s var(--cr-ease); }
@keyframes wiggle { 30% { transform: rotate(-8deg) scale(1.08); } 60% { transform: rotate(6deg) scale(1.08); } }

/* Pasos: la línea se llena */
.step:not(:last-child)::after { transform: scaleX(0); transform-origin: 0 50%; transition: transform .8s var(--cr-ease) .4s; }
.step.in:not(:last-child)::after { transform: scaleX(1); }
.n { transition: transform .4s var(--cr-ease); }
.step:hover .n { transform: rotate(-10deg) scale(1.1); }

/* Botones magnéticos y brillo */
.btn-primary { position: relative; overflow: hidden; translate: var(--bx, 0) var(--by, 0); transition: transform var(--cr-dur) var(--cr-ease), box-shadow var(--cr-dur) var(--cr-ease), translate .2s var(--cr-ease); }
.btn-primary::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.45) 50%, transparent 65%);
  transform: translateX(-120%); animation: shine 5s ease-in-out infinite 2s;
}
@keyframes shine { 0%, 70% { transform: translateX(-120%); } 85%, 100% { transform: translateX(120%); } }

@media (max-width: 960px) {
  .workshop { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .draw svg * { stroke-dashoffset: 0 !important; }
  .step:not(:last-child)::after { transform: none; }
  .hero h1 .h-line { animation: none; }
}

/* ---------- Productos digitales ---------- */
.products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.product { padding: 20px 20px 24px; display: flex; flex-direction: column; gap: 10px; transition: transform var(--cr-dur) var(--cr-ease), border-color var(--cr-dur); }
.product:hover { transform: translateY(-6px); }
.product p { color: var(--cr-text-muted); font-size: var(--cr-text-sm); }
.p-art { height: 150px; border-radius: var(--cr-radius-md); display: grid; place-items: center; margin-bottom: 6px; overflow: hidden; }
.p-art-letter { background: radial-gradient(circle at 70% 20%, rgba(255,143,207,.45), transparent 50%), linear-gradient(135deg, #2e1660, #7f42eb); }
.mini-letter { width: 130px; padding: 16px 14px; border-radius: 12px; background: linear-gradient(180deg, #fffdf8, #fff1e2); transform: rotate(-6deg); display: grid; gap: 7px; box-shadow: 0 16px 30px -12px rgba(0,0,0,.5); transition: transform .5s var(--cr-ease); }
.product:hover .mini-letter { transform: rotate(0deg) scale(1.06); }
.mini-letter > span { height: 6px; border-radius: 3px; background: #ead9c4; }
.mini-letter > span:nth-child(2) { width: 70%; } .mini-letter > span:nth-child(3) { width: 85%; }
.mini-letter .wave { margin-top: 4px; padding: 6px 9px; gap: 3px; }
.mini-letter .wave i { width: 3px; }
.p-art-files { background: linear-gradient(135deg, #e6fbf5, #efe3ff); gap: 14px; grid-auto-flow: column; }
:root[data-theme="dark"] .p-art-files { background: linear-gradient(135deg, #12322c, #2e1660); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .p-art-files { background: linear-gradient(135deg, #12322c, #2e1660); } }
.file { width: 64px; height: 80px; border-radius: 10px 22px 10px 10px; display: grid; place-items: end center; padding-bottom: 12px; font: 800 14px/1 var(--cr-font-display); color: #fff; background: var(--cr-gradient); box-shadow: 0 14px 24px -12px rgba(127,66,235,.8); transition: transform .5s var(--cr-ease); }
.file + .file { background: linear-gradient(135deg, #5fe0c4, #2bb59a); transform: rotate(8deg) translateY(8px); }
.product:hover .file { transform: translateY(-6px) rotate(-6deg); }
.product:hover .file + .file { transform: translateY(2px) rotate(12deg); }
.badge { align-self: flex-start; padding: 3px 10px; border-radius: var(--cr-radius-pill); font-size: var(--cr-text-xs); font-weight: 700; color: var(--cr-text-muted); background: var(--cr-glass-bg-strong); border: 1px solid var(--cr-border); }
.badge-on { color: #0f7a63; background: rgba(95,224,196,.2); border-color: rgba(95,224,196,.5); }
:root[data-theme="dark"] .badge-on { color: var(--cr-mint); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .badge-on { color: var(--cr-mint); } }
.p-foot { margin-top: auto; padding-top: 12px; display: flex; justify-content: space-between; align-items: center; gap: 12px; border-top: 1px dashed var(--cr-border); }
.p-foot strong { font-family: var(--cr-font-display); font-weight: 700; color: var(--cr-primary); }
.p-link { font-size: var(--cr-text-sm); font-weight: 700; color: var(--cr-primary); white-space: nowrap; }
.product-next { border: 2px dashed var(--cr-border); border-radius: var(--cr-radius-lg); justify-content: center; text-align: center; align-items: center; background: transparent; }
.product-next:hover { border-color: var(--cr-purple-400); background: var(--cr-glass-bg); }
.p-plus { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font: 300 40px/1 var(--cr-font-display); color: var(--cr-primary); background: var(--cr-glass-bg-strong); border: 1px solid var(--cr-border); transition: transform .5s var(--cr-ease); }
.product-next:hover .p-plus { transform: rotate(90deg); }

.hybrid { margin-top: 20px; display: grid; grid-template-columns: 1fr 1.15fr; gap: var(--cr-space-6); align-items: center; padding: clamp(24px, 4vw, 48px); border-radius: var(--cr-radius-xl) !important; }
.hybrid h3 { font-size: var(--cr-text-xl); font-weight: 700; margin-block: 14px 12px; }
.hybrid-copy > p:not(.eyebrow) { color: var(--cr-text-muted); }
.hybrid .cta-row { margin-top: 22px; }
.flow { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; justify-content: center; gap: 12px; }
.flow-step { display: grid; justify-items: center; gap: 10px; text-align: center; font-size: var(--cr-text-sm); font-weight: 600; max-width: 120px; }
.flow-ico { width: 72px; height: 72px; border-radius: 22px; display: grid; place-items: center; font-size: 30px; color: #fff; background: var(--cr-gradient); box-shadow: 0 14px 28px -12px rgba(127,66,235,.8); animation: bob 6s ease-in-out infinite; }
.flow-wave { display: flex; gap: 4px; align-items: center; justify-content: center; animation-delay: -2s; background: linear-gradient(135deg, #ff8fcf, #9e60fe); }
.flow-wave i { width: 4px; height: 10px; border-radius: 2px; background: #fff; animation: eq 1s ease-in-out infinite; }
.flow-wave i:nth-child(2) { animation-delay: -.2s; } .flow-wave i:nth-child(3) { animation-delay: -.5s; } .flow-wave i:nth-child(4) { animation-delay: -.7s; }
.flow-plus { font: 600 28px/1 var(--cr-font-display); color: var(--cr-purple-400); }
.plaque { width: 104px; height: 104px; border-radius: 18px; display: grid; place-items: center; background: radial-gradient(circle at 30% 25%, #f3d2a8, #d9a873 70%, #c08a5a); box-shadow: inset 0 -6px 12px rgba(0,0,0,.15), 0 18px 30px -12px rgba(120,70,30,.6); animation: bob 6s ease-in-out infinite -4s; }
.plaque svg { width: 58px; height: 58px; fill: #4a2810; stroke: none; }
.plaque svg rect { stroke: none; }

@media (max-width: 960px) {
  .products { grid-template-columns: 1fr 1fr; }
  .product-next { grid-column: 1 / -1; }
  .hybrid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .products { grid-template-columns: 1fr; }
  .flow { gap: 6px; }
  .flow-ico { width: 56px; height: 56px; border-radius: 18px; font-size: 24px; }
  .plaque { width: 80px; height: 80px; }
  .plaque svg { width: 44px; height: 44px; }
  .flow-plus { font-size: 20px; }
}

/* Tamaño del cubo por pantalla (va al final para ganar a la regla base) */
@media (max-width: 960px) { .stage { --cube: 124px; } }
@media (max-width: 520px) { .stage { --cube: 100px; } }

/* ==========================================================================
   Responsive: teléfonos y tabletas (auditoría 360–1180, vertical y horizontal)
   ========================================================================== */
.brand { flex-shrink: 0; }
.nav-links a { white-space: nowrap; }

/* Tabletas: el menú completo no cabe, pasa a menú desplegable */
@media (max-width: 1023px) {
  .menu-btn { display: grid; }
  .nav { position: relative; padding-left: 16px; }
  .nav-links {
    position: absolute; top: calc(100% + 8px); left: 0; right: 0;
    flex-direction: column; padding: 10px; border-radius: var(--cr-radius-lg);
    background: var(--cr-glass-bg-strong); border: 1px solid var(--cr-glass-border); box-shadow: var(--cr-glass-shadow);
    -webkit-backdrop-filter: blur(var(--cr-glass-blur)); backdrop-filter: blur(var(--cr-glass-blur));
    opacity: 0; pointer-events: none; transform: translateY(-8px); transition: opacity var(--cr-dur), transform var(--cr-dur);
  }
  .nav-links.open { opacity: 1; pointer-events: auto; transform: none; }
  .nav-links a { padding: 12px 16px; font-size: var(--cr-text-base); }
}

/* Tabletas: aprovechar el ancho con dos columnas */
@media (min-width: 640px) and (max-width: 960px) {
  .services { grid-template-columns: 1fr 1fr; }
  .services > :last-child { grid-column: 1 / -1; }
  .workshop { grid-template-columns: 1fr 1fr; }
  .ws-stage { aspect-ratio: 1; }
}

/* Teléfonos en horizontal: texto y cubo lado a lado para que el título se vea al entrar */
@media (orientation: landscape) and (max-height: 520px) and (max-width: 1023px) {
  .hero { grid-template-columns: 1.3fr 1fr; text-align: left; gap: var(--cr-space-5); padding-block: var(--cr-space-5); }
  .hero-art { order: 0; }
  .hero .lead { margin-inline: 0; }
  .hero .cta-row, .hero .trust { justify-content: flex-start; }
  .hero h1 { font-size: clamp(2rem, 5.2vw, 3rem); margin-block: 12px 14px; }
  .hero .cta-row { margin-top: 18px; }
  .hero .trust { margin-top: 16px; }
  .stage { width: min(100%, 260px); --cube: 92px; }
  .workshop { grid-template-columns: 1fr 1fr; }
  .ws-stage { aspect-ratio: 4 / 3; }
}

/* Teléfonos */
@media (max-width: 760px) {
  .mini { opacity: .25; }
  .m2, .m4, .m6 { display: none; }
}
@media (max-width: 520px) {
  .tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .tiers li { padding: 10px 10px; min-width: 0; }
  .tiers li strong { font-size: var(--cr-text-xs); line-height: 1.25; }
  .xmas .fine { text-align: center; width: 100%; }
  .section-head h2, .hero h1 { overflow-wrap: break-word; }
}

/* Áreas táctiles de al menos 44 px en el pie */
@media (max-width: 1023px), (pointer: coarse) {
  .footer-inner nav { gap: 0 6px; }
  .footer-inner nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; }
}
@media (max-width: 1180px) { .c2 { right: 0; } .c3 { left: 0; } }

/* Aviso de temporada en la portada */
.season { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 14px 14px 22px; border-radius: var(--cr-radius-pill) !important; }
.season p { margin: 0; font-size: var(--cr-text-sm); color: var(--cr-text-muted); }
.season p strong { color: var(--cr-text); }
.season .sn { font-size: 18px; margin-right: 6px; }

@media (max-width: 600px) {
  .season { flex-direction: column; text-align: center; border-radius: var(--cr-radius-lg) !important; padding: 18px; }
  .season .btn { width: 100%; }
}

/* ==========================================================================
   Caja de regalo 3D (reemplaza al cubo; misma animación de impresión y giro)
   ========================================================================== */
.cube3d { --rib: #ff8fcf; --rib2: #e255a8; --W: calc(var(--cube) * 1.1); --H: calc(var(--cube) * .24); }
/* Listón vertical en las cuatro caras y cruz en la cara superior */
.cf-front, .cf-back, .cf-right, .cf-left {
  background-image:
    linear-gradient(90deg, transparent 43%, var(--rib2) 43% 44.5%, var(--rib) 44.5% 55.5%, var(--rib2) 55.5% 57%, transparent 57%),
    repeating-linear-gradient(0deg, rgba(255,255,255,.08) 0 2px, transparent 2px 7px),
    var(--g);
}
.cf-top {
  background-image:
    linear-gradient(90deg, transparent 43%, var(--rib) 43% 57%, transparent 57%),
    linear-gradient(0deg, transparent 43%, var(--rib) 43% 57%, transparent 57%),
    var(--g);
}
/* Tapa */
.lid { position: absolute; inset: 0; transform-style: preserve-3d; transform: translateY(var(--lift, 0px)) rotateX(var(--tilt, 0deg)); }
.ld { position: absolute; border-radius: 5px; border: 1px solid rgba(255,255,255,.4); backface-visibility: visible; }
.ld-top {
  width: var(--W); height: var(--W); left: calc((var(--cube) - var(--W)) / 2); top: calc((var(--cube) - var(--W)) / 2);
  transform: rotateX(90deg) translateZ(calc(var(--cube) / 2 + var(--H) * .3));
  background:
    linear-gradient(90deg, transparent 43%, var(--rib) 43% 57%, transparent 57%),
    linear-gradient(0deg, transparent 43%, var(--rib) 43% 57%, transparent 57%),
    radial-gradient(circle at 30% 25%, rgba(255,255,255,.45), transparent 55%),
    linear-gradient(135deg, #e9d7ff, #c39bff);
}
.ld-front, .ld-back, .ld-right, .ld-left {
  width: var(--W); height: var(--H); left: calc((var(--cube) - var(--W)) / 2); top: calc(var(--H) * -.3);
  background:
    linear-gradient(90deg, transparent 43%, var(--rib2) 43% 44.5%, var(--rib) 44.5% 55.5%, var(--rib2) 55.5% 57%, transparent 57%),
    linear-gradient(180deg, #c9a5ff, #a46cff);
}
.ld-front { transform: translateZ(calc(var(--W) / 2)); }
.ld-back  { transform: rotateY(180deg) translateZ(calc(var(--W) / 2)); filter: brightness(.85); }
.ld-right { transform: rotateY(90deg) translateZ(calc(var(--W) / 2)); filter: brightness(.82); }
.ld-left  { transform: rotateY(-90deg) translateZ(calc(var(--W) / 2)); filter: brightness(1.05); }
/* Moño: dos planos cruzados con dos lazos cada uno */
.bow {
  position: absolute; width: calc(var(--cube) * .62); height: calc(var(--cube) * .3);
  left: calc(var(--cube) * .19); top: calc(var(--H) * -.3 - var(--cube) * .3 + 2px);
  transform-origin: 50% 100%; backface-visibility: visible;
}
.bow-b { transform: rotateY(90deg); }
.bow::before, .bow::after {
  content: ""; position: absolute; bottom: 0; width: 46%; height: 92%;
  border: calc(var(--cube) * .06) solid var(--rib); border-radius: 60% 60% 45% 45% / 70% 70% 30% 30%;
  box-shadow: inset 0 -4px 0 rgba(194,56,127,.25);
}
.bow::before { left: 4%; transform: rotate(-28deg); transform-origin: 100% 100%; }
.bow::after { right: 4%; transform: rotate(28deg); transform-origin: 0 100%; }
/* Luz que sale cuando se abre */
.gift-glow {
  position: absolute; inset: 8%; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,214,107,.95), rgba(255,143,207,.5) 45%, transparent 70%);
  transform: rotateX(90deg) translateZ(calc(var(--cube) / 2 + 1px)); opacity: var(--glow, 0); filter: blur(2px);
}
.cube3d.built .lid { animation: lid-peek 7s cubic-bezier(.5,0,.2,1) 1s infinite; }
.cube3d.built .gift-glow { animation: glow-peek 7s cubic-bezier(.5,0,.2,1) 1s infinite; }
@keyframes lid-peek {
  0%, 62%, 100% { transform: translateY(0) rotateX(0); }
  72%, 84% { transform: translateY(calc(var(--cube) * -.42)) rotateX(-14deg); }
}
@keyframes glow-peek { 0%, 62%, 100% { opacity: 0; } 72%, 84% { opacity: 1; } }
.cube-shadow { width: 56%; }
@media (prefers-reduced-motion: reduce) {
  .cube3d.built .lid, .cube3d.built .gift-glow { animation: none; }
}
/* Ajustes: moño más visible y haz de luz al abrir */
.bow { width: calc(var(--cube) * .7); height: calc(var(--cube) * .36); left: calc(var(--cube) * .15); top: calc(var(--H) * -.3 - var(--cube) * .36 + 3px); }
.bow::before, .bow::after { border-width: calc(var(--cube) * .075); width: 48%; }
.beam {
  position: absolute; width: calc(var(--cube) * .8); height: calc(var(--cube) * .9);
  left: calc(var(--cube) * .1); top: calc(var(--cube) * -.9);
  background: linear-gradient(0deg, rgba(255,214,107,.85), rgba(255,143,207,.35) 45%, transparent 85%);
  clip-path: polygon(22% 100%, 78% 100%, 100% 0, 0 0); filter: blur(3px);
  backface-visibility: visible; opacity: var(--glow, 0); transform-origin: 50% 100%;
}
.beam-b { transform: rotateY(90deg); }
.cube3d.built .beam { animation: glow-peek 7s cubic-bezier(.5,0,.2,1) 1s infinite; }
.cube3d.built .beam-b { animation-name: glow-peek-b; }
@keyframes glow-peek-b { 0%, 62%, 100% { opacity: 0; } 72%, 84% { opacity: 1; } }
.gift-glow { inset: 0; background: radial-gradient(circle, #fff6d6, rgba(255,214,107,.95) 30%, rgba(255,143,207,.6) 55%, transparent 72%); }
@media (prefers-reduced-motion: reduce) { .cube3d.built .beam { animation: none; } }

/* Regalo 3D (GLB) sobre la caja de código */
.gift3d { position: absolute; inset: 9%; width: auto; height: auto; z-index: 2; opacity: 0; transition: opacity .7s ease; --poster-color: transparent; background: transparent; cursor: grab; }
.gift3d:active { cursor: grabbing; }
.stage.has-3d .gift3d { opacity: 1; }
.stage.has-3d .cube3d, .stage.has-3d .cube-shadow { opacity: 0; transition: opacity .5s ease; pointer-events: none; }
.stage .chip { z-index: 3; }
/* Imagen fija del regalo 3D: se ve desde el inicio y el modelo aparece encima sin cambio */
.gift-poster { position: absolute; inset: 9%; width: 82%; height: 82%; object-fit: contain; z-index: 1; pointer-events: none; transition: opacity .5s ease .1s; }
.stage.has-poster .cube3d, .stage.has-poster .cube-shadow { display: none; }
.stage.has-3d .gift-poster { opacity: 0; }
.gift3d { transition: opacity .5s ease; }
/* El regalo simplemente aparece (sin escaneo) */
.gift-poster { opacity: 0; animation: gift-in .6s ease .15s forwards; }
.stage.has-3d .gift-poster { animation: gift-out .5s ease .2s both; }
@keyframes gift-in { to { opacity: 1; } }
@keyframes gift-out { from { opacity: 1; } to { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .gift-poster { opacity: 1; animation: none; } .stage.has-3d .gift-poster { opacity: 0; } }


/* Galería de trabajos */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 210px; grid-auto-flow: dense; gap: 14px; }
.g-item { position: relative; margin: 0; border-radius: var(--cr-radius-lg, 22px); overflow: hidden; background: var(--cr-glass-bg); border: 1px solid var(--cr-border); }
.g-item.tall { grid-row: span 2; }
.g-item.wide { grid-column: span 2; grid-row: span 2; }
.g-open { all: unset; display: block; width: 100%; height: 100%; cursor: zoom-in; }
.g-open:focus-visible { outline: 3px solid var(--cr-purple-400); outline-offset: -3px; }
.g-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--cr-ease); }
.g-item:hover img { transform: scale(1.04); }
.g-item figcaption { position: absolute; inset: auto 0 0 0; padding: 40px 16px 14px; display: grid; gap: 2px; pointer-events: none;
  background: linear-gradient(transparent, rgba(16,10,32,.82)); color: #fff; }
.g-item figcaption strong { font-family: var(--cr-font-display); font-size: var(--cr-text-base); line-height: 1.2; }
.g-item figcaption span { font-size: var(--cr-text-xs); opacity: .8; }
.gallery-cta { text-align: center; margin-top: var(--cr-gap-block, 28px); }
.g-lightbox { border: 0; padding: 0; background: transparent; max-width: min(92vw, 1000px); max-height: 92vh; overflow: visible; }
.g-lightbox::backdrop { background: rgba(10,6,22,.86); backdrop-filter: blur(4px); }
.g-lightbox img { display: block; max-width: 100%; max-height: 82vh; border-radius: 18px; margin: 0 auto; }
.g-lightbox p { color: #fff; text-align: center; margin: 12px 0 0; font-family: var(--cr-font-display); }
.g-close { position: absolute; top: -14px; right: -14px; width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer; font-size: 26px; line-height: 1; background: #fff; color: #1b1036; }
@media (max-width: 900px) { .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 170px; gap: 10px; } }
@media (max-width: 520px) { .gallery { grid-auto-rows: 150px; } .g-item figcaption { padding: 30px 10px 10px; } .g-item figcaption strong { font-size: var(--cr-text-sm); } .g-item figcaption span { display: none; } .g-close { top: 8px; right: 8px; } }

.gallery-swipe { display: none; text-align: center; margin-top: 10px; font-size: var(--cr-text-xs); opacity: .7; }
/* Galería: en celular, fila deslizable (carrusel con scroll-snap) */
@media (max-width: 640px) {
  .gallery { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
    margin-inline: calc(-1 * var(--g-bleed, 16px)); padding: 0 var(--g-bleed, 16px) 6px; scroll-padding-inline: var(--g-bleed, 16px);
    scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .gallery::-webkit-scrollbar { display: none; }
  .gallery .g-item, .gallery .g-item.tall, .gallery .g-item.wide { flex: 0 0 78%; height: min(110vw, 440px); scroll-snap-align: start; }
  .gallery .g-item.reveal { opacity: 1; transform: none; }
  .g-item figcaption span { display: block; }
  .gallery-swipe { display: block; }
}
.g-nav { position: absolute; top: calc(50% - 22px); width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer; font-size: 30px; line-height: 1; padding-bottom: 4px; background: rgba(255,255,255,.92); color: #1b1036; }
.g-prev { left: -22px; } .g-next { right: -22px; }
@media (max-width: 640px) { .g-prev { left: 8px; } .g-next { right: 8px; } }

/* Inicio: aviso de "Tu mascota en miniatura" */
.pm-promo { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(20px, 4vw, 48px); align-items: center; padding: clamp(18px, 3vw, 32px); border-radius: var(--cr-radius-xl, 28px) !important; color: inherit; text-decoration: none; transition: transform var(--cr-dur) var(--cr-ease); }
.pm-promo:hover { transform: translateY(-3px); }
.pm-promo-art { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; border-radius: 20px; overflow: hidden; }
.pm-promo-art img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block; }
.pm-promo-copy h2 { margin-block: 12px; }
.pm-promo-copy p:not(.eyebrow) { color: var(--cr-text-muted); margin: 0 0 20px; max-width: 46ch; }
@media (max-width: 760px) { .pm-promo { grid-template-columns: 1fr; } }
