/* =============================================================
   CELUDIG PRO — sistema visual 2026
   Premium / estatus. Mesh animado persistente en todo el sitio,
   superficies de vidrio, tipografía apretada tipo producto.
   ============================================================= */

:root {
  --bg:        #fbfbfd;
  --ink:       #1d1d1f;
  --ink-2:     #515154;
  --ink-3:     #6e6e73;
  --line:      rgba(0, 0, 0, .08);
  --blue:      #0071e3;
  --blue-h:    #0077ed;
  --link:      #0066cc;
  --green:     #1f9d55;
  --well:      #f5f5f7;

  --glass:        rgba(255, 255, 255, .58);
  --glass-strong: rgba(255, 255, 255, .78);
  --glass-line:   rgba(255, 255, 255, .7);
  --shadow:       0 24px 60px -30px rgba(18, 28, 64, .35), 0 2px 6px -2px rgba(18, 28, 64, .06);

  --grad: linear-gradient(95deg, #2a6cff 0%, #7a5cff 42%, #e0569b 72%, #ff7a3d 100%);

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', system-ui, sans-serif;

  --gutter:  clamp(1.25rem, 4vw, 2.5rem);
  --section: clamp(5rem, 11vw, 9rem);
  --r-xl: 32px;
  --r-lg: 24px;
  --r-md: 18px;

  --ribbon-h: 40px;
  --nav-h: 56px;

  --ease: cubic-bezier(.16, 1, .3, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body {
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -.011em;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
ul { padding: 0; list-style: none; }
h1, h2, h3 { font-weight: 700; letter-spacing: -.035em; line-height: 1.07; text-wrap: balance; }
p { text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 8px; }

.u-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -100px; left: 1rem; z-index: 200; background: var(--ink); color: #fff; padding: .6rem 1rem; border-radius: 10px; }
.skip-link:focus { top: 1rem; }

/* =============================================================
   Fondo: mesh animado persistente (todo el sitio)
   ============================================================= */
.bg-mesh {
  --mx: 30%;
  --my: 35%;
  position: fixed;
  inset: -25vmax;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(38vmax 38vmax at var(--mx) var(--my), rgba(80, 112, 255, .50), transparent 62%),
    radial-gradient(34vmax 34vmax at calc(100% - var(--mx)) calc(var(--my) + 25%), rgba(64, 170, 255, .42), transparent 62%),
    radial-gradient(30vmax 30vmax at calc(var(--mx) + 30%) 22%, rgba(160, 120, 255, .38), transparent 60%),
    radial-gradient(34vmax 28vmax at 38% calc(100% - var(--my)), rgba(255, 176, 130, .38), transparent 62%),
    radial-gradient(26vmax 26vmax at 82% 18%, rgba(255, 110, 170, .24), transparent 60%);
  animation: meshDrift 24s ease-in-out infinite;
  will-change: transform;
}
@keyframes meshDrift {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg) scale(1); }
  33%      { transform: translate3d(3vmax, -2vmax, 0) rotate(8deg) scale(1.06); }
  66%      { transform: translate3d(-2vmax, 2vmax, 0) rotate(-6deg) scale(1.03); }
}
.bg-grain {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px;
}

/* ---------- Superficies ---------- */
.glass {
  background: var(--glass);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid var(--glass-line);
  box-shadow: var(--shadow);
}
.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.container { width: 100%; max-width: 1160px; margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); position: relative; }
.eyebrow {
  font-size: .8rem; font-weight: 600; letter-spacing: .02em;
  color: var(--ink-3); margin-bottom: .75rem;
}
.h-section { font-size: clamp(2.2rem, 5.2vw, 4rem); }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: var(--ink-2); line-height: 1.45; max-width: 52ch; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }
.head { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.head .lead { margin-top: 1rem; }

/* ---------- Iconos ---------- */
.ic { width: 24px; height: 24px; flex-shrink: 0; }
.ic-sm { width: 18px; height: 18px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 44px; padding: .7rem 1.35rem;
  border-radius: 999px; font-size: 1rem; font-weight: 500; letter-spacing: -.01em;
  transition: background .2s, transform .2s var(--ease), box-shadow .2s;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-h); }
.btn-primary:active { transform: scale(.98); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; }
.btn-outline { border: 1px solid rgba(0, 113, 227, .9); color: var(--blue); background: rgba(255,255,255,.35); }
.btn-outline:hover { background: var(--blue); color: #fff; }
.btn-lg { min-height: 52px; padding: .9rem 1.8rem; font-size: 1.06rem; }
.btn-sm { min-height: 36px; padding: .45rem 1rem; font-size: .88rem; }
.link {
  color: var(--link); font-weight: 500; display: inline-flex; align-items: center; gap: .15rem;
  min-height: 44px;
}
.link::after { content: '›'; font-size: 1.25em; line-height: 1; transform: translateY(-1px); transition: transform .2s var(--ease); }
.link:hover { text-decoration: underline; }
.link:hover::after { transform: translate(2px, -1px); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.5rem; }
.center .actions { justify-content: center; }

/* =============================================================
   Ribbon + navegación
   ============================================================= */
.ribbon {
  position: fixed; inset: 0 0 auto 0; z-index: 101;
  height: var(--ribbon-h);
  display: flex; align-items: center; justify-content: center;
  padding-inline: 1rem;
  background: rgba(29, 29, 31, .92);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  color: rgba(255,255,255,.88);
  font-size: .82rem; text-align: center;
}
.ribbon p { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ribbon strong { color: #fff; font-weight: 600; }
.ribbon a { color: #5eb1ff; margin-left: .35rem; }
.ribbon a:hover { text-decoration: underline; }

.nav {
  position: fixed; left: 0; right: 0; top: var(--ribbon-h); z-index: 100;
  height: var(--nav-h);
  background: rgba(251, 251, 253, .62);
  -webkit-backdrop-filter: blur(24px) saturate(180%); backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid transparent;
  transition: background .3s, border-color .3s;
}
.nav.is-scrolled { background: rgba(251, 251, 253, .82); border-bottom-color: var(--line); }
.nav-inner {
  max-width: 1160px; height: 100%; margin: auto; padding-inline: var(--gutter);
  display: flex; align-items: center; gap: 2rem;
}
.nav-logo .logo { height: 40px; width: auto; }
.nav-links { display: none; gap: 2rem; margin-inline: auto; }
.nav-link { font-size: .88rem; color: var(--ink-2); transition: color .2s; padding: .5rem 0; }
.nav-link:hover, .nav-link[aria-current="page"] { color: var(--ink); }
.nav-cta { margin-left: auto; }
.nav-toggle {
  width: 44px; height: 44px; display: grid; place-content: center; gap: 5px; margin-left: .25rem;
}
.nav-toggle span { display: block; width: 18px; height: 1.5px; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.nav-mobile {
  position: fixed; inset: calc(var(--ribbon-h) + var(--nav-h)) 0 0 0; z-index: 99;
  background: rgba(251, 251, 253, .9);
  -webkit-backdrop-filter: blur(30px) saturate(180%); backdrop-filter: blur(30px) saturate(180%);
  padding: 1.5rem var(--gutter);
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
}
.nav-mobile.is-open { opacity: 1; visibility: visible; transform: none; }
.nav-mobile ul { display: grid; gap: .25rem; }
.nav-mobile-link { display: block; font-size: 1.6rem; font-weight: 600; letter-spacing: -.03em; padding: .55rem 0; }
.nav-mobile-cta { margin-top: 1.25rem; }

@media (max-width: 480px) { .nav-cta { display: none; } .nav-toggle { margin-left: auto; } }
@media (min-width: 900px) {
  .nav-links { display: flex; }
  .nav-toggle { display: none; }
  .nav-cta { margin-left: 0; }
}

/* =============================================================
   Hero
   ============================================================= */
.hero {
  padding-top: calc(var(--ribbon-h) + var(--nav-h) + clamp(3rem, 7vw, 5.5rem));
  padding-bottom: clamp(2rem, 5vw, 4rem);
  text-align: center;
  overflow: hidden;
}
.hero-content { max-width: 1040px; margin-inline: auto; padding-inline: var(--gutter); }
.pill {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .4rem .9rem; border-radius: 999px;
  font-size: .8rem; font-weight: 600; color: var(--ink-2);
  margin-bottom: 1.5rem;
}
.pill-dot { width: 7px; height: 7px; border-radius: 50%; background: #34c759; box-shadow: 0 0 0 4px rgba(52,199,89,.18); }
.hero-title { font-size: clamp(2.8rem, 7.6vw, 5.6rem); letter-spacing: -.05em; line-height: 1.02; }
.hero-sub { margin: 1.5rem auto 2rem; font-size: clamp(1.1rem, 2vw, 1.45rem); color: var(--ink-2); max-width: 36ch; line-height: 1.4; }
.hero-sub strong { color: var(--ink); font-weight: 600; }

.hero-stage {
  position: relative;
  margin: clamp(2.5rem, 6vw, 4rem) auto 0;
  max-width: 980px; height: clamp(320px, 52vw, 560px);
  padding-inline: var(--gutter);
}
.hero-stage::after {
  content: ''; position: absolute; left: 20%; right: 20%; bottom: 2%; height: 60px;
  background: radial-gradient(ellipse at center, rgba(20, 30, 70, .28), transparent 70%);
  filter: blur(16px); z-index: 0;
}
.hero-phone { position: absolute; bottom: 0; height: 92%; width: auto; z-index: 1; filter: drop-shadow(0 30px 40px rgba(20, 30, 70, .22)); }
.hero-phone--l { left: 50%; transform: translateX(-118%) rotate(-7deg) scale(.86); transform-origin: bottom center; }
.hero-phone--r { left: 50%; transform: translateX(18%) rotate(7deg) scale(.86); transform-origin: bottom center; }
.hero-phone--c { left: 50%; transform: translateX(-50%); z-index: 2; height: 100%; }
.hero-caption { margin-top: 1.25rem; font-size: .9rem; color: var(--ink-3); }
.hero-caption strong { color: var(--ink); font-weight: 600; }
@media (max-width: 640px) {
  .hero-phone--l { transform: translateX(-100%) rotate(-7deg) scale(.8); }
  .hero-phone--r { transform: translateX(0%) rotate(7deg) scale(.8); }
}

/* Barra de confianza */
.trustbar { margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.trustbar ul {
  display: grid; grid-template-columns: repeat(2, 1fr);
  border-radius: var(--r-lg); overflow: hidden;
}
.trustbar li { display: flex; align-items: center; gap: .75rem; padding: 1.1rem 1.25rem; font-size: .95rem; font-weight: 500; }
.trustbar li + li { border-left: 1px solid var(--line); }
.trustbar li:nth-child(3) { border-left: 0; }
.trustbar li:nth-child(n+3) { border-top: 1px solid var(--line); }
.trustbar .ic { color: var(--blue); }
@media (min-width: 900px) {
  .trustbar ul { grid-template-columns: repeat(4, 1fr); }
  .trustbar li:nth-child(3) { border-left: 1px solid var(--line); }
  .trustbar li:nth-child(n+3) { border-top: 0; }
  .trustbar li { justify-content: center; }
}

/* =============================================================
   Bento de productos
   ============================================================= */
.bento { display: grid; gap: 1rem; grid-template-columns: 1fr; }
.tile {
  position: relative; overflow: hidden;
  border-radius: var(--r-xl);
  padding: clamp(2rem, 4vw, 3rem) clamp(1.25rem, 3vw, 2.5rem) 0;
  text-align: center;
  display: flex; flex-direction: column; align-items: center;
  min-height: 520px;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.tile:hover { transform: translateY(-4px); }
.tile-tag { font-size: .78rem; font-weight: 600; letter-spacing: .02em; margin-bottom: .5rem; }
.tile-tag.grad { font-weight: 700; }
.tile h3 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
.tile p.tile-sub { font-size: clamp(1.02rem, 1.6vw, 1.25rem); color: var(--ink-2); margin: .5rem 0 1.1rem; }
.tile .actions { justify-content: center; }
.tile-media { margin-top: auto; padding-top: 1.5rem; width: 100%; display: flex; justify-content: center; align-items: flex-end; gap: 0; }
.tile-media img { max-height: 300px; width: auto; filter: drop-shadow(0 24px 30px rgba(20, 30, 70, .18)); transition: transform .6s var(--ease); }
.tile:hover .tile-media img { transform: translateY(-6px); }
.tile-media--pair img + img { margin-left: -12%; }
.tile-dots { display: flex; gap: .45rem; justify-content: center; margin-bottom: 1rem; }
.tile-dots span { width: 12px; height: 12px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); }

.tile--xl { min-height: 640px; }
.tile--xl h3 { font-size: clamp(2.4rem, 6vw, 4.6rem); }
.tile--xl .tile-media img { max-height: 400px; }
.tile--xl .tile-media img:nth-child(1), .tile--xl .tile-media img:nth-child(3) { max-height: 340px; }
.tile--xl .tile-media img:nth-child(1) { margin-right: -6%; }
.tile--xl .tile-media img:nth-child(3) { margin-left: -6%; }
.tile--xl .tile-media img:nth-child(2) { position: relative; z-index: 1; }

.tile--dark { background: rgba(12, 12, 16, .88); border-color: rgba(255,255,255,.08); color: #f5f5f7; }
.tile--dark p.tile-sub { color: rgba(245,245,247,.72); }
.tile--dark .btn-outline { color: #fff; border-color: rgba(255,255,255,.55); background: transparent; }
.tile--dark .btn-outline:hover { background: #fff; color: var(--ink); }

.bento-foot { text-align: center; margin-top: 2rem; }

@media (min-width: 820px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .tile--xl { grid-column: 1 / -1; }
}

/* =============================================================
   Stats
   ============================================================= */
.stats { border-radius: var(--r-xl); display: grid; grid-template-columns: repeat(2, 1fr); }
.stat { padding: clamp(1.5rem, 3vw, 2.5rem) 1rem; text-align: center; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat:nth-child(3) { border-left: 0; }
.stat:nth-child(n+3) { border-top: 1px solid var(--line); }
.stat-value { display: inline-flex; align-items: baseline; gap: .1rem; font-size: clamp(2.6rem, 6vw, 4.2rem); font-weight: 700; letter-spacing: -.05em; line-height: 1; }
.stat-suffix { font-size: .55em; letter-spacing: -.02em; }
.stat-label { display: block; margin-top: .5rem; color: var(--ink-3); font-size: .92rem; }
@media (min-width: 820px) {
  .stats { grid-template-columns: repeat(4, 1fr); }
  .stat:nth-child(3) { border-left: 1px solid var(--line); }
  .stat:nth-child(n+3) { border-top: 0; }
}

/* =============================================================
   Beneficios
   ============================================================= */
.why { display: grid; gap: 1rem; grid-template-columns: 1fr; }
.why-card { border-radius: var(--r-lg); padding: 1.9rem 1.75rem; }
.why-ic {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  background: var(--grad); color: #fff; margin-bottom: 1.25rem;
  box-shadow: 0 10px 20px -10px rgba(122, 92, 255, .7);
}
.why-card h3 { font-size: 1.3rem; letter-spacing: -.025em; margin-bottom: .4rem; }
.why-card p { color: var(--ink-2); font-size: .98rem; }
@media (min-width: 640px) { .why { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .why { grid-template-columns: repeat(3, 1fr); } }

/* =============================================================
   Pasos
   ============================================================= */
.steps { display: grid; gap: 1rem; }
.step { border-radius: var(--r-lg); padding: 2rem 1.75rem 2.1rem; }
.step-n { font-size: 4.5rem; font-weight: 700; letter-spacing: -.06em; line-height: 1; margin-bottom: 1rem; display: inline-block; }
.step h3 { font-size: 1.4rem; letter-spacing: -.025em; margin-bottom: .5rem; }
.step p { color: var(--ink-2); }
.step a { color: var(--link); }
@media (min-width: 820px) { .steps { grid-template-columns: repeat(3, 1fr); } }

/* =============================================================
   Requisitos + chat
   ============================================================= */
.req { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.req-list { display: grid; gap: 1.1rem; margin: 2rem 0; }
.req-list li { display: flex; gap: 1rem; align-items: flex-start; }
.req-ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(0,113,227,.1); color: var(--blue); flex-shrink: 0; }
.req-list strong { display: block; font-size: 1.1rem; letter-spacing: -.02em; }
.req-list span { color: var(--ink-2); font-size: .97rem; }
.req-note {
  display: flex; gap: .7rem; align-items: flex-start; padding: 1rem 1.15rem; border-radius: var(--r-md);
  background: rgba(52, 199, 89, .12); border: 1px solid rgba(52, 199, 89, .25); color: #14532d; font-size: .98rem;
  max-width: 46ch;
}
.req-note .ic { color: var(--green); }

.chat {
  width: min(360px, 100%); margin-inline: auto;
  border-radius: 44px; padding: 14px;
  background: rgba(20, 20, 24, .9);
  box-shadow: 0 50px 90px -40px rgba(20, 30, 70, .55), inset 0 0 0 1px rgba(255,255,255,.08);
}
.chat-screen { border-radius: 32px; overflow: hidden; background: #efeae2; }
.chat-top { display: flex; align-items: center; gap: .7rem; padding: 1rem 1rem .8rem; background: rgba(255,255,255,.92); border-bottom: 1px solid var(--line); }
.chat-avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .85rem; }
.chat-top strong { display: block; font-size: .92rem; }
.chat-top span { font-size: .75rem; color: var(--green); }
.chat-body { display: grid; gap: .5rem; padding: 1rem .9rem 1.25rem; min-height: 360px; align-content: start; }
.bubble { max-width: 82%; padding: .55rem .8rem; border-radius: 16px; font-size: .88rem; line-height: 1.35; box-shadow: 0 1px 1px rgba(0,0,0,.06); }
.bubble--in { background: #fff; justify-self: start; border-top-left-radius: 4px; }
.bubble--out { background: #d9fdd3; justify-self: end; border-top-right-radius: 4px; }
.chat-caption { text-align: center; margin-top: 1rem; font-size: .8rem; color: var(--ink-3); }
@media (min-width: 900px) { .req { grid-template-columns: 1.1fr 1fr; } }

/* =============================================================
   FAQ
   ============================================================= */
.faq { display: grid; gap: 2.5rem; }
.faq-list { border-radius: var(--r-lg); overflow: hidden; }
.faq-item + .faq-item { border-top: 1px solid var(--line); }
.faq-item summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.3rem 1.5rem; min-height: 60px; font-size: 1.08rem; font-weight: 600; letter-spacing: -.02em;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:focus-visible { outline-offset: -3px; }
.faq-plus { position: relative; width: 14px; height: 14px; flex-shrink: 0; }
.faq-plus::before, .faq-plus::after { content: ''; position: absolute; left: 0; top: 6px; width: 14px; height: 2px; background: var(--ink-3); border-radius: 2px; transition: transform .3s var(--ease); }
.faq-plus::after { transform: rotate(90deg); }
.faq-item[open] .faq-plus::after { transform: rotate(0); }
.faq-item p { padding: 0 1.5rem 1.4rem; color: var(--ink-2); max-width: 62ch; }
@media (min-width: 960px) {
  .faq { grid-template-columns: 1fr 1.7fr; align-items: start; }
  .faq-intro { position: sticky; top: calc(var(--ribbon-h) + var(--nav-h) + 2rem); }
}

/* =============================================================
   Contacto
   ============================================================= */
.contact { display: grid; gap: 1rem; }
.contact-card { border-radius: var(--r-xl); padding: clamp(1.75rem, 4vw, 2.75rem); }
.contact-card h3 { font-size: 1.8rem; margin-bottom: 1.5rem; }
.contact-item { display: flex; gap: 1rem; padding: 1rem 0; border-top: 1px solid var(--line); }
.contact-item .ic { color: var(--blue); margin-top: 2px; }
.contact-item strong { display: block; font-size: .8rem; color: var(--ink-3); font-weight: 600; letter-spacing: .02em; margin-bottom: .15rem; }
.contact-card .btn { margin-top: 1.5rem; width: 100%; }
.contact-map { border-radius: var(--r-xl); overflow: hidden; min-height: 380px; padding: 8px; }
.contact-map iframe { width: 100%; height: 100%; min-height: 364px; border: 0; border-radius: calc(var(--r-xl) - 8px); display: block; }
@media (min-width: 900px) { .contact { grid-template-columns: 1fr 1.4fr; } }

/* =============================================================
   CTA final
   ============================================================= */
.final { text-align: center; }
.final-title { font-size: clamp(2.6rem, 7vw, 5.2rem); letter-spacing: -.05em; }
.final .lead { margin: 1.25rem auto 2rem; }

/* =============================================================
   Footer
   ============================================================= */
.footer { font-size: .82rem; color: var(--ink-3); padding: 3rem 0 2rem; border-top: 1px solid var(--line); background: rgba(245,245,247,.6); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
.footer-top { display: grid; gap: 2rem; padding-bottom: 2rem; border-bottom: 1px solid var(--line); }
.footer-brand .logo { height: 36px; width: auto; margin-bottom: .75rem; }
.footer h4 { font-size: .82rem; color: var(--ink); font-weight: 600; margin-bottom: .6rem; letter-spacing: -.01em; }
.footer li { padding: .25rem 0; }
.footer a:hover { color: var(--ink); text-decoration: underline; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: .5rem 2rem; justify-content: space-between; padding-top: 1.25rem; }
@media (min-width: 820px) { .footer-top { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }

/* WhatsApp flotante */
.wa-float {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 90;
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  background: #25d366; color: #fff;
  box-shadow: 0 12px 30px -8px rgba(37, 211, 102, .6);
  transition: transform .3s var(--ease);
}
.wa-float:hover { transform: scale(1.06); }
.wa-float svg { width: 28px; height: 28px; }

/* =============================================================
   Catálogo (página y cards generadas por JS)
   ============================================================= */
.page-hero { padding-top: calc(var(--ribbon-h) + var(--nav-h) + clamp(2.5rem, 6vw, 4.5rem)); padding-bottom: 2rem; }
.breadcrumb { display: flex; gap: .5rem; font-size: .85rem; color: var(--ink-3); margin-bottom: 1.25rem; }
.breadcrumb a:hover { color: var(--ink); }
.page-hero h1 { font-size: clamp(2.6rem, 7vw, 5rem); letter-spacing: -.05em; }
.page-hero .lead { margin-top: 1rem; }

.catalog-toolbar {
  position: sticky; top: calc(var(--ribbon-h) + var(--nav-h) + .75rem); z-index: 20;
  display: grid; gap: .75rem; padding: .75rem; border-radius: var(--r-lg); margin-bottom: 1.25rem;
}
.catalog-search { position: relative; display: flex; align-items: center; }
.catalog-search svg { position: absolute; left: 1rem; width: 18px; height: 18px; color: var(--ink-3); pointer-events: none; }
.catalog-search input {
  width: 100%; min-height: 46px; padding: .7rem 2.75rem; border-radius: 14px;
  border: 1px solid var(--line); background: rgba(255,255,255,.8); font-size: 1rem;
}
.catalog-search input:focus { outline: 3px solid rgba(0,113,227,.35); border-color: var(--blue); }
.catalog-search-clear { position: absolute; right: .5rem; width: 34px; height: 34px; border-radius: 50%; font-size: 1.3rem; color: var(--ink-3); display: none; }
.catalog-search.has-value .catalog-search-clear { display: grid; place-items: center; }
.catalog-filters { display: flex; gap: .5rem; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.catalog-filters::-webkit-scrollbar { display: none; }
.filter-chip {
  display: inline-flex; align-items: center; gap: .35rem; flex-shrink: 0;
  min-height: 40px; padding: .45rem 1rem; border-radius: 999px;
  background: rgba(255,255,255,.7); border: 1px solid var(--line); font-size: .9rem; font-weight: 500;
  transition: background .2s, color .2s;
}
.filter-chip svg { width: 14px; height: 14px; }
.filter-chip:hover { background: #fff; }
.filter-chip[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
@media (min-width: 900px) { .catalog-toolbar { grid-template-columns: 340px 1fr; align-items: center; } }

.catalog-meta { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1.25rem; color: var(--ink-3); font-size: .92rem; }
.catalog-meta strong { color: var(--ink); }
.catalog-sort { min-height: 40px; padding: .4rem .9rem; border-radius: 12px; border: 1px solid var(--line); background: rgba(255,255,255,.8); }

.catalog-grid, .catalog-page-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 560px) { .catalog-grid, .catalog-page-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .catalog-grid, .catalog-page-grid { grid-template-columns: repeat(3, 1fr); } }

.catalog-card {
  border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column;
  background: var(--glass-strong);
  -webkit-backdrop-filter: blur(24px) saturate(180%); backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid var(--glass-line); box-shadow: var(--shadow);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.catalog-card:hover { transform: translateY(-4px); box-shadow: 0 34px 70px -34px rgba(18,28,64,.45); }
.catalog-card-visual { position: relative; height: 260px; margin: 8px; border-radius: calc(var(--r-lg) - 8px); background: var(--well); display: grid; place-items: center; overflow: hidden; }
.catalog-card-visual img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: contain; padding: 1rem; transition: transform .6s var(--ease); }
.catalog-card:hover .catalog-card-visual img { transform: scale(1.05); }
.catalog-card-placeholder { position: absolute; font-size: 2.5rem; opacity: .25; }
.catalog-card-info { padding: 1rem 1.4rem 1.5rem; display: flex; flex-direction: column; gap: .6rem; flex: 1; }
.catalog-brand { font-size: .75rem; font-weight: 600; color: var(--ink-3); letter-spacing: .04em; text-transform: uppercase; }
.catalog-name { font-size: 1.45rem; letter-spacing: -.03em; margin-top: -.3rem; }
.catalog-colors { display: flex; gap: .4rem; flex-wrap: wrap; }
.color-swatch { width: 24px; height: 24px; border-radius: 50%; background: var(--sw); box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); position: relative; }
.color-swatch::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid transparent; transition: border-color .2s; }
.color-swatch[aria-pressed="true"]::after { border-color: var(--blue); }
.catalog-storages { display: flex; gap: .4rem; flex-wrap: wrap; }
.storage-chip { min-height: 34px; padding: .3rem .75rem; border-radius: 10px; border: 1px solid var(--line); background: rgba(255,255,255,.7); font-size: .82rem; font-weight: 500; }
.storage-chip[aria-pressed="true"] { border-color: var(--blue); color: var(--blue); background: rgba(0,113,227,.08); box-shadow: inset 0 0 0 1px var(--blue); }
.catalog-storage { font-size: .88rem; color: var(--ink-2); }
.catalog-badge { align-self: flex-start; font-size: .72rem; font-weight: 700; padding: .25rem .6rem; border-radius: 999px; background: rgba(255, 122, 61, .12); color: #c2410c; }
.catalog-features { display: grid; gap: .2rem; font-size: .9rem; color: var(--ink-2); }
.catalog-features li::before { content: '·'; margin-right: .45rem; color: var(--ink-3); font-weight: 700; }
.catalog-cta { margin-top: auto; align-self: stretch; }
.catalog-card-info .btn-primary { margin-top: auto; }
.catalog-empty { display: none; text-align: center; padding: 4rem 1rem; color: var(--ink-3); }
.catalog-empty.is-visible { display: block; }
.catalog-empty h3 { font-size: 1.5rem; color: var(--ink); margin-bottom: .4rem; }
.catalog-empty-icon { font-size: 2rem; margin-bottom: .5rem; }
.catalog-cta-wrap { text-align: center; padding: 3rem 1.5rem; margin: 3rem 0 5rem; border-radius: var(--r-xl); }
.catalog-cta-wrap p { font-size: 1.4rem; font-weight: 600; letter-spacing: -.02em; margin-bottom: 1.25rem; }

/* =============================================================
   Reveal
   ============================================================= */
.reveal { opacity: 0; transform: translate3d(0, 24px, 0); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.bento .reveal:nth-child(2n), .why .reveal:nth-child(2n), .steps .reveal:nth-child(2) { transition-delay: .08s; }
.why .reveal:nth-child(3n), .steps .reveal:nth-child(3) { transition-delay: .16s; }
.catalog-page-grid .reveal { transition-delay: 0s !important; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .bg-mesh { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .tile, .tile-media img, .catalog-card, .catalog-card-visual img, .btn, .link::after { transition: none; }
}

/* Ajuste: imágenes del bento se adaptan al ancho en móvil */
.tile-media img { min-width: 0; max-width: 70%; object-fit: contain; }
.tile-media--pair img { max-width: 50%; }
.tile--xl .tile-media img { max-width: 31%; }
.tile--xl .tile-media img:nth-child(2) { max-width: 38%; }
@media (max-width: 640px) {
  .tile { min-height: 0; }
  .tile--xl { min-height: 0; }
  .hero-stage { height: 300px; }
}
