/* =========================================================================
   NanoRed Fintech — Landing page styles
   Design tokens follow the real brand palette (dark navy #04091F used in the
   app's own splash screen, blue→crimson gradient from the logo, cyan accent
   from the marketing social cards).
   ========================================================================= */

:root {
  /* Surfaces */
  --bg-void: #04091f;
  --bg-deep: #060b24;
  --bg-deep-2: #0a1230;
  --surface-glass: rgba(255, 255, 255, 0.06);
  --surface-glass-strong: rgba(255, 255, 255, 0.1);
  --border-glass: rgba(255, 255, 255, 0.12);
  --border-glass-strong: rgba(255, 255, 255, 0.2);

  /* Text */
  --text-primary: #f5f7ff;
  --text-secondary: #a6aed1;
  --text-muted: #6b7394;

  /* Brand accents */
  --accent-blue: #3b82f6;
  --accent-blue-light: #60a5fa;
  --accent-crimson: #e11d48;
  --accent-crimson-light: #fb7185;
  --accent-cyan: #38bdf8;
  --accent-green: #34d399;

  --gradient-brand: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-crimson) 100%);
  --gradient-brand-soft: linear-gradient(135deg, rgba(59, 130, 246, 0.35), rgba(225, 29, 72, 0.35));

  /* Shape / motion */
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --blur-strong: 24px;
  --blur-soft: 12px;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-back: cubic-bezier(0.34, 1.56, 0.64, 1);

  --container: 1180px;
}

/* Mobile: cut blur cost, backdrop-filter is one of the most expensive paints on phone GPUs */
@media (max-width: 640px) {
  :root {
    --blur-strong: 14px;
    --blur-soft: 8px;
  }
}

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

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg-void);
  color: var(--text-primary);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.08;
  margin: 0;
  letter-spacing: -0.02em;
}

p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--text-primary);
  color: var(--bg-void);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  z-index: 999;
  transition: top 0.2s var(--ease-out-expo);
}
.skip-link:focus { top: 1rem; }

:focus-visible {
  outline: 2px solid var(--accent-cyan);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ============ Layout helpers ============ */
.section {
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(4rem, 8vw, 8rem) 1.5rem;
}
.section--tight { padding-top: 0; }

.section__head { max-width: 640px; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.section__head .section__title { margin-bottom: 0.75rem; }

.eyebrow {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  margin-bottom: 0.75rem;
}

.section__title { font-size: clamp(1.9rem, 4vw, 2.75rem); }
.section__sub { color: var(--text-secondary); font-size: 1.05rem; margin-top: 0.75rem; }

/* ============ Reveal-on-scroll base state ============
   JS adds .in-view (IntersectionObserver) or GSAP animates these directly.
   The CSS-only state guarantees content is still visible with JS disabled. */
.reveal-up {
  opacity: 1;
  transform: none;
}
.js-ready .reveal-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease-out-expo), transform 0.7s var(--ease-out-expo);
  transition-delay: calc(var(--reveal-delay, 0) * 90ms);
}
.js-ready .reveal-up.in-view {
  opacity: 1;
  transform: none;
}

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
  transition: transform 0.25s var(--ease-out-back), box-shadow 0.25s ease, background 0.25s ease, border-color .25s ease;
}
.btn--primary {
  background: var(--gradient-brand);
  color: #fff;
  box-shadow: 0 8px 24px -8px rgba(225, 29, 72, 0.5);
}
.btn--ghost {
  background: var(--surface-glass);
  border: 1px solid var(--border-glass);
  color: var(--text-primary);
  backdrop-filter: blur(var(--blur-soft));
  -webkit-backdrop-filter: blur(var(--blur-soft));
}
.btn--sm { padding: 0.6rem 1.2rem; font-size: 0.875rem; }
.btn--lg { padding: 1.05rem 2rem; font-size: 1rem; }
.btn--block { width: 100%; }

@media (hover: hover) and (pointer: fine) {
  .btn--primary:hover { transform: translateY(-2px); box-shadow: 0 12px 32px -8px rgba(225, 29, 72, 0.65); }
  .btn--ghost:hover { background: var(--surface-glass-strong); border-color: var(--border-glass-strong); transform: translateY(-2px); }
}

/* Touch microinteraction: replaces hover-lift with a quick tap-scale on any device
   that can't hover (see js/main.js touchstart/touchend wiring). */
.tap-scale.is-pressed { transform: scale(0.965); transition: transform 0.12s var(--ease-out-expo); }

.link-quiet { color: var(--text-secondary); font-weight: 500; font-size: 0.95rem; }
.link-quiet:hover { color: var(--text-primary); }

/* ============ Badge / dot ============ */
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: var(--surface-glass);
  border: 1px solid var(--border-glass);
  backdrop-filter: blur(var(--blur-soft));
  -webkit-backdrop-filter: blur(var(--blur-soft));
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-secondary);
}
.dot { width: 8px; height: 8px; border-radius: 50%; }
.dot--live { background: var(--accent-green); box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.6); animation: pulse-dot 2.2s ease-out infinite; }
@keyframes pulse-dot {
  0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.55); }
  70% { box-shadow: 0 0 0 8px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

/* ============ Scroll progress bar ============ */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 100%;
  background: var(--gradient-brand);
  transform: scaleX(0);
  transform-origin: 0 50%;
  z-index: 1000;
  pointer-events: none;
}
/* Native CSS scroll-timeline progressive enhancement: browsers that support it
   drive the bar purely on the compositor, no JS/scroll-listener cost at all.
   Falls back to the JS-driven update in main.js everywhere else. */
@supports (animation-timeline: scroll()) {
  .scroll-progress {
    animation: grow-progress linear;
    animation-timeline: scroll(root);
  }
}
@keyframes grow-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ============ Nav ============ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  padding: 0.9rem 1.5rem;
}
.nav__inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.65rem 0.9rem 0.65rem 1.1rem;
  border-radius: 999px;
  background: rgba(6, 11, 36, 0.55);
  border: 1px solid var(--border-glass);
  backdrop-filter: blur(var(--blur-strong));
  -webkit-backdrop-filter: blur(var(--blur-strong));
  transition: background 0.3s ease, border-color 0.3s ease;
}
.nav.is-scrolled .nav__inner {
  background: rgba(6, 11, 36, 0.82);
  border-color: var(--border-glass-strong);
}

.nav__brand { display: inline-flex; align-items: center; gap: 0.6rem; }
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border-radius: 10px;
  background: var(--gradient-brand);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: #fff;
}
.brand-word { font-size: 0.98rem; color: var(--text-primary); }
.brand-word strong { font-weight: 700; }

.nav__links { display: flex; gap: 1.75rem; }
.nav__links a { font-size: 0.92rem; color: var(--text-secondary); font-weight: 500; transition: color 0.2s ease; }
.nav__links a:hover { color: var(--text-primary); }

.nav__cta { display: flex; align-items: center; gap: 1.25rem; }

.nav__burger { display: none; flex-direction: column; gap: 5px; width: 34px; height: 34px; align-items: center; justify-content: center; }
.nav__burger span { width: 20px; height: 2px; background: var(--text-primary); border-radius: 2px; transition: transform 0.25s var(--ease-out-expo), opacity 0.2s ease; }
.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav__mobile {
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  margin: 0.6rem 0 0;
  padding: 1.25rem;
  border-radius: var(--radius-md);
  background: rgba(6, 11, 36, 0.92);
  border: 1px solid var(--border-glass);
  backdrop-filter: blur(var(--blur-strong));
  -webkit-backdrop-filter: blur(var(--blur-strong));
}
.nav__mobile a { padding: 0.85rem 0.25rem; font-size: 1.02rem; color: var(--text-secondary); }
.nav__mobile hr { border: none; border-top: 1px solid var(--border-glass); margin: 0.5rem 0; }
.nav__mobile .btn { margin-top: 0.5rem; }
.nav__mobile.is-open { display: flex; }

@media (max-width: 860px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: flex; }
}

/* ============ Hero ============ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 7.5rem 1.5rem 4rem;
  overflow: hidden;
}

.hero__bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero__canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.hero__canvas.is-ready { opacity: 0.55; }

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
  will-change: transform;
}
.blob--blue { width: 46vw; height: 46vw; max-width: 640px; max-height: 640px; top: -14%; left: -8%; background: radial-gradient(circle, var(--accent-blue), transparent 70%); animation: float-a 18s ease-in-out infinite; }
.blob--crimson { width: 40vw; height: 40vw; max-width: 560px; max-height: 560px; bottom: -18%; right: -6%; background: radial-gradient(circle, var(--accent-crimson), transparent 70%); animation: float-b 22s ease-in-out infinite; }
.blob--cyan { width: 26vw; height: 26vw; max-width: 380px; max-height: 380px; top: 30%; right: 20%; background: radial-gradient(circle, var(--accent-cyan), transparent 70%); opacity: 0.35; animation: float-c 26s ease-in-out infinite; }

@keyframes float-a { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(4vw, 5vw) scale(1.08); } }
@keyframes float-b { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-3vw, -4vw) scale(1.1); } }
@keyframes float-c { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-5vw, 3vw); } }

.hero__grain {
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 3px 3px;
  mix-blend-mode: overlay;
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
  max-width: var(--container);
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
}

.hero__title {
  font-size: clamp(2.6rem, 6.4vw, 4.6rem);
  overflow: hidden;
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: 0.08em; }
.hero__title .word {
  display: inline-block;
  will-change: transform;
}
.line--accent .word {
  background: linear-gradient(100deg, var(--accent-blue-light), var(--accent-crimson-light) 55%, var(--accent-cyan));
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradient-shift 7s ease-in-out infinite;
}
@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.hero__subtitle {
  margin-top: 1.5rem;
  max-width: 46ch;
  font-size: clamp(1.02rem, 1.6vw, 1.18rem);
  color: var(--text-secondary);
}

.hero__actions { margin-top: 2.25rem; display: flex; flex-wrap: wrap; gap: 1rem; }
.hero__trust { margin-top: 1.4rem; font-size: 0.85rem; color: var(--text-muted); }

.hero__scrollcue {
  position: absolute;
  bottom: 2rem; left: 50%;
  transform: translateX(-50%);
  width: 26px; height: 42px;
  border-radius: 20px;
  border: 1.5px solid var(--border-glass-strong);
  z-index: 1;
}
.hero__scrollcue span {
  display: block;
  width: 4px; height: 8px;
  border-radius: 2px;
  background: var(--accent-cyan);
  margin: 8px auto 0;
  animation: scroll-cue 1.8s ease-in-out infinite;
}
@keyframes scroll-cue { 0% { transform: translateY(0); opacity: 1; } 70% { opacity: 0; } 100% { transform: translateY(14px); opacity: 0; } }
@media (max-width: 640px) { .hero__scrollcue { display: none; } }

/* ---- Hero visual: floating glass mockups ---- */
.hero__visual { position: relative; height: clamp(360px, 48vw, 500px); }

.mock-card {
  position: absolute;
  border-radius: var(--radius-md);
  background: var(--surface-glass);
  border: 1px solid var(--border-glass);
  backdrop-filter: blur(var(--blur-strong));
  -webkit-backdrop-filter: blur(var(--blur-strong));
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.55);
  will-change: transform;
}

.mock-card--main {
  inset: 4% 8% 4% 0;
  padding: 1.4rem 1.4rem 1.6rem;
  display: flex;
  flex-direction: column;
}
.mock-card__head { display: flex; gap: 6px; margin-bottom: 1rem; }
.mock-dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, 0.18); }
.mock-dot:first-child { background: var(--accent-crimson); }
.mock-dot:nth-child(2) { background: #f5c451; }
.mock-dot:nth-child(3) { background: var(--accent-green); }

.mock-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); }
.mock-vendor { font-family: 'Space Grotesk', sans-serif; font-size: 1.25rem; font-weight: 700; margin: 0.35rem 0 1rem; }

.mock-row { display: flex; justify-content: space-between; padding: 0.5rem 0; font-size: 0.9rem; color: var(--text-secondary); border-top: 1px solid rgba(255, 255, 255, 0.08); }
.mock-row strong { color: var(--text-primary); font-weight: 600; }
.mock-row--total { border-top: 1px solid var(--border-glass-strong); margin-top: 0.25rem; font-size: 1rem; }
.mock-row--total strong { color: var(--accent-cyan); }

.mock-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.1rem; }
.chip {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  background: rgba(52, 211, 153, 0.12);
  color: var(--accent-green);
  border: 1px solid rgba(52, 211, 153, 0.25);
}
.chip--ghost { background: rgba(255, 255, 255, 0.06); color: var(--text-secondary); border-color: var(--border-glass); }

/* Variante del mock-card principal para una captura real del producto en vez
   del mockup CSS -- mismo marco de cristal (blur, borde, sombra), sin el
   padding de texto: la imagen ocupa toda la tarjeta con las esquinas
   heredadas. Antes object-fit:cover recortaba la parte baja de la captura
   (gráficos del dashboard incluidos, no solo hueco vacío) porque el hueco
   del hero es más bajo que la proporción real 1440x900 -- contain enseña la
   captura entera, con el propio fondo de cristal como marco alrededor. */
.mock-card--screenshot { padding: 0; overflow: hidden; }
.mock-card--screenshot img { width: 100%; height: 100%; object-fit: contain; border-radius: inherit; display: block; }

.mock-card--float {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1.1rem;
  width: max-content;
  max-width: 220px;
  /* Fondo propio, más opaco y oscuro que el resto del "cristal" del sitio
     (pensado para flotar sobre el fondo oscuro del hero) -- en móvil, donde
     la columna es mucho más estrecha, estas tarjetas acaban solapando la
     captura real del dashboard (blanca), y el 6% de tinte blanco + texto
     casi blanco del resto del sitio se volvía ilegible encima de eso. */
  background: rgba(4, 9, 31, 0.85);
  border-color: rgba(255, 255, 255, 0.18);
}
.mock-card--a { top: 6%; right: -2%; }
.mock-card--b { bottom: 10%; right: 6%; }
.mock-icon { font-size: 1.3rem; }
.mock-float-title { font-size: 0.85rem; font-weight: 600; }
.mock-float-sub { font-size: 0.72rem; color: var(--text-muted); margin-top: 2px; }

@media (max-width: 980px) {
  .hero__inner { grid-template-columns: 1fr; text-align: left; }
  .hero__visual { height: clamp(300px, 90vw, 420px); margin-top: 1rem; }
}

/* Placeholder slots for external animation libraries — see README.md.
   Zero footprint until a real snippet is dropped in. */
.anim-slot { width: 0; height: 0; overflow: hidden; }

/* ============ Marquee ============ */
.marquee-section { padding: 3rem 0 1rem; text-align: center; }
.marquee-label { font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 1.5rem; }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee__track {
  display: inline-flex;
  gap: 3rem;
  white-space: nowrap;
  animation: marquee-scroll 28s linear infinite;
  will-change: transform;
}
.marquee__track span { font-family: 'Space Grotesk', sans-serif; font-size: 1.1rem; color: var(--text-muted); font-weight: 500; }
@keyframes marquee-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.marquee:hover .marquee__track { animation-play-state: paused; }

/* ============ Bento grid ============ */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.15rem;
}

.bento-card {
  position: relative;
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  background: var(--surface-glass);
  border: 1px solid var(--border-glass);
  backdrop-filter: blur(var(--blur-soft));
  -webkit-backdrop-filter: blur(var(--blur-soft));
  overflow: hidden;
  transition: border-color 0.3s ease, transform 0.4s var(--ease-out-expo), box-shadow 0.4s ease;
}
.bento-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, 0.08), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.bento-card h3 { font-size: 1.15rem; margin: 0.9rem 0 0.5rem; }
.bento-card p { color: var(--text-secondary); font-size: 0.94rem; line-height: 1.55; }
.bento-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 1.2rem;
}
.bento-card--accent { background: linear-gradient(160deg, rgba(59, 130, 246, 0.14), rgba(225, 29, 72, 0.1)); }

@media (hover: hover) and (pointer: fine) {
  .bento-card.tilt:hover {
    border-color: var(--border-glass-strong);
    box-shadow: 0 24px 50px -24px rgba(59, 130, 246, 0.35);
  }
  .bento-card.tilt:hover::before { opacity: 1; }
}

/* ============ Showcase — capturas reales del producto ============ */
.showcase-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.75rem; }
.showcase-item {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-glass);
  background: var(--surface-glass);
  box-shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.5);
}
/* Antes object-fit:cover con altura fija -- la idea era recortar el hueco
   vacío de la parte baja de las capturas, pero a 340px de alto el corte caía
   a mitad de contenido real (filas de la tabla de facturas, caja de texto
   del asistente), no solo en el hueco. contain enseña la captura entera. */
.showcase-item img { width: 100%; height: 340px; object-fit: contain; background: var(--surface-glass); display: block; }
.showcase-item__caption { padding: 1.1rem 1.4rem; font-size: 0.92rem; color: var(--text-secondary); border-top: 1px solid var(--border-glass); }
.showcase-item__caption strong { color: var(--text-primary); }
@media (max-width: 860px) { .showcase-grid { grid-template-columns: 1fr; } }

/* ============ FAQ ============ */
.faq-list { max-width: 760px; display: flex; flex-direction: column; gap: 0.75rem; }
.faq-item {
  border-radius: var(--radius-md);
  border: 1px solid var(--border-glass);
  background: var(--surface-glass);
  overflow: hidden;
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 1.1rem 1.4rem;
  font-weight: 600;
  font-size: 0.98rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 1.3rem; color: var(--text-muted); flex-shrink: 0; transition: transform 0.2s var(--ease-out-expo); }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding: 0 1.4rem 1.2rem; color: var(--text-secondary); font-size: 0.92rem; line-height: 1.6; }

.card--span-7 { grid-column: span 7; }
.card--span-5 { grid-column: span 5; }
.card--span-6 { grid-column: span 6; }
.card--span-4 { grid-column: span 4; }
.card--span-3 { grid-column: span 3; }

@media (max-width: 1024px) {
  .bento-grid { grid-template-columns: repeat(6, 1fr); }
  .card--span-7, .card--span-5, .card--span-6 { grid-column: span 6; }
  .card--span-4, .card--span-3 { grid-column: span 3; }
}
@media (max-width: 640px) {
  .bento-grid { grid-template-columns: 1fr; }
  .bento-grid > * { grid-column: 1 / -1 !important; }
}

/* ============ How it works / scrollytelling ============ */
.how { position: relative; padding: clamp(3rem, 6vw, 5rem) 1.5rem 6rem; max-width: var(--container); margin: 0 auto; }

.how__pin { position: relative; }

.how__progress {
  position: relative;
  height: 3px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.08);
  margin-bottom: 3rem;
  overflow: hidden;
}
.how__progress span { position: absolute; inset: 0; width: 100%; transform: scaleX(0); transform-origin: 0 50%; background: var(--gradient-brand); }

.how__steps { display: flex; flex-direction: column; gap: 1.5rem; }

.how__step {
  display: grid;
  grid-template-columns: 90px 1fr 240px;
  align-items: center;
  gap: 2rem;
  padding: 2.25rem;
  border-radius: var(--radius-lg);
  background: var(--surface-glass);
  border: 1px solid var(--border-glass);
  backdrop-filter: blur(var(--blur-soft));
  -webkit-backdrop-filter: blur(var(--blur-soft));
}
.how__num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.4rem;
  font-weight: 700;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.how__step-body h3 { font-size: 1.3rem; margin-bottom: 0.6rem; }
.how__step-body p { color: var(--text-secondary); font-size: 0.96rem; max-width: 46ch; }

.how__visual { display: flex; justify-content: center; }
.how__glyph {
  width: 92px; height: 92px;
  border-radius: 24px;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.2rem;
  background: var(--gradient-brand-soft);
  border: 1px solid var(--border-glass);
}

@media (max-width: 860px) {
  .how__step { grid-template-columns: 60px 1fr; }
  .how__visual { display: none; }
  .how__num { font-size: 1.8rem; }
}

/* Desktop-pinned mode: JS (GSAP matchMedia, >= 769px) adds this class and stacks
   steps absolutely so only the active one is visible while the section is pinned. */
.how--pinned .how__steps { position: relative; min-height: 420px; }
.how--pinned .how__step {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}
.how--pinned .how__step.is-active { opacity: 1; pointer-events: auto; }

/* ============ Pricing ============ */
.price-toggle {
  display: inline-flex;
  padding: 0.3rem;
  border-radius: 999px;
  background: var(--surface-glass);
  border: 1px solid var(--border-glass);
  margin-top: 1.5rem;
}
.price-toggle__btn {
  padding: 0.55rem 1.3rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: background 0.25s ease, color 0.25s ease;
}
.price-toggle__btn.is-active { background: var(--gradient-brand); color: #fff; }

.pricing-included {
  max-width: 760px;
  margin: 0 0 2.25rem;
  padding: 0.9rem 1.25rem;
  border-radius: var(--radius-sm);
  background: var(--surface-glass);
  border: 1px solid var(--border-glass);
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--text-secondary);
}
.pricing-included strong { color: var(--text-primary); }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.15rem;
  align-items: stretch;
}
.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 2rem 1.6rem;
  border-radius: var(--radius-lg);
  background: var(--surface-glass);
  border: 1px solid var(--border-glass);
  backdrop-filter: blur(var(--blur-soft));
  -webkit-backdrop-filter: blur(var(--blur-soft));
  transition: transform 0.3s var(--ease-out-expo), border-color 0.3s ease;
}
.price-card h3 { font-size: 1.2rem; }
.price-card__tag { color: var(--text-muted); font-size: 0.85rem; margin-top: 0.35rem; min-height: 2.2em; }
.price-card__price { margin: 1.25rem 0 0.25rem; display: flex; align-items: baseline; gap: 0.3rem; }
.price-card__price .amount { font-family: 'Space Grotesk', sans-serif; font-size: 2.1rem; font-weight: 700; }
.price-card__price .period { color: var(--text-muted); font-size: 0.9rem; }
.price-card__note { font-size: 0.78rem; color: var(--accent-cyan); min-height: 1.4em; margin-bottom: 0.5rem; }
.price-card__list { margin: 1rem 0 1.75rem; display: flex; flex-direction: column; gap: 0.65rem; flex-grow: 1; }
.price-card__list li { font-size: 0.9rem; color: var(--text-secondary); padding-left: 1.4rem; position: relative; }
.price-card__list li::before { content: "✓"; position: absolute; left: 0; color: var(--accent-green); font-weight: 700; }

/* Mismo tono que el botón deshabilitado real de Ajustes -> Suscripción
   (borde punteado, texto apagado, "Todavía sin definir") -- no prometer
   precio ni fecha aquí tampoco. */
.pricing-soon {
  margin-top: 1.15rem;
  padding: 0.9rem 1.2rem;
  border: 1px dashed var(--border-glass-strong);
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  color: var(--text-muted);
  text-align: center;
}
.pricing-soon strong { color: var(--text-secondary); }

.price-card--highlight { border-color: rgba(225, 29, 72, 0.4); background: linear-gradient(160deg, rgba(59, 130, 246, 0.12), rgba(225, 29, 72, 0.1)); }
.price-card__badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--gradient-brand);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  letter-spacing: 0.03em;
}

@media (hover: hover) and (pointer: fine) {
  .price-card:hover { transform: translateY(-4px); border-color: var(--border-glass-strong); }
}

@media (max-width: 980px) {
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .pricing-grid { grid-template-columns: 1fr; }
}

/* ============ Security grid ============ */
.security-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.15rem;
}
.security-item {
  padding: 1.75rem;
  border-radius: var(--radius-md);
  background: var(--surface-glass);
  border: 1px solid var(--border-glass);
}
.security-item__icon { font-size: 1.6rem; }
.security-item h3 { font-size: 1.02rem; margin: 0.85rem 0 0.4rem; }
.security-item p { color: var(--text-secondary); font-size: 0.88rem; line-height: 1.5; }

@media (max-width: 980px) { .security-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .security-grid { grid-template-columns: 1fr; } }

/* ============ Final CTA ============ */
.final-cta { padding: 2rem 1.5rem 7rem; max-width: var(--container); margin: 0 auto; }
.final-cta__panel {
  position: relative;
  text-align: center;
  padding: clamp(3rem, 7vw, 5rem) 1.5rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(59, 130, 246, 0.14), rgba(225, 29, 72, 0.12));
  border: 1px solid var(--border-glass-strong);
  overflow: hidden;
}
.final-cta__panel h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 1.25rem 0 0.75rem; }
.final-cta__panel p { color: var(--text-secondary); max-width: 46ch; margin: 0 auto; }
.final-cta__actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }

/* ============ Footer ============ */
.footer { border-top: 1px solid var(--border-glass); padding: 3.5rem 1.5rem 2rem; }
.footer__inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 2rem;
}
.footer__brand p { color: var(--text-muted); font-size: 0.88rem; margin-top: 0.9rem; max-width: 28ch; }
.footer__heading { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); margin-bottom: 0.9rem; }
.footer__col { display: flex; flex-direction: column; gap: 0.6rem; }
.footer__col a { color: var(--text-secondary); font-size: 0.92rem; }
.footer__col a:hover { color: var(--text-primary); }
.footer__bottom { max-width: var(--container); margin: 2.5rem auto 0; font-size: 0.8rem; color: var(--text-muted); }

@media (max-width: 760px) {
  .footer__inner { grid-template-columns: 1fr 1fr; }
}
