/* ============================================================
   Roody — Landing page (rediseño 2026)
   Hoja de estilos autónoma para la página principal pública.
   ============================================================ */

:root {
  --rdy-bg: #0b0b10;
  --rdy-bg-soft: #121219;
  --rdy-surface: #16161f;
  --rdy-surface-2: #1c1c28;
  --rdy-border: rgba(255, 255, 255, 0.07);
  --rdy-border-strong: rgba(255, 255, 255, 0.13);
  --rdy-text: #ececf1;
  --rdy-text-dim: #a0a0b0;
  --rdy-text-faint: #6e6e80;
  --rdy-primary: #7c5cff;
  --rdy-primary-2: #a855f7;
  --rdy-accent: #5865f2;
  --rdy-grad: linear-gradient(115deg, #5865f2 0%, #7c5cff 45%, #a855f7 100%);
  --rdy-radius: 16px;
  --rdy-radius-sm: 11px;
  --rdy-shadow: 0 18px 50px -20px rgba(0, 0, 0, 0.8);
  --rdy-glow: 0 0 60px -10px rgba(124, 92, 255, 0.55);
}

/* ---------- Base ---------- */
body {
  margin: 0;
  background: var(--rdy-bg);
  color: var(--rdy-text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
main#main-content { display: block; }
.landing * { box-sizing: border-box; }
.landing a { text-decoration: none; color: inherit; }
.landing img { max-width: 100%; display: block; }
.landing section { position: relative; }

.landing-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Fondo con destellos sutiles */
.landing::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(620px circle at 12% 0%, rgba(88, 101, 242, 0.16), transparent 60%),
    radial-gradient(680px circle at 90% 12%, rgba(168, 85, 247, 0.14), transparent 62%),
    var(--rdy-bg);
}

/* ---------- Botones ---------- */
.rdy-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.97rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
  white-space: nowrap;
}
.rdy-btn:hover { transform: translateY(-2px); }
.rdy-btn-primary {
  background: var(--rdy-grad);
  color: #fff;
  box-shadow: 0 10px 30px -10px rgba(124, 92, 255, 0.7);
}
.rdy-btn-primary:hover { box-shadow: 0 14px 38px -8px rgba(124, 92, 255, 0.85); }
.rdy-btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--rdy-border-strong);
  color: var(--rdy-text);
}
.rdy-btn-ghost:hover { background: rgba(255, 255, 255, 0.09); }
.rdy-btn-lg { padding: 16px 32px; font-size: 1.03rem; }

/* ---------- Navbar ---------- */
.lnav {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  background: rgba(11, 11, 16, 0.78);
  border-bottom: 1px solid var(--rdy-border);
}
.lnav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}
.lnav-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 800;
  font-size: 1.22rem;
  letter-spacing: -0.02em;
}
.lnav-brand img { width: 34px; height: 34px; border-radius: 9px; }
.lnav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.lnav-links a {
  color: var(--rdy-text-dim);
  font-weight: 500;
  font-size: 0.94rem;
  transition: color 0.15s ease;
}
.lnav-links a:hover { color: var(--rdy-text); }
.lnav-links a.active { color: var(--rdy-text); }
.lnav-links a.active::after {
  content: "";
  display: block;
  height: 2px;
  margin-top: 4px;
  border-radius: 2px;
  background: var(--rdy-grad);
}
.lnav-cta { display: flex; align-items: center; gap: 12px; }
.lnav-toggle {
  display: none;
  background: none;
  border: 0;
  color: var(--rdy-text);
  font-size: 1.4rem;
  cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 50px;
  padding: 90px 0 80px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 15px;
  border-radius: 999px;
  background: rgba(124, 92, 255, 0.12);
  border: 1px solid rgba(124, 92, 255, 0.32);
  color: #c9bcff;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(2.5rem, 5.4vw, 4rem);
  line-height: 1.07;
  letter-spacing: -0.035em;
  font-weight: 800;
  margin: 0 0 20px;
}
.hero h1 .grad {
  background: var(--rdy-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p {
  font-size: 1.13rem;
  line-height: 1.6;
  color: var(--rdy-text-dim);
  max-width: 540px;
  margin: 0 0 32px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-visual { display: flex; justify-content: center; }
.hero-visual img {
  width: 320px;
  max-width: 100%;
  filter: drop-shadow(0 30px 60px rgba(124, 92, 255, 0.45));
  animation: rdy-float 6s ease-in-out infinite;
}
@keyframes rdy-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-18px); }
}

/* ---------- Tira de estadísticas ---------- */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 28px 30px;
  margin: 0 auto 30px;
  background: var(--rdy-surface);
  border: 1px solid var(--rdy-border);
  border-radius: var(--rdy-radius);
}
.stat-cell { text-align: center; }
.stat-cell .num {
  font-size: 1.95rem;
  font-weight: 800;
  background: var(--rdy-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat-cell .label {
  font-size: 0.86rem;
  color: var(--rdy-text-faint);
  margin-top: 4px;
}

/* ---------- Cabecera de sección ---------- */
.section { padding: 70px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--rdy-primary-2);
  margin-bottom: 12px;
}
.section-head h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.7rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 12px;
}
.section-head p { color: var(--rdy-text-dim); font-size: 1.04rem; margin: 0; }

/* ---------- Grid de funciones ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 18px;
}
.feature-card {
  background: var(--rdy-surface);
  border: 1px solid var(--rdy-border);
  border-radius: var(--rdy-radius);
  padding: 26px 24px;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}
.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(124, 92, 255, 0.4);
  background: var(--rdy-surface-2);
}
.feature-ico {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(124, 92, 255, 0.13);
  color: var(--rdy-primary-2);
  font-size: 1.2rem;
  margin-bottom: 16px;
}
.feature-card h3 { font-size: 1.07rem; font-weight: 700; margin: 0 0 9px; }
.feature-card p { font-size: 0.92rem; line-height: 1.58; color: var(--rdy-text-dim); margin: 0; }

/* ---------- Reseñas ---------- */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 18px;
}
.review-card {
  background: var(--rdy-surface);
  border: 1px solid var(--rdy-border);
  border-radius: var(--rdy-radius);
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.review-stars { color: #f5b942; font-size: 0.9rem; letter-spacing: 2px; }
.review-card .quote { font-weight: 700; font-size: 1.02rem; color: var(--rdy-text); }
.review-card .body { font-size: 0.92rem; line-height: 1.6; color: var(--rdy-text-dim); margin: 0; flex: 1; }
.review-author {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--rdy-text);
  padding-top: 6px;
  border-top: 1px solid var(--rdy-border);
}
.review-author .av {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--rdy-grad);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; color: #fff;
}

/* ---------- Teaser de precios ---------- */
.pricing-teaser {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.plan-card {
  background: var(--rdy-surface);
  border: 1px solid var(--rdy-border);
  border-radius: var(--rdy-radius);
  padding: 30px 26px;
  text-align: center;
}
.plan-card.featured {
  border-color: rgba(124, 92, 255, 0.55);
  background: linear-gradient(180deg, rgba(124, 92, 255, 0.1), var(--rdy-surface));
  box-shadow: var(--rdy-glow);
}
.plan-card .plan-name { font-weight: 700; font-size: 1.15rem; }
.plan-card .plan-price { font-size: 2.1rem; font-weight: 800; margin: 10px 0 2px; }
.plan-card .plan-price small { font-size: 0.9rem; font-weight: 500; color: var(--rdy-text-faint); }
.plan-card .plan-note { color: var(--rdy-text-dim); font-size: 0.9rem; margin: 0 0 20px; }
.plan-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--rdy-primary-2);
  margin-bottom: 8px;
}

/* ---------- Banda CTA ---------- */
.cta-band {
  text-align: center;
  background: var(--rdy-grad);
  border-radius: 24px;
  padding: 58px 30px;
  margin: 30px 0 70px;
}
.cta-band h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 800; margin: 0 0 12px; color: #fff; }
.cta-band p { color: rgba(255, 255, 255, 0.85); margin: 0 0 26px; font-size: 1.05rem; }
.cta-band .rdy-btn-primary { background: #fff; color: #4b2fb3; box-shadow: 0 14px 34px -12px rgba(0,0,0,0.5); }

/* ---------- Footer ---------- */
.lfooter {
  border-top: 1px solid var(--rdy-border);
  background: var(--rdy-bg-soft);
  padding: 56px 0 26px;
}
.lfooter-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 36px;
}
.lfooter-brand .lnav-brand { margin-bottom: 14px; }
.lfooter-brand p { color: var(--rdy-text-dim); font-size: 0.92rem; line-height: 1.6; max-width: 320px; }
.lfooter-social { display: flex; gap: 11px; margin-top: 16px; }
.lfooter-social a {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 10px;
  background: var(--rdy-surface);
  border: 1px solid var(--rdy-border);
  color: var(--rdy-text-dim);
  transition: all 0.15s ease;
}
.lfooter-social a:hover { color: #fff; background: var(--rdy-primary); border-color: var(--rdy-primary); }
.lfooter-col h4 { font-size: 0.95rem; font-weight: 700; margin: 0 0 16px; }
.lfooter-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.lfooter-col a { color: var(--rdy-text-dim); font-size: 0.9rem; transition: color 0.15s ease; }
.lfooter-col a:hover { color: var(--rdy-text); }
.lfooter-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid var(--rdy-border);
  color: var(--rdy-text-faint);
  font-size: 0.86rem;
}
.lfooter-bottom a { color: var(--rdy-text-faint); margin-left: 18px; }
.lfooter-bottom a:hover { color: var(--rdy-text); }

/* ---------- Mensaje de error de auth ---------- */
.auth-message {
  position: fixed;
  top: 84px;
  right: 24px;
  z-index: 200;
  padding: 14px 20px;
  border-radius: 12px;
  background: #2a1416;
  border: 1px solid #5b2030;
  color: #ffb4b4;
  font-size: 0.9rem;
  transition: opacity 0.4s ease;
}

/* ---------- Animación de entrada ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .hero { grid-template-columns: 1fr; padding: 60px 0 50px; text-align: center; }
  .hero p { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-visual { order: -1; }
  .hero-visual img { width: 220px; }
  .lfooter-grid { grid-template-columns: 1fr 1fr; }
  .pricing-teaser { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .lnav-links, .lnav-cta .rdy-btn-ghost { display: none; }
  .lnav-toggle { display: block; }
  .lnav-links.open {
    display: flex;
    position: absolute;
    top: 70px; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--rdy-bg-soft);
    border-bottom: 1px solid var(--rdy-border);
    padding: 10px 24px 18px;
  }
  .lnav-links.open li { padding: 11px 0; border-bottom: 1px solid var(--rdy-border); }
  .stats-strip { grid-template-columns: repeat(2, 1fr); }
  .lfooter-grid { grid-template-columns: 1fr; }
  .lfooter-bottom { flex-direction: column; align-items: center; text-align: center; }
  .lfooter-bottom a { margin: 0 9px; }
}

/* ============================================================
   Componentes de subpáginas (características / precios)
   ============================================================ */

/* ---------- Hero compacto de subpágina ---------- */
.page-hero { text-align: center; padding: 80px 0 50px; }
.page-hero h1 {
  font-size: clamp(2.3rem, 4.6vw, 3.3rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  margin: 14px 0 14px;
}
.page-hero h1 .grad {
  background: var(--rdy-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.page-hero p {
  color: var(--rdy-text-dim);
  font-size: 1.1rem;
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ---------- Tarjeta de función con checklist ---------- */
.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 20px;
}
.detail-card {
  background: var(--rdy-surface);
  border: 1px solid var(--rdy-border);
  border-radius: var(--rdy-radius);
  padding: 30px 28px;
  transition: transform 0.18s ease, border-color 0.18s ease;
}
.detail-card:hover { transform: translateY(-4px); border-color: rgba(124, 92, 255, 0.4); }
.detail-card h3 { font-size: 1.18rem; font-weight: 700; margin: 16px 0 9px; }
.detail-card > p { font-size: 0.94rem; line-height: 1.6; color: var(--rdy-text-dim); margin: 0 0 16px; }
.check-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.check-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--rdy-text-dim);
}
.check-list li i { color: var(--rdy-primary-2); font-size: 0.82rem; }

/* ---------- Mini-tarjetas de función ---------- */
.mini-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.mini-card {
  background: var(--rdy-surface);
  border: 1px solid var(--rdy-border);
  border-radius: var(--rdy-radius-sm);
  padding: 24px 20px;
  text-align: center;
  transition: transform 0.18s ease, border-color 0.18s ease;
}
.mini-card:hover { transform: translateY(-3px); border-color: rgba(124, 92, 255, 0.4); }
.mini-card i { font-size: 1.5rem; color: var(--rdy-primary-2); margin-bottom: 12px; }
.mini-card h4 { font-size: 1rem; font-weight: 700; margin: 0 0 6px; }
.mini-card p { font-size: 0.86rem; color: var(--rdy-text-dim); margin: 0; line-height: 1.5; }

/* ---------- Precios: lista de funciones del plan ---------- */
.plan-features {
  list-style: none;
  margin: 0 0 22px;
  padding: 18px 0 0;
  border-top: 1px solid var(--rdy-border);
  display: flex;
  flex-direction: column;
  gap: 11px;
  text-align: left;
}
.plan-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--rdy-text-dim);
}
.plan-features li i { margin-top: 3px; font-size: 0.82rem; }
.plan-features li i.ok { color: #46d39a; }
.plan-features li i.no { color: var(--rdy-text-faint); }
.plan-features li.off { color: var(--rdy-text-faint); }
.plan-cycle {
  font-size: 0.85rem;
  color: var(--rdy-text-faint);
  margin: 2px 0 16px;
}

/* ---------- Tabla comparativa ---------- */
.compare-wrap {
  overflow-x: auto;
  border: 1px solid var(--rdy-border);
  border-radius: var(--rdy-radius);
  background: var(--rdy-surface);
}
.compare-table { width: 100%; border-collapse: collapse; min-width: 560px; }
.compare-table th, .compare-table td {
  padding: 14px 18px;
  text-align: center;
  border-bottom: 1px solid var(--rdy-border);
  font-size: 0.92rem;
}
.compare-table thead th {
  background: var(--rdy-surface-2);
  font-weight: 700;
  color: var(--rdy-text);
  font-size: 0.95rem;
}
.compare-table tbody td:first-child,
.compare-table thead th:first-child { text-align: left; color: var(--rdy-text); }
.compare-table tbody td { color: var(--rdy-text-dim); }
.compare-table .group td {
  background: rgba(124, 92, 255, 0.07);
  font-weight: 700;
  color: var(--rdy-text);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.8rem;
}
.compare-table .yes { color: #46d39a; }
.compare-table .no { color: var(--rdy-text-faint); }
.compare-table tr:last-child td { border-bottom: 0; }

/* ---------- FAQ (acordeón nativo) ---------- */
.faq-list { display: flex; flex-direction: column; gap: 12px; max-width: 780px; margin: 0 auto; }
.faq-item {
  background: var(--rdy-surface);
  border: 1px solid var(--rdy-border);
  border-radius: var(--rdy-radius-sm);
  overflow: hidden;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 22px;
  font-weight: 600;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "\f078";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 0.8rem;
  color: var(--rdy-primary-2);
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { transform: rotate(180deg); }
.faq-item .faq-body {
  padding: 0 22px 20px;
  color: var(--rdy-text-dim);
  font-size: 0.93rem;
  line-height: 1.65;
}

@media (max-width: 680px) {
  .compare-table th, .compare-table td { padding: 11px 12px; }
}

