/* ===================================================================
   NAV — Sin fondo sobre el Hero (texto blanco). Píldora blanca al scroll.
=================================================================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 1px solid transparent;
  transition:
    padding var(--duration-base) var(--ease-out),
    background var(--duration-base) var(--ease-out),
    border-color var(--duration-base) var(--ease-out);
}

.nav__inner {
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 0;
  padding-inline: 0;
  transition:
    background var(--duration-base) var(--ease-out),
    border-color var(--duration-base) var(--ease-out),
    box-shadow var(--duration-base) var(--ease-out),
    border-radius var(--duration-base) var(--ease-out),
    max-width var(--duration-base) var(--ease-out),
    padding var(--duration-base) var(--ease-out),
    backdrop-filter var(--duration-base) var(--ease-out),
    color var(--duration-base) var(--ease-out),
    height var(--duration-base) var(--ease-out);
  color: var(--on-dark-text);
}

/* En el tope, sobre el Hero oscuro: enlaces y CTAs en blanco */
.nav:not(.is-scrolled) .nav__links a {
  color: rgba(255, 255, 255, 0.92);
}
.nav:not(.is-scrolled) .nav__links a:hover {
  color: var(--color-white);
  background: rgba(255, 255, 255, 0.10);
}
.nav:not(.is-scrolled) .nav__actions .btn--ghost {
  color: var(--color-white);
}
.nav:not(.is-scrolled) .nav__actions .btn--ghost:hover {
  color: var(--color-white);
  background: rgba(255, 255, 255, 0.12);
}
.nav:not(.is-scrolled) .nav__bars span {
  background: var(--color-white);
}

/* "Crea tu cuenta" cambia a un botón blanco sobre el Hero oscuro */
.nav:not(.is-scrolled) .nav__actions .btn--primary {
  background: var(--color-white);
  color: var(--brand-blue-dark);
  box-shadow: 0 8px 24px rgba(0, 24, 60, 0.18);
}
.nav:not(.is-scrolled) .nav__actions .btn--primary::after {
  display: none;
}
.nav:not(.is-scrolled) .nav__actions .btn--primary:hover {
  background: var(--color-bg-tint);
  color: var(--brand-blue-deep);
}

/* El path del logo usa fill="currentColor". El color cambia según
   el estado del nav: brand-blue-dark en la píldora blanca (scrolled)
   y blanco puro sobre el Hero oscuro. */
.nav__logo { color: var( --color-primary-100); }
.nav:not(.is-scrolled) .nav__logo { color: var(--color-white); }

/* Scrolled state: píldora blanca centrada con texto oscuro.
   El bar contenedor permanece 100% transparente — solo flota la
   píldora. Las secciones con header sticky (e.g. comparativo de
   precios) se encargan de su propio "scrim" para evitar bleed. */
.nav.is-scrolled {
  background: transparent;
  border-bottom-color: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  padding-top: 0.875rem;
  padding-bottom: 0.25rem;
}

.nav.is-scrolled .nav__inner {
  max-width: min(1080px, calc(100% - 2rem));
  margin-inline: auto;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-color: rgba(15, 23, 42, 0.06);
  border-radius: var(--radius-pill);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.10), 0 2px 6px rgba(15, 23, 42, 0.04);
  padding-inline: 1.25rem;
  height: 60px;
  color: var(--color-text);
}

.nav__brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  transition: transform var(--duration-base) var(--ease-out);
}

.nav__logo {
  height: 48px;
  width: auto;
  transition: height var(--duration-base) var(--ease-out);
}

.nav.is-scrolled .nav__logo {
  height: 38px;
}

.nav__menu {
  flex: 1;
  display: flex;
  justify-content: center;
}

.nav__links {
  display: flex;
  gap: 0.25rem;
}

.nav__links a {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 0.875rem;
  font-size: var(--fs-body-sm);
  font-weight: var(--fw-medium);
  color: var(--color-text);
  border-radius: 999px;
  transition: color var(--duration-fast) var(--ease-out), background var(--duration-fast) var(--ease-out);
}

.nav__links a:hover {
  color: var(--brand-blue-medium);
  background: var(--color-bg-tint);
}

/* Estado "selected" — sección actual en viewport */
.nav__links a.is-active {
  color: var(--brand-blue-medium);
  background: var(--color-bg-tint);
  font-weight: var(--fw-semibold);
}

/* Mismo estado pero sobre el Hero oscuro (nav sin scrollear) */
.nav:not(.is-scrolled) .nav__links a.is-active {
  color: var(--color-white);
  background: rgba(255, 255, 255, 0.18);
  font-weight: var(--fw-semibold);
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

/* Mobile burger */
.nav__toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  align-items: center;
  justify-content: center;
}

.nav__toggle:hover {
  background: var(--color-bg-tint);
}

.nav__bars {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
}

.nav__bars span {
  width: 22px;
  height: 2px;
  background: var(--color-text-strong);
  border-radius: 2px;
  transition: transform var(--duration-base) var(--ease-out), opacity var(--duration-fast) var(--ease-out);
}

.nav__toggle[aria-expanded="true"] .nav__bars span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav__toggle[aria-expanded="true"] .nav__bars span:nth-child(2) {
  opacity: 0;
}

.nav__toggle[aria-expanded="true"] .nav__bars span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.nav__mobile {
  position: absolute;
  inset: 100% 0 auto 0;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border-soft);
  padding: 1.5rem var(--container-x) 2rem;
  box-shadow: var(--shadow-md);
}

.nav__mobile-links {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 1.5rem;
}

.nav__mobile-links a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0 0.75rem;
  font-weight: var(--fw-medium);
  border-radius: var(--radius-md);
  color: var(--color-text-strong);
}

.nav__mobile-links a:hover {
  background: var(--color-bg-tint);
}

.nav__mobile-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.nav__mobile-actions .btn {
  width: 100%;
}

/* ===================================================================
   HERO — Two-column: left copy + right animated stage
=================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--nav-height) + 1.5rem);
  padding-bottom: 3rem;
  color: var(--on-dark-text);
}

/* Subtle dot grid across the whole hero — gives the page a base "infra" feel */
.hero__bg-dots {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.10) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 100% 80% at 50% 50%, black 30%, transparent 90%);
  -webkit-mask-image: radial-gradient(ellipse 100% 80% at 50% 50%, black 30%, transparent 90%);
  animation: heroParallax 28s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes heroParallax {
  0%   { transform: translate(0, 0); }
  100% { transform: translate(-14px, -10px); }
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 4rem;
  align-items: center;
  width: 100%;
}

.hero__copy {
  text-align: left;
  max-width: 580px;
}

.hero__title {
  font-size: clamp(2.4rem, 4.6vw, 4rem);
  font-weight: var(--fw-bold);
  letter-spacing: -0.025em;
  line-height: 1.06;
  margin-block: 1.5rem 1.5rem;
  color: var(--on-dark-text);
  text-shadow: 0 2px 30px rgba(0, 24, 60, 0.4);
}

.hero__title-accent {
  display: block;
  background: linear-gradient(135deg, #4DDCFF 0%, #00C7FF 50%, #40B9FF 100%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.hero__lead {
  font-size: clamp(1.0625rem, 1.25vw, 1.1875rem);
  color: var(--on-dark-muted);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.hero__cta {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.875rem;
  margin-bottom: 2rem;
}

.hero__cta .btn {
  white-space: nowrap;
}

.hero__perks {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.5rem;
  font-size: var(--fs-small);
  color: var(--on-dark-muted);
}

.hero__perks li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  line-height: 1;
}

.hero__perks svg {
  width: 16px;
  height: 16px;
  color: var(--brand-cyan);
  flex-shrink: 0;
}

.badge--on-dark {
  background: rgba(255, 255, 255, 0.10);
  color: var(--on-dark-text);
  border-color: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.badge--on-dark.badge--dot::before {
  background: var(--brand-cyan);
}

/* ===================================================================
   HERO STAGE — animated app + web window with glassmorphism
=================================================================== */
.hero__stage {
  position: relative;
  height: clamp(440px, 56vw, 560px);
  width: 100%;
  max-width: 620px;
  margin-inline: auto;
}

.hero__stage-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(77, 220, 255, 0.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(77, 220, 255, 0.10) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 30%, transparent 80%);
  animation: heroParallax 22s ease-in-out infinite alternate-reverse;
}

.hero__stage-glow {
  position: absolute;
  top: 40%;
  left: 50%;
  width: 360px;
  height: 360px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(0, 199, 255, 0.42), rgba(0, 100, 230, 0.18) 40%, transparent 70%);
  filter: blur(8px);
  animation: heroGlow 5s ease-in-out infinite alternate;
}

@keyframes heroGlow {
  from { opacity: 0.65; transform: translate(-50%, -50%) scale(0.95); }
  to   { opacity: 1;    transform: translate(-50%, -50%) scale(1.05); }
}

/* Floating isotipo at the top, with pulse */
.hero__stage-iso {
  position: absolute;
  top: 6%;
  left: 50%;
  transform: translateX(-50%);
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 32px rgba(0, 24, 60, 0.45), 0 0 0 6px rgba(0, 199, 255, 0.12);
  animation: heroIsoPulse 3.4s ease-in-out infinite;
  z-index: 4;
}

.hero__stage-iso svg {
  width: 36px;
  height: 36px;
  animation: heroIsoFloat 4s ease-in-out infinite alternate;
}

@keyframes heroIsoPulse {
  0%, 100% { box-shadow: 0 12px 32px rgba(0, 24, 60, 0.45), 0 0 0 6px rgba(0, 199, 255, 0.12); }
  50%      { box-shadow: 0 12px 32px rgba(0, 24, 60, 0.45), 0 0 0 14px rgba(0, 199, 255, 0.02); }
}

@keyframes heroIsoFloat {
  from { transform: translateY(-2px); }
  to   { transform: translateY(2px); }
}

.hero__stage-connectors {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

/* Browser window mockup */
.hero__stage-browser {
  position: absolute;
  top: 27%;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  overflow: hidden;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 30px 60px rgba(0, 24, 60, 0.55);
  animation: heroBrowserFloat 6s ease-in-out infinite alternate;
  z-index: 3;
}

@keyframes heroBrowserFloat {
  from { transform: translate(-50%, 0); }
  to   { transform: translate(-50%, -6px); }
}

.hero__stage-browser-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.625rem 0.875rem;
  background: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
}

.hero__stage-dots {
  display: inline-flex;
  gap: 0.3rem;
  position: absolute;
  left: 0.875rem;
}

.hero__stage-dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
}

.hero__stage-dots i:nth-child(1) { background: rgba(255, 95, 87, 0.55); }
.hero__stage-dots i:nth-child(2) { background: rgba(255, 189, 46, 0.55); }
.hero__stage-dots i:nth-child(3) { background: rgba(40, 200, 65, 0.55); }

.hero__stage-url {
  font-size: 0.6875rem;
  color: rgba(255, 255, 255, 0.55);
  padding: 0.2rem 0.625rem;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  letter-spacing: 0.02em;
}

.hero__stage-browser-body {
  padding: 1rem 1.125rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.hero__stage-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hero__stage-pill {
  height: 10px;
  border-radius: 4px;
  background: linear-gradient(90deg, rgba(77, 220, 255, 0.6), rgba(0, 100, 230, 0.35));
  flex: 1;
  max-width: 120px;
}

.hero__stage-pill--short { max-width: 60px; opacity: 0.5; }

.hero__stage-grid-cells {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.5rem;
}

.hero__stage-cell {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 0.625rem 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-height: 64px;
  animation: heroCellGlow 2.4s ease-in-out infinite;
}

.hero__stage-cell--anim-1 { animation-delay: 0s;   }
.hero__stage-cell--anim-2 { animation-delay: 0.4s; }
.hero__stage-cell--anim-3 { animation-delay: 0.8s; }

@keyframes heroCellGlow {
  0%, 100% { background: rgba(255, 255, 255, 0.05); border-color: rgba(255, 255, 255, 0.08); }
  50%      { background: rgba(0, 199, 255, 0.10); border-color: rgba(0, 199, 255, 0.30); }
}

.hero__stage-bar {
  height: 5px;
  border-radius: 3px;
}

.hero__stage-bar--cyan       { background: rgba(77, 220, 255, 0.7); width: 80%; }
.hero__stage-bar--cyan-light { background: rgba(77, 220, 255, 0.35); width: 60%; }
.hero__stage-bar--blue       { background: rgba(0, 100, 230, 0.7); width: 100%; }

.hero__stage-row--footer {
  margin-top: 0.25rem;
}

.hero__stage-line {
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  flex: 1;
}

.hero__stage-line--short {
  max-width: 35%;
  background: rgba(0, 199, 255, 0.35);
}

/* Phone mockup at the bottom-right */
.hero__stage-phone {
  position: absolute;
  bottom: -10px;
  right: 0;
  width: 170px;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 26px;
  padding: 0.625rem 0.5rem 0.75rem;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 26px 50px rgba(0, 24, 60, 0.60);
  z-index: 5;
  animation: heroPhoneFloat 7s ease-in-out infinite alternate;
}

@keyframes heroPhoneFloat {
  from { transform: translateY(0) rotate(0deg); }
  to   { transform: translateY(-10px) rotate(-2deg); }
}

.hero__stage-phone-notch {
  width: 40px;
  height: 6px;
  background: rgba(0, 0, 0, 0.55);
  border-radius: 6px;
  margin: 0 auto 0.5rem;
}

.hero__stage-phone-body {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 0.5rem;
  border-radius: 18px;
  background: rgba(0, 24, 60, 0.35);
}

.hero__stage-phone-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.25rem 0.125rem 0.45rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}

.hero__stage-phone-title {
  font-size: 0.6875rem;
  font-weight: var(--fw-semibold);
  color: var(--on-dark-text);
}

.hero__stage-phone-balance {
  font-size: 0.6875rem;
  font-weight: var(--fw-bold);
  color: var(--brand-cyan);
}

.hero__stage-phone-tx {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.5rem;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  font-size: 0.625rem;
  color: var(--on-dark-muted);
  opacity: 0;
  animation: heroTxIn 6s ease-in-out infinite;
}

.hero__stage-phone-tx:nth-child(2) { animation-delay: 0s; }
.hero__stage-phone-tx:nth-child(3) { animation-delay: 1.4s; }
.hero__stage-phone-tx:nth-child(4) { animation-delay: 2.8s; }

@keyframes heroTxIn {
  0%       { opacity: 0; transform: translateY(8px); }
  8%, 38%  { opacity: 1; transform: translateY(0); }
  46%, 100%{ opacity: 0.55; transform: translateY(0); }
}

.hero__stage-phone-tx svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  padding: 2px;
  border-radius: 50%;
  background: rgba(77, 220, 255, 0.18);
  color: var(--brand-cyan);
  box-sizing: content-box;
}

.hero__stage-phone-tx--pending svg {
  background: rgba(255, 189, 46, 0.18);
  color: #FFD86E;
}

.hero__stage-phone-tx span {
  flex: 1;
  color: var(--on-dark-text);
}

.hero__stage-phone-tx em {
  font-style: normal;
  font-weight: var(--fw-semibold);
  color: var(--brand-cyan);
}

.hero__stage-phone-tx--pending em {
  color: rgba(255, 255, 255, 0.45);
}

/* Floating chips */
.hero__stage-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.75rem;
  background: rgba(255, 255, 255, 0.92);
  color: var(--brand-blue-dark);
  font-size: 0.6875rem;
  border-radius: var(--radius-pill);
  box-shadow: 0 12px 28px rgba(0, 24, 60, 0.40);
  z-index: 6;
}

.hero__stage-chip strong {
  font-weight: var(--fw-semibold);
  color: var(--brand-blue-deep);
}

.hero__stage-chip--top {
  top: 10%;
  left: -0.5rem;
  animation: heroChipWander 14s ease-in-out infinite;
}

.hero__stage-chip--bottom {
  bottom: 12%;
  left: 0;
  animation: heroChipWanderAlt 16s ease-in-out infinite;
  animation-delay: -4s;
}

@keyframes heroChipWander {
  0%   { transform: translate(0, 0); }
  20%  { transform: translate(35px, -16px); }
  45%  { transform: translate(60px, 10px); }
  65%  { transform: translate(20px, -12px); }
  80%  { transform: translate(50px, 6px); }
  100% { transform: translate(0, 0); }
}

@keyframes heroChipWanderAlt {
  0%   { transform: translate(0, 0); }
  18%  { transform: translate(70px, -28px); }
  40%  { transform: translate(190px, -12px); }
  60%  { transform: translate(230px, 18px); }
  78%  { transform: translate(110px, -22px); }
  100% { transform: translate(0, 0); }
}

.hero__stage-chip-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-success);
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.18);
  animation: heroDotPulse 1.8s ease-in-out infinite;
}

@keyframes heroDotPulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.18); }
  50%      { box-shadow: 0 0 0 7px rgba(22, 163, 74, 0); }
}

.hero__stage-chip-spark {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-cyan);
  box-shadow: 0 0 0 3px rgba(0, 199, 255, 0.18);
  animation: heroDotPulse 1.8s ease-in-out infinite;
}

/* Responsive — hero collapses to single column */
@media (max-width: 1024px) {
  .hero__inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .hero__copy {
    max-width: 100%;
    text-align: center;
    margin-inline: auto;
  }
  .hero__cta,
  .hero__perks {
    justify-content: center;
  }
  .hero__stage {
    margin-inline: auto;
  }
}

@media (max-width: 640px) {
  .hero__stage-chip { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .hero__bg-dots,
  .hero__stage-grid,
  .hero__stage-glow,
  .hero__stage-iso,
  .hero__stage-iso svg,
  .hero__stage-browser,
  .hero__stage-cell,
  .hero__stage-phone,
  .hero__stage-phone-tx,
  .hero__stage-chip,
  .hero__stage-chip-dot,
  .hero__stage-chip-spark {
    animation: none !important;
  }
  .hero__stage-phone-tx { opacity: 1; }
}

/* ===================================================================
   TRUST BAR
=================================================================== */
.trust {
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--color-border-soft);
  background: var(--color-white);
}

.trust__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.trust__label {
  font-size: var(--fs-small);
  color: var(--color-text-soft);
  margin: 0;
}

.trust__label strong {
  color: var(--color-text-strong);
  font-weight: var(--fw-semibold);
}

.trust__items {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
}

.trust__items li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--fs-small);
  font-weight: var(--fw-medium);
  color: var(--color-text-muted);
}

.trust__items svg {
  width: 20px;
  height: 20px;
  color: var(--brand-blue-medium);
  flex-shrink: 0;
}

/* ===================================================================
   VALUE (Por qué Kuantik GO) — feature-tile pattern (default + hover)
=================================================================== */
.value__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.value__card {
  padding: 2rem 1.75rem;
  min-height: 220px;
}

.value__card .feature-tile__icon {
  width: 56px;
  height: 56px;
  box-shadow: 0 10px 28px rgba(0, 100, 230, 0.30);
}

.value__card .feature-tile__icon svg {
  width: 28px;
  height: 28px;
}

/* ===================================================================
   CASOS DE USO — horizontal cards, equal hierarchy
=================================================================== */
.use-cases__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: stretch;
}

.use-case-card {
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  position: relative;
  overflow: hidden;
}

.use-case-card::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 3px;
  background: var(--gradient-brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--duration-base) var(--ease-out);
}

.use-case-card:hover::after {
  transform: scaleX(1);
}

.use-case-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--gradient-brand-soft);
  color: var(--brand-blue-medium);
  flex-shrink: 0;
}

.use-case-card__icon svg {
  width: 24px;
  height: 24px;
}

.use-case-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.use-case-card__body h3 {
  font-size: 1.25rem;
  letter-spacing: -0.015em;
  margin-bottom: 0.625rem;
}

.use-case-card__body > p {
  font-size: var(--fs-body-sm);
  color: var(--color-text-muted);
  margin-bottom: 1.25rem;
  line-height: 1.55;
}

.use-case-card__list {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  font-size: var(--fs-small);
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
}

.use-case-card__list li {
  position: relative;
  padding-left: 1.25rem;
}

.use-case-card__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gradient-brand);
}

.use-case-card__cta {
  margin-top: auto;
  font-size: var(--fs-small);
}

.use-case-card__cta svg {
  width: 16px;
  height: 16px;
}

/* ===================================================================
   FUNCIONALIDADES — Stripe-style grid + detail panel
=================================================================== */
.features-stripe {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Grid of feature tiles — each one is a selectable tab trigger */
.features-stripe__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding: 0;
  list-style: none;
}

/* ───────────────────────────────────────────────────────
   FEATURE TILE — unified card pattern shared across the site.
   Used by Por qué Kuantik (passive) and Funcionalidades (tabbed).

   States:
     default   →  white card, gradient icon w/ white SVG inside
     hover     →  card body picks up the soft gradient + accent ring
     selected  →  ring + soft gradient bg + raised icon
   ─────────────────────────────────────────────────────── */
.feature-tile {
  width: 100%;
  height: 100%;
  text-align: left;
  padding: 1.5rem;
  border-radius: var(--radius-xl);
  background: var(--color-white);
  border: 1px solid var(--color-border-soft);
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition:
    transform var(--duration-base) var(--ease-out),
    box-shadow var(--duration-base) var(--ease-out),
    border-color var(--duration-base) var(--ease-out),
    background var(--duration-base) var(--ease-out);
}

/* default + hover: same gradient surface, raised feel */
.feature-tile:hover {
  transform: translateY(var(--hover-lift));
  background: linear-gradient(135deg, rgba(0, 199, 255, 0.10) 0%, rgba(0, 100, 230, 0.08) 100%);
  border-color: rgba(0, 100, 230, 0.32);
  box-shadow: 0 18px 40px rgba(0, 100, 230, 0.16);
}

.feature-tile:hover::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--gradient-brand);
  opacity: 0.06;
  pointer-events: none;
}

.feature-tile[aria-selected="true"] {
  border-color: transparent;
  background: linear-gradient(135deg, rgba(0, 199, 255, 0.10) 0%, rgba(0, 100, 230, 0.08) 100%);
  box-shadow: 0 16px 40px rgba(0, 100, 230, 0.18), 0 0 0 2px var(--brand-blue-medium);
  transform: translateY(-2px);
}

.feature-tile[aria-selected="true"]::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--gradient-brand);
  opacity: 0.06;
  pointer-events: none;
}

/* Icon — default is gradient bg + white SVG (was previously soft pastel) */
.feature-tile__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--gradient-brand);
  color: var(--color-white);
  box-shadow: 0 8px 20px rgba(0, 100, 230, 0.22);
  transition: transform var(--duration-base) var(--ease-out);
  position: relative;
  z-index: 1;
}

.feature-tile__icon svg {
  width: 22px;
  height: 22px;
}

.feature-tile:hover .feature-tile__icon,
.feature-tile[aria-selected="true"] .feature-tile__icon {
  transform: scale(1.05);
  box-shadow: 0 12px 26px rgba(0, 100, 230, 0.32);
}

.feature-tile h3 {
  font-size: 1.0625rem;
  letter-spacing: -0.015em;
  color: var(--color-text-strong);
  margin: 0;
  position: relative;
  z-index: 1;
}

.feature-tile p {
  font-size: var(--fs-small);
  color: var(--color-text-muted);
  line-height: 1.5;
  margin: 0;
  position: relative;
  z-index: 1;
}

/* Passive variant — only default + hover (no selectable state).
   Used in "Por qué Kuantik GO" — no buttons, no aria-selected. */
.feature-tile--passive {
  cursor: default;
}

/* Expand trigger — ↗ icon for Stripe-style modal reveal */
.feature-tile__expand {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 100, 230, 0.08);
  color: var(--brand-blue-medium);
  border: 1px solid rgba(0, 100, 230, 0.18);
  transition: background var(--duration-base) var(--ease-out), color var(--duration-base) var(--ease-out), transform var(--duration-base) var(--ease-out);
  z-index: 2;
}

.feature-tile__expand:hover {
  background: var(--gradient-brand);
  color: var(--color-white);
  transform: scale(1.08) rotate(45deg);
  border-color: transparent;
}

.feature-tile__expand svg {
  width: 14px;
  height: 14px;
}

/* ===================================================================
   FEATURE MODAL — White card centered on a soft brand backdrop
=================================================================== */
.feature-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--duration-base) var(--ease-out), visibility var(--duration-base) var(--ease-out);
  overflow-y: auto;
  padding: clamp(1rem, 3vh, 3rem) clamp(1rem, 3vw, 2.5rem);
}

.feature-modal[data-feature-modal][hidden] {
  display: block;
}

.feature-modal.is-open {
  opacity: 1;
  visibility: visible;
}

/* Backdrop con degradado suave (Kuantik) — ocupa todo el viewport
   detrás del card del modal. */
.feature-modal__backdrop {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 20% 30%, rgba(77, 220, 255, 0.18), transparent 60%),
    radial-gradient(ellipse 60% 50% at 85% 75%, rgba(0, 100, 230, 0.16), transparent 60%),
    linear-gradient(180deg, #EAF2FB 0%, #F3F8FE 60%, #E6F0FA 100%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 0;
  padding: 0;
  cursor: pointer;
  z-index: 0;
}

/* El dialog ahora es un card blanco centrado, con shadow y radius */
.feature-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(1080px, 100%);
  margin: 0 auto;
  background: var(--color-white);
  border-radius: var(--radius-2xl);
  border: 1px solid rgba(15, 23, 42, 0.04);
  box-shadow: 0 40px 100px rgba(0, 24, 60, 0.18), 0 8px 24px rgba(0, 24, 60, 0.08);
  transform: scale(0.96);
  opacity: 0;
  transition:
    transform 380ms cubic-bezier(0.34, 1.56, 0.64, 1),
    opacity 240ms var(--ease-out);
  overflow: hidden;
}

.feature-modal.is-open .feature-modal__dialog {
  transform: scale(1);
  opacity: 1;
}

/* Close vive dentro del card, esquina superior derecha */
.feature-modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--color-bg-tint);
  color: var(--color-text-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: background var(--duration-fast) var(--ease-out), color var(--duration-fast) var(--ease-out);
}

.feature-modal__close:hover {
  background: var(--gradient-brand);
  color: var(--color-white);
}

.feature-modal__close svg {
  width: 18px;
  height: 18px;
}

.feature-modal__content {
  padding: clamp(2.5rem, 5vw, 3.5rem);
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

/* Top row: title/desc + bullets */
.feature-modal__head {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: start;
}

.feature-modal__copy .eyebrow {
  margin-bottom: 0.75rem;
}

.feature-modal__copy h3 {
  font-size: clamp(1.5rem, 2.2vw, 1.875rem);
  letter-spacing: -0.02em;
  margin-bottom: 0.875rem;
  color: var(--color-text-strong);
  line-height: 1.2;
}

.feature-modal__copy p {
  font-size: var(--fs-body-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}

.feature-modal__bullets {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-top: 0.5rem;
}

.feature-modal__bullets li {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  font-size: var(--fs-body-sm);
  color: var(--color-text);
  line-height: 1.5;
}

.feature-modal__bullets svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--color-white);
  background: var(--gradient-brand);
  padding: 3px;
  border-radius: 50%;
  box-sizing: content-box;
  margin-top: 0.15rem;
}

/* Bottom row: screenshot + stat — proportions match the Stripe reference */
.feature-modal__visuals {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 1.5rem;
}

.feature-modal__shot {
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--color-white);
  border: 1px solid var(--color-border-soft);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
}

.feature-modal__browser-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: var(--color-bg-soft);
  border-bottom: 1px solid var(--color-border-soft);
}

.feature-modal__browser-bar i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--color-border);
}

.feature-modal__browser-bar i:nth-child(1) { background: #FF5F57; }
.feature-modal__browser-bar i:nth-child(2) { background: #FEBC2E; }
.feature-modal__browser-bar i:nth-child(3) { background: #28C840; }

.feature-modal__browser-bar span {
  margin-left: auto;
  margin-right: auto;
  font-size: 0.6875rem;
  color: var(--color-text-soft);
  padding: 0.15rem 0.625rem;
  background: var(--color-white);
  border-radius: 999px;
}

.feature-modal__shot img {
  display: block;
  width: 100%;
  height: auto;
}

/* ─────────────────────────────────────────
   Modal: variante con phone como segundo
   dispositivo lado a lado (Sincronización SAT,
   Emisión, Expediente). Reemplaza al stat aside.
   Estilos alineados con .feature-modal__shot:
   mismo radius, border, sombra y color blanco.
   ───────────────────────────────────────── */
.feature-modal__visuals--paired {
  /* Mantiene el layout 2 columnas — desktop ancho + phone centrado a la derecha */
  grid-template-columns: 1.55fr 1fr;
  align-items: center;
}

.feature-modal__device-phone {
  justify-self: center;
  align-self: center;
  width: 100%;
  max-width: 220px;
  margin: 0;
  background: var(--color-white);
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
}

.feature-modal__device-phone img {
  display: block;
  width: 100%;
  height: auto;
}

.feature-modal__stat {
  padding: 2rem;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(0, 199, 255, 0.12) 0%, rgba(0, 100, 230, 0.08) 100%);
  border: 1px solid rgba(0, 100, 230, 0.18);
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  justify-content: center;
  box-shadow: 0 20px 50px rgba(0, 100, 230, 0.08);
}

.feature-modal__stat-eyebrow {
  font-size: var(--fs-eyebrow);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--letter-eyebrow);
  text-transform: uppercase;
  color: var(--brand-blue-medium);
}

.feature-modal__stat-value {
  font-size: clamp(2.25rem, 3.4vw, 2.875rem);
  font-weight: var(--fw-bold);
  letter-spacing: -0.025em;
  color: var(--color-text-strong);
  line-height: 1;
}

.feature-modal__stat-value small {
  font-size: 0.5em;
  font-weight: var(--fw-semibold);
  color: var(--brand-blue-medium);
}

.feature-modal__stat-caption {
  font-size: var(--fs-small);
  color: var(--color-text-muted);
  line-height: 1.4;
}

/* ─────────────────────────────────────────
   Modal: mini-features — 3 columnas con
   descripción corta (sin íconos).
   ───────────────────────────────────────── */
.feature-modal__mini {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border-soft);
}

.feature-modal__mini-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.25rem 0;
}

/* Iconos removidos del bloque de mini-features */
.feature-modal__mini-icon {
  display: none;
}

.feature-modal__mini-card p {
  font-size: var(--fs-body-sm);
  color: var(--color-text-muted);
  line-height: 1.55;
  margin: 0;
}

/* ─────────────────────────────────────────
   Modal: "Más por descubrir" — 3 cards que
   abren otra funcionalidad (cross-nav)
   ───────────────────────────────────────── */
.feature-modal__discover {
  padding-top: 2rem;
  border-top: 1px solid var(--color-border-soft);
}

.feature-modal__discover h4 {
  font-size: 1.125rem;
  margin-bottom: 1rem;
  color: var(--color-text-strong);
  letter-spacing: -0.01em;
}

.feature-modal__discover-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.feature-modal__discover-card {
  width: 100%;
  text-align: left;
  padding: 1.25rem 1.25rem 1.5rem;
  background: var(--color-bg-soft);
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition:
    transform var(--duration-base) var(--ease-out),
    box-shadow var(--duration-base) var(--ease-out),
    border-color var(--duration-base) var(--ease-out),
    background var(--duration-base) var(--ease-out);
}

.feature-modal__discover-card::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 3px;
  background: var(--gradient-brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--duration-base) var(--ease-out);
}

.feature-modal__discover-card:hover {
  transform: translateY(var(--hover-lift));
  background: linear-gradient(135deg, rgba(0, 199, 255, 0.06) 0%, rgba(0, 100, 230, 0.05) 100%);
  border-color: var(--hover-border);
  box-shadow: 0 18px 40px rgba(0, 100, 230, 0.14);
}

.feature-modal__discover-card:hover::after {
  transform: scaleX(1);
}

.feature-modal__discover-eyebrow {
  font-size: var(--fs-eyebrow);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--letter-eyebrow);
  text-transform: uppercase;
  color: var(--brand-blue-medium);
}

.feature-modal__discover-title {
  font-size: var(--fs-body);
  font-weight: var(--fw-semibold);
  color: var(--color-text-strong);
  letter-spacing: -0.01em;
  line-height: 1.35;
  flex: 1;
}

/* Las flechas decorativas en discover cards fueron eliminadas
   por solicitud — el card completo es el affordance al click. */
.feature-modal__discover-arrow {
  display: none;
}

/* Lock scroll when modal is open */
body.has-feature-modal-open {
  overflow: hidden;
}

@media (max-width: 768px) {
  .feature-modal__content {
    padding: clamp(2.5rem, 5vh, 3.5rem) 1.5rem 3rem;
    gap: 2rem;
  }
  .feature-modal__head,
  .feature-modal__visuals {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .feature-modal__mini,
  .feature-modal__discover-grid {
    grid-template-columns: 1fr;
  }
  .feature-modal__actions {
    flex-direction: column;
    align-items: stretch;
  }
  .feature-modal__actions .btn {
    width: 100%;
  }
}

.features__panel-copy h3 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.features__panel-copy > p {
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
}

.features__panel-list {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  margin-bottom: 1.75rem;
}

.features__panel-list li {
  position: relative;
  padding-left: 1.75rem;
  color: var(--color-text-muted);
  font-size: var(--fs-body-sm);
}

.features__panel-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--gradient-brand);
  box-shadow: 0 0 0 4px rgba(0, 100, 230, 0.08);
}

.features__panel-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--brand-blue-medium);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-body-sm);
  transition: gap var(--duration-base) var(--ease-out);
}

.features__panel-link svg {
  width: 16px;
  height: 16px;
}

.features__panel-link:hover {
  gap: 0.7rem;
}

.features__panel-shot {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--color-bg-soft);
  border: 1px solid var(--color-border-soft);
}

.features__panel-shot img {
  display: block;
  width: 100%;
  height: auto;
}

.features__panel-shot--phone {
  max-width: 320px;
  margin-inline: auto;
  border-radius: 36px;
  border: none;
  background: transparent;
  box-shadow: none;
}

.features__panel-shot--phone img {
  filter: drop-shadow(0 30px 50px rgba(0, 70, 180, 0.22));
}

/* ===================================================================
   WEB + APP — 4 cards estilo ToDesktop sobre fondo Kuantik
=================================================================== */
.webapp__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.webapp__card {
  position: relative;
  padding: 2rem;
  border-radius: var(--radius-2xl);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  color: var(--on-dark-text);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  overflow: hidden;
  transition:
    transform var(--duration-base) var(--ease-out),
    background var(--duration-base) var(--ease-out),
    border-color var(--duration-base) var(--ease-out),
    box-shadow var(--duration-base) var(--ease-out);
}

.webapp__card:hover {
  transform: translateY(var(--hover-lift));
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.32);
  box-shadow: 0 26px 56px rgba(0, 24, 60, 0.50);
}

.webapp__card h3 {
  font-size: 1.25rem;
  letter-spacing: -0.015em;
  margin: 0;
  color: var(--on-dark-text);
}

.webapp__card p {
  font-size: var(--fs-body-sm);
  color: var(--on-dark-muted);
  margin: 0;
  line-height: 1.55;
}

.webapp__card-visual {
  height: 140px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(ellipse 80% 80% at 50% 50%, rgba(0, 199, 255, 0.20), transparent 70%),
    rgba(0, 24, 60, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  position: relative;
  overflow: hidden;
}

/* Sync pair visual */
.webapp__sync-pair {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.webapp__sync-glyph {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: var(--brand-cyan);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.webapp__sync-glyph svg {
  width: 26px;
  height: 26px;
}

.webapp__sync-line-anim {
  width: 64px;
  height: 2px;
  background: linear-gradient(90deg, rgba(77, 220, 255, 0), rgba(77, 220, 255, 0.9), rgba(77, 220, 255, 0));
  background-size: 200% 100%;
  animation: webappSyncMove 1.8s linear infinite;
  border-radius: 999px;
  position: relative;
}

@keyframes webappSyncMove {
  from { background-position: 100% 0; }
  to   { background-position: -100% 0; }
}

/* Mirror bars — two stacks mirror each other */
.webapp__card-visual--mirror {
  justify-content: space-around;
  padding: 1rem 1.5rem;
}

.webapp__bar-stack {
  display: flex;
  align-items: flex-end;
  gap: 0.4rem;
  height: 70%;
}

.webapp__bar-stack span {
  width: 12px;
  background: var(--gradient-brand);
  border-radius: 4px;
  opacity: 0.9;
}

.webapp__bar-stack span:nth-child(1) { height: 50%; }
.webapp__bar-stack span:nth-child(2) { height: 75%; }
.webapp__bar-stack span:nth-child(3) { height: 35%; }
.webapp__bar-stack span:nth-child(4) { height: 90%; }

.webapp__bar-stack--mirror span:nth-child(1) { height: 50%; }
.webapp__bar-stack--mirror span:nth-child(2) { height: 75%; }
.webapp__bar-stack--mirror span:nth-child(3) { height: 35%; }
.webapp__bar-stack--mirror span:nth-child(4) { height: 90%; }

/* Live data card */
.webapp__card-visual--live {
  flex-direction: column;
  padding: 0.75rem 1.25rem;
}

.webapp__live-chip {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.75rem;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-pill);
  font-size: 0.6875rem;
  color: var(--on-dark-text);
  margin-top: 0.25rem;
}

.webapp__live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand-cyan);
  box-shadow: 0 0 0 3px rgba(0, 199, 255, 0.22);
  animation: heroDotPulse 1.8s ease-in-out infinite;
}

.webapp__live-graph {
  width: 100%;
  height: 56px;
}

.webapp__live-graph svg {
  width: 100%;
  height: 100%;
}

/* Journey card */
.webapp__card-visual--journey {
  gap: 0.625rem;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.webapp__journey-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  color: var(--on-dark-text);
  font-size: 0.6875rem;
}

.webapp__journey-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: var(--brand-cyan);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.webapp__journey-icon svg {
  width: 22px;
  height: 22px;
}

.webapp__journey-arrow {
  color: var(--brand-cyan);
  display: inline-flex;
  align-items: center;
}

.webapp__journey-arrow svg {
  width: 22px;
  height: 22px;
}

/* Legacy aliases — old web-app__* still referenced in some places */
.web-app__unified {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  justify-items: center;
}

/* Two devices side by side, connected by a "sync line" */
.web-app__devices {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(2rem, 6vw, 5rem);
  max-width: 980px;
  width: 100%;
  padding-block: 1rem;
}

.web-app__device--desktop {
  width: min(560px, 60%);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 24, 60, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
}

.web-app__device--desktop img {
  display: block;
  width: 100%;
  height: auto;
}

.web-app__device--phone {
  width: min(180px, 22%);
  flex-shrink: 0;
  filter: drop-shadow(0 30px 50px rgba(0, 24, 60, 0.55));
}

.web-app__device--phone img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 28px;
}

.web-app__sync-line {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.625rem;
  pointer-events: none;
  z-index: 2;
}

.web-app__sync-pulse {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(0, 199, 255, 0.45) 0%, transparent 70%),
    var(--gradient-brand);
  box-shadow: 0 0 0 8px rgba(0, 199, 255, 0.16), 0 0 40px rgba(0, 199, 255, 0.5);
  position: relative;
}

.web-app__sync-pulse::before,
.web-app__sync-pulse::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(0, 199, 255, 0.6);
  animation: syncPulse 2.6s var(--ease-out) infinite;
}

.web-app__sync-pulse::after {
  animation-delay: 1.3s;
}

@keyframes syncPulse {
  0%   { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(2.2); opacity: 0; }
}

.web-app__sync-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.875rem;
  background: rgba(255, 255, 255, 0.95);
  color: var(--brand-blue-dark);
  font-size: var(--fs-eyebrow);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--letter-wide);
  text-transform: uppercase;
  border-radius: var(--radius-pill);
  box-shadow: 0 12px 32px rgba(0, 24, 60, 0.45);
  white-space: nowrap;
}

.web-app__sync-badge svg {
  width: 16px;
  height: 16px;
  color: var(--brand-blue-medium);
}

/* Shared benefits — glass card */
.web-app__shared {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding: 2rem;
  max-width: 980px;
  width: 100%;
  border-radius: var(--radius-2xl);
}

.web-app__shared li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: var(--on-dark-muted);
}

.web-app__shared svg {
  width: 22px;
  height: 22px;
  color: var(--brand-cyan);
  flex-shrink: 0;
  margin-top: 0.125rem;
  padding: 3px;
  border-radius: 50%;
  background: rgba(0, 199, 255, 0.18);
  box-sizing: content-box;
}

.web-app__shared strong {
  display: block;
  color: var(--on-dark-text);
  font-size: var(--fs-body-sm);
  margin-bottom: 0.25rem;
}

.web-app__shared span {
  font-size: var(--fs-small);
  line-height: 1.5;
  color: var(--on-dark-muted);
}

.web-app__stores {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
  justify-content: center;
}

/* ===================================================================
   EMPIEZA HOY + CTA FINAL — fusionada, glass steps sobre fondo Kuantik
=================================================================== */
.start-cta__steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  position: relative;
  margin-bottom: 2.5rem;
}

.start-cta__steps::before {
  content: '';
  position: absolute;
  top: 2.75rem;
  left: calc(16.66% + 1rem);
  right: calc(16.66% + 1rem);
  height: 2px;
  background: repeating-linear-gradient(
    90deg,
    rgba(77, 220, 255, 0.55) 0 8px,
    transparent 8px 16px
  );
  z-index: 0;
}

.start-cta__step {
  position: relative;
  padding: 1.75rem;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 20px 40px rgba(0, 24, 60, 0.28);
  transition: transform var(--duration-base) var(--ease-out), background var(--duration-base) var(--ease-out), box-shadow var(--duration-base) var(--ease-out);
}

.start-cta__step:hover {
  transform: translateY(var(--hover-lift));
  background: rgba(255, 255, 255, 0.16);
  box-shadow: 0 26px 50px rgba(0, 24, 60, 0.40);
}

.start-cta__step-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.875rem;
  font-size: var(--fs-eyebrow);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--letter-wide);
  text-transform: uppercase;
  color: var(--brand-blue-dark);
  background: var(--color-white);
  border-radius: var(--radius-pill);
  width: fit-content;
  box-shadow: 0 8px 20px rgba(0, 24, 60, 0.30);
  margin-bottom: 0.5rem;
}

.start-cta__step h3 {
  font-size: 1.25rem;
  margin: 0 0 0.25rem;
  color: var(--on-dark-text);
}

.start-cta__step p {
  font-size: var(--fs-body-sm);
  color: var(--on-dark-muted);
  margin: 0;
}

/* The final CTA — open layout, flows directly from the 3 steps.
   Sin caja: vive sobre el mismo fondo brand+grid, con un conector
   visual que conecta el último paso con el llamado a la acción. */
.start-cta__finale {
  text-align: center;
  max-width: 720px;
  margin: 2rem auto 0;
  position: relative;
}

.start-cta__connector {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.start-cta__connector-line {
  width: 2px;
  height: 56px;
  background: linear-gradient(180deg, transparent 0%, var(--brand-cyan) 100%);
  opacity: 0.7;
  border-radius: 999px;
}

.start-cta__connector-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--brand-cyan);
  color: var(--brand-blue-deep);
  box-shadow: 0 0 0 6px rgba(77, 220, 255, 0.18), 0 8px 24px rgba(0, 199, 255, 0.45);
  animation: startCtaArrow 2.6s ease-in-out infinite;
}

.start-cta__connector-arrow svg {
  width: 16px;
  height: 16px;
}

@keyframes startCtaArrow {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(4px); }
}

.start-cta__finale-title {
  font-size: clamp(1.75rem, 3.2vw, 2.625rem);
  margin-bottom: 0.75rem;
  color: var(--on-dark-text);
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.start-cta__finale-lead {
  font-size: clamp(1rem, 1.25vw, 1.125rem);
  color: var(--on-dark-muted);
  margin-bottom: 2rem;
  max-width: 560px;
  margin-inline: auto;
  line-height: 1.6;
}

.start-cta__actions {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.start-cta__perks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.75rem;
  justify-content: center;
  font-size: var(--fs-small);
  color: var(--on-dark-soft);
}

.start-cta__perks li {
  position: relative;
  padding-left: 1.25rem;
}

.start-cta__perks li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--brand-cyan);
  font-weight: var(--fw-bold);
}

@media (prefers-reduced-motion: reduce) {
  .start-cta__connector-arrow {
    animation: none;
  }
}


/* ===================================================================
   PRECIOS
=================================================================== */
.pricing__trial-line {
  font-size: var(--fs-small);
  color: var(--color-text-muted);
  margin-top: 0.75rem;
}

.pricing__trial-line strong {
  color: var(--color-text-strong);
}

/* Wrapper que centra el toggle, ya que el toggle es inline-flex */
.pricing__toggle-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: var(--space-12);
}

.pricing__toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.375rem;
  background: var(--color-bg-soft);
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-pill);
  position: relative;
}

.pricing__toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  height: 40px;
  padding: 0 1.25rem;
  border-radius: 999px;
  font-size: var(--fs-small);
  font-weight: var(--fw-semibold);
  color: var(--color-text-muted);
  transition: all var(--duration-base) var(--ease-out);
}

.pricing__toggle-btn.is-active {
  background: var(--color-white);
  color: var(--brand-blue-medium);
  box-shadow: var(--shadow-sm);
}

/* The -20% chip lives inside the "Anual" button and only appears when active */
.pricing__toggle-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.5rem;
  background: rgba(22, 163, 74, 0.12);
  color: var(--color-success);
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: var(--fw-bold);
  letter-spacing: 0.02em;
  opacity: 0;
  transform: scale(0.85);
  transition: opacity var(--duration-base) var(--ease-out), transform var(--duration-base) var(--ease-out);
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  margin-left: -0.25rem;
}

.pricing__toggle-btn.is-active .pricing__toggle-chip {
  opacity: 1;
  transform: scale(1);
  max-width: 80px;
  margin-left: 0;
}

.pricing__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: stretch;
}

.price-card {
  position: relative;
  padding: 2.5rem;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  display: flex;
  flex-direction: column;
  transition:
    transform var(--duration-base) var(--ease-out),
    box-shadow var(--duration-base) var(--ease-out);
}

.price-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

/* Header (título + descripción) — separado por divisor */
.price-card__head {
  padding-bottom: 1.5rem;
  margin-bottom: 1.75rem;
  border-bottom: 1px solid var(--color-border-soft);
}

.price-card__head h3 {
  font-size: 1.5rem;
  margin-bottom: 0.625rem;
}

.price-card__sub {
  font-size: var(--fs-body-sm);
  color: var(--color-text-muted);
  margin: 0;
  min-height: calc(3 * 1.55em); /* = 4.65em — exactly 3 lines at lh-normal */
}

/* Bloque del precio: número + nota debajo */
.price-card__price {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
  margin-bottom: 0.5rem;
}

.price-card__currency {
  font-size: 1.5rem;
  font-weight: var(--fw-semibold);
  color: var(--color-text-strong);
}

.price-card__amount {
  font-size: 3rem;
  font-weight: var(--fw-bold);
  color: var(--color-text-strong);
  letter-spacing: -0.025em;
  line-height: 1;
}

.price-card__period {
  font-size: var(--fs-body-sm);
  color: var(--color-text-muted);
}

.price-card__note {
  font-size: var(--fs-small);
  color: var(--color-text-soft);
  margin-bottom: 1.75rem;
  min-height: 2.8em; /* 2 líneas para alinear */
}

.price-card__cta {
  width: 100%;
  margin-bottom: 0;
}

/* Features list separadas por el segundo divisor */
.price-card__features {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.75rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--color-border-soft);
}

.price-card__features li {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  font-size: var(--fs-body-sm);
  color: var(--color-text-muted);
}

.price-card__features svg {
  width: 18px;
  height: 18px;
  color: var(--brand-blue-medium);
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.price-card--featured {
  background: linear-gradient(165deg, #FFFFFF 0%, #F0F7FF 100%);
  border-color: rgba(0, 100, 230, 0.28);
  box-shadow: 0 20px 50px rgba(0, 100, 230, 0.10);
}

.price-card--featured:hover {
  transform: translateY(-3px);
  box-shadow: 0 30px 60px rgba(0, 100, 230, 0.18);
}

.price-card__chip {
  position: absolute;
  top: -0.85rem;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.45rem 1rem;
  background: var(--gradient-brand);
  color: var(--color-white);
  font-size: 0.75rem;
  font-weight: var(--fw-semibold);
  border-radius: 999px;
  letter-spacing: var(--letter-wide);
  text-transform: uppercase;
  box-shadow: var(--shadow-brand);
}

/* Equalized layout — keep price-card__cta at the same Y position
   regardless of how long the sub-title is */
.price-card {
  display: flex;
  flex-direction: column;
}

/* ─────────────────────────────────────────
   Orden visual sin tocar el source order:
   Emprende (free) → Timbra (paid base) → GO (featured, derecha)
   ───────────────────────────────────────── */
.price-card--free        { order: 1; }
.price-card:not(.price-card--free):not(.price-card--featured) { order: 2; }
.price-card--featured    { order: 3; }

/* ─────────────────────────────────────────
   Modificador: plan gratis — sin $ ni período
   ───────────────────────────────────────── */
.price-card--free .price-card__currency,
.price-card--free .price-card__period {
  display: none;
}

.price-card--free .price-card__amount {
  font-size: 2.5rem; /* "Gratis" se ve más natural a este tamaño */
  background: var(--gradient-brand);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

/* ────────────────────────────────────────────────
   COMPARATIVA — sticky-header pricing table
   ──────────────────────────────────────────────── */
.pricing__compare {
  margin-top: 3.5rem;
  padding-top: 3rem;
  border-top: 1px solid var(--color-border-soft);
}

.pricing__compare-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3rem;
}

.pricing__compare-head h3 {
  font-size: var(--fs-h3);
  margin-bottom: 0.625rem;
}

.pricing__compare-head p {
  color: var(--color-text-muted);
  font-size: var(--fs-body-sm);
}

.compare-table {
  background: var(--color-white);
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-2xl);
  overflow: clip;
  position: relative;
}

/* Sticky plan header — 4 columnas: label + 3 planes con info completa.
   El nav-bar es transparente cuando se hace scroll, así que el header
   sticky proyecta una "scrim" blanca hacia arriba (vía ::before) para
   que las filas no se asomen entre el nav y el header. La scrim queda
   clipeada por overflow:clip del .compare-table en flujo natural. */
.compare-table__sticky {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 0.75rem;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  padding: 1.75rem 1.25rem 1.25rem;
  position: sticky;
  top: calc(var(--nav-height) - 12px);
  z-index: 5;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
}

/* Scrim blanco que extiende el fondo del sticky hacia arriba.
   Ocupa todo lo que haya entre el top del viewport y el sticky header,
   ocultando las filas que scrollean por detrás del nav transparente. */
.compare-table__sticky::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 100%;
  height: 100vh;
  background: var(--color-white);
  pointer-events: none;
  z-index: -1;
}

.compare-table__col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.5rem 0.875rem 0.75rem;
  text-align: left;
  border-radius: var(--radius-md);
}

.compare-table__col--label {
  justify-content: center;
  padding-block: 0;
}

.compare-table__col--label .eyebrow {
  margin-bottom: 0;
}

.compare-table__name {
  font-size: 1.125rem;
  color: var(--color-text-strong);
  font-weight: var(--fw-semibold);
  letter-spacing: -0.01em;
}

.compare-table__sub {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  line-height: 1.4;
  min-height: 2.6em;
}

.compare-table__price {
  display: inline-flex;
  align-items: baseline;
  gap: 0.25rem;
  margin-top: 0.125rem;
}

.compare-table__amount {
  font-size: 1.375rem;
  font-weight: var(--fw-bold);
  color: var(--color-text-strong);
  letter-spacing: -0.02em;
  line-height: 1;
}

.compare-table__period {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  font-weight: var(--fw-medium);
}

.compare-table__note {
  font-size: 0.6875rem;
  color: var(--color-text-soft);
  line-height: 1.4;
  min-height: 2em;
}

.compare-table__col .btn {
  width: 100%;
  /* Empuja el botón al fondo del flex column para alinear los 3 CTAs
     aunque la descripción ocupe distinto número de líneas. */
  margin-top: auto;
}

.compare-table__col--featured {
  background: linear-gradient(180deg, rgba(0, 199, 255, 0.06) 0%, rgba(0, 100, 230, 0.04) 100%);
  border: 1px solid rgba(0, 100, 230, 0.32);
  padding: 0.5rem 0.875rem 0.75rem;
  position: relative;
}

.compare-table__tag {
  position: absolute;
  top: -0.65rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-brand);
  color: var(--color-white);
  font-size: 0.6875rem;
  font-weight: var(--fw-bold);
  letter-spacing: var(--letter-wide);
  text-transform: uppercase;
  padding: 0.25rem 0.625rem;
  border-radius: 999px;
  box-shadow: var(--shadow-brand);
  white-space: nowrap;
}

/* Group header inside the table */
.compare-table__group {
  font-size: var(--fs-eyebrow);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--letter-eyebrow);
  text-transform: uppercase;
  color: var(--brand-blue-medium);
  padding: 1.25rem 1.5rem 0.625rem;
  background: var(--color-bg-soft);
  border-bottom: 1px solid var(--color-border-soft);
}

.compare-table__row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  padding: 0;
  border-bottom: 1px solid var(--color-border-soft);
}

.compare-table__row:last-child {
  border-bottom: 0;
}

.compare-table__row:hover {
  background: rgba(0, 100, 230, 0.025);
}

.compare-table__cell {
  padding: 1rem 1.5rem;
  font-size: var(--fs-body-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.compare-table__cell--label {
  justify-content: flex-start;
  color: var(--color-text);
  font-weight: var(--fw-medium);
}

.compare-table__cell--featured {
  border-left: 1px solid rgba(0, 100, 230, 0.12);
  border-right: 1px solid rgba(0, 100, 230, 0.12);
}

.cell-yes {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(22, 163, 74, 0.12);
  color: var(--color-success);
  font-weight: var(--fw-bold);
}

.cell-no {
  color: var(--color-text-soft);
  font-weight: var(--fw-bold);
  opacity: 0.55;
}

/* ────────────────────────────────────────────────
   ADD-ONS — más peso visual
   ──────────────────────────────────────────────── */
.pricing__addons {
  margin-top: 5rem;
}

.pricing__addons-head {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 2.5rem;
}

.pricing__addons-head h3 {
  font-size: var(--fs-h3);
  margin-bottom: 0.5rem;
}

.pricing__addons-head p {
  color: var(--color-text-muted);
  font-size: var(--fs-body-sm);
}

.pricing__addons-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 1040px;
  margin-inline: auto;
}

.pricing__addon {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  position: relative;
  overflow: hidden;
}

.pricing__addon::before {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 3px;
  background: var(--gradient-brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--duration-base) var(--ease-out);
}

.pricing__addon:hover::before {
  transform: scaleX(1);
}

.pricing__addon-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--gradient-brand-soft);
  color: var(--brand-blue-medium);
}

.pricing__addon-icon svg {
  width: 22px;
  height: 22px;
}

.pricing__addon strong {
  font-size: var(--fs-body);
  color: var(--color-text-strong);
}

.pricing__addon-price {
  font-size: 1.5rem;
  font-weight: var(--fw-bold);
  color: var(--brand-blue-medium);
  letter-spacing: -0.02em;
  margin: 0;
}

.pricing__addon-price span {
  font-size: var(--fs-small);
  color: var(--color-text-muted);
  font-weight: var(--fw-medium);
}

.pricing__addon p {
  font-size: var(--fs-small);
  color: var(--color-text-muted);
  margin: 0;
}

/* ===================================================================
   SEGURIDAD — bg is provided by .bg--white-grid; inner layout stays
=================================================================== */
.security__inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 4rem;
  align-items: center;
}

.security__copy h2 {
  margin-block: 0.5rem 1rem;
}

.security__copy > p {
  font-size: var(--fs-body-lg);
  color: var(--color-text-muted);
  margin-bottom: 2rem;
}

.security__pillars {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.security__pillars li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.security__pillars strong {
  display: block;
  font-size: var(--fs-body);
  color: var(--color-text-strong);
  margin-bottom: 0.2rem;
}

.security__pillars p {
  font-size: var(--fs-body-sm);
  color: var(--color-text-muted);
  margin: 0;
}

.security__panel {
  padding: 2.5rem;
  border-radius: var(--radius-2xl);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.security__panel::before {
  content: '';
  position: absolute;
  inset: -50% -50% auto auto;
  width: 60%;
  height: 60%;
  background: var(--gradient-brand);
  filter: blur(80px);
  opacity: 0.18;
  pointer-events: none;
}

.security__panel-head {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--color-border-soft);
  font-size: var(--fs-small);
  color: var(--color-text-muted);
}

.security__panel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-success);
  box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.15);
  flex-shrink: 0;
}

.security__panel-status {
  margin-left: auto;
  color: var(--color-success);
  font-weight: var(--fw-semibold);
}

.security__panel-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--color-border-soft);
}

.security__panel-stat {
  padding: 1.25rem;
  background: var(--color-bg-soft);
  border-radius: var(--radius-md);
}

.security__panel-stat strong {
  display: block;
  font-size: 1.5rem;
  font-weight: var(--fw-bold);
  color: var(--brand-blue-medium);
  letter-spacing: -0.02em;
  margin-bottom: 0.125rem;
}

.security__panel-stat span {
  font-size: var(--fs-small);
  color: var(--color-text-muted);
}

.security__panel-quote {
  display: flex;
  gap: 0.75rem;
  padding-top: 1.5rem;
}

.security__panel-quote svg {
  width: 20px;
  height: 20px;
  color: var(--brand-blue-medium);
  flex-shrink: 0;
  margin-top: 0.25rem;
  opacity: 0.4;
}

.security__panel-quote p {
  font-size: var(--fs-body-sm);
  color: var(--color-text-muted);
  font-style: italic;
  margin: 0;
}

/* ===================================================================
   TESTIMONIOS — 3 column grid + auto-scroll logos marquee
=================================================================== */
.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 4rem;
}

.testimonial-card {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
}

.testimonial-card__quote {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--color-bg-tint);
  color: var(--brand-blue-medium);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.testimonial-card__quote svg {
  width: 18px;
  height: 18px;
}

.testimonial-card p {
  font-size: var(--fs-body-sm);
  color: var(--color-text);
  line-height: 1.55;
  margin: 0;
  flex: 1;
}

.testimonial-card p strong {
  color: var(--brand-blue-medium);
  font-weight: var(--fw-semibold);
}

.testimonial-card footer {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border-soft);
}

.testimonial-card__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-white);
  color: var(--brand-blue-medium);
  border: 1px solid var(--color-border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: var(--fw-semibold);
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
}

.testimonial-card footer strong {
  display: block;
  color: var(--color-text-strong);
  font-size: var(--fs-body-sm);
}

.testimonial-card footer span {
  font-size: var(--fs-small);
  color: var(--color-text-soft);
}

/* Logos marquee */
.logos-marquee {
  border-top: 1px solid var(--color-border-soft);
  padding-top: 2.5rem;
  margin-top: 1rem;
}

.logos-marquee__label {
  font-size: var(--fs-small);
  color: var(--color-text-soft);
  text-align: center;
  margin-bottom: 1.5rem;
}

.logos-marquee__viewport {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent 0, black 8%, black 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, black 8%, black 92%, transparent 100%);
}

.logos-marquee__track {
  display: flex;
  align-items: center;
  gap: 3rem;
  width: max-content;
  animation: logosScroll 32s linear infinite;
}

@keyframes logosScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.logos-marquee__item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--fs-body);
  font-weight: var(--fw-semibold);
  letter-spacing: -0.01em;
  color: var(--color-text-soft);
  white-space: nowrap;
  filter: grayscale(100%);
  opacity: 0.7;
  flex-shrink: 0;
}

.logos-marquee__item svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

@media (prefers-reduced-motion: reduce) {
  .logos-marquee__track {
    animation: none;
  }
}

/* ===================================================================
   FAQ
=================================================================== */
.faq__inner {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 4rem;
  align-items: start;
}

.faq__intro h2 {
  margin-block: 0.5rem 1rem;
}

.faq__intro > p {
  color: var(--color-text-muted);
}

.faq__intro a {
  color: var(--brand-blue-medium);
  font-weight: var(--fw-semibold);
  border-bottom: 1px solid currentColor;
}

.faq__list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq__item {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--duration-base) var(--ease-out), box-shadow var(--duration-base) var(--ease-out);
}

.faq__item[open] {
  border-color: rgba(0, 100, 230, 0.28);
  box-shadow: var(--shadow-sm);
}

.faq__item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: var(--fs-body);
  font-weight: var(--fw-semibold);
  color: var(--color-text-strong);
  transition: background var(--duration-fast) var(--ease-out);
}

.faq__item summary::-webkit-details-marker {
  display: none;
}

.faq__item summary:hover {
  background: var(--color-bg-soft);
}

.faq__item summary > span:first-child {
  flex: 1;
}

.faq__chev {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--color-bg-tint);
  color: var(--brand-blue-medium);
  transition: transform var(--duration-base) var(--ease-out), background var(--duration-base) var(--ease-out);
  flex-shrink: 0;
}

.faq__chev svg {
  width: 16px;
  height: 16px;
}

.faq__item[open] .faq__chev {
  transform: rotate(180deg);
  background: var(--gradient-brand);
  color: var(--color-white);
}

.faq__answer {
  padding: 0 1.5rem 1.5rem;
  color: var(--color-text-muted);
}

.faq__answer p {
  font-size: var(--fs-body-sm);
}


/* ===================================================================
   FOOTER — degradado Kuantik, todo el texto e iconos en blanco
=================================================================== */
.footer {
  position: relative;
  color: var(--color-white);
  padding: 5rem 0 2rem;
  overflow: hidden;
  isolation: isolate;
}

.footer__gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #00C7FF 0%, #0064E6 45%, #005ABE 75%, #0154A0 100%);
  z-index: -2;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
}

.footer__brand {
  max-width: 360px;
}

.footer__logo {
  height: 44px;
  width: auto;
  margin-bottom: 1.25rem;
  color: var(--color-white); /* path usa currentColor */
}

.footer__tagline {
  font-size: var(--fs-small);
  line-height: 1.55;
  color: var(--color-white);
  margin-bottom: 1.75rem;
}

.footer__address {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  font-style: normal;
  font-size: var(--fs-small);
  color: var(--color-white);
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

.footer__address svg {
  width: 16px;
  height: 16px;
  color: var(--color-white);
  flex-shrink: 0;
  margin-top: 0.25rem;
}

.footer__contact {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
}

.footer__contact-item {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  font-size: var(--fs-small);
  color: var(--color-white);
  transition: opacity var(--duration-fast) var(--ease-out);
}

.footer__contact-item:hover {
  opacity: 0.78;
}

.footer__contact-item svg {
  width: 16px;
  height: 16px;
  color: var(--color-white);
  flex-shrink: 0;
}

.footer__social {
  display: flex;
  gap: 0.5rem;
}

.footer__social a {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: var(--color-white);
  border: 1px solid rgba(255, 255, 255, 0.28);
  transition: all var(--duration-base) var(--ease-out);
}

.footer__social a:hover,
.footer__social a:focus-visible {
  background: var(--color-white);
  color: var(--brand-blue-medium);
  border-color: transparent;
  transform: translateY(-2px);
}

.footer__social svg {
  width: 18px;
  height: 18px;
}

.footer__col h4 {
  color: var(--color-white);
  font-size: var(--fs-small);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--letter-eyebrow);
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.footer__col ul {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer__col a {
  font-size: var(--fs-body-sm);
  color: var(--color-white);
  transition: opacity var(--duration-fast) var(--ease-out);
}

.footer__col a:hover,
.footer__col a:focus-visible {
  opacity: 0.78;
}

.footer__bottom {
  padding-top: 2rem;
  display: flex;
  justify-content: right;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: var(--fs-small);
  color: var(--color-white);
}

/* Forzar blanco en los <p> del bottom para sobreescribir el
   color muted que base.css aplica por defecto a <p>. */
.footer__bottom p,
.footer__legal {
  color: var(--color-white);
  margin: 0;
}

.footer__legal a {
  color: var(--color-white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.45);
}

.footer__legal a:hover {
  opacity: 0.78;
}

/* ===================================================================
   Responsive — desktop first, scaling down
=================================================================== */
@media (max-width: 1280px) {
  .features__panel {
    padding: 2.5rem;
    gap: 2.5rem;
  }
}

@media (max-width: 1024px) {
  :root {
    --nav-height: 68px;
  }

  .nav__links {
    gap: 0;
  }
  .nav__links a {
    padding: 0 0.625rem;
  }

  .hero {
    padding-top: calc(var(--nav-height) + 2rem);
    padding-bottom: 3rem;
  }

  .faq__inner,
  .security__inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .webapp__grid {
    grid-template-columns: 1fr;
  }

  .testimonials__grid {
    grid-template-columns: 1fr 1fr;
  }

  .value__grid {
    grid-template-columns: 1fr 1fr;
  }

  .use-cases__grid {
    grid-template-columns: 1fr 1fr;
  }

  .features__panel {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2rem;
  }
  .features__panel-shot--phone {
    max-width: 240px;
  }
  .features-stripe__grid {
    grid-template-columns: 1fr 1fr;
  }

  .start-cta__steps {
    grid-template-columns: 1fr;
  }
  .start-cta__steps::before {
    display: none;
  }

  .pricing__grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin-inline: auto;
  }
  .price-card--featured {
    transform: none;
  }
  .price-card--featured:hover {
    transform: translateY(-3px);
  }
  .pricing__addons-grid {
    grid-template-columns: 1fr;
  }

  /* Comparativa horizontal scroll on narrow screens */
  .compare-table {
    overflow-x: auto;
  }
  .compare-table__sticky,
  .compare-table__row {
    min-width: 720px;
  }

  .footer__inner {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
  .footer__brand {
    grid-column: 1 / -1;
    max-width: none;
  }
}

@media (max-width: 768px) {
  :root {
    --section-y: 4rem;
  }

  .nav__menu,
  .nav__actions {
    display: none;
  }
  .nav__toggle {
    display: inline-flex;
  }

  .hero {
    min-height: 100svh;
  }
  .hero__cta {
    flex-direction: column;
    flex-wrap: wrap;
    align-items: stretch;
    width: 100%;
    max-width: 320px;
    margin-inline: auto;
  }
  .hero__cta .btn {
    width: 100%;
  }

  .trust__inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .trust__items {
    gap: 1rem 1.5rem;
  }

  .problem__card,
  .use-case-card,
  .price-card,
  .start-cta__step,
  .features__panel,
  .security__panel {
    padding: 1.75rem;
  }

  .features-stripe__grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .value__grid {
    grid-template-columns: 1fr;
  }

  .start-cta__actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }
  .start-cta__actions .btn {
    width: 100%;
  }

  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }
  .footer__inner {
    grid-template-columns: 1fr 1fr;
  }

  /* ── Comparativa de planes: se elimina el scroll horizontal.
     Cada fila muestra la característica a lo ancho y los 3 planes en
     una mini-cuadrícula de 3 columnas debajo. ── */
  .compare-table {
    overflow: visible;
  }
  .compare-table__sticky,
  .compare-table__row {
    min-width: 0;
  }

  /* Header: solo los 3 planes (se omite la columna-etiqueta) y queda
     en flujo normal para no tapar las filas en pantallas chicas. */
  .compare-table__sticky {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    padding: 1.5rem 0.75rem 1rem;
    position: static;
  }
  .compare-table__sticky::before {
    display: none;
  }
  .compare-table__col--label {
    display: none;
  }
  .compare-table__col,
  .compare-table__col--featured {
    align-items: center;
    text-align: center;
    padding: 0.5rem 0.4rem 0.625rem;
    min-width: 0;
  }
  .compare-table__sub,
  .compare-table__note {
    display: none;
  }
  .compare-table__name {
    font-size: 0.9375rem;
  }
  .compare-table__price {
    flex-wrap: wrap;
    justify-content: center;
  }
  .compare-table__amount {
    font-size: 1rem;
  }
  .compare-table__col .btn {
    font-size: 0.6875rem;
    padding-inline: 0.4rem;
  }
  .compare-table__tag {
    font-size: 0.5625rem;
    padding: 0.2rem 0.45rem;
  }

  /* Filas: etiqueta a ancho completo encima de los 3 valores. */
  .compare-table__row {
    grid-template-columns: repeat(3, 1fr);
    padding-bottom: 0.5rem;
  }
  .compare-table__cell {
    padding: 0.5rem 0.35rem;
    font-size: 0.75rem;
    text-align: center;
    min-width: 0;
  }
  .compare-table__cell--label {
    grid-column: 1 / -1;
    justify-content: flex-start;
    padding: 0.75rem 1rem 0.25rem;
    font-weight: var(--fw-semibold);
    font-size: 0.8125rem;
    color: var(--color-text-strong);
  }
  .compare-table__cell--featured {
    border-left: 0;
    border-right: 0;
  }
}

@media (max-width: 480px) {
  .hero {
    padding-top: calc(var(--nav-height) + 1.5rem);
  }
  .hero__title {
    font-size: clamp(2.25rem, 9vw, 2.75rem);
  }

  .features__panel,
  .price-card,
  .testimonial-card,
  .use-case-card,
  .problem__card {
    padding: 1.5rem;
  }

  .testimonials__grid {
    grid-template-columns: 1fr;
  }

  .price-card__amount {
    font-size: 2.5rem;
  }

  .footer__cols {
    grid-template-columns: 1fr;
  }
}

/* ===================================================================
   PRODUCT CARD DESC — párrafos descriptivos
=================================================================== */
.product-card__desc,
.profile-card__desc {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--color-text-muted);
  margin: 0;
}

/* ===================================================================
   PRODUCT — Sección fusionada: Por qué KG + Para tu tipo de negocio
=================================================================== */

/* ─ Value cards ─ */
.product__value-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-bottom: 5rem;
}

.product-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition:
    transform var(--duration-base) var(--ease-out),
    box-shadow var(--duration-base) var(--ease-out);
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.09);
}

.product-card__visual {
  height: 168px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  position: relative;
  overflow: hidden;
}

.product-card__visual svg {
  width: 100%;
  height: 100%;
  max-width: 220px;
}

.product-card__visual--sync,
.product-card__visual--invoice,
.product-card__visual--reports,
.product-card__visual--compliance {
  background: linear-gradient(145deg, #003380 0%, #0047B5 35%, #0064E6 65%, #009ACC 100%);
}

.product-card__visual svg {
  position: relative;
  z-index: 1;
}

/* ── Animaciones por card ── */

/* Card 1 — sync hub gira suavemente */
.pcv-sync-hub {
  transform-origin: 110px 74px;
  animation: pcvSyncSpin 8s linear infinite;
}

@keyframes pcvSyncSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.pcv-sync-pulse {
  transform-origin: 110px 74px;
  animation: pcvSyncPulse 2.4s ease-in-out infinite;
}

@keyframes pcvSyncPulse {
  0%, 100% { transform: scale(1);    opacity: 0.14; }
  50%       { transform: scale(1.4); opacity: 0.04; }
}

/* Card 2 — badge respira + rayo parpadea */
.pcv-timbrado-badge {
  transform-origin: 166px 38px;
  animation: pcvBadgeBreath 3s ease-in-out infinite;
}

@keyframes pcvBadgeBreath {
  0%, 100% { transform: scale(1);    opacity: 1; }
  50%       { transform: scale(1.08); opacity: 0.82; }
}

.pcv-lightning {
  animation: pcvLightningBolt 2s ease-in-out infinite;
}

@keyframes pcvLightningBolt {
  0%, 100% { opacity: 0.45; }
  45%, 55%  { opacity: 0.90; }
}

/* Card 3 — barras crecen con stagger */
.pcv-bar {
  animation: pcvBarGrow 2.6s ease-in-out infinite alternate;
}

.pcv-bar--1 { transform-origin: 46px  110px; animation-delay: 0s;     }
.pcv-bar--2 { transform-origin: 68px  110px; animation-delay: 0.18s;  }
.pcv-bar--3 { transform-origin: 90px  110px; animation-delay: 0.36s;  }
.pcv-bar--4 { transform-origin: 112px 110px; animation-delay: 0.54s;  }
.pcv-bar--5 { transform-origin: 134px 110px; animation-delay: 0.72s;  }
.pcv-bar--6 { transform-origin: 156px 110px; animation-delay: 0.90s;  }
.pcv-bar--7 { transform-origin: 178px 110px; animation-delay: 1.08s;  }

@keyframes pcvBarGrow {
  from { opacity: 0.40; transform: scaleY(0.78); }
  to   { opacity: 1;    transform: scaleY(1); }
}

/* Card 4 — checks aparecen en secuencia */
.pcv-shield-check {
  animation: pcvCheckFlash 3.6s ease-in-out infinite;
}

.pcv-shield-check--1 { animation-delay: 0s;   }
.pcv-shield-check--2 { animation-delay: 0.9s; }
.pcv-shield-check--3 { animation-delay: 1.8s; }

@keyframes pcvCheckFlash {
  0%, 18%, 100% { opacity: 0.50; }
  8%             { opacity: 1; }
}

.product-card__body {
  padding: 1.5rem 1.5rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  flex: 1;
}

.product-card__body h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text-strong);
  letter-spacing: -0.015em;
  line-height: 1.35;
  margin: 0;
}

/* ─ Divisor + intro para perfiles ─ */
.product__profiles-intro {
  text-align: center;
  padding-top: 4.5rem;
  margin-bottom: 2.5rem;
  border-top: 1px solid var(--color-border-soft);
}

/* ─ Profile cards (Para tu tipo de negocio) — layout vertical como product-cards ─ */
.product__profiles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.profile-card {
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  background: var(--color-white);
  overflow: hidden;
  transition:
    transform var(--duration-base) var(--ease-out),
    box-shadow var(--duration-base) var(--ease-out);
}

.profile-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.09);
}

.profile-card__icon {
  height: 148px;
  width: 100%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #003380 0%, #0047B5 35%, #0064E6 65%, #009ACC 100%);
  color: var(--color-white);
  border-radius: 0;
  position: relative;
  overflow: hidden;
}

/* Sutil glow superior en el área del icono */
.profile-card__icon::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(77, 220, 255, 0.18), transparent 70%);
  pointer-events: none;
}

/* Radial glow behind icon */
.profile-card__icon::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 70%, rgba(0, 199, 255, 0.22), transparent 65%);
  pointer-events: none;
}

.profile-card__icon svg {
  width: 52px;
  height: 52px;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 4px 18px rgba(0, 199, 255, 0.50));
}

.profile-card__content {
  padding: 1.5rem 1.5rem 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0.875rem;
  flex: 1;
}

.profile-card h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--color-text-strong);
  letter-spacing: -0.015em;
  line-height: 1.3;
  margin: 0;
}

/* ─ Responsive ─ */
@media (max-width: 1100px) {
  .product__value-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

@media (max-width: 640px) {
  .product__value-grid {
    grid-template-columns: 1fr;
    margin-bottom: 3.5rem;
  }

  .product__profiles-grid {
    grid-template-columns: 1fr;
  }

  .profile-card__icon {
    height: 110px;
  }
}

/* ===================================================================
   ENTERPRISE SECTION (PROPUESTA #3) — Sección full-bleed entre Precios
   y Seguridad. Usa bg--brand-grid (dark gradient + grid pattern) que
   ya existe en el design system. Layout 2-col: copy + animación Data Hub.

   Accesibilidad:
   - Hereda --on-dark-text (#FFF) y --on-dark-muted (rgba 0.78) → AAA/AA.
   - Texto secundario en color sólido (#A8C8E8) en lugar de rgba bajo.
   - SVG decorativo con aria-hidden + descripción sr-only para lectores.
   - Respeta prefers-reduced-motion (animaciones pausadas).
=================================================================== */

/* Acota el .container interno para que la animación tenga aire */
.section.enterprise > .container {
  position: relative;
  z-index: 2;
}

.enterprise__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 4rem;
  align-items: center;
}

/* ─────── Columna de copy ─────── */
.enterprise__copy {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.enterprise__eyebrow {
  /* Override de .eyebrow: el pulse reemplaza la barrita ::before */
  color: var(--brand-cyan);
  margin-bottom: 0;
}

.enterprise__eyebrow::before {
  display: none;
}

.enterprise__pulse {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--brand-cyan);
  box-shadow: 0 0 0 0 rgba(0, 199, 255, 0.7);
  animation: enterprisePulse 2.2s ease-out infinite;
  flex-shrink: 0;
}

@keyframes enterprisePulse {
  0%   { box-shadow: 0 0 0 0 rgba(0, 199, 255, 0.55); }
  70%  { box-shadow: 0 0 0 11px rgba(0, 199, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 199, 255, 0); }
}

.enterprise__title {
  font-size: clamp(2rem, 3.2vw, 2.75rem);
  font-weight: var(--fw-semibold);
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--on-dark-text);
  margin: 0;
}

/* Énfasis tipográfico — color sólido en vez de gradient para contraste AAA */
.enterprise__title-accent {
  color: var(--brand-cyan);
}

.enterprise__lead {
  font-size: var(--fs-body);
  line-height: var(--lh-normal);
  color: var(--on-dark-muted);
  margin: 0;
  max-width: 46ch;
}

/* ─────── Pilares ─────── */
.enterprise__pillars {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0.5rem;
  display: grid;
  gap: 1.125rem;
}

.enterprise__pillar {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 1rem;
  align-items: start;
}

.enterprise__pillar-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(0, 199, 255, 0.16);
  border: 1px solid rgba(77, 220, 255, 0.32);
  color: var(--brand-cyan);
}

.enterprise__pillar-icon svg {
  width: 20px;
  height: 20px;
}

.enterprise__pillar strong {
  display: block;
  font-size: var(--fs-body-sm);
  font-weight: var(--fw-semibold);
  color: var(--on-dark-text);
  letter-spacing: -0.01em;
  margin-bottom: 0.125rem;
}

.enterprise__pillar p {
  font-size: var(--fs-small);
  line-height: 1.55;
  color: #C8D9EC;          /* sólido — AAA sobre el gradient brand */
  margin: 0;
}

.enterprise__pillar p strong {
  display: inline;
  color: var(--brand-cyan);
  font-weight: var(--fw-semibold);
}

.enterprise__cta {
  align-self: flex-start;
  margin-top: 0.75rem;
}

/* ─────── Visual / Animación SVG ─────── */
.enterprise__visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.enterprise-hub {
  width: 100%;
  max-width: 600px;
  height: auto;
  overflow: visible;
}

/* Nodos fuente/destino — rectángulos con borde y texto */
.enterprise-hub__node rect {
  fill: rgba(0, 36, 80, 0.55);
  stroke: rgba(77, 220, 255, 0.42);
  stroke-width: 1.2;
  backdrop-filter: blur(4px);
}

.enterprise-hub__node text {
  fill: var(--on-dark-text);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: var(--fw-semibold);
  letter-spacing: -0.01em;
}

.enterprise-hub__node-sub {
  font-size: 10px !important;
  font-weight: var(--fw-medium) !important;
  fill: #B8D2EC !important;        /* AAA sobre dark blue */
  letter-spacing: 0.02em;
}

/* Nodos source vs target — pequeña diferenciación */
.enterprise-hub__node--target rect {
  stroke: rgba(0, 199, 255, 0.5);
}

/* Hub central */
.enterprise-hub__core-label {
  fill: var(--brand-cyan);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Anillos pulsantes */
.enterprise-hub__ring {
  transform-origin: 300px 230px;
  animation: enterpriseRing 3.2s ease-out infinite;
  opacity: 0;
}
.enterprise-hub__ring--1 { animation-delay: 0s; }
.enterprise-hub__ring--2 { animation-delay: 1.06s; }
.enterprise-hub__ring--3 { animation-delay: 2.13s; }

@keyframes enterpriseRing {
  0%   { transform: scale(1);    opacity: 0.7; }
  100% { transform: scale(1.85); opacity: 0; }
}

/* ─────── Responsive ─────── */
@media (max-width: 1024px) {
  .enterprise__grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .enterprise__visual {
    order: -1;       /* visual arriba en mobile/tablet */
    max-width: 580px;
    margin: 0 auto;
  }
}

@media (max-width: 640px) {
  .enterprise__title {
    font-size: 1.75rem;
  }
  /* Todo el contenido centrado en una sola columna de lectura. */
  .enterprise__copy {
    align-items: center;
    text-align: center;
  }
  .enterprise__eyebrow {
    justify-content: center;
  }
  .enterprise__lead {
    max-width: 100%;
  }
  /* Las cards mantienen el patrón del resto de la página: icono + texto
     alineados a la izquierda (no centrados). */
  .enterprise__pillars {
    align-self: stretch;
    width: 100%;
  }
  .enterprise__pillar {
    grid-template-columns: 44px 1fr;
    justify-items: start;
    text-align: left;
    gap: 1rem;
  }
  .enterprise__cta {
    align-self: center;
    width: 100%;
    justify-content: center;
  }
  .enterprise-hub__node text {
    font-size: 13px;
  }
  .enterprise-hub__node-sub {
    font-size: 9px !important;
  }
}

/* ─────── Reduced motion ─────── */
@media (prefers-reduced-motion: reduce) {
  .enterprise__pulse,
  .enterprise-hub__ring,
  .enterprise-hub animateMotion {
    animation: none !important;
  }
  .enterprise-hub__ring {
    opacity: 0.35;
  }
}

/* ===================================================================
   PROPUESTA #1 (deprecada) — Estilos antiguos comentados en el HTML.
   Se conservan para reactivar en caso necesario sin recodificar.
=================================================================== */
.enterprise-bridge {
  display: flex;
  justify-content: center;
  margin-top: 2.5rem;
  margin-bottom: 1.25rem;
}

.enterprise-bridge__pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem 0.4rem 0.875rem;
  background: transparent;
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-pill);
  font-size: var(--fs-small);
  font-weight: var(--fw-medium);
  color: var(--color-text-soft);
}

.enterprise-bridge__pill::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gradient-brand);
}

/* Variante "enterprise" de la profile-card → ancho completo (4ª tarjeta).
   Hereda gradient strip + icon centrado de .profile-card para consistencia visual. */
.profile-card--enterprise {
  width: 100%;
}

.enterprise-card__content {
  padding: 2rem 2.25rem 2.25rem;
  gap: 1rem;
}

.enterprise-card__eyebrow {
  display: inline-block;
  width: max-content;
  font-size: var(--fs-eyebrow);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--letter-eyebrow);
  text-transform: uppercase;
  color: var(--brand-blue-medium);
}

.enterprise-card__title {
  font-size: clamp(1.375rem, 2vw, 1.625rem);
  font-weight: var(--fw-semibold);
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--color-text-strong);
  margin: 0;
}

.enterprise-card__desc {
  font-size: var(--fs-body-sm);
  line-height: var(--lh-normal);
  color: var(--color-text-muted);
  margin: 0;
  max-width: 70ch;
}

.enterprise-card__bullets {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0 0.5rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 2rem;
  row-gap: 0.875rem;
}

.enterprise-card__bullets li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 0.625rem;
  align-items: start;
  font-size: var(--fs-small);
  line-height: 1.5;
  color: var(--color-text);
}

.enterprise-card__bullets strong {
  font-weight: var(--fw-semibold);
  color: var(--color-text-strong);
}

.enterprise-card__bullet-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(0, 199, 255, 0.14);
  color: var(--brand-blue-medium);
  margin-top: 1px;
  flex-shrink: 0;
}

.enterprise-card__bullet-icon svg {
  width: 12px;
  height: 12px;
}

.enterprise-card__cta {
  margin-top: 0.75rem;
  align-self: flex-start;
}

/* Responsive */
@media (max-width: 860px) {
  .enterprise-card__bullets {
    grid-template-columns: 1fr;
    row-gap: 0.75rem;
  }
  .enterprise-card__content {
    padding: 1.75rem 1.75rem 2rem;
  }
}

@media (max-width: 640px) {
  .enterprise-bridge {
    margin-top: 2rem;
  }
  .enterprise-card__title {
    font-size: 1.25rem;
  }
  .enterprise-card__cta {
    width: 100%;
    justify-content: center;
  }
}

/* ===================================================================
   WEBAPP ANIMATIONS — Enhanced
=================================================================== */

/* Card 1: dot que viaja de desktop a mobile */
.webapp__sync-pair {
  position: relative;
}

.webapp__sync-dot {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--brand-cyan);
  box-shadow: 0 0 8px 3px rgba(0, 199, 255, 0.55);
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  animation: syncDotTravel 2.4s ease-in-out infinite;
}

@keyframes syncDotTravel {
  0%   { left: 23px;  opacity: 0; }
  8%   { opacity: 1; }
  88%  { opacity: 1; }
  100% { left: 167px; opacity: 0; }
}

/* Card 2: dos pantallas mostrando los mismos ítems en sincronía */
.webapp__card-visual--mirror {
  gap: 1.75rem;
  align-items: center;
}

/* Panel web (browser) */
.webapp__mirror-screen {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 0.6rem 0.75rem 0.7rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
}

.webapp__mirror-screen--web  { width: 88px; }
.webapp__mirror-screen--app  { width: 56px; border-radius: 14px; }

.webapp__mirror-topbar {
  height: 5px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 3px;
  margin-bottom: 0.2rem;
}

.webapp__mirror-notch {
  width: 26px;
  height: 5px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 3px;
  align-self: center;
  margin-bottom: 0.2rem;
}

/* Filas de features: mismas en web y app, mismos delays → sincrónicos */
.webapp__mirror-row {
  height: 6px;
  border-radius: 3px;
  background: var(--brand-cyan);
  opacity: 0;
  transform-origin: left;
  animation: mirrorRowIn 3s ease-in-out infinite;
}

.webapp__mirror-row--b { animation-delay: 0.5s; width: 78%; }
.webapp__mirror-row--c { animation-delay: 1s;   width: 88%; }

@keyframes mirrorRowIn {
  0%, 8%   { opacity: 0;   transform: scaleX(0.5); }
  20%, 62% { opacity: 0.82; transform: scaleX(1); }
  78%      { opacity: 0;   transform: scaleX(1); }
  100%     { opacity: 0;   transform: scaleX(0.5); }
}

/* Card 3: línea que se dibuja + chip sincronizado */
.webapp__live-graph path {
  animation: webappLineDraw 3.2s ease-in-out infinite;
}

@keyframes webappLineDraw {
  0%   { stroke-dashoffset: 135; }
  65%  { stroke-dashoffset: 0; }
  88%  { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: 135; }
}

.webapp__live-chip {
  opacity: 0;
  animation: webappChipReveal 3.2s ease-out infinite;
}

@keyframes webappChipReveal {
  0%, 55% { opacity: 0; transform: translateY(4px); }
  70%     { opacity: 1; transform: translateY(0); }
  88%     { opacity: 1; transform: translateY(0); }
  100%    { opacity: 0; transform: translateY(0); }
}

/* Card 4: íconos más grandes para que laptop e iPhone sean reconocibles */
.webapp__card-visual--journey .webapp__journey-icon {
  width: 54px;
  height: 54px;
}

.webapp__card-visual--journey .webapp__journey-icon svg {
  width: 30px;
  height: 30px;
}

/* Card 4: handoff web → app — ícono web activo → track se ilumina → ícono app activo */
.webapp__journey-track {
  flex: 1;
  height: 2px;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  position: relative;
  margin: 0 0.25rem;
  align-self: center;
  animation: trackHandoff 4s ease-in-out infinite;
}

/* El dot se oculta — el efecto está en los íconos y el track */
.webapp__journey-dot {
  display: none;
}

@keyframes trackHandoff {
  0%, 22%  { background: rgba(255, 255, 255, 0.18); box-shadow: none; }
  38%, 52% { background: rgba(0, 199, 255, 0.75); box-shadow: 0 0 8px rgba(0, 199, 255, 0.5); }
  68%, 100% { background: rgba(255, 255, 255, 0.18); box-shadow: none; }
}

/* Web: empieza activo, se apaga al llegar la app */
.webapp__journey-step:first-child .webapp__journey-icon {
  animation: deviceSource 4s ease-in-out infinite;
}

@keyframes deviceSource {
  0%, 25%  {
    background: rgba(0, 199, 255, 0.2);
    border-color: var(--brand-cyan);
    box-shadow: 0 0 16px 4px rgba(0, 199, 255, 0.4);
  }
  45%, 100% {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.22);
    box-shadow: none;
  }
}

/* App: empieza apagada, se activa tras el handoff */
.webapp__journey-step--destination .webapp__journey-icon {
  animation: deviceDest 4s ease-in-out infinite;
}

@keyframes deviceDest {
  0%, 48%  {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.22);
    box-shadow: none;
  }
  65%, 88% {
    background: rgba(0, 199, 255, 0.2);
    border-color: var(--brand-cyan);
    box-shadow: 0 0 16px 4px rgba(0, 199, 255, 0.4);
  }
  100% {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.22);
    box-shadow: none;
  }
}

/* ===================================================================
   WIDGET QR — fijo esquina inferior derecha
=================================================================== */
.qr-widget {
  position: fixed;
  /* encima del FAB de WhatsApp (56px alto + 1.5rem base + 0.875rem gap) */
  bottom: calc(1.5rem + 56px + 0.875rem);
  right: 1.5rem;
  z-index: 900;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.625rem;
  /* ancho fijo estrecho — forma vertical tipo tarjeta */
  width: 148px;
  padding: 2rem 1rem 1.25rem;
  background: var(--gradient-brand);
  border: none;
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 56px rgba(0, 100, 230, 0.40), 0 4px 16px rgba(0, 24, 60, 0.18);
  opacity: 0;
  transform: translateY(12px) scale(0.97);
  transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out);
  pointer-events: none;
}

.qr-widget[hidden] { display: flex; }

.qr-widget.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.qr-widget__close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.80);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.qr-widget__close:hover {
  background: rgba(255, 255, 255, 0.24);
  color: var(--color-white);
}

.qr-widget__qr {
  width: 116px;
  height: 116px;
  display: block;
  border-radius: var(--radius-md);
}

.qr-widget__label {
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
  margin: 0;
  text-align: center;
  line-height: 1.35;
  letter-spacing: 0.01em;
}

@media (max-width: 768px) {
  .qr-widget {
    bottom: calc(1rem + 52px + 0.875rem);
    right: 1rem;
    width: 132px;
  }
  .qr-widget__qr {
    width: 100px;
    height: 100px;
  }
}

/* ===================================================================
   HERO — Paso 5: screenshots, ISO más grande, chips rotativos
=================================================================== */

/* ISO ligeramente más grande */
.hero__stage-iso {
  width: 92px;
  height: 92px;
  background: linear-gradient(135deg, #00C7FF 0%, #0064E6 100%);
  border: none;
  border-radius: 24px;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow:
    0 20px 50px rgba(0, 24, 60, 0.70),
    0 0 0 4px rgba(0, 199, 255, 0.30),
    0 0 48px rgba(0, 100, 230, 0.50);
}

@keyframes heroIsoPulse {
  0%, 100% {
    box-shadow:
      0 20px 50px rgba(0, 24, 60, 0.70),
      0 0 0 4px rgba(0, 199, 255, 0.30),
      0 0 48px rgba(0, 100, 230, 0.50);
  }
  50% {
    box-shadow:
      0 20px 50px rgba(0, 24, 60, 0.70),
      0 0 0 14px rgba(0, 199, 255, 0.06),
      0 0 72px rgba(0, 100, 230, 0.25);
  }
}

.hero__stage-iso svg { width: 56px; height: 56px; }


/* Chip labels rotativos */
.hero__stage-chip-text {
  transition: opacity 0.28s ease;
}
.hero__chip-fade-out { opacity: 0 !important; }

@keyframes heroChipLabelIn {
  from { opacity: 0; transform: translateY(3px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero__chip-fade-in { animation: heroChipLabelIn 0.32s ease-out forwards; }

/* ===================================================================
   HG — Hero Glassmorphism interfaces (DataHub + Home)
=================================================================== */

/* ── Browser body override ── */
.hero__stage-browser-body.hg__datahub {
  flex-direction: row;
  padding: 0;
  gap: 0;
  overflow: hidden;
}

/* Sidebar */
.hg__sidebar {
  width: 22px;
  background: rgba(0, 16, 48, 0.5);
  border-right: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.5rem 0;
  gap: 0.45rem;
  flex-shrink: 0;
}

.hg__sidebar-logo {
  width: 11px;
  height: 11px;
  border-radius: 3px;
  background: var(--gradient-brand);
  margin-bottom: 0.2rem;
}

.hg__sidebar-item {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.10);
}

.hg__sidebar-item--on {
  background: rgba(0, 199, 255, 0.40);
}

/* Main content area */
.hg__main {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 0.55rem 0.65rem 0.45rem;
  gap: 0.35rem;
  min-width: 0;
  overflow: hidden;
}

/* Top bar */
.hg__topbar {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.hg__title {
  font-size: 0.5625rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  white-space: nowrap;
  flex-shrink: 0;
}

.hg__tabs {
  display: flex;
  gap: 0.2rem;
  flex: 1;
}

.hg__tab-pill {
  font-size: 0.4375rem;
  padding: 0.1rem 0.3rem;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
  white-space: nowrap;
}

.hg__tab-pill--on {
  color: var(--brand-cyan);
  background: rgba(0, 199, 255, 0.12);
  border-color: rgba(0, 199, 255, 0.30);
}

.hg__cta-btn {
  font-size: 0.4375rem;
  font-weight: 600;
  padding: 0.15rem 0.4rem;
  border-radius: 999px;
  background: rgba(0, 100, 230, 0.65);
  color: rgba(255, 255, 255, 0.92);
  white-space: nowrap;
  flex-shrink: 0;
}

/* Area chart */
.hg__chart {
  height: 32px;
  border-radius: 4px;
  overflow: hidden;
  background: rgba(0, 24, 60, 0.25);
  flex-shrink: 0;
}

.hg__chart svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Two-column table panels */
.hg__tables {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.3rem;
  flex: 1;
  min-height: 0;
}

.hg__table-panel {
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 6px;
  padding: 0.3rem 0.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.22rem;
  overflow: hidden;
}

.hg__table-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.08rem;
}

.hg__table-label {
  font-size: 0.4375rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.65);
}

.hg__table-total {
  font-size: 0.4375rem;
  font-weight: 700;
  padding: 0.08rem 0.28rem;
  border-radius: 4px;
}

.hg__table-total--emit {
  background: rgba(0, 199, 255, 0.14);
  color: var(--brand-cyan);
}

.hg__table-total--recv {
  background: rgba(0, 100, 230, 0.22);
  color: rgba(130, 190, 255, 0.9);
}

.hg__table-row {
  display: flex;
  align-items: center;
  gap: 0.28rem;
  padding: 0.18rem 0.22rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.03);
  opacity: 0;
  animation: hgRowIn 5s ease-in-out infinite;
}

.hg__row--d1 { animation-delay: 0s; }
.hg__row--d2 { animation-delay: 0.35s; }
.hg__row--d3 { animation-delay: 0.7s; }

@keyframes hgRowIn {
  0%       { opacity: 0; transform: translateX(-3px); }
  12%, 72% { opacity: 1; transform: translateX(0); }
  88%, 100%{ opacity: 0.35; transform: translateX(0); }
}

.hg__row-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  flex-shrink: 0;
}

.hg__row-dot--ok   { background: #34D399; }
.hg__row-dot--warn { background: #FBBF24; }

.hg__row-bar {
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.13);
  min-width: 0;
}

.hg__row-bar--sm { max-width: 28px; }
.hg__row-bar--md { max-width: 42px; }
.hg__row-bar--lg { max-width: 56px; }

.hg__row-amt {
  font-size: 0.4375rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.78);
  white-space: nowrap;
}

/* ── Phone body override (Home) ── */
.hero__stage-phone-body.hg__home {
  padding: 0;
  gap: 0;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.hg__status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.18rem 0.5rem;
  background: rgba(0, 80, 200, 0.55);
  font-size: 0.4375rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}

.hg__status-icons {
  display: flex;
  gap: 0.25rem;
  align-items: center;
}

.hg__signal {
  width: 10px;
  height: 5px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 1px;
}

.hg__battery {
  width: 8px;
  height: 5px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 1.5px;
  position: relative;
}

.hg__battery::after {
  content: '';
  position: absolute;
  top: 1px;
  left: 1px;
  right: 2px;
  bottom: 1px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 0.5px;
}

.hg__app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.28rem 0.5rem;
  background: linear-gradient(180deg, rgba(0, 90, 210, 0.6), rgba(0, 70, 180, 0.25));
  font-size: 0.5rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.95);
}

.hg__menu-icon,
.hg__search-icon {
  font-size: 0.5625rem;
  color: rgba(255, 255, 255, 0.7);
}

.hg__app-title {
  flex: 1;
  text-align: center;
}

.hg__period-row {
  display: flex;
  gap: 0.25rem;
  padding: 0.2rem 0.4rem;
  background: rgba(0, 60, 160, 0.25);
}

.hg__period-pill {
  font-size: 0.375rem;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 0.1rem 0.35rem;
}

.hg__phone-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.2rem;
  padding: 0.25rem 0.35rem;
  background: rgba(0, 70, 180, 0.2);
}

.hg__stat-card {
  background: rgba(0, 199, 255, 0.16);
  border: 1px solid rgba(0, 199, 255, 0.28);
  border-radius: 5px;
  padding: 0.25rem 0.3rem;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.hg__stat-card--alt {
  background: rgba(0, 100, 230, 0.22);
  border-color: rgba(100, 160, 255, 0.28);
}

.hg__stat-lbl {
  font-size: 0.3125rem;
  color: rgba(255, 255, 255, 0.55);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hg__stat-val {
  font-size: 0.4375rem;
  font-weight: 700;
  color: var(--brand-cyan);
}

.hg__phone-section {
  font-size: 0.375rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
  padding: 0.22rem 0.4rem 0.08rem;
}

.hg__doc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.18rem;
  padding: 0 0.35rem;
}

.hg__doc-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 5px;
  padding: 0.28rem 0.22rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.12rem;
  position: relative;
}

.hg__doc-check {
  position: absolute;
  top: 2px;
  right: 3px;
  font-size: 0.375rem;
  color: #34D399;
  line-height: 1;
}

.hg__doc-icon {
  width: 13px;
  height: 13px;
  border-radius: 3px;
  background: rgba(0, 199, 255, 0.18);
  border: 1px solid rgba(0, 199, 255, 0.28);
}

.hg__doc-name {
  font-size: 0.3125rem;
  color: rgba(255, 255, 255, 0.65);
  text-align: center;
}

.hg__actions-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.18rem;
  padding: 0 0.35rem;
}

.hg__action-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 5px;
  padding: 0.3rem 0.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
}

.hg__action-icon {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(0, 199, 255, 0.22);
  border: 1px solid rgba(0, 199, 255, 0.35);
}

.hg__action-icon--cancel {
  background: rgba(255, 100, 100, 0.18);
  border-color: rgba(255, 100, 100, 0.28);
}

.hg__action-label {
  font-size: 0.3125rem;
  color: rgba(255, 255, 255, 0.65);
}

/* Bottom nav */
.hg__phone-nav {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0.28rem 0.2rem 0.22rem;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  margin-top: auto;
}

.hg__nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
  font-size: 0.3125rem;
  color: rgba(255, 255, 255, 0.4);
}

.hg__nav-dot {
  width: 10px;
  height: 8px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.12);
}

.hg__nav-fab {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--gradient-brand);
  box-shadow: 0 0 10px rgba(0, 199, 255, 0.4);
  flex-shrink: 0;
}

/* ===================================================================
   HERO — Paso 5b: Layout árbol (ICONO arriba centro, DESKTOP izq, IPHONE der-abajo)
=================================================================== */

/* ── Browser: izquierda, arriba, inclinado leve a la derecha ── */
.hero__stage-browser {
  top: 30%;
  left: 2%;
  width: 70%;
  transform: perspective(1200px) rotateY(5deg) rotateX(1.5deg);
  transform-origin: left center;
}

@keyframes heroBrowserFloat {
  from { transform: perspective(1200px) rotateY(5deg)  rotateX(1.5deg) translateY(0); }
  to   { transform: perspective(1200px) rotateY(4deg)  rotateX(1deg)   translateY(-7px); }
}

/* ── Phone: derecha, abajo, inclinado leve a la izquierda ── */
.hero__stage-phone {
  top: 50%;
  right: 2%;
  bottom: auto;
  width: 132px;
  transform: perspective(1200px) rotateY(-5deg) rotateX(1.5deg);
  transform-origin: right center;
}

@keyframes heroPhoneFloat {
  from { transform: perspective(1200px) rotateY(-5deg) rotateX(1.5deg) translateY(0); }
  to   { transform: perspective(1200px) rotateY(-4deg) rotateX(1deg)   translateY(-7px); }
}

/* ── Ocultar cuadrícula del fondo del stage (queda solo el glow) ── */
.hero__stage-grid { display: none; }

/* ── Ícono: subido para dar aire a las líneas y a los devices ── */
.hero__stage-iso {
  top: 1%;
}

/* ── Chips: 4 distribuidos sutilmente por toda la animación ── */
.hero__stage-chip {
  opacity: 0;
  will-change: opacity, transform;
}

.hero__stage-chip--top {
  /* Top-right, a la altura de la esquina superior del desktop */
  top: 30%;
  right: 0%;
  left: auto;
  bottom: auto;
}

.hero__stage-chip--left {
  /* Mid-left, al costado izquierdo del desktop */
  top: 30%;
  left: -1%;
  right: auto;
  bottom: auto;
}

.hero__stage-chip--right {
  /* Pegado al desktop por su borde inferior-izquierdo */
  top: 66%;
  left: 25%;
  right: auto;
  bottom: auto;
}

.hero__stage-chip--bottom {
  /* Bottom-right, debajo del phone */
  bottom: -4%;
  right: 18%;
  top: auto;
  left: auto;
}

/* ── Animación por pares: top + right (par A), left + bottom (par B) ── */
.hero__stage-chip--top,
.hero__stage-chip--right {
  animation: heroChipPairFade 9s ease-in-out infinite;
  animation-delay: 0s;
}

.hero__stage-chip--left,
.hero__stage-chip--bottom {
  animation: heroChipPairFade 9s ease-in-out infinite;
  animation-delay: -4.5s;
}

@keyframes heroChipPairFade {
  0%, 4%        { opacity: 0; transform: translateY(8px) scale(0.96); }
  10%, 44%      { opacity: 1; transform: translateY(0) scale(1); }
  50%, 100%     { opacity: 0; transform: translateY(8px) scale(0.96); }
}

/* ── Animación sutil de líneas SVG: siempre visibles, con leve pulso ── */
#hcp-trunk {
  animation: heroLinePulse 2.4s ease-in-out infinite alternate;
}

#hcp-to-browser {
  animation: heroLinePulse 3.2s ease-in-out infinite alternate;
}

#hcp-to-phone {
  animation: heroLinePulse 3.6s ease-in-out infinite alternate;
  animation-delay: -1s;
}

@keyframes heroLinePulse {
  from { opacity: 0.75; }
  to   { opacity: 1;    }
}

/* ── Phone body: tinte oscuro sutil para que el contenido sea visible ── */
.hero__stage-phone-body.hg__home {
  background: rgba(5, 20, 60, 0.32);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

/* ── Wrapper: en desktop es transparente (passthrough). En mobile se convierte
   en la "ventana" que recorta y centra el stage escalado. ── */
.hero__stage-wrap { display: contents; }

/* La escala se controla con una variable (1 = sin escala en desktop) para poder
   combinarla con el transform del reveal sin que uno pise al otro. */
.hero__stage { --hero-scale: 1; }
.hero__stage.reveal            { transform: translateY(24px) scale(var(--hero-scale)); }
.hero__stage.reveal.is-visible { transform: translateY(0)    scale(var(--hero-scale)); }

/* ── Responsive: NO se rediseña la animación. Se toma la composición de desktop
   tal cual (mismo layout, proporciones y líneas conectoras) y se escala como una
   sola unidad con transform: scale(), igual que el SVG de Enterprise. El wrapper
   recorta el espacio sobrante para que no desborde. ── */
@media (max-width: 640px) {
  .hero__stage-wrap {
    display: flex;
    justify-content: center;
    overflow: hidden;
    width: 100%;
    /* alto = alto de referencia (620px) × escala */
    height: calc(620px * 0.70);
  }
  .hero__stage {
    --hero-scale: 0.70;
    flex: 0 0 620px;
    width: 620px;
    height: 620px;
    max-width: none;
    margin: 0;
    transform-origin: top center;
  }
}

@media (max-width: 480px) {
  .hero__stage-wrap { height: calc(620px * 0.55); }
  .hero__stage { --hero-scale: 0.55; }
}

@media (max-width: 360px) {
  .hero__stage-wrap { height: calc(620px * 0.46); }
  .hero__stage { --hero-scale: 0.46; }
}

/* ===================================================================
   AUTH — Registro / Inicio de sesión
   Fondo: degradado Kuantik con grid (siempre visible, también detrás
   del card). Card en glassmorphism — translúcido sobre la marca.
=================================================================== */
.auth-body {
  min-height: 100svh;
  height: auto;
  position: relative;
  isolation: isolate;
  color: var(--on-dark-text);
  background: linear-gradient(135deg, #001D3D 0%, #00458A 30%, #0064E6 65%, #00C7FF 100%);
}

/* Brillo radial — añade profundidad al degradado */
.auth-body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 70% 50% at 18% 20%, rgba(0, 199, 255, 0.32), transparent 65%),
    radial-gradient(ellipse 80% 60% at 82% 80%, rgba(0, 100, 230, 0.32), transparent 65%);
  pointer-events: none;
}

/* Grid sutil sobre todo el fondo */
.auth-body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 100% 80% at 50% 50%, black 30%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse 100% 80% at 50% 50%, black 30%, transparent 85%);
  pointer-events: none;
}

.auth {
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(2rem, 5vw, 4rem) clamp(1rem, 4vw, 2.5rem);
}

/* ─ Glass card ─ */
.auth__card {
  width: 100%;
  max-width: 460px;
  padding: clamp(1.75rem, 3vw, 2.5rem);
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-xl);
  box-shadow: 0 24px 60px rgba(0, 24, 60, 0.32);
  backdrop-filter: saturate(140%) blur(18px);
  -webkit-backdrop-filter: saturate(140%) blur(18px);
}

.auth__logo {
  display: inline-flex;
  color: var(--color-white);
  margin-bottom: 1.5rem;
  transition: opacity var(--duration-fast) var(--ease-out);
}

.auth__logo:hover {
  opacity: 0.85;
}

.auth__logo svg {
  height: 44px;
  width: auto;
}

.auth__head {
  margin-bottom: 1.5rem;
}

.auth__title {
  font-size: clamp(1.5rem, 2.4vw, 1.75rem);
  color: var(--color-white);
  margin: 0 0 0.375rem;
}

.auth__lead {
  font-size: var(--fs-body-sm);
  color: var(--on-dark-muted);
  margin: 0;
}

.auth__form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* ─ Fields (glass-friendly) ─ */
.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.field__label {
  font-size: var(--fs-small);
  font-weight: var(--fw-medium);
  color: var(--on-dark-text);
  letter-spacing: -0.005em;
}

.field__control {
  position: relative;
}

.field__input {
  width: 100%;
  height: 48px;
  padding: 0 1rem;
  font-family: inherit;
  font-size: var(--fs-body-sm);
  color: var(--color-white);
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--radius-md);
  transition:
    border-color var(--duration-fast) var(--ease-out),
    box-shadow var(--duration-fast) var(--ease-out),
    background var(--duration-fast) var(--ease-out);
}

.field__input::placeholder {
  color: rgba(255, 255, 255, 0.50);
  opacity: 1;
}

.field__input:hover {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.13);
}

.field__input:focus-visible {
  outline: none;
  border-color: var(--brand-cyan);
  background: rgba(255, 255, 255, 0.16);
  box-shadow: 0 0 0 3px rgba(0, 199, 255, 0.32);
}

/* Autofill — eliminar el amarillo del navegador */
.field__input:-webkit-autofill,
.field__input:-webkit-autofill:hover,
.field__input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--color-white);
  -webkit-box-shadow: 0 0 0 1000px rgba(0, 70, 160, 0.65) inset;
  transition: background-color 9999s ease-in-out 0s;
  caret-color: var(--color-white);
}

.field__input--with-toggle {
  padding-right: 3rem;
}

.field__toggle {
  position: absolute;
  top: 50%;
  right: 0.5rem;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--duration-fast) var(--ease-out), background var(--duration-fast) var(--ease-out);
}

.field__toggle:hover {
  color: var(--color-white);
  background: rgba(255, 255, 255, 0.10);
}

.field__toggle-icon {
  width: 20px;
  height: 20px;
}

.field__toggle-icon--hide {
  display: none;
}

.field__toggle[aria-pressed="true"] .field__toggle-icon--show {
  display: none;
}

.field__toggle[aria-pressed="true"] .field__toggle-icon--hide {
  display: block;
}

.field__error {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8125rem;
  color: #FFC4C4;
  margin: 0;
}

.field__error[hidden] {
  display: none;
}

.field__error::before {
  content: '';
  display: inline-block;
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='10'/><line x1='12' y1='8' x2='12' y2='12'/><line x1='12' y1='16' x2='12.01' y2='16'/></svg>") center/contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='10'/><line x1='12' y1='8' x2='12' y2='12'/><line x1='12' y1='16' x2='12.01' y2='16'/></svg>") center/contain no-repeat;
}

.field.is-invalid .field__input {
  border-color: #FF8A8A;
  box-shadow: 0 0 0 3px rgba(255, 138, 138, 0.20);
}

/* ─ Submit + soporte ─ */
.auth__submit {
  width: 100%;
  margin-top: 0.5rem;
}

.auth__legal {
  font-size: 0.8125rem;
  color: var(--on-dark-muted);
  line-height: var(--lh-normal);
  text-align: center;
  margin: 0;
}

.auth__legal a {
  color: var(--color-white);
  font-weight: var(--fw-medium);
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  padding-bottom: 1px;
  transition: opacity var(--duration-fast) var(--ease-out);
}

.auth__legal a:hover {
  opacity: 0.78;
}

.auth__alt {
  margin: 1.5rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  text-align: center;
  font-size: var(--fs-body-sm);
  color: var(--on-dark-muted);
}

.auth__alt a {
  color: var(--color-white);
  font-weight: var(--fw-semibold);
  margin-left: 0.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  padding-bottom: 1px;
  transition: opacity var(--duration-fast) var(--ease-out);
}

.auth__alt a:hover {
  opacity: 0.78;
}

/* ─ Responsive ─ */
@media (max-width: 560px) {
  .auth {
    padding: clamp(1.5rem, 5vw, 2.5rem) 1rem;
    align-items: flex-start;
  }
  .auth__card {
    padding: 1.5rem 1.25rem;
    border-radius: var(--radius-lg);
  }
  .auth__logo svg {
    height: 38px;
  }
  .field-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .auth__title {
    font-size: 1.375rem;
  }
}

/* ===================================================================
   RESPONSIVE — fixes complementarios para tablet y mobile
   (no reemplaza las reglas existentes; refina huecos identificados)
=================================================================== */

/* Tablet medio — pricing/value/use-cases pueden mantener 2 columnas
   un poco antes de colapsar a 1 (mejora la transición 1024 → 768). */
@media (max-width: 900px) {
  .testimonials__grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ── Testimonios en mobile: carrusel horizontal con scroll-snap.
   Seis cards apilados resultan en una columna muy larga; el carrusel
   permite deslizar lateralmente y deja asomar la siguiente tarjeta. ── */
@media (max-width: 640px) {
  .testimonials__grid {
    display: flex;
    grid-template-columns: none;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 0.5rem;
    margin-bottom: 2.5rem;
  }
  .testimonials__grid::-webkit-scrollbar {
    display: none;
  }
  .testimonial-card {
    flex: 0 0 86%;
    min-width: 0;
    scroll-snap-align: start;
  }
}

/* Tablet bajo / mobile grande */
@media (max-width: 768px) {
  /* Hero — perks se centran y respiran */
  .hero__perks {
    justify-content: center;
    row-gap: 0.5rem;
  }
  .hero__title {
    line-height: 1.1;
  }
  .hero__lead {
    font-size: 1.0625rem;
  }

  /* Trust — ajusta gap y tipografía */
  .trust__items {
    justify-content: flex-start;
  }

  /* Pricing toggle — evita overflow horizontal en mobile */
  .pricing__toggle-wrap {
    margin-bottom: var(--space-10);
  }
  .pricing__toggle {
    width: 100%;
    max-width: 360px;
    justify-content: center;
  }
  .pricing__toggle-btn {
    flex: 1;
    justify-content: center;
    padding: 0 0.75rem;
  }

  /* Add-ons — apilar */
  .pricing__addons-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  /* Use-cases — 1 columna */
  .use-cases__grid {
    grid-template-columns: 1fr;
  }

  /* Webapp grid — apila ya en tablet */
  .webapp__grid {
    gap: 1rem;
  }

  /* Footer — apila brand + 2 columnas debajo */
  .footer {
    padding: 3.5rem 0 1.5rem;
  }
  .footer__inner {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  .footer__brand {
    grid-column: 1 / -1;
  }

  /* Feature-modal — sin padding excesivo en mobile */
  .feature-modal__dialog {
    border-radius: var(--radius-lg);
  }

  /* Section-head — leads más estrechos */
  .section-head__lead {
    font-size: 1rem;
  }

  /* CTAs grandes en mobile — full width */
  .start-cta__finale .btn,
  .pricing .btn--lg {
    width: 100%;
  }
}

/* Mobile pequeño */
@media (max-width: 560px) {
  /* Footer — todo en una columna */
  .footer__inner {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
  .footer__social {
    flex-wrap: wrap;
  }
  .footer__bottom {
    text-align: left;
  }
}

/* Mobile chico — pulir tipografía y espacios */
@media (max-width: 480px) {
  :root {
    --container-x: 1rem;
  }

  .hero__title {
    font-size: clamp(2rem, 8.5vw, 2.5rem);
    line-height: 1.1;
  }
  .hero__lead {
    font-size: 1rem;
  }
  .hero__perks {
    gap: 0.5rem 1rem;
    font-size: 0.8125rem;
  }

  /* Sección heads */
  .section-head {
    margin-bottom: var(--space-8);
  }

  /* Tipografía global más compacta */
  h2 {
    font-size: clamp(1.625rem, 6vw, 2rem);
  }
  h3 {
    font-size: 1.25rem;
  }

  /* Cards — padding compacto */
  .product-card__visual,
  .profile-card__icon {
    height: 132px;
  }

  /* Pricing — precio se ajusta */
  .price-card {
    padding: 1.75rem 1.5rem;
  }
  .price-card__amount {
    font-size: 2.5rem;
  }

  /* QR widget — oculto en pantallas muy chicas */
  .qr-widget {
    display: none !important;
  }

  /* FAQ — tipografía y padding */
  .faq__item summary {
    padding: 1rem 1.125rem;
    font-size: var(--fs-body-sm);
    gap: 0.625rem;
  }
  .faq__answer {
    padding: 0 1.125rem 1.125rem;
  }
  .faq__chev {
    width: 26px;
    height: 26px;
  }

  /* Logos-bar — más compactos */
  .logos-bar {
    gap: 1.5rem 2rem;
  }

  /* Nav mobile — full width */
  .nav__mobile-actions .btn {
    width: 100%;
  }

  /* FAB WhatsApp — un poco más chico */
  .fab-whatsapp {
    width: 48px;
    height: 48px;
  }
}

/* Mobile muy chico (≤360px) — última red de seguridad */
@media (max-width: 360px) {
  .hero__cta {
    max-width: 100%;
  }
  .price-card__amount {
    font-size: 2.25rem;
  }
}
