/* ---------- STAMP web ---------- */
:root {
  /* type scale */
  --fs-label: 12px;
  --fs-sm: 14px;
  --fs-ui: 15px;
  --fs-body: 17px;
  --fs-lede: clamp(18px, 1.5vw, 22px);
  --fs-h5: clamp(17px, 1.3vw, 19px);
  --fs-h4: clamp(20px, 1.8vw, 26px);
  --fs-h3: clamp(28px, 3.2vw, 44px);
  --fs-h2: clamp(36px, 4.8vw, 72px);
  --fs-h1: clamp(44px, 6.6vw, 104px);
  --fs-display: clamp(48px, 8.2vw, 136px);
  /* spacing scale */
  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-5: 20px; --sp-6: 24px;
  --sp-7: 32px; --sp-8: 40px; --sp-9: 48px; --sp-10: 64px; --sp-11: 80px; --sp-12: 96px;
  --space-inset: clamp(24px, 3vw, 48px);
  --space-tight: clamp(40px, 4vw, 64px);
  --space-block: clamp(48px, 5vw, 80px);
  --space-head: clamp(56px, 7vw, 112px);
  --space-section: clamp(80px, 9vw, 160px);
  /* radii */
  --radius-sm: 6px;
  --radius-md: 16px;
  /* tracking + leading */
  --ls-display: -0.035em;
  --ls-heading: -0.025em;
  --ls-title: -0.015em;
  --ls-label: 0.14em;
  --lh-display: 0.92;
  --lh-heading: 1.0;
  --lh-title: 1.15;
  --lh-lede: 1.45;
  --lh-body: 1.55;

  --bg: #FFFFFF;
  --fg: #0D0D0D;
  --fg-soft: #1A1A1A;
  --muted: #6E6E6E;
  --line: #E6E6E6;
  --subtle: #F4F4F4;
  --accent: #5530AA;
  --accent-ink: #FFFFFF;
  --accent-on-dark: #A98BF5;
  --radius: 24px;
  --radius-lg: 40px;
  /* Margen lateral; en iPhone horizontal se suma el borde del notch (env) para que el texto no quede bajo él. Sin notch env = 0 y no cambia nada. */
  --pad-x: max(clamp(20px, 5vw, 96px), calc(max(env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px)) + 20px));
  --density: 1;
}

* { box-sizing: border-box; }
html,
body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: "Roboto", "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  letter-spacing: -0.005em;
 
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img,
svg { display: block; max-width: 100%; }

/* ---------- typography ---------- */
.eyebrow {
  font-family: "Roboto", sans-serif;
  font-size: var(--fs-label);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}
.display {
  font-family: "Roboto", sans-serif;
  font-weight: 600;
  font-size: var(--fs-display);
  line-height: var(--lh-display);
  letter-spacing: var(--ls-display);
}
.h-section {
  font-family: "Roboto", sans-serif;
  font-weight: 500;
  font-size: var(--fs-h2);
  line-height: var(--lh-heading);
  letter-spacing: var(--ls-heading);
  margin: 0;
}
.h-card {
  font-family: "Roboto", sans-serif;
  font-weight: 500;
  font-size: var(--fs-h4);
  line-height: var(--lh-title);
  letter-spacing: var(--ls-title);
  margin: 0;
}
.lede {
  font-size: var(--fs-lede);
  line-height: var(--lh-lede);
  color: var(--fg-soft);
  max-width: 56ch;
}

/* ---------- layout ---------- */
.app {
  min-height: 100vh;
  background: var(--bg);
  color: var(--fg);
}
.section {
  padding-block: calc(var(--density) * var(--space-section));
  padding-inline: var(--pad-x);
  border-bottom: 1px solid var(--line);
}
.section--tight {
  padding-block: var(--space-tight);
}

.section-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-6);
  margin-bottom: var(--space-head);
  max-width: 1100px;
}
@media (min-width: 900px) {
  .section-head { grid-template-columns: 240px 1fr; gap: var(--sp-10); align-items: start; }
}

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 80;
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--sp-4) var(--pad-x);
  background: rgba(255,255,255,0.85);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 0 0 rgba(0,0,0,0);
  transition: box-shadow .25s ease, background .25s ease;
}
.nav.is-scrolled {
  background: rgba(255,255,255,0.92);
  box-shadow: 0 2px 6px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.03);
}
.nav-links {
  display: none;
  gap: var(--sp-7);
  font-size: var(--fs-ui);
  color: var(--fg-soft);
}
.nav-links a:hover { color: var(--accent); }
.nav-links a.is-active { color: var(--fg); position: relative; }
.nav-links a.is-active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px;
  height: 2px; background: var(--accent);
}
@media (min-width: 880px) { .nav-links { display: flex; } }
.nav .logo,
.nav-logo { color: var(--fg); display: inline-flex; }
.nav-logo:hover { opacity: 0.7; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-6);
  border-radius: 999px;
  font-weight: 500; font-size: var(--fs-ui);
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  transition: transform .15s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: #0D0D0D; color: #fff; }
.trust .btn-primary:hover,
.hero .btn-primary:hover,
.page-hero .btn-primary:hover { background: #fff; color: var(--accent); }
.trust .btn-primary:hover .btn-arrow,
.hero .btn-primary:hover .btn-arrow,
.page-hero .btn-primary:hover .btn-arrow { background: var(--accent); }
.trust .btn-primary:hover .btn-arrow svg,
.hero .btn-primary:hover .btn-arrow svg,
.page-hero .btn-primary:hover .btn-arrow svg { color: #fff; }
.btn-ghost { background: transparent; color: var(--fg); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--fg); }

.btn-arrow {
  display: inline-flex; width: 22px; height: 22px;
  align-items: center; justify-content: center;
  border-radius: 50%; background: currentColor;
}
.btn-arrow svg { color: var(--bg); width: 12px; height: 12px; }
.btn-primary .btn-arrow svg { color: var(--accent); }

/* ---------- hero ---------- */
.hero {
  background: #0A0A0A; color: #FAFAFA;
  padding: 0 var(--pad-x) 0;
  border-bottom: 1px solid #1A1A1A;
  position: relative; overflow: hidden;
}
.hero-grid {
  display: grid; gap: var(--sp-9);
  padding-top: var(--space-head);
  padding-bottom: var(--space-block);
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(223,32,30,0.18); }
  50% { box-shadow: 0 0 0 8px rgba(223,32,30,0.06); }
}
.hero-title {
  font-weight: 600;
  font-size: var(--fs-display);
  line-height: var(--lh-display);
  letter-spacing: var(--ls-display);
  margin: 0;
  max-width: 14ch;
}
.hero-title em {
  font-style: normal;
  color: var(--accent);
}

.hero-cta { display: flex; gap: var(--sp-3); flex-wrap: wrap; }
/* En el celular el hero sólo lleva «Mira el catálogo»: «Cómo trabajamos» se quita. */
@media (max-width: 560px) { .hero-sec { display: none; } } /* mismo límite que las cookies: sólo celulares; las tabletas (desde 561 px) lo conservan */

/* hero-pillars — 4 statements en línea, estilo marquee estático */
.hero-pillars {
  margin-inline: calc(var(--pad-x) * -1);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  background: #0A0A0A;
  border-top: 1px solid #1A1A1A;
  border-bottom: 1px solid #1A1A1A;
}
@media (min-width: 760px) {
  .hero-pillars { grid-template-columns: repeat(4, 1fr); }
}
.hero-pillar {
  position: relative;
  padding: var(--space-tight) var(--space-inset);
  display: flex; flex-direction: row;
  align-items: center; justify-content: center;
  gap: var(--sp-4);
  text-align: left;
  border-right: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  background: #0A0A0A;
  transition: background .25s;
  overflow: hidden;
}
@media (hover: hover) and (pointer: fine) { .hero-pillar:hover { background: #111; } }
@media (min-width: 760px) {
  .hero-pillar { border-bottom: none; }
  .hero-pillar:last-child { border-right: none; }
}
@media (max-width: 759px) {
  .hero-pillar:nth-child(2n) { border-right: none; }
  .hero-pillar:nth-last-child(-n+2) { border-bottom: none; }
}

.hero-pillar-icon {
  display: inline-flex;
  width: 28px; height: 28px;
  color: var(--accent);
  flex: 0 0 auto;
  transition: transform .5s cubic-bezier(.2,.7,.2,1);
}
/* Sólo con mouse: en pantalla táctil el «hover» se queda pegado tras tocar y el icono se quedaba girado. */
@media (hover: hover) and (pointer: fine) {
  .hero-pillar:hover .hero-pillar-icon { transform: rotate(-8deg) scale(1.08); }
}
.hero-pillar-icon svg { width: 100%; height: 100%; }

.hero-pillar p {
  font-family: "Roboto", sans-serif;
  font-size: var(--fs-h4);
  font-weight: 500;
  letter-spacing: var(--ls-title);
  line-height: var(--lh-title);
  margin: 0;
  color: #FAFAFA;
  text-wrap: balance;
}
.hero-pillar p em {
  font-style: italic;
  color: var(--accent);
  font-weight: 500;
}

/* ---------- trust (client logo marquee) ---------- */
.trust {
  background: #0A0A0A; color: #FAFAFA;
  padding: var(--space-head) 0 0;
  overflow: hidden;
}
.trust-head {
  padding: 0 var(--pad-x);
  margin-bottom: var(--space-block);
  display: flex; flex-direction: column; gap: var(--sp-4);
}
.trust-head-row {
  display: grid; grid-template-columns: 1fr;
  gap: var(--sp-6); align-items: center;
}
@media (min-width: 800px) {
  .trust-head-row { grid-template-columns: 1.4fr 1fr; }
}
.trust-head-cta {
  display: flex; justify-content: flex-start;
}
.trust .eyebrow { color: #9F9F9F; }
.trust-h {
  font-family: "Roboto", sans-serif;
  font-size: var(--fs-h2);
  font-weight: 500; letter-spacing: var(--ls-heading); line-height: var(--lh-heading);
  margin: 0;
  color: #FAFAFA;
}
.trust-h em { font-style: normal; color: var(--accent); }

.trust-marquee {
  display: flex; align-items: center;
  overflow: hidden;
  position: relative;
  padding: var(--sp-6) 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.trust-marquee::before,
.trust-marquee::after {
  content: "";
  position: absolute; top: 0; bottom: 0; width: clamp(80px, 10vw, 180px);
  pointer-events: none; z-index: 2;
}
.trust-marquee::before { left: 0;  background: linear-gradient(90deg, #0A0A0A, transparent); }
.trust-marquee::after { right: 0; background: linear-gradient(-90deg, #0A0A0A, transparent); }
.trust-track {
  display: flex; align-items: center; gap: var(--sp-10);
  animation: trust-marquee 42s linear infinite;
  flex-shrink: 0;
}
.trust-logo {
  display: inline-flex; align-items: center; justify-content: center;
  flex: 0 0 auto;
  opacity: 0.7;
  filter: brightness(0) invert(0.85);
  transition: opacity .2s, filter .2s;
}
.trust-logo:hover { opacity: 1; filter: brightness(0) invert(1); }
.trust-logo img { display: block; width: auto; }
@keyframes trust-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-25%); }
}

/* ---------- service cards ---------- */
.services-grid {
  display: grid; gap: var(--sp-5);
  grid-template-columns: 1fr;
}
@media (min-width: 720px) { .services-grid { grid-template-columns: repeat(3, 1fr); } }
.service {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: border-color .25s, transform .25s;
}
.service:hover { border-color: var(--fg); transform: translateY(-3px); }
.service-img {
  aspect-ratio: 2 / 1;
  background: var(--subtle);
}
.service-body {
  padding: var(--sp-5) var(--sp-5) var(--sp-6);
  display: flex; flex-direction: column; gap: var(--sp-2); flex: 1;
}
.service-body--row {
  flex-direction: row; align-items: center; justify-content: space-between; gap: var(--sp-4);
}
.service-body--row .service-title { flex: 1; }
.service-more {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%; flex: 0 0 auto;
  border: 1px solid var(--line); color: var(--fg); text-decoration: none;
  transition: background .2s, border-color .2s, color .2s;
}
.service-more svg { width: 14px; height: 14px; }
.service:hover .service-more { background: var(--fg); border-color: var(--fg); color: var(--bg); }
.service-title {
  margin: 0; font-size: var(--fs-h5); font-weight: 600;
  letter-spacing: var(--ls-title); line-height: var(--lh-title);
}

.tag {
  font-family: "Roboto", sans-serif;
  font-size: var(--fs-label); letter-spacing: var(--ls-label); text-transform: uppercase;
  padding: 6px var(--sp-2); border-radius: var(--radius-sm);
  background: var(--subtle); color: var(--fg-soft);
}

/* ---------- casos ---------- */

/* placeholder image */
.ph {
  width: 100%; height: 100%;
  background-image: repeating-linear-gradient(
    -45deg,
    transparent 0,
    transparent 12px,
    rgba(0,0,0,0.04) 12px,
    rgba(0,0,0,0.04) 13px
  );
  display: flex; align-items: center; justify-content: center;
  padding: var(--sp-6);
}
.ph-lbl {
  font-family: "Roboto", sans-serif;
  font-size: var(--fs-label); letter-spacing: var(--ls-label); text-transform: uppercase;
  color: #5B5B5B;
  background: rgba(255,255,255,0.85); padding: 6px var(--sp-2); border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  text-align: center;
}

/* ---------- contacto ---------- */

/* ---------- proceso resumen (landing) ---------- */

@keyframes icon-nudge {
  0%, 14%, 100% { transform: rotate(0deg) scale(1); }
  7% { transform: rotate(-8deg) scale(1.08); }
}

/* ---------- footer (compact strip) ---------- */

/* catálogo — vista de categorías (primer paso) */
.cats-grid {
  display: grid; gap: var(--sp-3);
  grid-template-columns: 1fr;
}
@media (min-width: 560px) { .cats-grid { grid-template-columns: repeat(2, 1fr); gap: var(--sp-3); } }
@media (min-width: 820px) { .cats-grid { grid-template-columns: repeat(3, 1fr); gap: var(--sp-4); } }
@media (min-width: 1080px) { .cats-grid { grid-template-columns: repeat(5, 1fr); gap: var(--sp-3); } }

.cat-tile {
  display: flex; flex-direction: column;
  width: 100%; padding: 0;
  background: var(--subtle);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  text-align: left;
  color: inherit;
  font-family: inherit;
  cursor: pointer;
  transition: transform .25s cubic-bezier(.2,.7,.2,1), border-color .2s, background .2s;
}
.cat-tile:hover {
  transform: translateY(-4px);
  border-color: var(--fg);
  background: var(--bg);
}
.cat-tile-img {
  aspect-ratio: 4 / 3;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.cat-tile-img .ph { width: 100%; height: 100%; }
.cat-tile-meta {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
}
.cat-tile-name {
  font-family: "Roboto", sans-serif;
  font-size: var(--fs-h5);
  font-weight: 500;
  letter-spacing: var(--ls-title);
  line-height: var(--lh-title);
  margin: 0;
  color: var(--fg);
}
.cat-tile-arrow {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--subtle);
  color: var(--fg-soft);
  border: 1px solid var(--line);
  flex: 0 0 auto;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.cat-tile-arrow svg { width: 11px; height: 11px; }
.cat-tile:hover .cat-tile-arrow {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
  transform: translateX(2px);
}

/* ---------- clientes ---------- */

/* ─────────────────────────────────────────────────────────────────
   MOOD: EDITORIAL — refined, airy, italic accents
   ────────────────────────────────────────────────────────────────── */
body.mood-editorial .hero-title em,
body.mood-editorial .h-section em,
body.mood-editorial .cta-strip h2 em,
body.mood-editorial .page-hero h1 em {
  font-style: italic;
  font-weight: 500;
}
body.mood-editorial .hero-title,
body.mood-editorial .h-section { letter-spacing: var(--ls-display); }

/* ─────────────────────────────────────────────────────────────────
   MOOD: AUDAZ — display weight, color blocking, skewed accents
   ────────────────────────────────────────────────────────────────── */

/* ---------- reveal anim ---------- */
.reveal {
  opacity: 0; transform: translateY(20px);
  transition: opacity .8s ease, transform .8s ease;
}

.reveal.is-in { opacity: 1; transform: none; }

/* ---------- page hero (non-landing) ---------- */
.page-hero {
  background: #0A0A0A; color: #FAFAFA;
  padding: var(--space-tight) var(--pad-x) var(--space-tight);
  border-bottom: 1px solid #1A1A1A;
}
.page-hero-eyebrow {
  font-family: "Roboto", sans-serif;
  font-size: var(--fs-label); letter-spacing: var(--ls-label); text-transform: uppercase;
  color: #9F9F9F; margin-bottom: var(--sp-7);
  display: flex; align-items: center; gap: var(--sp-3);
}
.page-hero-eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
}
.page-hero h1 {
  font-weight: 600;
  font-size: var(--fs-h1);
  line-height: var(--lh-display);
  letter-spacing: var(--ls-display);
  margin: 0 0 var(--sp-5) 0;
  max-width: 18ch;
}
.page-hero h1 em { font-style: normal; color: var(--accent); }
.page-hero-lede {
  color: #D4D4D4;
  font-size: var(--fs-lede);
  max-width: 56ch;
  line-height: var(--lh-lede);
}
/* PC: el subtexto acompaña al título (antes quedaba diminuto frente a un titular de ~100 px). */
@media (min-width: 900px) {
  .page-hero h1 { margin-bottom: var(--sp-7); }
  .page-hero-lede { font-size: clamp(22px, 1.9vw, 30px); max-width: 60ch; line-height: 1.4; text-wrap: balance; }
}
.crumbs {
  display: flex; gap: var(--sp-3); align-items: center;
  font-family: "Roboto", sans-serif;
  font-size: var(--fs-label); letter-spacing: var(--ls-label); text-transform: uppercase;
  color: #767676; margin-bottom: var(--sp-6);
}
.crumbs a { color: #C9C9C9; }
.crumbs a:hover { color: #fff; }
.crumbs .sep { opacity: 0.5; }

/* ---------- product page ---------- */

@keyframes dot-progress { to { width: 100%; } }

/* ---------- proceso detail ---------- */

/* ---------- huge marquee ---------- */
.marquee {
  background: #0A0A0A; color: #FAFAFA;
  overflow: hidden; padding: var(--sp-6) 0;
  border-block: 1px solid #1A1A1A;
  display: flex;
}
.marquee-track {
  display: flex; align-items: center; gap: var(--sp-9); flex: 0 0 auto;
  animation: scroll 60s linear infinite;
  white-space: nowrap;
}

@keyframes scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-25%); }
}
.marquee-item {
  font-family: "Roboto", sans-serif;
  font-weight: 500; font-size: var(--fs-h3);
  letter-spacing: var(--ls-heading);
}
.marquee-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--accent);
  flex: 0 0 auto;
}

/* ---------- big CTA strip ---------- */
.cta-strip {
  background: #FAFAFA; color: #0A0A0A;
}
.cta-strip-inner {
  display: grid; gap: var(--sp-7);
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 800px) { .cta-strip-inner { grid-template-columns: 1.4fr 1fr; } }
.cta-strip h2 {
  font-size: var(--fs-h1);
  font-weight: 500; letter-spacing: var(--ls-display); line-height: var(--lh-display);
  margin: 0;
}
.cta-strip h2 em { font-style: normal; color: var(--accent); }

/* copy-email button: shows "Correo copiado" toast on click */
.copy-email {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.copy-email .copy-email-label,
.copy-email .copy-email-toast {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  transition: transform 220ms cubic-bezier(.2,.7,.2,1), opacity 180ms ease;
}
.copy-email .copy-email-toast {
  position: absolute;
  inset: 0;
  justify-content: center;
  transform: translateY(110%);
  opacity: 0;
  color: var(--accent);
  font-weight: 500;
  pointer-events: none;
}
.copy-email.is-copied .copy-email-label {
  transform: translateY(-110%);
  opacity: 0;
}
.copy-email.is-copied .copy-email-toast {
  transform: translateY(0);
  opacity: 1;
}

/* ---------- back to top ---------- */
.back-to-top {
  position: fixed; bottom: calc(28px + env(safe-area-inset-bottom, 0px) + var(--btt-lift, 0px)); right: max(28px, calc(env(safe-area-inset-right, 0px) + 16px)); z-index: 999; /* --btt-lift: sube cuando el aviso de cookies le queda debajo */
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--accent); color: #fff;
  border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.18);
  opacity: 0; pointer-events: none;
  transform: translateY(12px);
  transition: opacity .25s, transform .25s, bottom .35s cubic-bezier(.2,.8,.2,1);
}
.back-to-top.is-visible {
  opacity: 1; pointer-events: auto;
  transform: translateY(0);
}
.back-to-top:hover { background: #3a1a7a; }

/* ---------- QA fixes (2026-10) ---------- */
.nav-right { display: flex; align-items: center; gap: var(--sp-2); }
.nav-burger {
  display: none; width: 44px; height: 44px; padding: 0;
  border-radius: 50%; border: 1px solid var(--line);
  background: var(--bg); color: var(--fg); cursor: pointer;
  align-items: center; justify-content: center;
}
@media (max-width: 879px) { .nav-burger { display: inline-flex; } }
@media (max-width: 559px) { .nav-right .btn-primary { display: none; } }
.nav-mobile {
  position: fixed; inset: 0; z-index: 79;
  background: var(--bg);
  padding: 104px var(--pad-x) var(--sp-8);
  display: flex; flex-direction: column;
  opacity: 0; pointer-events: none; transform: translateY(-8px);
  transition: opacity .2s ease, transform .2s ease;
  overflow-y: auto;
}
.nav-mobile.is-open { opacity: 1; pointer-events: auto; transform: none; }
.nav-mobile-link {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--sp-4) 0; border-bottom: 1px solid var(--line);
  font-size: var(--fs-h3); font-weight: 500; letter-spacing: var(--ls-title); color: var(--fg);
}
.nav-mobile-link.is-active { color: var(--accent); }
.nav-mobile .btn { margin-top: var(--sp-7); align-self: flex-start; }
@media (min-width: 880px) { .nav-mobile { display: none; } }

@media (min-width: 560px) { .cats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 820px) { .cats-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1080px) { .cats-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }

.crumbs { flex-wrap: wrap; row-gap: 6px; font-size: var(--fs-label); }

@media (prefers-reduced-motion: reduce) {
  .marquee-track,
.trust-track { animation: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* headings + ledes wrap */
.hero-title,
.page-hero h1,
.h-section,
.trust-h,
.cta-strip h2 { text-wrap: balance; }
.lede,
.page-hero-lede { }

/* contrast on dark grounds */
.hero-title em,
.hero-pillar-icon,
.hero-pillar p em,
.trust-h em,
.page-hero h1 em,
.marquee-dot { color: var(--accent-on-dark); }
.marquee-dot { background: var(--accent-on-dark); }
.trust-h em { font-style: normal; }
.crumbs { color: #9F9F9F; }

.cta-strip h2 { font-size: var(--fs-h2); }

/* ---------- proceso (5 pasos) ---------- */
@keyframes p5In { 0% { opacity: 0; transform: translateY(20px) scale(.9); } 100% { opacity: 1; transform: none; } }
@keyframes p5Hop { 0% { transform: none; } 18% { transform: translateY(1px) scale(1.04, .96); } 46% { transform: translateY(-10px) scale(.98, 1.02); } 70% { transform: scale(1.02, .98); } 86% { transform: translateY(-2px); } 100% { transform: none; } }
@keyframes p5Wiggle { 0% { transform: none; } 35% { transform: rotate(-6deg) scale(1.08); } 65% { transform: rotate(3deg) scale(1.02); } 100% { transform: none; } }
@keyframes p5Sway { 0% { transform: rotate(0); } 30% { transform: rotate(-8deg); } 65% { transform: rotate(5deg); } 100% { transform: rotate(0); } }
.p5 { display: flex; flex-direction: column; align-items: center; gap: var(--sp-12); }
.p5-head { text-align: center; }
.p5-grid { width: 100%; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--sp-6); }
.p5-step { display: flex; flex-direction: column; align-items: center; text-align: center; gap: var(--sp-6); }
.p5-in { opacity: 0; }
.p5.is-started .p5-in { animation: p5In .9s cubic-bezier(.33,.9,.4,1) both; animation-delay: calc(var(--i) * 100ms); }
.p5-tile {
  width: 112px; height: 112px; border-radius: 30px; box-sizing: border-box;
  display: flex; align-items: center; justify-content: center;
  background: #FFFFFF; border: 2px solid #ECEAF2; color: var(--accent);
  transform-origin: 50% 100%;
  transition: background .45s ease, border-color .45s ease, color .45s ease;
}
.p5-tile.is-lit { background: var(--accent); border-color: var(--accent); color: #FFFFFF; }
.p5-tile.is-hop { animation: p5Hop .9s cubic-bezier(.33,.9,.4,1) both; }
.p5-icon { display: inline-flex; width: 52px; height: 52px; }
.p5-icon svg { width: 100%; height: 100%; }
.p5-icon.is-hop { animation: p5Wiggle .8s ease .15s both; }
.p5-icon.is-sway { animation: p5Sway 1.4s cubic-bezier(.45,0,.35,1) both; }
.p5-text { display: flex; flex-direction: column; gap: 6px; align-items: center; }
.p5-title { margin: 0; font-size: var(--fs-h5); font-weight: 600; letter-spacing: var(--ls-title); color: var(--fg); transition: color .45s ease; }
.p5-step.is-lit .p5-title { color: var(--accent); }
.p5-desc { margin: 0; font-size: 15px; line-height: var(--lh-lede); color: var(--muted); max-width: 24ch; text-wrap: balance; }
@media (max-width: 780px) {
  .p5 { align-items: stretch; gap: var(--sp-9); }
  .p5-head { text-align: left; }
  .p5-grid { grid-template-columns: minmax(0, 1fr); gap: var(--sp-5); }
  .p5-step { flex-direction: row; text-align: left; gap: var(--sp-5); }
  .p5-tile { width: 72px; height: 72px; border-radius: 20px; }
  .p5-icon { width: 34px; height: 34px; }
  .p5-text { align-items: flex-start; }
  .p5-desc { max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
  .p5-in,
.p5.is-started .p5-in { opacity: 1; animation: none; }
  .p5-tile.is-hop,
.p5-icon.is-hop,
.p5-icon.is-sway { animation: none; }
}

.page-hero-eyebrow .dot { background: var(--accent-on-dark); }
.p5-head { white-space: nowrap; }
@media (max-width: 780px) { .p5-head { white-space: normal; } }

/* ---------- footer (6a) ---------- */
/* 112 px abajo: espacio negro vacío para que el botón "Volver arriba" (44 px, a 28 px del borde) quede sobre el fondo y no tape ni un renglón ni un ícono. */
.ft { background: #0A0A0A; color: #FAFAFA; padding: var(--sp-11) var(--pad-x) 112px; display: flex; flex-direction: column; gap: var(--sp-9); }
.ft-grid { display: grid; grid-template-columns: minmax(0,1.3fr) minmax(0,.8fr) minmax(0,1fr) minmax(0,1.25fr) minmax(0,1fr); gap: var(--sp-8); }
.ft-brand { display: flex; flex-direction: column; gap: var(--sp-4); align-items: flex-start; }

.ft-col { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.ft-k { font-size: var(--fs-label); font-weight: 500; letter-spacing: var(--ls-label); text-transform: uppercase; color: #9F9F9F; }
.ft-link { font-size: 16px; color: #FAFAFA; transition: color .2s ease; }
.ft-link:hover { color: var(--accent-on-dark); }
.ft-mail { position: relative; display: inline-flex; align-items: center; }
.ft-mail-txt { transition: opacity .25s ease, transform .25s ease; }
.ft-mail-tip { position: absolute; left: 0; top: 50%; display: inline-flex; align-items: center; gap: 6px; color: var(--accent-on-dark); opacity: 0; transform: translateY(-20%); pointer-events: none; white-space: nowrap; transition: opacity .25s ease, transform .25s ease; }
.ft-mail-tip:not(:empty)::before { content: ""; width: 14px; height: 8px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg) translate(1px, -2px); }
.ft-mail.is-copied .ft-mail-txt { opacity: 0; transform: translateY(-6px); }
.ft-mail.is-copied .ft-mail-tip { opacity: 1; transform: translateY(-50%); }
@media (hover: hover) and (pointer: fine) { .ft-mail { cursor: copy; } }
@media (prefers-reduced-motion: reduce) { .ft-mail-txt, .ft-mail-tip { transition: none; } }
.ft-v { font-size: 16px; line-height: 1.5; color: #FAFAFA; max-width: 100%; }
/* La dirección va siempre en 2 renglones y cada uno no se parte. */
.ft-ln { display: block; white-space: nowrap; }
@media (max-width: 520px) { .ft-v { font-size: clamp(13px, 4.4vw, 16px); } } /* en pantallas muy angostas la letra se achica lo justo para que entre */
.ft-hours { display: grid; grid-template-columns: auto auto; column-gap: var(--sp-4); row-gap: 6px; font-size: 16px; line-height: 1.5; color: #FAFAFA; font-variant-numeric: tabular-nums; }
.ft-day { color: #9F9F9F; }
.ft-bottom { display: flex; justify-content: space-between; align-items: center; gap: var(--sp-6); padding-top: var(--sp-5); border-top: 1px solid #262626; flex-wrap: wrap; }
.ft-copy { font-size: 15px; color: #9F9F9F; }
.ft-social { display: flex; gap: var(--sp-6); flex-wrap: wrap; }
.ft-social-btn { display: flex; align-items: center; gap: var(--sp-2); font-size: 15px; color: #D4D4D4; transition: color .2s ease; }
.ft-social-btn:hover { color: #FFFFFF; }
@media (max-width: 1080px) {
  .ft-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .ft-brand { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .ft-grid { grid-template-columns: minmax(0,1fr); gap: var(--sp-7); }
  .ft-bottom { flex-direction: column-reverse; align-items: flex-start; }
  /* Celular: "Explora" (Productos, Servicios, Clientes) se quita; ya está en el menú de arriba. */
  .ft-brand + .ft-col { display: none; }
  /* Redes: sólo el icono, en un botón redondo de 44 px (el tamaño táctil que recomienda Apple). */
  .ft-social { gap: 12px; flex-wrap: nowrap; }
  .ft-social-btn { width: 44px; height: 44px; justify-content: center; gap: 0; border-radius: 50%; border: 1px solid #2E2E2E; }
  .ft-social-btn span { display: none; }
  /* El resto de enlaces conserva su tamaño, pero su zona táctil llega a 44 px (invisible). */
  .ft-link, .ft-legal { position: relative; }
  .ft-link::after { content: ""; position: absolute; inset: -10px -8px; }
  .ft-legal::after { content: ""; position: absolute; inset: -13px -8px; }
  /* Privacidad y Cookies, en una línea aparte (debajo del © ...). */
  .ft-legals { display: block; margin-top: 14px; }
  .ft-legals .ft-legal:first-child { margin-left: 0; }
}
.p5-grid { max-width: 1200px; margin-inline: auto; gap: var(--sp-6); }
.p5-tile.is-hop { transition: background .3s ease .58s, border-color .3s ease .58s, color .3s ease .58s; }
.p5-step.is-hopping .p5-title { transition: color .3s ease .58s; }

.ph-lbl { font-family: "Roboto", sans-serif; font-weight: 500; letter-spacing: 0.08em; }
#servicios { padding-block: var(--space-block); }
#servicios .section-head { margin-bottom: var(--sp-9); }

/* arrows */
.arrow-ico { display: block; transition: transform .35s cubic-bezier(.2,.7,.2,1); }
.btn-arrow { width: 24px; height: 24px; overflow: hidden; }
.btn-arrow svg { width: 13px; height: 13px; }
.btn:hover .arrow-ico,
.service:hover .arrow-ico,
.cat-tile:hover .arrow-ico,
a:hover > .arrow-ico { transform: translateX(2px); }
.service-more svg,
.cat-tile-arrow svg { width: 14px; height: 14px; }
/* arrow sizes — 3 standard circles: 24 (botones), 32 (tarjetas), 36 (servicios) */
.cat-tile-arrow { width: 32px; height: 32px; }
.cat-tile-arrow svg { width: 13px; height: 13px; }
.hero-title { font-size: calc(var(--fs-display) * 0.9); }
#conversemos { padding-block: var(--space-head); }

/* ---------- header mejorado ---------- */
.nav {
  padding-block: 14px;
  background: #FFFFFF;
  border-bottom: 1px solid transparent;
  transition: transform .35s cubic-bezier(.2,.7,.2,1), border-color .25s ease, box-shadow .25s ease;
}
.nav.is-scrolled { background: #FFFFFF; border-bottom-color: var(--line); box-shadow: 0 4px 20px -8px rgba(0,0,0,.08); }
.nav.is-hidden { transform: translateY(-100%); }
.nav-links { gap: 32px; }
.nav-links a { position: relative; padding-block: 6px; transition: color .2s ease; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .3s cubic-bezier(.2,.7,.2,1);
}
.nav-links a:hover::after { transform: scaleX(1); }
.nav-links a.is-active { color: var(--accent); font-weight: 500; }
.nav-links a.is-active::after { transform: scaleX(1); bottom: 0; }
.nav .btn-primary { padding: 12px 20px; }
#proceso { padding-block: var(--space-block); }
#proceso .p5 { gap: var(--sp-10); }

/* 5 pasos en cards */
.p5-step {
  background: #FFFFFF; border: 1px solid var(--line); border-radius: var(--radius);
  padding: var(--sp-7) var(--sp-5) var(--sp-6);
  transition: border-color .45s ease;
}
.p5-step.is-lit { border-color: #D9CFF3; }
.p5-step.is-hopping { transition: border-color .3s ease .58s; }
.p5-tile { width: 96px; height: 96px; border-radius: 26px; }
.p5-icon { width: 46px; height: 46px; }
.p5-grid { gap: var(--sp-4); }
@media (max-width: 780px) {
  .p5-step { padding: var(--sp-4); border-radius: var(--radius-md); align-items: center; }
  .p5-tile { width: 64px; height: 64px; border-radius: 18px; }
  .p5-icon { width: 30px; height: 30px; }
  .p5-grid { gap: var(--sp-3); }
}
.p5-grid { gap: var(--sp-6); }
.p5-step { border: 1.5px solid #DADADA; }
.p5-step.is-lit { border-color: #BFAEEC; }
@media (max-width: 780px) { .p5-grid { gap: var(--sp-4); } }
.p5-step { border-width: 2px; }
.p5-step.is-lit { border-color: var(--accent); }
.p5-step,
.p5-step.is-lit { border-color: var(--line); }
.p5-step { padding: var(--sp-8) var(--sp-6) var(--sp-7); gap: var(--sp-7); }
.p5-text { gap: var(--sp-2); }
@media (max-width: 780px) { .p5-step { padding: var(--sp-5); gap: var(--sp-5); } }
.p5-tile { border-color: transparent; background: #F4F1FB; }
.p5-tile.is-lit { border-color: var(--accent); background: var(--accent); }
.p5-step { padding: var(--sp-9) var(--sp-7) var(--sp-8); }
@media (max-width: 1100px) and (min-width: 781px) { .p5-step { padding: var(--sp-8) var(--sp-5) var(--sp-7); } }
@media (max-width: 780px) { .p5-step { padding: var(--sp-6); } }
.p5-step.is-lit .p5-title { color: var(--fg); }
@media (max-width: 1100px) and (min-width: 781px) {
  .p5-grid { gap: var(--sp-3); }
  .p5-step { padding: var(--sp-7) var(--sp-3) var(--sp-6); gap: var(--sp-5); }
  .p5-tile { width: 80px; height: 80px; border-radius: 22px; }
  .p5-icon { width: 38px; height: 38px; }
  .p5-desc { max-width: none; font-size: 14px; }
}
.hero .btn-ghost { border-color: #3A3A3A !important; }
.hero .btn-ghost:hover { border-color: #FAFAFA !important; }

/* ---------- catálogo ---------- */

.cat-tile:hover .arrow-ico,
.cat-tile-arrow .arrow-ico,
.cat-tile:hover .cat-tile-arrow { transform: none !important; }

/* copiar correo — crossfade simple */
.copy-email,
.copy-email:hover,
.copy-email:active { transform: none; }
.copy-email { transition: background .35s ease, border-color .35s ease, color .35s ease; }
.copy-email.is-copied { background: #F3EEFC; border-color: #F3EEFC; }
.copy-email .copy-email-label,
.copy-email .copy-email-toast { transform: none !important; filter: none !important; }
.copy-email .copy-email-label { opacity: 1; transition: opacity .25s ease; }
.copy-email .copy-email-toast { gap: 10px; font-weight: 500; color: var(--accent); opacity: 0; transition: opacity .3s ease; }
.copy-email.is-copied .copy-email-label { opacity: 0; }
.copy-email.is-copied .copy-email-toast { opacity: 1; transition-delay: .12s; }
.cp-check { flex: none; overflow: visible; }
.cp-check-bg { fill: var(--accent); transform-origin: 10px 10px; transform: scale(.6); opacity: 0; transition: transform .4s cubic-bezier(.2,.8,.2,1), opacity .25s ease; }
.cp-check-mark { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .35s ease; }
.copy-email.is-copied .cp-check-bg { transform: scale(1); opacity: 1; transition-delay: .15s; }
.copy-email.is-copied .cp-check-mark { stroke-dashoffset: 0; transition-delay: .35s; }
@media (prefers-reduced-motion: reduce) { .copy-email,
.copy-email * { transition-duration: .01s !important; } }
.copy-email:not(.is-copied) .cp-check-bg { transition: transform 0s linear .35s, opacity 0s linear .35s; }
.copy-email:not(.is-copied) .cp-check-mark { transition: stroke-dashoffset 0s linear .35s; }
.copy-email:not(.is-copied) .copy-email-toast { transition: opacity .3s ease; }
.copy-email:not(.is-copied) .copy-email-label { transition: opacity .3s ease .15s; }
/* botones sin desplazamiento */
.btn:hover,
.btn:active { transform: none; }
.btn:hover .arrow-ico,
.btn .arrow-ico { transform: none !important; }

/* categoría — mejoras */

.cta-strip h2 em { font-style: normal; }

/* fotos de producto siempre 1:1 */

.cat-tile-img { aspect-ratio: 5 / 3; }

/* categorías = mismo lenguaje que las tarjetas de servicios */
.cat-tile { background: var(--bg); border-radius: var(--radius); transition: border-color .25s ease; }
.cat-tile:hover { transform: none; background: var(--bg); border-color: #CFCFCF; }
.cat-tile-img { background: var(--subtle); border-bottom: 0; }
.cat-tile-img .ph { transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.cat-tile:hover .cat-tile-img .ph { transform: scale(1.03); }
.cat-tile-meta { padding: var(--sp-5) var(--sp-5) var(--sp-5) var(--sp-6); }
.cat-tile-name { font-size: var(--fs-h4); font-weight: 500; }
.cat-tile-arrow { width: 36px; height: 36px; background: var(--bg); color: var(--fg); }
.cat-tile:hover .cat-tile-arrow { background: var(--accent); border-color: var(--accent); color: #FFFFFF; }
.cat-tile-arrow svg { width: 14px; height: 14px; }
@media (min-width: 1080px) { .cats-grid { grid-template-columns: repeat(3, minmax(0,1fr)); gap: var(--sp-5); } }

/* categorías compactas — pensadas para ~15 */
.cats-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: var(--sp-3); }
@media (min-width: 640px) { .cats-grid { grid-template-columns: repeat(3, minmax(0,1fr)); } }
@media (min-width: 900px) { .cats-grid { grid-template-columns: repeat(4, minmax(0,1fr)); gap: var(--sp-4); } }
@media (min-width: 1200px) { .cats-grid { grid-template-columns: repeat(5, minmax(0,1fr)); } }
.cat-tile { border-radius: var(--radius-md); }
.cat-tile-img { aspect-ratio: 5 / 3; }
.cat-tile-img .ph-lbl { display: none; }
.cat-tile-meta { padding: var(--sp-3) var(--sp-3) var(--sp-3) var(--sp-4); }
.cat-tile-name { font-size: 16px; font-weight: 500; }
.cat-tile-arrow { width: 28px; height: 28px; }
.cat-tile-arrow svg { width: 12px; height: 12px; }
.cat-empty { margin: var(--sp-6) 0 var(--sp-10); font-size: 17px; color: var(--muted); }
.cats-grid > .reveal { height: 100%; }
.cat-tile { height: 100%; }
.cat-tile-meta { flex: 1; min-height: 56px; }
.cat-tile-name { font-size: 15px; line-height: 1.25; }

/* vista categoría — más limpia */
.page-hero--cat .page-hero { padding-bottom: var(--sp-9); }
.page-hero--cat .page-hero h1 { font-size: var(--fs-h2); letter-spacing: var(--ls-heading); line-height: 1; margin-bottom: var(--sp-4); }
.page-hero--cat .page-hero-lede { font-size: 18px; max-width: 52ch; }

/* ---------- vista categoría (8a) ---------- */
.cv { display: grid; grid-template-columns: 252px minmax(0,1fr); gap: var(--sp-10); padding: var(--sp-10) var(--pad-x) var(--space-block); }
.cv-side { position: sticky; top: 96px; align-self: start; display: flex; flex-direction: column; gap: var(--sp-2); }
.cv-side-k { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; color: var(--fg); padding-left: 6px; margin-bottom: var(--sp-2); }
.cv-list { display: flex; flex-direction: column; gap: 2px; }
.cv-item {
  text-align: left; font: 400 15px "Roboto", sans-serif; color: var(--fg);
  padding: 8px 12px; border-radius: 10px; border: 0; background: transparent; cursor: pointer;
  transition: background .2s ease, color .2s ease;
}
.cv-item:hover { background: #F5F5F7; }
.cv-item.is-on { background: #F3EEFC; color: var(--accent); font-weight: 500; }
.cv-main { display: flex; flex-direction: column; gap: var(--sp-8); min-width: 0; }

.cv-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: var(--sp-7) var(--sp-4); }
@media (min-width: 760px) { .cv-grid { grid-template-columns: repeat(3, minmax(0,1fr)); } }
@media (min-width: 1200px) { .cv-grid { grid-template-columns: repeat(4, minmax(0,1fr)); } }
@media (min-width: 1600px) { .cv-grid { grid-template-columns: repeat(5, minmax(0,1fr)); } }
@media (min-width: 1960px) { .cv-grid { grid-template-columns: repeat(6, minmax(0,1fr)); } }
.cv-card { display: flex; flex-direction: column; gap: var(--sp-3); color: inherit; }
.cv-img { aspect-ratio: 1 / 1; border-radius: 18px; overflow: hidden; background: #F5F5F7; }
.cv-img .ph { background: #F5F5F7; background-image: none; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.cv-img .ph-lbl { display: none; }
.cv-card:hover .cv-img .ph { transform: scale(1.03); }
.cv-body { display: flex; flex-direction: column; gap: 2px; }
.cv-name { margin: 0; font-size: 15px; font-weight: 500; line-height: 1.3; transition: color .2s ease; }
.cv-card:hover .cv-name { color: var(--accent); }
.cv-moq { font-size: 13px; color: var(--muted); }
@media (max-width: 899px) {
  .cv { grid-template-columns: minmax(0,1fr); gap: var(--sp-6); padding-top: var(--sp-7); }
  .cv-side { position: static; }
  .cv-side-k { display: none; }
  .cv-list { flex-direction: row; overflow-x: auto; gap: var(--sp-2); margin-inline: calc(var(--pad-x) * -1); padding-inline: var(--pad-x); scrollbar-width: none; }
  .cv-list::-webkit-scrollbar { display: none; }
  .cv-item { flex: none; background: #F5F5F7; border-radius: 999px; font-size: 14px; padding: 8px 14px; }
}
.cv { padding-top: var(--sp-9); }
.page-hero--cat .page-hero { padding-bottom: var(--sp-9); }

/* transiciones de categoría */
@keyframes cvFade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.cv-fade { animation: cvFade .45s cubic-bezier(.2,.7,.2,1) both; }
.cv-fade .cv-card { animation: cvFade .5s cubic-bezier(.2,.7,.2,1) both; animation-delay: calc(min(var(--i, 0), 12) * 35ms + 60ms); }
.page-hero--cat.cv-fade .page-hero h1,
.page-hero--cat.cv-fade .page-hero-lede { animation: cvFade .5s cubic-bezier(.2,.7,.2,1) both; }
.page-hero--cat.cv-fade .page-hero-lede { animation-delay: 60ms; }
.page-hero--cat.cv-fade { animation: none; }
.cv-item { transition: background .25s ease, color .25s ease; }
@media (prefers-reduced-motion: reduce) { .cv-fade,
.cv-fade .cv-card,
.page-hero--cat.cv-fade .page-hero h1,
.page-hero--cat.cv-fade .page-hero-lede { animation: none; } }
.page-hero--cat .page-hero-lede { min-height: calc(2 * 1.45em); }

/* ---------- ficha de producto (Apple-like) ---------- */
.pd { padding: 0 var(--pad-x) var(--space-block); max-width: 1320px; margin-inline: auto; }
.pd-crumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: var(--sp-6) 0; font-size: 14px; color: var(--muted); }
.pd-crumbs a:hover { color: var(--accent); }
.pd-crumbs-now { color: var(--fg); }
.pd-top { display: grid; grid-template-columns: minmax(0,1fr); gap: var(--sp-8); }
@media (min-width: 900px) { .pd-top { grid-template-columns: minmax(0,1.15fr) minmax(0,1fr); gap: var(--sp-11); align-items: center; } }
.pg { position: relative; aspect-ratio: 1 / 1; border-radius: 28px; overflow: hidden; background: #F5F5F7; }
.pg-track { display: flex; width: 100%; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; outline: none; }
.pg-track::-webkit-scrollbar { display: none; }
.pg-slide { flex: 0 0 100%; height: 100%; scroll-snap-align: start; }
.pg .ph,
.pd-rel .ph { background: #F5F5F7; background-image: none; }
.pg .ph-lbl { display: none; }
.pg-dots { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); display: flex; gap: 8px; padding: 8px 12px; border-radius: 999px; background: rgba(255,255,255,.72); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.pg-dot { width: 7px; height: 7px; padding: 0; border: 0; border-radius: 999px; background: rgba(0,0,0,.22); cursor: pointer; transition: width .35s cubic-bezier(.2,.8,.2,1), background .25s ease; }
.pg-dot.is-on { width: 20px; background: var(--fg); }
.pg-arrow { position: absolute; top: 50%; width: 40px; height: 40px; margin-top: -20px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; color: var(--fg); background: rgba(255,255,255,.82); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); cursor: pointer; opacity: 0; transition: opacity .25s ease, background .2s ease; }
.pg-arrow--prev { left: 16px; }
.pg-arrow--next { right: 16px; }
.pg-arrow svg { display: block; }
.pg-arrow:hover { background: #FFFFFF; }
.pg-arrow:disabled { opacity: 0 !important; pointer-events: none; }
.pg:hover .pg-arrow, .pg-arrow:focus-visible { opacity: 1; }
@media (hover: none) { .pg-arrow { display: none; } }
.pd-info { display: flex; flex-direction: column; gap: var(--sp-6); }
@media (min-width: 900px) { .pd-info { position: sticky; top: 96px; padding-top: var(--sp-5); } }
.pd-cat { font-size: 15px; font-weight: 500; color: var(--accent); align-self: flex-start; }
.pd-title { margin: 0; font-size: clamp(36px, 4vw, 56px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.02; text-wrap: balance; }
.pd-lead { margin: 0; font-size: 19px; line-height: 1.5; color: var(--fg-soft); max-width: 40ch; }
.pd-k { font-size: 14px; color: var(--muted); }
.pd-colors,
.pd-moq { display: flex; flex-direction: column; gap: var(--sp-3); padding-top: var(--sp-6); border-top: 1px solid var(--line); }
.pd-moq { flex-direction: row; justify-content: space-between; align-items: baseline; }
.pd-moq-v { font-size: 17px; font-weight: 500; }
.pd-swatches { display: flex; flex-wrap: wrap; gap: 6px; margin-left: -3px; }
.pd-swatch { width: 36px; height: 36px; padding: 3px; border-radius: 50%; border: 0; background: transparent; cursor: pointer; box-shadow: inset 0 0 0 1.5px transparent; transition: box-shadow .2s ease; }
.pd-swatch span { display: block; width: 100%; height: 100%; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.14); }
.pd-swatch:hover { box-shadow: inset 0 0 0 1.5px var(--line); }
.pd-swatch.is-on { box-shadow: inset 0 0 0 1.5px var(--fg); }
.pd-swatch:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.pd-color-name { color: var(--fg); font-weight: 500; }
.pd-cta { align-self: flex-start; margin-top: var(--sp-2); }
.pd-h2 { margin: 0; font-size: var(--fs-h3); font-weight: 600; letter-spacing: -0.025em; line-height: 1.05; }
.pd-specs { margin-top: var(--space-block); display: grid; grid-template-columns: minmax(0,1fr); gap: var(--sp-7); }
@media (min-width: 900px) { .pd-specs { grid-template-columns: minmax(0,1fr) minmax(0,2fr); gap: var(--sp-11); } }
.pd-dl { margin: 0; display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.pd-row { display: grid; grid-template-columns: 180px minmax(0,1fr); gap: var(--sp-6); padding: var(--sp-5) 0; border-bottom: 1px solid var(--line); }
.pd-row dt { font-size: 15px; color: var(--muted); }
.pd-row dd { margin: 0; font-size: 16px; line-height: 1.5; color: var(--fg); }
@media (max-width: 560px) { .pd-row { grid-template-columns: minmax(0,1fr); gap: 4px; } }
.pd-rel { margin-top: var(--space-block); display: flex; flex-direction: column; gap: var(--sp-7); }
.pd-rel-head { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--sp-5); flex-wrap: wrap; }
.pd-rel-link { display: inline-flex; align-items: center; gap: 6px; font-size: 16px; font-weight: 500; color: var(--accent); }
.pd-rel-link:hover { color: var(--fg); }
.pd-rel-link .arrow-ico { transform: none !important; }
.pd-rel-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: var(--sp-7) var(--sp-4); }
@media (min-width: 900px) { .pd-rel-grid { grid-template-columns: repeat(4, minmax(0,1fr)); } }
/* sin elementos que acompañan el scroll */
.pd-info,
.cv-side { position: static !important; top: auto !important; }

/* transición suave entre páginas (Chrome, Edge, Safari 18+) */
@view-transition { navigation: auto; }
::view-transition-old(root),
::view-transition-new(root) { animation-duration: .25s; }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }

/* ---------- servicios (página) ---------- */
.sx-grid { display: grid; grid-template-columns: minmax(0,1fr); gap: var(--sp-5); }
@media (min-width: 720px) { .sx-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (min-width: 1080px) { .sx-grid { grid-template-columns: repeat(3, minmax(0,1fr)); } }
.sx-grid > .reveal { height: 100%; }
.sx-card { height: 100%; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #FFFFFF; scroll-margin-top: 110px; }
.sx-img { aspect-ratio: 16 / 10; background: #F5F5F7; }
.sx-img .ph { background: #F5F5F7; background-image: none; }
.sx-img .ph-lbl { display: none; }
.sx-body { display: flex; flex-direction: column; gap: var(--sp-2); padding: var(--sp-6); }
.sx-title { margin: 0; font-size: var(--fs-h4); font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; }
.sx-desc { margin: 0; font-size: 16px; line-height: 1.5; color: var(--muted); }
/* títulos: acento morado recto en toda la web */
body.mood-editorial .hero-title em,
body.mood-editorial .cta-strip h2 em,
body.mood-editorial .page-hero h1 em,
.hero-pillar p em { font-style: normal; }
.btn { white-space: nowrap; }

/* ---------- clientes ---------- */
.pf { padding: var(--sp-9) var(--pad-x) var(--space-block); display: flex; flex-direction: column; gap: var(--sp-8); }

.pf-list { display: flex; flex-direction: column; gap: var(--sp-5); }
.pf .ph { background: #F5F5F7; background-image: none; }
.pf .ph-lbl { display: none; }

.pf-desc { margin: 0; font-size: 17px; line-height: 1.5; color: var(--fg-soft); max-width: 46ch; }


.pf-grid { display: grid; grid-template-columns: minmax(0,1fr); gap: var(--sp-5); }
@media (min-width: 720px) { .pf-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (min-width: 1080px) { .pf-grid { grid-template-columns: repeat(3, minmax(0,1fr)); } }
.pf-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #FFFFFF; animation: cvFade .5s cubic-bezier(.2,.7,.2,1) both; animation-delay: calc(var(--i, 0) * 50ms + 80ms); }
.pf-img { aspect-ratio: 4 / 3; background: #F5F5F7; }
.pf-body { display: flex; flex-direction: column; gap: var(--sp-3); padding: var(--sp-6); flex: 1; }
.pf-title { margin: 0; font-size: var(--fs-h4); font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; }

.pf-stats { margin: auto 0 0; padding-top: var(--sp-5); border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: var(--sp-4); }
.pf-stat { display: flex; flex-direction: column-reverse; gap: 2px; }
.pf-stat dt { font-size: 13px; color: var(--muted); }
.pf-stat dd { margin: 0; font-size: 20px; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: reduce) { .pf-card { animation: none; } }
/* clientes: imágenes 5:3 */
.pf-img { aspect-ratio: 5 / 3 !important; }
/* clientes estandarizado con catálogo y ficha */
.pf-client { font-size: 15px; font-weight: 500; color: var(--accent); }

.pf-who { display: flex; align-items: baseline; gap: var(--sp-3); }
.pf-year { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.pf-stats { grid-template-columns: repeat(2, minmax(0, max-content)); column-gap: var(--sp-9); }
/* servicios: imágenes 5:3 */
.sx-img,
.service-img { aspect-ratio: 5 / 3; }
.sx-more { display: flex; justify-content: center; margin-top: var(--sp-9); }


/* ---------- accesibilidad ---------- */
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 200; padding: 10px 16px; border-radius: 10px; background: var(--fg); color: #FFFFFF; font-size: 15px; font-weight: 500; transition: top .2s ease; }
.skip-link:focus { top: 12px; }
a:focus-visible, button:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.btn:focus-visible { outline-offset: 4px; border-radius: 999px; }
.hero a:focus-visible, .hero button:focus-visible, .page-hero a:focus-visible, .trust a:focus-visible, .ft a:focus-visible, .cta-strip a:focus-visible { outline-color: var(--accent-on-dark); }
main:focus { outline: none; }
/* áreas táctiles mínimas */
.pd-cat, .pd-rel-link { padding-block: 10px; margin-block: -10px; }
@media (max-width: 899px) { .cv-item { min-height: 40px; } .pf-filter { min-height: 40px; } }

/* ---------- 404: sello ---------- */
@keyframes nfSlam { 0% { opacity: 0; transform: rotate(-7deg) scale(1.9); } 55% { opacity: 1; transform: rotate(-7deg) scale(.95); } 72% { transform: rotate(-7deg) scale(1.02); } 100% { opacity: 1; transform: rotate(-7deg) scale(1); } }
@keyframes nfShake { 0%, 100% { transform: none; } 30% { transform: translateY(3px); } 60% { transform: translateY(-1px); } }
@keyframes nfRise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes nfMark { 0% { opacity: 0; transform: translate(-50%, -50%) rotate(var(--r)) scale(calc(var(--s) * 1.8)); } 60% { opacity: .9; transform: translate(-50%, -50%) rotate(var(--r)) scale(calc(var(--s) * .95)); } 100% { opacity: .85; transform: translate(-50%, -50%) rotate(var(--r)) scale(var(--s)); } }
.nf { position: relative; overflow: hidden; min-height: 78vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: var(--sp-5); padding: var(--sp-11) var(--pad-x); cursor: crosshair; user-select: none; animation: nfShake .35s ease .5s both; }
.nf a, .nf button { cursor: pointer; }
.nf-stamp-wrap { width: min(460px, 86vw); margin-bottom: var(--sp-6); }
.nf-stamp { display: block; width: 100%; height: auto; color: var(--accent); mix-blend-mode: multiply; animation: nfSlam .6s cubic-bezier(.2,.8,.2,1) .15s both; }
.nf-title { margin: 0; font-size: clamp(32px, 4.4vw, 56px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.02; text-wrap: balance; max-width: 18ch; animation: nfRise .6s cubic-bezier(.2,.7,.2,1) .8s both; }
.nf-lede { margin: 0; font-size: 18px; line-height: 1.5; color: var(--muted); max-width: 42ch; animation: nfRise .6s cubic-bezier(.2,.7,.2,1) .9s both; }
.nf-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--sp-3); margin-top: var(--sp-3); animation: nfRise .6s cubic-bezier(.2,.7,.2,1) 1s both; }
.nf-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nf-btn { min-width: 260px; justify-content: center; padding-inline: 40px; }
@media (max-width: 480px) { .nf-btn { min-width: 0; width: min(320px, 86vw); } }
.nf-hint { margin: var(--sp-5) 0 0; font-size: 14px; color: var(--muted); animation: nfRise .6s ease 1.4s both; }
.nf-marks { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.nf > *:not(.nf-marks) { position: relative; z-index: 1; }
.nf-mark { position: absolute; width: 112px; height: 112px; border-radius: 50%; border: 4px solid var(--accent); display: flex; align-items: center; justify-content: center; filter: url(#ink); mix-blend-mode: multiply; animation: nfMark .45s cubic-bezier(.2,.8,.2,1) both; }
.nf-mark::before { content: ""; position: absolute; inset: 6px; border-radius: 50%; border: 1.5px solid var(--accent); }
.nf-mark-logo { width: 74px; height: 22px; background: var(--accent); -webkit-mask: url(assets/stamp-logo.svg) center / contain no-repeat; mask: url(assets/stamp-logo.svg) center / contain no-repeat; }
@media (prefers-reduced-motion: reduce) { .nf, .nf-stamp, .nf-title, .nf-lede, .nf-actions, .nf-hint, .nf-mark { animation: none; } }
@keyframes nfMarkOut { to { opacity: 0; } }
.nf-mark { animation: nfMark .45s cubic-bezier(.2,.8,.2,1) both, nfMarkOut .9s ease 3.1s forwards; }
@media (prefers-reduced-motion: reduce) { .nf-mark { animation: nfMarkOut .01s linear 3.5s forwards; } }

/* ---------- carruseles continuos sin salto ---------- */
@keyframes tk { from { transform: translate3d(0,0,0); } to { transform: translate3d(-50%,0,0); } }
.marquee-track, .trust-track { animation: none !important; }
.tk-track { display: flex; width: max-content; flex: none; animation: tk var(--tk-dur, 80s) linear infinite; }
.tk-group { display: flex; align-items: center; flex: none; }
.tk-track--marquee { --tk-dur: 110s; }
.tk-track--marquee .tk-item { margin-right: var(--sp-9); flex: none; }
.tk-track--trust { --tk-dur: 70s; }
.tk-track--trust .tk-item { margin-right: var(--sp-10); flex: none; }
@media (prefers-reduced-motion: reduce) { .tk-track { animation: none; } }

/* ---------- aviso de cookies (cápsula) ---------- */
.ck {
  position: fixed; left: 50%; bottom: 20px; z-index: 300;
  display: flex; align-items: center; gap: var(--sp-4);
  width: max-content; max-width: calc(100% - 24px); box-sizing: border-box;
  padding: 10px 10px 10px 18px; border-radius: 999px;
  background: rgba(16,16,18,.92); color: #FAFAFA;
  -webkit-backdrop-filter: saturate(160%) blur(18px); backdrop-filter: saturate(160%) blur(18px);
  box-shadow: 0 20px 50px -14px rgba(0,0,0,.5), inset 0 0 0 1px rgba(255,255,255,.08);
  opacity: 0; transform: translate(-50%, 24px) scale(.96); pointer-events: none;
  transition: opacity .3s ease, transform .55s cubic-bezier(.34,1.4,.64,1);
}
.ck.is-on { opacity: 1; transform: translate(-50%, 0) scale(1); pointer-events: auto; }
.ck-ico { display: inline-flex; color: var(--accent-on-dark); flex: none; }
.ck-text { margin: 0; font-size: 15px; line-height: 1.35; color: #E5E5E5; white-space: nowrap; }
.ck-actions { display: flex; align-items: center; gap: var(--sp-2); flex: none; }
.ck-no { font: 500 15px "Roboto", sans-serif; color: #FFFFFF; background: transparent; border: 1px solid rgba(255,255,255,.28); padding: 11px 20px; border-radius: 999px; cursor: pointer; transition: color .2s ease, background .2s ease; }
.ck-no:hover { color: #FFFFFF; background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.5); }
.ck-yes { font: 600 15px "Roboto", sans-serif; color: #0A0A0A; background: #FFFFFF; border: 0; padding: 12px 24px; border-radius: 999px; cursor: pointer; transition: transform .2s ease, background .2s ease; }
.ck-yes:hover { background: #F0ECFB; }
.ck-yes:active { transform: scale(.97); }
.ck button:focus-visible { outline: 2px solid var(--accent-on-dark); outline-offset: 2px; }
@media (max-width: 560px) {
  .ck { left: max(12px, env(safe-area-inset-left, 0px)); right: max(12px, env(safe-area-inset-right, 0px)); bottom: calc(14px + env(safe-area-inset-bottom, 0px)); width: auto; max-width: none; transform: translateY(24px) scale(.98); border-radius: 33px; corner-shape: squircle; /* esquinas concéntricas con la pantalla (Apple): 47 px de la pantalla − 14 px de separación = 33 px; `corner-shape` da la curva continua donde el navegador la soporta */ flex-wrap: wrap; padding: 14px 14px 14px 18px; gap: var(--sp-3); }
  .ck.is-on { transform: none; }
  .ck-text { white-space: normal; flex: 1; min-width: 0; }
  .ck-actions { width: 100%; justify-content: flex-end; }
  .ck-yes { flex: 1; }
}
@media (prefers-reduced-motion: reduce) { .ck { transition: none; } }

/* ---------- esqueleto de carga ---------- */
@keyframes skel { from { background-position: 150% 0; } to { background-position: -50% 0; } }
.skel { display: block; border-radius: 10px; background: linear-gradient(90deg, #F2F2F4 0%, #E9E9EC 40%, #F2F2F4 80%) 0 0 / 200% 100%; animation: skel 1.4s ease-in-out infinite; }
.skel-card { display: flex; flex-direction: column; gap: 10px; }
.skel-img { width: 100%; border-radius: 18px; }
.skel-line { height: 14px; }
.skel-line--sm { height: 11px; }
.skel-line--xl { height: 44px; border-radius: 12px; }
.skel-pill { width: 220px; height: 52px; border-radius: 999px; }
@media (prefers-reduced-motion: reduce) { .skel { animation: none; } }

/* fotos reales: carga diferida + aparición suave */
.ph--img { padding: 0; background: #F5F5F7; background-image: none; overflow: hidden; }
.ph--img img { display: block; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .4s ease; }
.ph--img img.is-ld { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .ph--img img { transition: none; } }

/* ---------- páginas legales (privacidad, cookies) ---------- */
/* escala: título fs-h3 · secciones fs-h4 · cuerpo fs-body · meta fs-sm · etiquetas fs-label */
.legal { box-sizing: content-box; max-width: 780px; margin: 0 auto; padding: var(--space-head) var(--pad-x) var(--space-section); }
.legal-head { display: flex; flex-direction: column; gap: var(--sp-3); padding-bottom: var(--sp-8); margin-bottom: var(--sp-8); border-bottom: 1px solid var(--line); }
.legal-title { margin: 0; font-size: var(--fs-h3); font-weight: 600; letter-spacing: -0.03em; line-height: 1.05; color: var(--fg); text-wrap: balance; }
.legal .legal-date { margin: 0; font-size: var(--fs-sm); line-height: 1.4; color: var(--muted); }
.legal h2 { margin: var(--sp-10) 0 var(--sp-4); font-size: var(--fs-h4); font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; color: var(--fg); }
.legal p, .legal li { font-size: var(--fs-body); line-height: 1.65; color: var(--fg-soft); }
.legal p { margin: 0 0 var(--sp-4); }
.legal p:last-child { margin-bottom: 0; }
.legal ul { margin: 0 0 var(--sp-4); padding-left: 1.15em; display: flex; flex-direction: column; gap: var(--sp-3); }
.legal li::marker { color: var(--muted); }
.legal strong { color: var(--fg); font-weight: 500; }
.legal a { color: var(--accent); text-decoration: underline; text-decoration-color: color-mix(in oklab, var(--accent) 35%, transparent); text-underline-offset: 3px; transition: text-decoration-color .2s ease; }
.legal a:hover { text-decoration-color: var(--accent); }
.legal-btn { margin-top: var(--sp-2); }

.legal-table { margin: var(--sp-5) 0; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.legal-row { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(0,1.8fr) minmax(0,.8fr); gap: var(--sp-5); padding: var(--sp-5) var(--sp-6); font-size: var(--fs-ui); line-height: 1.5; color: var(--fg-soft); }
.legal-row + .legal-row { border-top: 1px solid var(--line); }
.legal-row--head { padding-block: var(--sp-3); background: #F5F5F7; font-size: var(--fs-label); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.legal-row strong { display: block; color: var(--fg); font-weight: 500; }
.legal-row em, .legal-row strong + em { display: block; margin-top: var(--sp-1); font-style: normal; font-size: var(--fs-sm); color: var(--muted); }
@media (max-width: 640px) {
  .legal-row { grid-template-columns: minmax(0,1fr); gap: var(--sp-2); padding: var(--sp-5); }
  .legal-row--head { display: none; }
  .legal h2 { margin-top: var(--sp-9); }
}

.ck-link { color: #FFFFFF; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255,255,255,.4); }
.ck-link:hover { text-decoration-color: #FFFFFF; }
.ft-legal { margin-left: var(--sp-4); color: #9F9F9F; text-decoration: none; background: none; box-shadow: none; transition: color .2s ease; }
.ft-legal:hover { color: #FFFFFF; }


.pd-specs-intro { display: flex; flex-direction: column; gap: var(--sp-5); }
.pd-desc { margin: 0; font-size: var(--fs-body); line-height: 1.65; color: var(--fg-soft); max-width: 52ch; }

/* ficha: franja negra con la ruta, como el resto de páginas */
.pd-band { background: #0A0A0A; border-bottom: 1px solid #1A1A1A; padding: var(--sp-9) var(--pad-x); }
.pd-band-in { max-width: 1320px; margin-inline: auto; }
.pd-band .pd-crumbs { padding: 0; font-size: var(--fs-ui); color: #A1A1A6; }
.pd-band .pd-crumbs a { color: #A1A1A6; transition: color .2s ease; }
.pd-band .pd-crumbs a:hover { color: #FFFFFF; }
.pd-band .pd-crumbs-now { color: #FFFFFF; font-weight: 500; }
.pd { padding-top: var(--space-tight); }
.pd-dd-line { display: block; }
.pd-dd-line + .pd-dd-line { margin-top: var(--sp-1); }


/* categorías con miniatura */
.cv-item { display: flex; align-items: center; gap: var(--sp-3); padding: 6px 10px 6px 6px; }
.cv-item-img { flex: none; width: 36px; height: 36px; border-radius: 9px; overflow: hidden; background: #F0F0F2; }
.cv-item-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cv-item:hover .cv-item-img { background: #E8E8EB; }
.cv-item.is-on .cv-item-img { background: #E6DDF8; }
.cv-item-lbl { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 899px) {
  .cv-item { padding: 4px 14px 4px 4px; gap: var(--sp-2); }
  .cv-item-img { width: 30px; height: 30px; border-radius: 999px; background: #E8E8EB; }
}
.page-hero--cat .page-hero h1 { max-width: none; white-space: nowrap; font-size: min(var(--fs-h2), 7.2vw); }



/* clientes: 2 proyectos arriba, mismas tarjetas y proporción */
@media (min-width: 720px) { .pf-grid--2 { grid-template-columns: repeat(2, minmax(0,1fr)) !important; } }
/* clientes: fila superior en tarjetas horizontales */
@media (min-width: 720px) {
  .pf-grid--2 { grid-template-columns: minmax(0,1fr) !important; }
  .pf-grid--2 .pf-card { display: grid; grid-template-columns: minmax(0,1.2fr) minmax(0,1fr); }
  .pf-grid--2 .pf-img { height: auto; min-height: 100%; aspect-ratio: auto !important; } /* la imagen llena su columna: con 100% de alto Y la proporción 5/3 a la vez se ensanchaba y tapaba el texto */
  .pf-grid--2 .pf-body { justify-content: center; gap: var(--sp-3); padding: var(--sp-6) var(--sp-7) !important; }
  .pf-grid--2 .pf-stats { margin-top: var(--sp-4) !important; }
}
@media (min-width: 1280px) {
  .pf-grid--2 { grid-template-columns: repeat(2, minmax(0,1fr)) !important; }
}

/* ---------- aviso del catálogo (en pruebas): tarjeta redondeada al centro con el fondo desenfocado ---------- */
.cn-back {
  position: fixed; inset: 0; z-index: 400;
  display: flex; align-items: center; justify-content: center; padding: 20px;
  background: rgba(10,10,12,.32);
  -webkit-backdrop-filter: blur(12px) saturate(120%); backdrop-filter: blur(12px) saturate(120%);
  animation: cnFade .3s ease both;
}
.cn-card {
  position: relative; box-sizing: border-box;
  width: min(340px, 100%); padding: 32px 28px 28px; text-align: center;
  border-radius: 40px; background: #FFFFFF;
  box-shadow: 0 30px 70px -24px rgba(0,0,0,.4);
  animation: cnPop .45s cubic-bezier(.2,.9,.25,1.1) both;
}
/* La regla global `[tabindex]:focus-visible` le pone radio 6px a lo enfocado: aquí se mantiene el redondeo. */
.cn-card:focus, .cn-card:focus-visible { outline: none; border-radius: 40px; }
@keyframes cnFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes cnPop { from { opacity: 0; transform: translateY(16px) scale(.94); } to { opacity: 1; transform: none; } }
.cn-ico { display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px; margin-bottom: 16px; border-radius: 50%; background: #F1EDFC; color: var(--accent); }
.cn-title { margin: 0 0 6px; font-size: 20px; line-height: 1.25; font-weight: 600; color: var(--fg); }
.cn-text { margin: 0; font-size: 15px; line-height: 1.5; color: var(--fg-soft); }
.cn-ok { appearance: none; border: 0; cursor: pointer; margin-top: 22px; width: 100%; background: var(--accent); color: #FFFFFF; font: inherit; font-weight: 600; font-size: 15px; padding: 14px 24px; border-radius: 999px; }
.cn-ok:hover { opacity: .92; }
.cn-ok:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .cn-back, .cn-card { animation: none; } }

/* Móvil: la franja negra ocupa menos para que el contenido llegue antes (catálogo, categoría y producto). */
@media (max-width: 560px) {
  .page-hero--cv .page-hero,
  .page-hero--cat .page-hero { padding-top: 26px; padding-bottom: 26px; }
  .page-hero--cv .page-hero h1 { font-size: 34px; margin-bottom: 10px; }
  .page-hero--cat .page-hero h1 { margin-bottom: 8px; }
  .page-hero--cv .page-hero-lede,
  .page-hero--cat .page-hero-lede { font-size: 16px; min-height: 0; }
  .pd-band { padding-top: 18px; padding-bottom: 18px; }
}

/* Móvil: «Ver {categoría}» bajo «También te puede interesar» se ve suelto; se oculta. */
@media (max-width: 560px) { .pd-rel-link { display: none; } }

/* Frases del inicio: en celular se muestra una por vez (cabe completa, en hasta 2 líneas). */
.mq-rotor { display: none; }
@media (max-width: 560px) {
  .marquee { justify-content: center; padding: 22px var(--pad-x); min-height: 96px; align-items: center; }
  .marquee .tk-track { display: none; }
  .mq-rotor { display: block; margin: 0; text-align: center; text-wrap: balance; font-weight: 500; font-size: 21px; line-height: 1.25; letter-spacing: var(--ls-heading); animation: mqIn .5s cubic-bezier(.2,.7,.2,1) both; }
  .mq-rotor em { font-style: normal; color: var(--accent-on-dark); }
}
@keyframes mqIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .mq-rotor { animation: none; } }

/* Móvil, inicio: se rompe el bloque negro. Negro sólo el título; los 4 puntos en gris claro; las frases en la franja morada. */
@media (max-width: 560px) {
  .hero { border-bottom: 0; }
  .hero-grid { gap: var(--sp-7); padding-bottom: var(--sp-9); }
  .hero-pillars { background: #F4F3F8; border-top: 0; border-bottom: 0; }
  .hero-pillar { background: #F4F3F8; border-right-color: rgba(10,10,10,.09); border-bottom-color: rgba(10,10,10,.09); }
  .hero-pillar:hover { background: #F4F3F8; }
  .hero-pillar p { color: #0A0A0A; }
  .hero-pillar-icon { color: var(--accent); }
  .marquee { border-block: 0; }
  .mq-rotor em { color: var(--accent-on-dark); }
}

/* Móvil: espacios más compactos y parejos (entre secciones 56, título→contenido 32). El resto de tamaños no cambia. */
@media (max-width: 560px) {
  :root { --space-section: 56px; --space-head: 32px; --space-block: 40px; }
  .hero-grid { padding-top: 44px; }
  .section-head { gap: var(--sp-4); }
  .trust { padding-top: 48px; }
  .cta-strip-inner { gap: var(--sp-6); }
  #proceso .p5 { gap: var(--sp-7); }
  #conversemos { padding-block: var(--sp-9); }
}

/* Imágenes, iconos y carruseles no se seleccionan ni se arrastran; el texto sigue seleccionable. */
img, svg, picture, video, canvas,
.trust-marquee, .trust-marquee *, .tk-track img, .tk-track svg,
.btn-arrow, .hero-pillar-icon, .nav-mobile-link svg {
  -webkit-user-select: none; user-select: none;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
}
.trust-marquee, .trust-marquee * { -webkit-tap-highlight-color: transparent; }

/* Móvil: los 4 puntos del inicio con menos aire arriba y abajo. */
@media (max-width: 560px) { .hero-pillar { padding-block: 30px; } }

/* Móvil: «Tu pedido, a solo 5 pasos» — tarjetas algo más ajustadas, sin cambiar el diseño. */
@media (max-width: 560px) {
  .p5-grid { gap: var(--sp-3); }
  .p5-step { padding: 18px 20px; gap: var(--sp-4); min-height: 116px; }
}

/* Móvil: título y descripción de cada paso más juntos (leían como dos bloques sueltos). */
@media (max-width: 560px) {
  .p5-text { gap: 2px; }
  .p5-desc { line-height: 1.4; }
}

/* Tablet y PC: el pie termina abajo como siempre (36). El vacío de 112 es solo para celular, donde el botón de subir va sobre fondo negro. */
@media (min-width: 561px) { .ft { padding-bottom: 36px; } }
/* Tablet y PC: la fila de redes deja libre el borde derecho, donde queda el botón de subir al llegar abajo. */
@media (min-width: 561px) { .ft-bottom { padding-right: 56px; } }

/* iPad horizontal y laptops chicas: la columna de dirección se quedaba corta y la calle se montaba sobre el horario. */
@media (min-width: 1081px) and (max-width: 1439px) {
  .ft-grid { grid-template-columns: minmax(0,.9fr) minmax(0,.7fr) minmax(0,.95fr) minmax(0,1.5fr) minmax(0,.95fr); gap: var(--sp-7); }
}

/* iPad vertical: las 4 columnas del pie en una sola fila (antes 2×2, largo y con un hueco a la derecha del logo). */
@media (min-width: 561px) and (max-width: 1080px) {
  .ft-brand + .ft-col { display: none; } /* Tablet vertical: sin «Explora» (ya está en el menú de arriba). */
  .ft-brand { grid-column: 1 / -1; }
  .ft-grid { grid-template-columns: repeat(2, auto); justify-content: space-between; gap: var(--sp-7) var(--sp-6); }
}
@media (min-width: 720px) and (max-width: 1080px) {
  .ft-grid { grid-template-columns: repeat(3, auto); justify-content: space-between; gap: var(--sp-6); }
}

/* Tablet vertical: espacios del pie más parejos (arriba 64, entre bloques 40, fila inferior más junta). */
@media (min-width: 561px) and (max-width: 1080px) {
  .ft { padding-top: 64px; gap: var(--sp-8); }
  .ft-bottom { gap: var(--sp-4); padding-top: var(--sp-5); padding-right: 0; }
  .ft-grid { row-gap: var(--sp-7); }
}

/* Tablet vertical: «5 pasos» en 3 tarjetas arriba y 2 centradas abajo (icono arriba, texto debajo). */
@media (min-width: 700px) and (max-width: 1080px) {
  .p5-head { text-align: center; }
  .p5-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--sp-4); }
  .p5-step { flex: 0 0 calc(33.333% - 11px); flex-direction: column; align-items: center; text-align: center; min-height: 0; padding: 28px 18px; gap: var(--sp-4); }
  .p5-tile { width: 84px; height: 84px; border-radius: 24px; }
  .p5-icon { width: 40px; height: 40px; }
  .p5-text { align-items: center; gap: 6px; }
  .p5-desc { max-width: 22ch; line-height: 1.4; text-wrap: balance; }
}

/* Redes sociales: en celular y tablet (vertical y horizontal) solo el icono, en un botón redondo de 44 px; en computadora se mantiene con su nombre. */
@media (max-width: 1080px), (hover: none), (pointer: coarse) {
  .ft-social { gap: 12px; flex-wrap: nowrap; }
  .ft-social-btn { width: 44px; height: 44px; justify-content: center; gap: 0; border-radius: 50%; border: 1px solid #2E2E2E; transition: color .2s ease, border-color .2s ease; }
  .ft-social-btn:hover { border-color: #5A5A5A; }
  .ft-social-btn span { display: none; }
}

/* Buscador del menú (lupa + tarjeta flotante) */
.st-btn { display: inline-flex; width: 44px; height: 44px; padding: 0; border-radius: 50%; border: 1px solid var(--line); background: var(--bg); color: var(--fg); cursor: pointer; align-items: center; justify-content: center; transition: border-color .2s ease, color .2s ease; }
.st-btn:hover { border-color: var(--accent); color: var(--accent); }
.st-back { position: fixed; inset: 0; z-index: 78; background: rgba(10,10,10,.34); opacity: 0; }
.st-back.is-in { animation: stFadeIn .3s ease both; }
.st-back.is-out { animation: stFadeOut .18s ease both; }
.st-panel { position: fixed; left: 0; right: 0; margin-inline: auto; width: min(640px, calc(100vw - 32px)); z-index: 79; opacity: 0; transform-origin: 50% 0; background: #FFFFFF; border: 1px solid var(--line); border-radius: 24px; overflow-y: auto; scrollbar-width: none; -ms-overflow-style: none; box-shadow: 0 24px 48px -16px rgba(0,0,0,.35); }
.st-panel.is-in { animation: stIn .32s cubic-bezier(.2,.8,.2,1) both; }
.st-panel.is-out { animation: stOut .18s cubic-bezier(.4,0,1,1) both; }
.st-panel::-webkit-scrollbar { display: none; }
.st-in { padding: 18px 18px 20px; }
.st-field { position: relative; margin-bottom: 16px; }
.st-ico { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.st-input { width: 100%; height: 52px; box-sizing: border-box; padding: 0 52px 0 48px; font: inherit; font-size: 16px; color: var(--fg); background: #F7F7F9; border: 1.5px solid transparent; border-radius: 999px; outline: none; -webkit-appearance: none; appearance: none; transition: border-color .2s ease, box-shadow .2s ease, background .2s ease; }
.st-input::placeholder { color: var(--muted); }
.st-input:focus { background: #FFFFFF; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(85,48,170,.14); }
.st-input::-webkit-search-cancel-button { -webkit-appearance: none; display: none; }
.st-close { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 50%; background: #ECECEF; color: var(--fg); cursor: pointer; }
.st-close:hover { background: #E0E0E5; }
.st-k { display: block; margin: 0 4px 10px; font-size: 13px; color: var(--muted); }
.st-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.st-chip { display: inline-flex; align-items: center; padding: 9px 16px; border: 1px solid var(--line); border-radius: 999px; font-size: 15px; color: var(--fg); transition: border-color .2s ease, color .2s ease; }
.st-chip:hover { border-color: var(--accent); color: var(--accent); }
.st-list { display: flex; flex-direction: column; }
.st-row { display: flex; align-items: center; gap: 14px; padding: 8px 6px; border-radius: 14px; color: inherit; transition: background .2s ease; }
.st-row:hover { background: #F7F7F9; }
.st-th { flex: none; width: 56px; height: 56px; border-radius: 12px; overflow: hidden; background: #F5F5F7; }
.st-th .ph { background: #F5F5F7; background-image: none; }
.st-th .ph-lbl { display: none; }
.st-tx { display: flex; flex-direction: column; min-width: 0; }
.st-nm { font-size: 16px; font-weight: 500; color: var(--fg); line-height: 1.25; }
.st-sub { font-size: 13px; color: var(--muted); }
.st-more { margin: 8px 4px 0; font-size: 12.5px; color: var(--muted); }
.st-empty { padding: 4px 4px 2px; }
.st-empty-t { margin: 0 0 8px; font-size: 15px; color: var(--fg); }
.st-empty-a { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 500; color: var(--accent); }
@keyframes stFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes stFadeOut { from { opacity: 1; } to { opacity: 0; } }
@keyframes stIn { from { opacity: 0; transform: translateY(-14px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes stOut { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(-8px) scale(.98); } }
@media (prefers-reduced-motion: reduce) { .st-back.is-in, .st-back.is-out, .st-panel.is-in, .st-panel.is-out { animation-duration: .01s; } }

/* PC y tablet: el menú en 3 columnas para que los enlaces queden en el centro exacto de la pantalla (antes los empujaba el ancho distinto de los lados). */
@media (min-width: 880px) {
  .nav { display: grid; grid-template-columns: 1fr auto 1fr; }
  .nav-right { justify-self: end; }
}

/* Cuadrícula de guía: se ve añadiendo ?grid=1 a la dirección. */
.gridguide { position: fixed; inset: 0; z-index: 99998; pointer-events: none; padding-inline: var(--pad-x); display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 20px; }
.gridguide i { background: rgba(255, 0, 90, .08); border-inline: 1px solid rgba(255, 0, 90, .25); }
.gridguide::after { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 1px; background: rgba(0, 120, 255, .8); }

/* SELECCIÓN DE TEXTO. Regla: solo se puede seleccionar y copiar lo que un cliente copiaría de verdad.
   Todo lo demás (títulos de marketing, frases, botones, menú, adornos, etiquetas) no se selecciona y muestra la flecha, no el cursor de texto. */
body { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
a, button, [role="button"], .btn, .cat-tile, .cv-card, .st-chip, .st-row, .back-to-top { cursor: pointer; }
/* Sí se puede copiar: */
.ft-mail-txt, .ft-ln, .ft-v, .ft-phone, .ft-hours, .ft-hours span,   /* contacto del pie: correo, teléfono, dirección y horario */
.pd-title, .pd-lead, .pd-desc, .pd-dl, .pd-dl *, .pd-moq-v, .pd-color-name, .pd-crumbs-now,               /* ficha del producto: nombre, descripción, detalles y pedido mínimo */
.sx-title, .sx-desc,                                                                                       /* servicios: qué hace cada uno */
.legal, .legal *,                                                                                          /* privacidad y cookies */
input, textarea, select, [contenteditable] { -webkit-user-select: text; user-select: text; }
input, textarea, [contenteditable] { cursor: text; }
button, .btn, a { caret-color: transparent; }
.legal button, .legal .btn { -webkit-user-select: none; user-select: none; cursor: pointer; }

/* ---------- contacto (página oculta) ---------- */
.ct { padding: var(--space-head) var(--pad-x) var(--space-section); }
.ct-grid { display: grid; grid-template-columns: 1fr; gap: var(--sp-4); max-width: 1100px; margin: 0 auto; }
@media (min-width: 760px) { .ct-grid { grid-template-columns: 1fr 1fr; gap: var(--sp-5); } .ct-card--main { grid-column: 1 / -1; } }
@media (min-width: 980px) { .ct-grid { grid-template-columns: repeat(3, 1fr); } }
.ct-card { display: flex; flex-direction: column; align-items: flex-start; gap: var(--sp-3); padding: var(--sp-7); border: 1px solid var(--line); border-radius: 24px; background: var(--bg); }
.ct-card--main { gap: var(--sp-5); }
.ct-k { font-size: var(--fs-label); font-weight: 500; letter-spacing: var(--ls-label); text-transform: uppercase; color: var(--muted); }
.ct-v { font-size: var(--fs-h4); font-weight: 600; letter-spacing: -0.02em; line-height: 1.25; color: var(--fg); }
a.ct-v:hover { color: var(--accent); }
.ct-hours { display: grid; grid-template-columns: auto auto; column-gap: var(--sp-5); row-gap: var(--sp-2); font-size: var(--fs-h4); font-weight: 600; letter-spacing: -0.02em; line-height: 1.25; color: var(--fg); font-variant-numeric: tabular-nums; }
.ct-day { color: var(--muted); font-weight: 500; }

/* Celular: los enlaces legales del pie tienen alto suficiente para el dedo (medían 19 px). */
@media (max-width: 759px) { .ft-legal { display: inline-block; padding-block: 8px; } }

/* Clientes: una sola cuadrícula de proyectos iguales, foto 5:3 (la medida del ERP). 1 → 2 → 3 columnas. */
@media (min-width: 720px) { .pf .pf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1080px) { .pf .pf-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.pf .pf-img { aspect-ratio: 5 / 3 !important; }

/* ---------- fechas especiales (/regalos/<slug>/): misma cuadrícula del catálogo ---------- */
/* Hasta 4 columnas: en pantallas anchas no se estira a 5 o 6 como el catálogo. */
@media (min-width: 1600px) { .oc-grid { grid-template-columns: repeat(4, minmax(0,1fr)); } }
/* Portada de celebraciones: 8 fechas en 4 columnas = dos filas completas */
@media (min-width: 1080px) { .cats-grid.oc-hub { grid-template-columns: repeat(4, 1fr); } }
/* Tablet horizontal (cualquier pantalla táctil hasta el iPad Pro grande, aunque tenga teclado o trackpad puesto):
   3 productos por fila en el catálogo y en celebraciones. Las laptops del mismo ancho no son táctiles: siguen con 4. */
@media (any-pointer: coarse) and (min-width: 1200px) and (max-width: 1400px) {
  .cv-grid, .cv-grid.oc-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
}

/* Celebraciones: fecha todavía sin regalos. Sólo un mensaje, con un regalo que se está armando, en una tarjeta gris de todo el ancho. */
.oc-wip { display: flex; flex-direction: column; align-items: center; text-align: center; gap: var(--sp-2); padding: 72px 24px; background: #F5F5F7; border-radius: 24px; }
.oc-wip-ico { width: 72px; height: 72px; margin-bottom: 16px; color: var(--accent); overflow: visible; }
.oc-wip-lid { transform-box: fill-box; transform-origin: 50% 100%; animation: ocLid 2.2s cubic-bezier(.45,0,.25,1) infinite; }
@keyframes ocLid { 0%, 55%, 100% { transform: translateY(0) rotate(0); } 70% { transform: translateY(-7px) rotate(-6deg); } 85% { transform: translateY(-3px) rotate(3deg); } }
.oc-wip-spark { transform-box: fill-box; transform-origin: center; opacity: 0; animation: ocSpark 2.2s ease-in-out infinite; }
.oc-wip-spark--b { animation-delay: .35s; }
@keyframes ocSpark { 0%, 55%, 100% { opacity: 0; transform: scale(.4); } 72% { opacity: 1; transform: scale(1); } }
.oc-wip-t { margin: 0; max-width: 28ch; text-wrap: balance; font-size: clamp(22px, 2.2vw, 28px); font-weight: 600; letter-spacing: -0.025em; line-height: 1.15; color: var(--fg); }
.oc-wip-d { margin: 2px 0 0; font-size: 16px; color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .oc-wip-lid, .oc-wip-spark { animation: none; } .oc-wip-spark { opacity: 1; transform: none; } }

/* Eventos: texto a la izquierda y, a la derecha, un tablero con las piezas sueltas del merch de un evento */
.ev-intro { display: grid; grid-template-columns: minmax(0,1fr); gap: var(--sp-8); align-items: center; border-bottom: 0; padding-block: calc(var(--space-section) * .75); }
@media (min-width: 960px) { .ev-intro { grid-template-columns: minmax(0,4fr) minmax(0,7fr); gap: var(--sp-10); } }
.ev-intro-copy { display: flex; flex-direction: column; gap: var(--sp-4); }
.ev-intro-h { margin: 0 0 var(--sp-2); }
.ev-intro-p { margin: 0; max-width: 54ch; text-wrap: pretty; font-size: 18px; line-height: 1.6; color: var(--fg-soft); }
/* Tablero sin marco: las piezas sueltas flotan sobre la página. Cada una se mece a su propio ritmo (subir, bajar y
   girar un poco), para que el conjunto se sienta vivo sin moverse al compás. */
/* Filas apretadas que se reacomodan según el ancho; cada pieza ladeada y un poco corrida para que se vea suelta */
.ev-board { container-type: inline-size; display: flex; flex-wrap: wrap; justify-content: center; align-content: center; gap: clamp(18px, 2.6cqi, 26px) clamp(10px, 1.4cqi, 14px); padding: var(--sp-6) 0; }
.ev-pos { position: relative; z-index: 1; transform: translate(var(--dx), var(--dy)); }
.ev-pos.is-back { z-index: 0; }
.ev-chip { --d: calc(9s + var(--i) * .5s); display: inline-flex; align-items: center; gap: .45em; white-space: nowrap; padding: .6em 1em .6em .8em; border-radius: 999px; background: #FFFFFF; border: 1px solid #E8E8EE; font-size: clamp(14px, 2.7cqi, 19px); font-weight: 500; color: var(--fg); transform: rotate(var(--r)); box-shadow: 0 10px 24px -14px rgba(40,20,90,.28), 0 1px 2px rgba(10,10,10,.04); animation: evDrift var(--d) ease-in-out infinite; animation-delay: calc(var(--i) * -1.3s); will-change: transform; }
.ev-pos:nth-child(even) .ev-chip { animation-name: evDrift2; }
.ev-chip svg { width: 1.15em; height: 1.15em; flex: none; color: var(--accent); }
.ev-chip.is-on { background: var(--accent); border-color: var(--accent); color: #FFFFFF; box-shadow: 0 12px 26px -12px rgba(85,48,170,.55); }
.ev-chip.is-on svg { color: #FFFFFF; }
.is-back .ev-chip { background: #F7F7FA; color: #6E6E78; box-shadow: none; }
.is-back .ev-chip svg { color: #9C86E0; }
@keyframes evDrift { 0%, 100% { transform: rotate(var(--r)) translate(0, 0); } 50% { transform: rotate(calc(var(--r) + .6deg)) translate(1px, -3px); } }
@keyframes evDrift2 { 0%, 100% { transform: rotate(var(--r)) translate(0, 0); } 50% { transform: rotate(calc(var(--r) - .6deg)) translate(-1px, -3px); } }
@media (prefers-reduced-motion: reduce) { .ev-chip { animation: none; } }
@media (max-width: 639px) { .ev-board { padding: var(--sp-4) 0; } .ev-chip { font-size: clamp(12px, 3.6cqi, 14px); } .ev-chip--wide { display: none; } }
/* Lo que hacemos: tarjetas grises, del mismo gris que el tablero. El ícono va en un cuadro lila. Todas las descripciones
   ocupan dos líneas. Las tarjetas no reaccionan al mouse ni al toque: no son botones. */
.ev-steps { padding-top: 0; }
.ev-row { display: grid; grid-template-columns: minmax(0,1fr); gap: var(--sp-4); }
@media (min-width: 720px) { .ev-row { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (min-width: 1200px) { .ev-row { grid-template-columns: repeat(4, minmax(0,1fr)); } }
.ev-item { display: flex; flex-direction: column; gap: 10px; padding: var(--sp-7) var(--sp-6) var(--sp-8); border-radius: 24px; background: #F5F5F7; border: 1px solid transparent; }
.ev-item-ico { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; margin-bottom: var(--sp-5); border-radius: 18px; background: #ECE5FC; color: var(--accent); }
.ev-item-ico svg { width: 26px; height: 26px; }
/* Los íconos se mueven por turnos, en bucle: uno se balancea y da un saltito, y le pasa la posta al siguiente */
.ev-item-ico svg { animation: evIco 4.8s ease-in-out infinite; transform-origin: 50% 70%; }
.ev-item:nth-child(2) .ev-item-ico svg { animation-delay: 1.2s; }
.ev-item:nth-child(3) .ev-item-ico svg { animation-delay: 2.4s; }
.ev-item:nth-child(4) .ev-item-ico svg { animation-delay: 3.6s; }
@keyframes evIco { 0%, 25%, 100% { transform: none; } 6% { transform: translateY(-3px) rotate(-10deg); } 12% { transform: translateY(0) rotate(8deg); } 18% { transform: rotate(-4deg); } }
@media (prefers-reduced-motion: reduce) { .ev-item-ico svg { animation: none; } }
.ev-item-t { margin: 0; font-size: 21px; font-weight: 600; letter-spacing: -0.02em; color: var(--fg); }
.ev-item-d { margin: 0; font-size: 16px; line-height: 1.5; color: var(--muted); }
@media (max-width: 1199px) {
  .ev-item { display: grid; grid-template-columns: auto minmax(0,1fr); column-gap: var(--sp-4); row-gap: 4px; padding: var(--sp-5); align-items: start; }
  .ev-item-ico { grid-row: span 2; margin-bottom: 0; width: 48px; height: 48px; border-radius: 15px; }
  .ev-item-ico svg { width: 22px; height: 22px; }
  .ev-item-t { font-size: 18px; }
  .ev-item-d { font-size: 15px; }
}
/* Eventos: nota discreta bajo las tarjetas (servicio aparte): una línea centrada, chica y gris; sólo el nombre resalta */
.ev-note { margin: var(--sp-12) auto 0; max-width: 60ch; text-align: center; text-wrap: balance; font-size: 17px; line-height: 1.6; color: var(--muted); }
.ev-note strong { font-weight: 600; color: var(--fg); }
@media (min-width: 720px) { .ev-note { max-width: none; } }
/* Eventos: el cierre «Conversemos» más cerca de la nota */
.ev-steps { padding-bottom: calc(var(--space-section) * .5); }
/* «Tu pedido, a solo 5 pasos»: en pantallas grandes, título, texto e ícono crecen en proporción con el resto de la web
   (antes la descripción se quedaba fija en 15 px y el título en 19 px). */
@media (min-width: 781px) {
  .p5-grid { max-width: clamp(1200px, 80vw, 1640px); }
  .p5-title { font-size: clamp(18px, 1.4vw, 24px); }
  .p5-desc { font-size: clamp(15px, 1.05vw, 18px); }
  .p5-tile { width: clamp(88px, 6.8vw, 124px); height: clamp(88px, 6.8vw, 124px); border-radius: clamp(24px, 1.85vw, 34px); }
  .p5-icon { width: clamp(42px, 3.25vw, 60px); height: clamp(42px, 3.25vw, 60px); }
}
