/* ═══════════════════════════════════════════════════════
   LANDING — estilos específicos de esta página
   ═══════════════════════════════════════════════════════ */

/* ─── Helpers de sección ────────────────────────────── */
.section__header {
  text-align: center;
  max-width: 600px;
  margin-inline: auto;
  margin-bottom: var(--sp-16);
}

.section__eyebrow  { margin-bottom: var(--sp-3); }

.section__heading {
  font-size: clamp(var(--text-2xl), 4vw, var(--text-4xl));
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: var(--sp-4);
  letter-spacing: -0.02em;
}

.section__sub {
  font-size: var(--text-lg);
  color: var(--gray-500);
  line-height: 1.7;
}

/* ─── HERO ──────────────────────────────────────────── */
.hero { padding-block: var(--sp-20) var(--sp-24); overflow: hidden; }

.hero__content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-16);
  align-items: center;
}

.hero__eyebrow { margin-bottom: var(--sp-4); }

.hero__heading {
  font-size: clamp(var(--text-3xl), 5vw, var(--text-5xl));
  font-weight: 800;
  line-height: 1.1;
  color: var(--gray-900);
  margin-bottom: var(--sp-6);
  letter-spacing: -0.02em;
}

.hero__heading mark {
  background: none;
  color: var(--co);
}

.hero__sub {
  font-size: var(--text-lg);
  color: var(--gray-500);
  line-height: 1.7;
  margin-bottom: var(--sp-8);
  max-width: 440px;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  flex-wrap: wrap;
  margin-bottom: var(--sp-8);
}

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-5);
}

.hero__trust-item {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--text-sm);
  color: var(--gray-500);
}

.hero__trust-icon { color: var(--cve); font-size: 14px; font-weight: 700; }

/* ─── Mockup lado derecho ─── */
.hero__mockup-wrap {
  background: var(--gray-50);
  border-radius: var(--r-2xl);
  padding: var(--sp-6);
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-xl);
}

.mockup-rifa {
  background: #fff;
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--gray-200);
}

.mockup-rifa__img {
  width: 100%;
  height: 180px;
  background: linear-gradient(135deg, var(--col) 0%, var(--cgl) 100%);
  position: relative;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.7s ease;
}

.hero-slide--active { opacity: 1; }

.mockup-rifa__body { padding: var(--sp-4) var(--sp-5); }

.mockup-rifa__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--sp-4);
}

.mockup-rifa__title {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 2px;
}

.mockup-rifa__price { font-size: var(--text-sm); color: var(--gray-500); }

.progress-bar {
  height: 8px;
  background: var(--gray-100);
  border-radius: var(--r-full);
  overflow: hidden;
  margin-bottom: var(--sp-1);
}

.progress-bar__fill {
  height: 100%;
  background: var(--co);
  border-radius: var(--r-full);
  width: 73%;
}

.progress-label {
  display: flex;
  justify-content: space-between;
  font-size: var(--text-xs);
  color: var(--gray-400);
  margin-bottom: var(--sp-4);
}

/* ─── CÓMO FUNCIONA ─────────────────────────────────── */
.como-funciona { background: var(--gray-50); }

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-8);
  position: relative;
}

/* Línea conectora */
.steps::before {
  content: '';
  position: absolute;
  top: 23px;
  left: calc(16.67% + 24px);
  right: calc(16.67% + 24px);
  height: 2px;
  background: linear-gradient(to right, var(--com), var(--cg));
  z-index: 0;
}

.step { position: relative; text-align: center; z-index: 1; }

.step__number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--co);
  color: #fff;
  font-size: var(--text-xl);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--sp-5);
  position: relative;
  z-index: 2;
}

.step__icon { font-size: 32px; margin-bottom: var(--sp-3); }

.step__title {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: var(--sp-2);
}

.step__desc { font-size: var(--text-sm); color: var(--gray-500); line-height: 1.7; }

/* ─── CASOS DE USO ──────────────────────────────────── */
.casos-uso { background: #fff; }

.casos-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-6);
}

@media (min-width: 1024px) {
  .casos-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ─── PRECIOS ───────────────────────────────────────── */
.precios { background: var(--gray-50); }

.precios-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-8);
  max-width: 1100px;
  margin-inline: auto;
}

.plan {
  background: #fff;
  border-radius: var(--r-2xl);
  border: 2px solid var(--gray-200);
  padding: var(--sp-8);
  display: flex;
  flex-direction: column;
  gap: var(--sp-6);
  transition: border-color var(--t-base), box-shadow var(--t-base);
}

.plan:hover { box-shadow: var(--shadow-lg); }

.plan--featured {
  border-color: var(--co);
  position: relative;
}

.plan--featured::before {
  content: 'Más popular';
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--co);
  color: #fff;
  font-size: var(--text-xs);
  font-weight: 700;
  padding: var(--sp-1) var(--sp-4);
  border-radius: var(--r-full);
  white-space: nowrap;
}

.plan--enterprise {
  border-color: var(--cn);
  position: relative;
}

.plan--enterprise::before {
  content: 'Enterprise';
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--cn);
  color: #fff;
  font-size: var(--text-xs);
  font-weight: 700;
  padding: var(--sp-1) var(--sp-4);
  border-radius: var(--r-full);
  white-space: nowrap;
}

.plan__name { font-size: var(--text-lg); font-weight: 700; color: var(--gray-900); }

.plan__price { display: flex; align-items: baseline; gap: var(--sp-1); }

.plan__amount {
  font-size: var(--text-5xl);
  font-weight: 800;
  color: var(--gray-900);
  line-height: 1;
}

.plan__currency { font-size: var(--text-xl); font-weight: 600; color: var(--gray-500); }
.plan__period   { font-size: var(--text-sm); color: var(--gray-400); align-self: flex-end; }
.plan__desc     { font-size: var(--text-sm); color: var(--gray-500); line-height: 1.6; }

.plan__features {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  flex: 1;
}

.plan__feature {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  font-size: var(--text-sm);
  color: var(--gray-700);
}

.plan__check { color: var(--cve); font-weight: 700; flex-shrink: 0; margin-top: 2px; }

/* ─── FOOTER CTA ────────────────────────────────────── */
.footer-cta {
  background: var(--cn);
  padding-block: var(--sp-24);
  text-align: center;
}

.footer-cta__heading {
  font-size: clamp(var(--text-2xl), 4vw, var(--text-4xl));
  font-weight: 800;
  color: #fff;
  margin-bottom: var(--sp-4);
  letter-spacing: -0.02em;
}

.footer-cta__sub {
  font-size: var(--text-lg);
  color: #94a3b8;
  margin-bottom: var(--sp-8);
}

/* ─── FOOTER ────────────────────────────────────────── */
.footer {
  background: #0d1a2e;
  padding-block: var(--sp-12);
}

.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--sp-12);
}

.footer__logo {
  font-size: var(--text-xl);
  font-weight: 800;
  color: #fff;
  margin-bottom: var(--sp-3);
}

.footer__logo span { color: var(--co); }

.footer__tagline {
  font-size: var(--text-sm);
  color: #64748b;
  line-height: 1.7;
  max-width: 240px;
}

.footer__col-title {
  font-size: var(--text-xs);
  font-weight: 700;
  color: #fff;
  margin-bottom: var(--sp-4);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.footer__col-links {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.footer__col-link { font-size: var(--text-sm); color: #64748b; transition: color var(--t-fast); }
.footer__col-link:hover { color: #fff; }

.footer__bottom {
  margin-top: var(--sp-12);
  padding-top: var(--sp-6);
  border-top: 1px solid #1e2d42;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-4);
}

.footer__copy { font-size: var(--text-sm); color: #64748b; }

/* ─── RESPONSIVE ────────────────────────────────────── */

/* Tablet grande / laptop pequeño */
@media (max-width: 1024px) {
  .hero__content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero__sub     { max-width: 100%; }
  .hero__actions { justify-content: center; }
  .hero__trust   { justify-content: center; }
  .hero__visual  { display: none; }

  .steps {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin-inline: auto;
  }

  .steps::before { display: none; }

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

/* Tablet / móvil grande */
@media (max-width: 768px) {
  .section      { padding-block: var(--sp-16); }
  .section--sm  { padding-block: var(--sp-10); }

  .casos-grid   { grid-template-columns: repeat(2, 1fr); }
  .precios-grid { grid-template-columns: 1fr; }

  .footer-cta   { padding-block: var(--sp-16); }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__bottom { flex-direction: column; text-align: center; }
}

/* Móvil pequeño */
@media (max-width: 480px) {
  .section { padding-block: var(--sp-12); }

  /* CTAs del hero apilados en columna */
  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero__trust { flex-direction: column; align-items: center; gap: var(--sp-3); }

  /* Casos en 1 columna en móvil pequeño */
  .casos-grid { grid-template-columns: 1fr; }

  /* Footer simplificado */
  .footer-cta  { padding-block: var(--sp-12); }
  .footer__inner { grid-template-columns: 1fr; }
}
