/* =============================================================
   NEXXO — Landing styles
   Paleta marca: morado #6B4FA3 · menta #5DBFA9
   Tipografía: Nunito (redondeada, encaja con identidad del logo)
   ============================================================= */

:root {
  --purple: #6b4fa3;
  --purple-600: #5a3f8e;
  --purple-700: #44306e;
  --purple-100: #ece5f7;
  --purple-50: #f5f1fb;

  --mint: #5dbfa9;
  --mint-600: #45a892;
  --mint-100: #e1f4ee;
  --mint-50: #eefaf6;

  --ink: #1e1a2e;
  --ink-2: #3b3552;
  --muted: #6f6985;
  --line: #e9e5f1;

  --bg: #ffffff;
  --bg-soft: #faf8fe;
  --bg-cream: #fdfcfa;
  --bg-dark: #1f1a35;
  --bg-deep: #15102b;

  --radius-sm: 14px;
  --radius: 22px;
  --radius-lg: 32px;
  --radius-pill: 999px;

  --shadow-sm: 0 8px 22px rgba(31, 24, 75, 0.06);
  --shadow-md: 0 22px 50px rgba(60, 40, 130, 0.12);
  --shadow-lg: 0 38px 80px rgba(60, 40, 130, 0.18);

  --max: 1180px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family:
    "Poppins",
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    Helvetica,
    Arial,
    sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
/* Aristotelica (premium) sustituida por Quicksand para titulares — geométrica + redondeada */
h1,
h2,
h3,
h4,
h5,
.eyebrow,
.btn,
.nav-links a,
.tier-badge,
.tier-discount,
.step-num,
.stat-num,
.logo-text,
.marquee-chip,
.feature h3,
.step h3,
.category h4 {
  font-family: "Quicksand", "Poppins", system-ui, sans-serif;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ============ Tipografía ============ */
h1,
h2,
h3,
h4,
h5 {
  margin: 0 0 0.5em;
  line-height: 1.18;
  letter-spacing: -0.01em;
  font-weight: 800;
  color: var(--ink);
}
h1 {
  font-size: clamp(2.3rem, 5.2vw, 3.7rem);
  font-weight: 900;
}
h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.7rem);
}
h3 {
  font-size: 1.3rem;
}
.lead {
  font-size: 1.12rem;
  color: var(--muted);
  max-width: 56ch;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--purple);
  background: var(--purple-100);
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-pill);
  margin-bottom: 1rem;
}
.eyebrow::before {
  content: "✕";
  font-weight: 900;
  color: var(--mint);
  font-size: 0.85rem;
  letter-spacing: 0;
}

.accent-mint {
  color: var(--mint-600);
}
.accent-purple {
  color: var(--purple);
}

.brand-x {
  color: var(--mint-600);
  font-weight: 900;
  display: inline-block;
  transform: translateY(0.05em);
}

/* ============ Botones ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.95rem 1.5rem;
  border-radius: var(--radius-pill);
  font-weight: 800;
  font-size: 1rem;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  transition:
    transform 0.2s var(--ease),
    box-shadow 0.2s var(--ease),
    background 0.2s var(--ease);
}
.btn-sm {
  padding: 0.65rem 1.2rem;
  font-size: 0.92rem;
}
.btn-primary {
  background: var(--purple);
  color: #fff;
  box-shadow: 0 14px 28px rgba(107, 79, 163, 0.28);
}
.btn-primary:hover {
  transform: translateY(-2px);
  background: var(--purple-600);
  box-shadow: 0 18px 36px rgba(107, 79, 163, 0.38);
}
.btn-ghost {
  background: transparent;
  color: var(--purple);
  border: 2px solid var(--purple-100);
}
.btn-ghost:hover {
  background: var(--purple-100);
}

.store-btn {
  display: inline-block;
  transition: transform 0.2s var(--ease);
}
.store-btn:hover {
  transform: translateY(-2px);
}
.store-btn img {
  height: 54px;
}

/* ============ Header / Nav ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s var(--ease);
}
.site-header.scrolled {
  border-bottom-color: var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.9rem 24px;
}
.logo img {
  height: 38px;
  width: auto;
  display: block;
}
.nav-links {
  display: flex;
  gap: 1.8rem;
}
.nav-links a {
  font-weight: 700;
  color: var(--ink-2);
  font-size: 0.95rem;
  transition: color 0.2s var(--ease);
}
.nav-links a:hover {
  color: var(--purple);
}
.header-services-bar {
  border-top: 1px solid var(--line);
  overflow: visible;
}
.header-services-bar .container {
  padding: 10px 24px;
}
/* Header sticky con dos filas: compensar saltos a anclas */
section[id] {
  scroll-margin-top: 130px;
}
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  width: 42px;
  height: 42px;
  flex-direction: column;
  gap: 5px;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}
.nav-toggle span {
  width: 24px;
  height: 2.5px;
  background: var(--ink);
  border-radius: 2px;
  transition:
    transform 0.2s var(--ease),
    opacity 0.2s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============ Hero ============ */
.hero {
  position: relative;
  padding: 88px 0 80px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: -10% -10% auto -10%;
  height: 130%;
  background:
    radial-gradient(
      50% 40% at 85% 20%,
      rgba(93, 191, 169, 0.22) 0%,
      transparent 60%
    ),
    radial-gradient(
      55% 45% at 10% 40%,
      rgba(107, 79, 163, 0.18) 0%,
      transparent 60%
    ),
    linear-gradient(180deg, #fbf9ff 0%, #ffffff 100%);
  z-index: -2;
}
/* X decorativa gigante de marca */
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  background-image: url("../assets/img/icon.png");
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0.06;
  z-index: -1;
  pointer-events: none;
}
.hero::before {
  top: -60px;
  left: -120px;
  transform: rotate(-12deg);
}
.hero::after {
  bottom: -60px;
  right: -120px;
  transform: rotate(8deg);
  width: 280px;
  height: 280px;
  opacity: 0.05;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 60px;
  align-items: center;
}
.hero-copy h1 {
  margin-top: 0.6rem;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin: 1.8rem 0 1.4rem;
}
.hero-visual {
  position: relative;
}
.phone-mock {
  width: 100%;
  aspect-ratio: 9/17;
  max-width: 340px;
  margin-inline: auto;
  background: linear-gradient(165deg, var(--purple) 0%, var(--mint) 130%);
  border-radius: 42px;
  padding: 14px;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.phone-mock::before {
  content: "";
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 110px;
  height: 24px;
  background: #15102b;
  border-radius: 0 0 14px 14px;
  z-index: 2;
}
.phone-mock img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 30px;
  background: #fff;
  position: relative;
  z-index: 1;
}
.floating-card {
  position: absolute;
  background: #fff;
  border-radius: 18px;
  box-shadow: var(--shadow-md);
  padding: 0.85rem 1.05rem;
  display: flex;
  gap: 0.8rem;
  align-items: center;
  min-width: 210px;
  font-weight: 700;
}
.floating-card strong {
  display: block;
  font-size: 0.95rem;
  color: var(--ink);
}
.floating-card small {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
}
.floating-card .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.dot-mint {
  background: var(--mint);
  box-shadow: 0 0 0 5px rgba(93, 191, 169, 0.25);
}
.card-1 {
  top: 8%;
  left: -10%;
  animation: floaty 5s ease-in-out infinite;
}
.card-2 {
  bottom: 12%;
  right: -8%;
  animation: floaty 6s ease-in-out infinite 0.8s;
}
.badge-diamond {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-pill);
  background: var(--purple);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

@keyframes floaty {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* ============ Trust strip ============ */
.trust {
  padding: 22px 0;
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.trust-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 2rem;
}
.trust-list li {
  position: relative;
  padding-left: 1.7rem;
  color: var(--ink-2);
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
}
.trust-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 22px;
  height: 22px;
  margin-top: -11px;
  border-radius: 999px;
  background: var(--mint-100);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%2336a18b' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'><polyline points='4.5 10.5 8.5 14.5 15.5 6.5'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 14px 14px;
}

/* ============ Secciones ============ */
.section {
  padding: 100px 0;
  position: relative;
}
.section-alt {
  background: var(--bg-soft);
}
.section-dark {
  background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-deep) 100%);
  color: #ede9f8;
}
.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}
.section-head p {
  color: var(--muted);
  margin-top: 0.3rem;
}
.section-head-light h2 {
  color: #fff;
}
.section-head-light p {
  color: #b9b3d4;
}
.section-head-light .eyebrow {
  background: rgba(93, 191, 169, 0.16);
  color: var(--mint);
}
.section-head-light .eyebrow::before {
  color: var(--mint);
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}
.two-col p {
  color: var(--muted);
}

/* ============ Features grid ============ */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.feature {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  transition:
    transform 0.25s var(--ease),
    box-shadow 0.25s var(--ease),
    border-color 0.25s var(--ease);
}
.feature:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.feature h3 {
  margin: 0.8rem 0 0.3rem;
  font-size: 1.1rem;
}
.feature p {
  color: var(--muted);
  font-size: 0.96rem;
  margin: 0;
}
.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 1.2rem;
  color: #fff;
  letter-spacing: -0.02em;
}
.feature-icon.mint {
  background: var(--mint);
}
.feature-icon.purple {
  background: var(--purple);
}
.feature-icon.mint-soft {
  background: var(--mint-100);
  color: var(--mint-600);
}
.feature-icon.purple-soft {
  background: var(--purple-100);
  color: var(--purple);
}

/* ============ Categorías (píldoras de la barra de servicios del header) ============ */
.cat-pills {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.category {
  position: relative;
  flex: 0 0 auto;
}
.cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  font: inherit;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.82rem;
  cursor: pointer;
  /* iOS: trata el toque como tap (no como inicio de scroll/doble-tap),
     evita que el carrusel horizontal se "trague" el clic del desplegable */
  touch-action: manipulation;
  transition:
    background 0.2s var(--ease),
    color 0.2s var(--ease),
    box-shadow 0.2s var(--ease),
    border-color 0.2s var(--ease),
    transform 0.2s var(--ease);
  white-space: nowrap;
  line-height: 1;
  box-shadow: 0 1px 2px rgba(20, 18, 40, 0.04);
}
.cat-pill:hover {
  box-shadow: 0 4px 14px rgba(20, 18, 40, 0.08);
  border-color: rgba(107, 79, 163, 0.25);
  transform: translateY(-1px);
}
.category[data-open] .cat-pill {
  background: var(--purple);
  color: #fff;
  border-color: var(--purple);
  box-shadow: 0 6px 18px rgba(107, 79, 163, 0.35);
}
.cat-pill-ic {
  font-size: 1rem;
  line-height: 1;
}
.cat-pill-name {
  line-height: 1;
}

/* Estilos legacy del grid (se mantienen por compatibilidad si se reutilizan) */
.category-icon {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  margin: 0 auto 0.8rem;
  display: grid;
  place-items: center;
  font-size: 1.6rem;
}
.category-icon.purple {
  background: var(--purple-100);
  color: var(--purple);
}
.category-icon.mint {
  background: var(--mint-100);
  color: var(--mint-600);
}
.category h4 {
  font-size: 0.98rem;
  margin: 0;
  font-weight: 700;
  color: var(--ink);
}
.category-chevron {
  display: inline-block;
  margin-left: 2px;
  opacity: 0.7;
  transition: transform 0.25s var(--ease);
  flex-shrink: 0;
}
.category[data-open] .category-chevron {
  transform: rotate(180deg);
  opacity: 1;
}
.category[data-open] .cat-pill .category-chevron {
  color: #fff;
}
.category-subs {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  background: #fff;
  border-radius: 16px;
  padding: 8px;
  box-shadow: var(--shadow-lg, 0 18px 48px rgba(20, 18, 40, 0.18));
  border: 1px solid var(--line);
  min-width: 240px;
  max-width: 280px;
  z-index: 30;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition:
    opacity 0.2s var(--ease),
    transform 0.2s var(--ease),
    visibility 0s linear 0.2s;
  text-align: left;
}
.category-subs.is-open {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  transition:
    opacity 0.2s var(--ease),
    transform 0.2s var(--ease),
    visibility 0s linear 0s;
}
.category-subs::before {
  content: "";
  position: absolute;
  top: -7px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 12px;
  height: 12px;
  background: #fff;
  border-left: 1px solid var(--line);
  border-top: 1px solid var(--line);
  border-top-left-radius: 3px;
}
.sub {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition:
    background 0.15s var(--ease),
    color 0.15s var(--ease);
}
.sub + .sub {
  margin-top: 2px;
}
.sub:hover,
.sub:focus-visible {
  background: var(--purple-100);
  color: var(--purple);
  outline: none;
}
.sub-ic {
  font-size: 1.1rem;
  line-height: 1;
  width: 22px;
  text-align: center;
  flex-shrink: 0;
}

/* Si no caben en una línea (tablet / móvil), permitir scroll horizontal */
@media (max-width: 980px) {
  .hero-cat-wrap {
    margin-left: -16px;
    margin-right: -16px;
  }
  .cat-pills {
    justify-content: flex-start;
    overflow-x: auto;
    overflow-y: visible;
    padding: 4px 16px 10px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
  }
  .cat-pills::-webkit-scrollbar {
    display: none;
  }
  .category {
    scroll-snap-align: start;
  }

  /*
   * En móvil la barra de píldoras tiene overflow-x: auto, lo que obliga al
   * navegador a tratar overflow-y como auto y recorta cualquier popover que
   * caiga por debajo. Para que el desplegable no quede oculto detrás del hero
   * lo anclamos a la barra de servicios (no a la pill): como
   * .header-services-bar es ancestro del contenedor con scroll y tiene
   * overflow: visible, el popover ya no se recorta y se muestra a todo el ancho.
   */
  .header-services-bar {
    position: relative;
  }
  .category {
    position: static;
  }
  .category-subs {
    position: absolute;
    top: calc(100% + 8px);
    left: 12px;
    right: 12px;
    width: auto;
    min-width: 0;
    max-width: none;
    transform: translateY(-6px);
  }
  .category-subs.is-open {
    transform: translateY(0);
  }
  .category-subs::before {
    display: none;
  }
  /* Cuando el desplegable se reubica fuera del carrusel (ver main.js) cuelga
     directamente de .header-services-bar para que iOS no lo recorte. */
  .header-services-bar > .category-subs {
    left: 16px;
    right: 16px;
  }
}

/* ============ Steps ============ */
.how-title {
  font-size: clamp(2.2rem, 4.4vw, 3.2rem);
}
.how-block + .how-block {
  margin-top: 72px;
  padding-top: 64px;
  border-top: 1px solid var(--line);
}
.how-block-head {
  text-align: center;
  margin-bottom: 34px;
}
.how-block-head h3 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  margin: 0;
}
.how-tag {
  display: inline-block;
  margin-bottom: 0.6rem;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(93, 191, 169, 0.14);
  color: var(--mint);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.how-tag-purple {
  background: rgba(107, 79, 163, 0.12);
  color: var(--purple);
}
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.step {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
  transition:
    transform 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
}
.step:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}
.step::after {
  content: "✕";
  position: absolute;
  top: 18px;
  right: 22px;
  color: var(--mint);
  opacity: 0.25;
  font-weight: 900;
  font-size: 1.6rem;
}
.step-num {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--purple);
  margin-bottom: 0.4rem;
  letter-spacing: -0.02em;
}
.step p {
  color: var(--muted);
  margin: 0;
}
.steps-pro .step-num {
  color: var(--mint);
}
.steps-pro .step::after {
  color: var(--purple);
}

/* ============ Screens carousel ============ */
.screens {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding: 10px 4px 26px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.screens::-webkit-scrollbar {
  height: 8px;
}
.screens::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.18);
  border-radius: 999px;
}
.screen-phone {
  flex: 0 0 auto;
  width: 250px;
  aspect-ratio: 9/19;
  background: linear-gradient(165deg, var(--purple) 0%, var(--mint) 130%);
  border-radius: 38px;
  padding: 10px;
  box-shadow: var(--shadow-lg);
  position: relative;
  scroll-snap-align: center;
  transition: transform 0.35s var(--ease);
}
.screen-phone:hover {
  transform: translateY(-6px);
}
.screen-phone::before {
  content: "";
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 84px;
  height: 18px;
  background: #15102b;
  border-radius: 0 0 12px 12px;
  z-index: 2;
}
.screen-phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 28px;
  background: #fff;
  display: block;
  position: relative;
  z-index: 1;
}

/* ============ Tiers ============ */
.tier-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.tier-grid.tier-grid-4 {
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.tier {
  border-radius: var(--radius-lg);
  padding: 38px 26px;
  background: #fff;
  border: 1px solid var(--line);
  text-align: center;
  position: relative;
  overflow: hidden;
  transition:
    transform 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
}
.tier:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
}
.tier-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}
.tier-badge::before {
  content: "✕";
}
.tier-discount {
  font-size: 3.2rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  margin-bottom: 0.35rem;
  line-height: 1;
}
.tier-range {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.9rem;
}
.tier-diamond .tier-range {
  color: rgba(255, 255, 255, 0.85);
}
.tier p {
  color: var(--muted);
  margin: 0;
  font-size: 0.96rem;
}
.tier-note {
  margin: 22px auto 0;
  max-width: 720px;
  text-align: center;
  color: var(--muted);
  font-size: 0.92rem;
}
.tier-base .tier-badge {
  background: #eceaf2;
  color: #6f6985;
}
.tier-base .tier-discount {
  color: #6f6985;
}
.tier-bronze .tier-badge {
  background: #fbe7d6;
  color: #b05a1b;
}
.tier-bronze .tier-discount {
  color: #b05a1b;
}
.tier-silver .tier-badge {
  background: #e5e2ef;
  color: #5a5470;
}
.tier-silver .tier-discount {
  color: #5a5470;
}
.tier-diamond {
  background: linear-gradient(160deg, var(--purple) 0%, var(--purple-700) 100%);
  color: #fff;
  border-color: transparent;
}
.tier-diamond .tier-badge {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}
.tier-diamond .tier-discount {
  color: var(--mint);
}
.tier-diamond p {
  color: #d8d2ee;
}

/* ============ Commission block ============ */
.commission-block {
  margin: 1.6rem 0 1.8rem;
  padding: 1.2rem 1.3rem;
  background: var(--purple-50);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.commission-title {
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 0.7rem;
}
.commission-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}
.commission-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-weight: 600;
  color: var(--ink);
}
.commission-range {
  font-size: 0.95rem;
  color: var(--ink-2);
}
.commission-value {
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--purple);
  letter-spacing: -0.01em;
}

/* ============ Pro panel ============ */
.pro-visual {
  display: flex;
  justify-content: center;
  position: relative;
}
.pro-visual::before {
  content: "";
  position: absolute;
  inset: 10% 10%;
  z-index: -1;
  background: var(--mint-100);
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.8;
}
.pro-card {
  width: 100%;
  max-width: 360px;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--line);
}
.pro-card-head {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 12px;
}
.pro-avatar {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: var(--purple-100);
  display: grid;
  place-items: center;
  color: var(--purple);
  font-weight: 900;
  font-size: 1.2rem;
}
.pro-row {
  display: flex;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
  font-weight: 700;
}
.pro-row:last-child {
  border-bottom: 0;
}
.pro-row span {
  color: var(--ink);
}
.pro-row .star {
  color: #f5a524;
}
.chip {
  background: var(--purple);
  color: #fff;
  padding: 0.25rem 0.7rem;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}
.check-list {
  margin: 1.2rem 0 1.8rem;
}
.check-list li {
  padding: 0.55rem 0 0.55rem 2rem;
  position: relative;
  color: var(--ink-2);
  font-weight: 600;
}
.check-list li::before {
  content: "✕";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  background: var(--mint-100);
  color: var(--mint-600);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 0.8rem;
}

/* ============ CTA final ============ */
.cta-final {
  padding: 80px 0 110px;
}
.cta-box {
  position: relative;
  overflow: hidden;
  text-align: center;
  background: linear-gradient(135deg, var(--purple) 0%, var(--purple-700) 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 72px 28px;
  box-shadow: var(--shadow-lg);
}
.cta-box::before,
.cta-box::after {
  content: "";
  position: absolute;
  background-image: url("../assets/img/icon-white.png");
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0.08;
  pointer-events: none;
}
.cta-box::before {
  width: 240px;
  height: 240px;
  top: -40px;
  left: -40px;
  transform: rotate(-14deg);
}
.cta-box::after {
  width: 220px;
  height: 220px;
  bottom: -50px;
  right: -40px;
  transform: rotate(12deg);
}
.cta-box h2 {
  color: #fff;
  position: relative;
}
.cta-box .accent-mint {
  color: var(--mint);
}
.cta-box p {
  color: rgba(255, 255, 255, 0.85);
  max-width: 60ch;
  margin: 0 auto 1.6rem;
  font-weight: 600;
  position: relative;
}
.cta-box .cta-row {
  justify-content: center;
  position: relative;
}

/* ============ Footer ============ */
.site-footer {
  background: var(--bg-deep);
  color: #c5c2e0;
  padding: 70px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.site-footer h5 {
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 1rem;
  letter-spacing: 0.04em;
  font-weight: 800;
}
.site-footer ul li {
  margin-bottom: 0.6rem;
  font-size: 0.94rem;
  font-weight: 600;
}
.site-footer ul li a {
  color: #c5c2e0;
  transition: color 0.2s var(--ease);
}
.site-footer ul li a:hover {
  color: var(--mint);
}
.footer-tag {
  color: #9a95bc;
  max-width: 36ch;
  margin: 0.9rem 0 0;
  font-weight: 600;
}
.logo-footer img {
  height: 40px;
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 20px;
  text-align: center;
  color: #8784a8;
  font-weight: 600;
}

/* ============ Legal pages ============ */
.legal-page {
  padding: 70px 0 110px;
}
.legal-page h1 {
  margin-bottom: 1rem;
}
.legal-page h2 {
  font-size: 1.4rem;
  margin-top: 2.2rem;
  color: var(--ink);
}
.legal-page p,
.legal-page li {
  color: var(--ink-2);
}
.legal-page section {
  margin-bottom: 1.4rem;
}
.legal-page .container {
  max-width: 820px;
}
.legal-page ul li {
  padding: 0.35rem 0 0.35rem 1.4rem;
  position: relative;
}
.legal-page ul li::before {
  content: "✕";
  color: var(--mint-600);
  font-weight: 900;
  position: absolute;
  left: 0;
  top: 0.35rem;
}

/* ============ Responsive ============ */
@media (max-width: 980px) {
  .hero-grid,
  .two-col {
    grid-template-columns: 1fr;
    gap: 50px;
  }
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .category-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .steps {
    grid-template-columns: 1fr;
  }
  .how-block + .how-block {
    margin-top: 48px;
    padding-top: 44px;
  }
  .tier-grid {
    grid-template-columns: 1fr;
  }
  .tier-grid.tier-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .two-col.reverse > div:first-child {
    order: 2;
  }
}

@media (max-width: 720px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 1rem 24px 1.4rem;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
  }
  .nav-links.open {
    display: flex;
  }
  .nav-toggle {
    display: inline-flex;
  }
  .site-header .btn {
    display: none;
  }
  .section {
    padding: 70px 0;
  }
  .hero {
    padding: 32px 0 60px;
  }
  h1 {
    font-size: clamp(1.95rem, 7.5vw, 2.6rem);
    line-height: 1.15;
  }
  h2 {
    font-size: clamp(1.55rem, 6vw, 2.1rem);
  }
  .lead {
    font-size: 1rem;
  }
  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .feature-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .card-1 {
    left: 0;
    top: 4%;
    min-width: 180px;
  }
  .card-2 {
    right: 0;
    bottom: 6%;
    min-width: 180px;
  }
  .store-btn img {
    height: 48px;
  }
  .logo img {
    height: 32px;
  }
  /* compensar header sticky al saltar a anclas internas */
  section[id] {
    scroll-margin-top: 130px;
  }
  .screen-phone {
    width: 220px;
  }
}

/* =============================================================
   Efectos visuales (parallax, blobs, marquee, reveal stagger, stats)
   ============================================================= */

/* Blobs animados de fondo */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  z-index: -1;
  pointer-events: none;
  will-change: transform;
  opacity: 0.55;
}
.blob-purple {
  background: radial-gradient(
    circle,
    rgba(107, 79, 163, 0.55),
    transparent 70%
  );
}
.blob-mint {
  background: radial-gradient(
    circle,
    rgba(93, 191, 169, 0.55),
    transparent 70%
  );
}
.blob-sm {
  width: 280px;
  height: 280px;
}
.blob-md {
  width: 420px;
  height: 420px;
}
.blob-lg {
  width: 560px;
  height: 560px;
  opacity: 0.45;
}

@keyframes blobPulse {
  0%,
  100% {
    transform: scale(1) translate(0, 0);
  }
  50% {
    transform: scale(1.12) translate(20px, -10px);
  }
}
.blob-anim {
  animation: blobPulse 12s ease-in-out infinite;
}
.blob-anim-2 {
  animation: blobPulse 16s ease-in-out infinite reverse;
}

/* X decorativa parallax (usa icono PNG) */
.deco-x {
  position: absolute;
  background-image: url("../assets/img/icon.png");
  background-repeat: no-repeat;
  background-size: contain;
  z-index: -1;
  pointer-events: none;
  will-change: transform;
}
.deco-x-white {
  background-image: url("../assets/img/icon-white.png");
}
.deco-x-sm {
  width: 120px;
  height: 120px;
  opacity: 0.12;
}
.deco-x-md {
  width: 220px;
  height: 220px;
  opacity: 0.09;
}
.deco-x-lg {
  width: 360px;
  height: 360px;
  opacity: 0.07;
}

/* Sobrescribir hero::before/::after del CSS anterior (ya teníamos X estáticas).
   Las nuevas .deco-x parallax sustituyen las pseudo-elementos. */
.hero::before,
.hero::after {
  content: none !important;
}

/* Reveal con stagger */
.reveal-init {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.75s var(--ease),
    transform 0.75s var(--ease);
  will-change: opacity, transform;
}
.reveal-in {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal-init {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Marquee infinita */
.marquee {
  overflow: hidden;
  position: relative;
  padding: 14px 0;
  mask-image: linear-gradient(
    90deg,
    transparent,
    #000 8%,
    #000 92%,
    transparent
  );
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent,
    #000 8%,
    #000 92%,
    transparent
  );
}
.marquee-track {
  display: flex;
  gap: 18px;
  width: max-content;
  animation: marqueeScroll 40s linear infinite;
}
.marquee.paused .marquee-track {
  animation-play-state: paused;
}
@keyframes marqueeScroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}
.marquee-chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.8rem 1.4rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  font-weight: 700;
  color: var(--ink);
  font-size: 1rem;
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
}
.marquee-chip .ic {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--purple-100);
  color: var(--purple);
  display: grid;
  place-items: center;
  font-size: 1rem;
}
.marquee-chip:nth-child(even) .ic {
  background: var(--mint-100);
  color: var(--mint-600);
}

/* Hero phone-mock con transición suave para tilt */
.phone-mock {
  transition: transform 0.25s var(--ease);
  transform-style: preserve-3d;
}
.phone-mock img {
  transform: translateZ(20px);
}

/* Stats */
.stats {
  padding: 90px 0;
  background: linear-gradient(135deg, #faf8fe 0%, #ffffff 50%, #f2fbf7 100%);
  position: relative;
  overflow: hidden;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  position: relative;
  z-index: 1;
}
.stat {
  text-align: center;
  padding: 28px 16px;
}
.stat-num {
  font-size: clamp(2.4rem, 4.5vw, 3.4rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--purple);
  line-height: 1;
  margin-bottom: 0.4rem;
}
.stat-num.mint {
  color: var(--mint-600);
}
.stat-label {
  font-weight: 700;
  color: var(--ink-2);
  font-size: 0.98rem;
}
@media (max-width: 720px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

/* CTA gradiente animado */
.cta-box {
  background: linear-gradient(
    135deg,
    #6b4fa3 0%,
    #5a3f8e 35%,
    #6b4fa3 70%,
    #45a892 130%
  );
  background-size: 220% 220%;
  animation: ctaShift 14s ease-in-out infinite;
}
@keyframes ctaShift {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

/* Hover boost en cards principales */
.feature,
.step,
.tier,
.category {
  transition:
    transform 0.35s var(--ease),
    box-shadow 0.35s var(--ease),
    border-color 0.35s var(--ease);
}

/* Floating cards entran flotando */
.floating-card {
  will-change: transform;
}

/* Mejor responsividad hero a 1100px breakpoint intermedio */
@media (max-width: 1100px) {
  .hero {
    padding: 70px 0;
  }
  .phone-mock {
    max-width: 320px;
  }
}

/* =============================================================
   Sección Valores marca + visual ¿Qué es?
   ============================================================= */
.values-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.value {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 22px;
  transition:
    transform 0.35s var(--ease),
    box-shadow 0.35s var(--ease),
    border-color 0.35s var(--ease);
  position: relative;
}
.value:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.value-icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: var(--purple-100);
  color: var(--purple);
  margin-bottom: 14px;
}
.value:nth-child(even) .value-icon {
  background: var(--mint-100);
  color: var(--mint-600);
}
.value h3 {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
}
.value p {
  color: var(--muted);
  font-size: 0.94rem;
  margin: 0;
}

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

/* Mosaico visual de servicios en "¿Qué es NEXXO?" */
.que-es-visual {
  position: relative;
  width: 100%;
  aspect-ratio: 1/1;
  max-width: 480px;
  margin-inline: auto;
}
.hex-card {
  position: absolute;
  background: #fff;
  border-radius: 22px;
  padding: 18px 20px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-weight: 600;
  transition: transform 0.45s var(--ease);
  animation: floatHex 6s ease-in-out infinite;
}
.hex-card span {
  font-size: 1.7rem;
}
.hex-card strong {
  font-size: 0.95rem;
  color: var(--ink);
  font-family: "Quicksand", sans-serif;
  font-weight: 700;
}
.hex-1 {
  top: 4%;
  left: 6%;
  animation-delay: 0s;
}
.hex-2 {
  top: 8%;
  right: 4%;
  animation-delay: 1.2s;
}
.hex-3 {
  bottom: 10%;
  left: 2%;
  animation-delay: 2.4s;
}
.hex-4 {
  bottom: 4%;
  right: 8%;
  animation-delay: 0.8s;
}
.hex-center {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: linear-gradient(135deg, var(--purple), var(--mint));
  padding: 18px;
  width: 130px;
  height: 130px;
  align-items: center;
  justify-content: center;
  box-shadow: 0 24px 60px rgba(107, 79, 163, 0.35);
  animation: hexPulse 4s ease-in-out infinite;
}
.hex-center img {
  width: 70%;
  height: auto;
  filter: brightness(0) invert(1);
}

@keyframes floatHex {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}
@keyframes hexPulse {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    transform: translate(-50%, -50%) scale(1.06);
  }
}

@media (max-width: 720px) {
  .que-es-visual {
    max-width: 360px;
  }
  .hex-center {
    width: 100px;
    height: 100px;
  }
}

/* =============================================================
   Modal descarga
   ============================================================= */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
}
.modal[hidden] {
  display: none;
}
body.modal-open {
  overflow: hidden;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(31, 24, 75, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 0;
  cursor: pointer;
  padding: 0;
  animation: bdFade 0.3s var(--ease);
}
@keyframes bdFade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.modal-card {
  position: relative;
  width: 100%;
  max-width: 460px;
  background: #fff;
  border-radius: 28px;
  padding: 40px 32px 32px;
  box-shadow: 0 30px 80px rgba(31, 24, 75, 0.3);
  text-align: center;
  animation: modalIn 0.4s var(--ease);
}
@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: var(--bg-soft);
  color: var(--ink);
  font-size: 1.4rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  line-height: 1;
  transition:
    background 0.2s,
    color 0.2s;
  font-family: inherit;
}
.modal-close:hover {
  background: var(--purple-100);
  color: var(--purple);
}

.modal-icon {
  width: 64px;
  height: auto;
  margin: 0 auto 14px;
}
.modal-card h3 {
  font-size: 1.6rem;
  margin: 0 0 0.4rem;
  font-family: "Quicksand", "Poppins", sans-serif;
}
.modal-sub {
  color: var(--muted);
  margin: 0 0 1.6rem;
  font-size: 0.98rem;
}

.modal-stores {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: stretch;
  margin-bottom: 1.2rem;
}
.modal-stores .store-btn {
  display: block;
  transition: transform 0.2s var(--ease);
}
.modal-stores .store-btn:hover {
  transform: translateY(-2px);
}
.modal-stores .store-btn img {
  width: 100%;
  height: auto;
  max-height: 64px;
  object-fit: contain;
}

.modal-note {
  font-size: 0.82rem;
  color: var(--muted);
  margin: 0;
}

@media (min-width: 520px) {
  .modal-stores {
    flex-direction: row;
    justify-content: center;
  }
  .modal-stores .store-btn img {
    height: 60px;
    width: auto;
    max-height: none;
  }
}

/* =============================================================
   Slider Vista Previa (un solo móvil, auto-rotate)
   ============================================================= */
.screens-mockup {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  position: relative;
}
.screen-phone-lg {
  width: 320px;
  /* Ratio del marco = ratio de las capturas reales (720x1417) + los 10px de
     padding de .screen-phone, para que no se recorten los laterales. */
  aspect-ratio: 9 / 17.2;
  position: relative;
}
.screen-slider {
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 28px;
  position: relative;
  z-index: 1;
  background: #fff;
}
.screen-track {
  display: flex;
  height: 100%;
  width: 100%;
  transition: transform 0.65s var(--ease);
  will-change: transform;
}
.slide {
  flex: 0 0 100%;
  height: 100%;
}
.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #fff;
}
.screen-dots {
  display: flex;
  gap: 10px;
  justify-content: center;
}
.screen-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  border: 0;
  cursor: pointer;
  padding: 0;
  transition:
    width 0.35s var(--ease),
    background 0.3s var(--ease);
}
.screen-dots .dot:hover {
  background: rgba(255, 255, 255, 0.5);
}
.screen-dots .dot.active {
  width: 32px;
  border-radius: 999px;
  background: var(--mint);
}

@media (max-width: 720px) {
  .screen-phone-lg {
    width: 260px;
  }
}
