/* ========================================================================
   RCM — Landing de validación.
   Hero oscuro (estética del logo: negro + dorado) sobre cuerpo claro.
   ======================================================================== */
:root {
  /* Base clara (cuerpo) */
  --bg: #f9fafb;
  --surface: #ffffff;
  --primary-dark: #1b1919;
  --primary: #2d3436;
  --secondary: #636e72;

  /* Base oscura (hero / tarjetas premium) */
  --dark: #0f0e0e;
  --dark-surface: #1b1919;
  --dark-surface-2: #211f1f;

  /* Dorado / amarillo del logo */
  --gold: #f4c20d;
  --gold-deep: #d4af37;
  --gold-soft: rgba(244, 194, 13, 0.12);

  --green: #00b894;
  --error: #d63031;

  --gold-grad: linear-gradient(135deg, #f4c20d 0%, #d4af37 100%);
  --dark-grad: linear-gradient(135deg, #1b1919 0%, #2a2622 100%);
  /* premiumGradient de la app: negro base -> azul marino profundo */
  --blue-lila-grad: linear-gradient(135deg, #1b1919 0%, #1a2f4c 100%);

  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 20px;
  --r-xl: 28px;

  --border-soft: rgba(45, 52, 54, 0.07);
  --border-dark: rgba(255, 255, 255, 0.07);
  --border-gold: rgba(244, 194, 13, 0.28);
  --shadow-card: 0 8px 24px rgba(27, 25, 25, 0.06);
  --shadow-dark: 0 16px 40px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

section[id] { scroll-margin-top: 80px; }

body {
  font-family: "Inter", system-ui, sans-serif;
  background: var(--bg);
  color: var(--primary-dark);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 { font-family: "Montserrat", sans-serif; }

.eyebrow,
.section-header {
  display: inline-block;
  font-family: "Inter", sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--gold-deep);
}

/* Línea de velocidad decorativa (eco del swoosh del logo) */
.speed-line { position: relative; }
.speed-line::after {
  content: "";
  display: block;
  width: 64px; height: 3px;
  margin-top: 10px;
  border-radius: 3px;
  background: var(--gold-grad);
  box-shadow: 0 0 16px rgba(244, 194, 13, 0.5);
}

/* ---------------- Botones ---------------- */
.btn {
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  font-size: 15px;
  border: none;
  border-radius: 14px;
  padding: 16px 24px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn:active { transform: scale(0.98); }

/* CTA principal: dorado (como la "M" del logo) */
.btn--primary,
.btn--accent {
  background: var(--gold-grad);
  color: #1b1411;
  box-shadow: 0 8px 24px rgba(244, 194, 13, 0.25);
}
.btn--primary:hover,
.btn--accent:hover {
  box-shadow: 0 12px 32px rgba(244, 194, 13, 0.42);
  transform: translateY(-2px);
}
.btn--ghost {
  background: transparent;
  color: var(--gold);
  border: 1.5px solid var(--border-gold);
}
.btn--ghost:hover { border-color: var(--gold); background: var(--gold-soft); }

/* Botón amarillo/dorado (logo) */
.btn--blue {
  background: var(--gold-grad);
  color: #1b1411;
  border: none;
}
.btn--blue:hover {
  box-shadow: 0 8px 24px rgba(244, 194, 13, 0.4);
  transform: translateY(-2px);
}
.btn--lg { padding: 18px 30px; font-size: 16px; }
.btn--sm { padding: 10px 18px; font-size: 13px; border-radius: 12px; }
.btn--block { width: 100%; }

/* ---------------- Nav (sobre hero oscuro) ---------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #0f0e0e;
  border-bottom: 1px solid var(--border-dark);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.nav__links { display: flex; align-items: center; gap: 24px; }
.nav__link {
  font-family: "Inter", sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: rgba(245, 243, 240, 0.6);
  text-decoration: none;
  transition: color 0.15s ease;
}
.nav__link:hover { color: var(--gold); }
.brand__logo {
  display: block;
  height: 42px; width: auto;
  border-radius: 10px;
}
.brand__logo--sm { height: 36px; }

/* ---------------- Hero (OSCURO + foto de fondo) ---------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 80px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #f5f3f0;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(
    135deg,
    rgba(15, 14, 14, 0.88) 0%,
    rgba(15, 14, 14, 0.75) 60%,
    rgba(26, 47, 76, 0.65) 100%
  );
  z-index: 0;
}
.hero .hero__inner { position: relative; z-index: 1; }
.hero__inner { max-width: 840px; position: relative; z-index: 1; }
.hero__logo {
  display: block;
  height: 76px; width: auto;
  border-radius: 18px;
  margin-bottom: 30px;
  box-shadow: var(--shadow-dark);
  border: 1px solid var(--border-dark);
}
.hero__title {
  margin: 18px 0 22px;
  font-size: clamp(32px, 5.2vw, 52px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.6px;
  color: #f5f3f0;
}
.hero__title em { font-style: normal; color: var(--gold); }
.hero__subtitle {
  font-size: clamp(16px, 2vw, 19px);
  color: rgba(245, 243, 240, 0.65);
  max-width: 700px;
}
.hero__actions { margin-top: 34px; }

/* ---------------- Preview (vistazo sutil) ---------------- */
.preview { padding: 56px 0 24px; }
.preview__head { text-align: center; max-width: 600px; margin: 0 auto; }
.preview__head .speed-line::after { margin-left: auto; margin-right: auto; }
.preview__title {
  margin: 14px 0 8px;
  font-size: clamp(24px, 3.5vw, 32px);
  font-weight: 800;
  letter-spacing: -0.4px;
  color: var(--primary-dark);
}
.preview__sub { color: var(--secondary); font-size: 16px; }
.preview__phones {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-top: 44px;
}
.phone {
  margin: 0;
  border-radius: 34px;
  background: var(--primary-dark);
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 24px 50px rgba(27, 25, 25, 0.18);
  overflow: hidden;
}
.phone img {
  display: block;
  width: 100%;
  border-radius: 26px;
  background: #f3f4f6; /* placeholder mientras no haya imagen */
}
.phone--center { width: 280px; z-index: 2; }
.phone--side {
  width: 230px;
  opacity: 0.92;
  transform: translateY(24px) scale(0.96);
}
.phone--side:first-child { transform: translateY(24px) scale(0.96) rotate(-3deg); }
.phone--side:last-child { transform: translateY(24px) scale(0.96) rotate(3deg); }

/* ---------------- Problema (hero con foto de fondo) ---------------- */
.problem {
  position: relative;
  overflow: hidden;
  padding: 80px 0 100px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #f5f3f0;
}
.problem::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(
    135deg,
    rgba(15, 14, 14, 0.85) 0%,
    rgba(15, 14, 14, 0.7) 50%,
    rgba(26, 47, 76, 0.6) 100%
  );
  z-index: 0;
}
.problem__inner {
  position: relative;
  z-index: 1;
  max-width: 920px;
}
.problem__lead {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: clamp(20px, 2.8vw, 27px);
  line-height: 1.35;
  color: rgba(245, 243, 240, 0.9);
  max-width: 720px;
  margin: 18px 0 40px;
}
.problem__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.problem__item {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--r-lg);
  padding: 26px;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.problem__item:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--gold-soft);
  transform: translateY(-3px);
}
.problem__icon {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: rgba(244, 194, 13, 0.12);
  color: var(--gold);
  margin-bottom: 18px;
}
.problem__item h3 {
  font-size: 16px; font-weight: 700;
  margin-bottom: 8px;
  color: #f5f3f0;
}
.problem__item p {
  font-size: 14px;
  color: rgba(245, 243, 240, 0.6);
  line-height: 1.5;
}

/* ---------------- Closer (tarjeta oscura premium) ---------------- */
.closer { padding: 48px 0 80px; }
.closer__card {
  position: relative;
  overflow: hidden;
  background: var(--blue-lila-grad);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--r-xl);
  padding: 60px 40px;
  text-align: center;
  box-shadow: 0 16px 40px rgba(26, 47, 76, 0.3);
}
.closer__card::before {
  content: "";
  position: absolute;
  top: -40%; right: -10%;
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(40, 80, 130, 0.3), transparent 65%);
  pointer-events: none;
}
.closer__title {
  position: relative;
  color: #f5f3f0;
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}
.closer__sub { position: relative; color: rgba(245, 243, 240, 0.65); font-size: 16px; margin-bottom: 30px; }
.closer .btn { position: relative; }

/* ---------------- Footer (oscuro premium) ---------------- */
.footer {
  background: var(--dark);
  border-top: 1px solid var(--border-dark);
  padding: 40px 0;
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer__brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.footer__logo {
  height: 36px;
  width: auto;
}
.footer__tagline {
  font-size: 13px;
  color: rgba(245, 243, 240, 0.45);
  font-weight: 500;
}
.footer__links {
  display: flex;
  gap: 20px;
}
.footer__link {
  font-size: 13px;
  font-weight: 600;
  color: rgba(245, 243, 240, 0.5);
  text-decoration: none;
  transition: color 0.15s ease;
}
.footer__link:hover { color: var(--gold); }
.footer__note {
  width: 100%;
  text-align: center;
  font-size: 12px;
  color: rgba(245, 243, 240, 0.3);
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* ---------------- Modal (claro) ---------------- */
.modal {
  position: fixed; inset: 0; z-index: 100;
  display: none;
  align-items: center; justify-content: center;
  padding: 20px;
}
.modal.is-open { display: flex; }
.modal__backdrop {
  position: absolute; inset: 0;
  background: rgba(15, 14, 14, 0.6);
  backdrop-filter: blur(5px);
}
.modal__dialog {
  position: relative;
  width: 100%; max-width: 480px;
  max-height: 92vh; overflow-y: auto;
  background: var(--bg);
  border-radius: var(--r-xl);
  padding: 38px 32px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.3);
  animation: pop 0.22s ease;
}
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(0.98); } to { opacity: 1; transform: none; } }
.modal__close {
  position: absolute; top: 16px; right: 18px;
  background: none; border: none;
  font-size: 28px; line-height: 1;
  color: var(--secondary); cursor: pointer;
  transition: color 0.15s ease;
}
.modal__close:hover { color: var(--gold-deep); }
.modal__title { font-size: 22px; font-weight: 800; margin: 10px 0 6px; color: var(--primary-dark); }
.modal__lead { font-size: 14px; color: var(--secondary); margin-bottom: 24px; }

/* Inputs */
.field { display: block; margin-bottom: 16px; }
.field > span {
  display: block;
  font-size: 12px; font-weight: 600;
  color: var(--secondary);
  margin-bottom: 6px;
}
.field input {
  width: 100%;
  font-family: "Inter", sans-serif;
  font-size: 15px; font-weight: 500;
  color: var(--primary-dark);
  background: #f3f4f6;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 14px 16px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.field input::placeholder { color: rgba(99, 110, 114, 0.45); }
.field input:focus {
  outline: none;
  border-color: var(--gold-deep);
  background: #fff;
  box-shadow: 0 0 0 3px var(--gold-soft);
}
.field input.invalid { border-color: var(--error); background: rgba(214, 48, 49, 0.04); }

/* Planes */
.plans { display: grid; gap: 14px; }
.plan {
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-lg);
  padding: 22px;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.2s ease, transform 0.15s ease;
}
.plan:hover {
  border-color: var(--gold-deep);
  box-shadow: 0 10px 28px rgba(244, 194, 13, 0.15);
  transform: translateY(-2px);
}
.plan--featured {
  border-color: var(--gold);
  background: linear-gradient(135deg, #fffcf0 0%, #fff8e0 100%);
  box-shadow: 0 8px 28px rgba(244, 194, 13, 0.18);
  position: relative;
}
.plan--featured:hover {
  border-color: var(--gold-deep);
  box-shadow: 0 12px 36px rgba(244, 194, 13, 0.3);
}
.plan__badge {
  position: absolute;
  top: -10px;
  right: 16px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  background: var(--gold-grad);
  color: #1b1411;
  padding: 5px 14px;
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(244, 194, 13, 0.35);
}
.plan__name { font-family: "Inter", sans-serif; font-size: 12px; font-weight: 800; letter-spacing: 0.5px; text-transform: uppercase; color: var(--secondary); }
.plan__price { font-family: "Montserrat", sans-serif; margin: 8px 0 4px; color: var(--primary-dark); }
.plan__price strong { font-size: 30px; font-weight: 900; color: var(--gold-deep); }
.plan__price span { font-size: 14px; color: var(--secondary); margin-left: 4px; }
.plan__detail { font-size: 14px; color: var(--secondary); margin-bottom: 14px; }
.plan__select { font-size: 13px; font-weight: 700; color: var(--gold-deep); }

/* Confirmación */
.step--confirm { text-align: center; padding: 12px 0; }
.confirm__check {
  width: 64px; height: 64px; margin: 0 auto 8px;
  display: grid; place-items: center;
  font-size: 32px; color: var(--green);
  background: rgba(0, 184, 148, 0.12);
  border-radius: 50%;
}

/* ---------------- Responsive ---------------- */
@media (max-width: 720px) {
  .nav__links { display: none; }
  .preview__phones { gap: 14px; }
  .phone--side { display: none; }
  .phone--center { width: 70%; max-width: 280px; }
  .problem__visual { min-height: 560px; }
  .problem__overlay { padding: 28px 22px; min-height: 560px; }
  .problem__grid { grid-template-columns: 1fr; }
  .closer__card { padding: 44px 24px; }
  .modal__dialog { padding: 30px 22px; }
}
