/* ═══════════════════════════════════════════════════════════════
   Rubrika — Landing estática (sin JavaScript)
   Tokens copiados del design system FM v2.2 (src/styles/fm-design-system.css).
   Si el DS cambia, sincronizar los tokens de :root manualmente.
═══════════════════════════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Sora:wght@700;800&family=Manrope:wght@400;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  /* Paleta Rubrika: azul marino + teal (los nombres fm-orange-* se conservan
     por compatibilidad con las reglas, pero ahora son el teal de marca) */
  --fm-orange-500: #12C7B0;
  --fm-orange-600: #0BA391;
  --fm-orange-50: #E9FBF8;
  --fm-orange-100: #CFF5EF;
  --fm-green-500: #22C55E;
  --fm-green-600: #16A34A;
  --fm-green-50: #F0FDF4;
  --fm-green-200: #A7F3D0;
  --fm-bg: #F5F7FA;
  --fm-card: #FFFFFF;
  --fm-border: #E3E9F0;
  --fm-text-primary: #082B5A;
  --fm-text-secondary: #374151;
  --fm-text-muted: #8A97A8;
  --fm-sidebar-bg: #082B5A;
  --fm-shadow-sm: 0 1px 2px rgba(8, 43, 90, 0.05);
  --fm-shadow-md: 0 4px 12px rgba(8, 43, 90, 0.08);
  --fm-radius: 14px;
  --fm-radius-sm: 10px;
  --fm-font-body: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  --rk-font-display: 'Sora', 'Manrope', sans-serif;
  --fm-font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --fm-gradient-brand: linear-gradient(135deg, #082B5A, #12C7B0);
  --fm-gradient-orange: linear-gradient(135deg, #12C7B0, #0BA391);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--fm-font-body);
  background: var(--fm-bg);
  color: var(--fm-text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--fm-orange-600);
  text-decoration: none;
}

h1, h2, h3 {
  font-family: var(--rk-font-display);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.4px;
}

.contenedor {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ── Header ── */
.cabecera {
  background: var(--fm-card);
  border-bottom: 1px solid var(--fm-border);
  position: sticky;
  top: 0;
  z-index: 10;
}
.cabecera .contenedor {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}
.marca {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--fm-text-primary);
  font-size: 18px;
  font-weight: 700;
  font-family: var(--rk-font-display);
}
.marca-icono {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--fm-gradient-brand);
  color: white;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.marca-nombre span {
  color: var(--fm-orange-500);
}
.marca-logo {
  height: 32px;
  width: auto;
  display: block;
}
.cabecera nav {
  display: flex;
  align-items: center;
  gap: 10px;
}
.enlace-nav {
  color: var(--fm-text-secondary);
  font-size: 13.5px;
  font-weight: 700;
  padding: 8px 10px;
}
.enlace-nav:hover {
  color: var(--fm-orange-600);
}

/* ── Botones ── */
.boton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--fm-radius-sm);
  font-size: 14.5px;
  font-weight: 700;
  white-space: nowrap;
  transition: transform 0.15s, box-shadow 0.15s;
}
.boton-primario {
  background: var(--fm-gradient-orange);
  color: white;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}
.boton-primario:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.4);
}
.boton-secundario {
  background: var(--fm-card);
  color: var(--fm-text-primary);
  border: 1px solid var(--fm-border);
}
.boton-secundario:hover {
  border-color: var(--fm-orange-500);
  color: var(--fm-orange-600);
}

/* ── Hero ── */
.hero {
  text-align: center;
  padding: 72px 0 64px;
}
.hero h1 {
  font-size: clamp(28px, 5vw, 44px);
  max-width: 780px;
  margin: 0 auto;
}
.hero h1 em {
  font-style: normal;
  color: var(--fm-orange-500);
}
.hero .bajada {
  font-size: clamp(15px, 2.5vw, 17px);
  color: var(--fm-text-secondary);
  max-width: 640px;
  margin: 18px auto 0;
}
.hero-acciones {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
}
.hero-nota {
  margin-top: 18px;
  font-size: 12.5px;
  color: var(--fm-text-muted);
}
.sello-privacidad {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--fm-green-50);
  color: var(--fm-green-600);
  border: 1px solid var(--fm-green-200);
  font-size: 12px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 20px;
}

/* ── Secciones ── */
.seccion {
  padding: 56px 0;
}
.seccion-alterna {
  background: var(--fm-card);
  border-top: 1px solid var(--fm-border);
  border-bottom: 1px solid var(--fm-border);
}
.seccion h2 {
  font-size: clamp(22px, 4vw, 30px);
  text-align: center;
}
.seccion .intro {
  text-align: center;
  color: var(--fm-text-secondary);
  max-width: 620px;
  margin: 12px auto 0;
  font-size: 15px;
}

/* ── Tarjetas genéricas ── */
.rejilla {
  display: grid;
  gap: 16px;
  margin-top: 36px;
}
.rejilla-3 {
  grid-template-columns: repeat(3, 1fr);
}
.rejilla-4 {
  grid-template-columns: repeat(4, 1fr);
}
.tarjeta {
  background: var(--fm-card);
  border: 1px solid var(--fm-border);
  border-radius: var(--fm-radius);
  padding: 24px;
  box-shadow: var(--fm-shadow-sm);
}
.seccion-alterna .tarjeta {
  background: var(--fm-bg);
}
.tarjeta h3 {
  font-size: 16px;
  margin-bottom: 8px;
}
.tarjeta p {
  font-size: 13.5px;
  color: var(--fm-text-secondary);
}
.paso-numero {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--fm-orange-500);
  color: white;
  font-weight: 700;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.tarjeta-icono {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--fm-orange-50);
  color: var(--fm-orange-500);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  font-size: 20px;
}

/* ── Seguridad ── */
.seguridad-caja {
  background: linear-gradient(135deg, #0A0F1A 0%, #162233 100%);
  border-radius: var(--fm-radius);
  padding: 36px 32px;
  margin-top: 36px;
  color: white;
}
.seguridad-caja h3 {
  font-size: 20px;
  margin-bottom: 10px;
}
.seguridad-caja p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  max-width: 720px;
}
.seguridad-lista {
  list-style: none;
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 24px;
}
.seguridad-lista li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.85);
}
.seguridad-lista li::before {
  content: '✓';
  color: var(--fm-green-500);
  font-weight: 700;
  flex-shrink: 0;
}

/* ── FAQ ── */
.faq {
  max-width: 760px;
  margin: 36px auto 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.faq details {
  background: var(--fm-card);
  border: 1px solid var(--fm-border);
  border-radius: var(--fm-radius-sm);
  padding: 16px 20px;
}
.faq summary {
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.faq summary::after {
  content: '+';
  color: var(--fm-orange-500);
  font-size: 20px;
  font-weight: 700;
  flex-shrink: 0;
}
.faq details[open] summary::after {
  content: '–';
}
.faq details p {
  margin-top: 10px;
  font-size: 14px;
  color: var(--fm-text-secondary);
}

/* ── Planes ── */
.plan-precio {
  font-family: var(--fm-font-mono);
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -1px;
}
.plan-precio small {
  font-family: var(--fm-font-body);
  font-size: 13px;
  font-weight: 400;
  color: var(--fm-text-muted);
}
.plan-lista {
  list-style: none;
  margin: 16px 0 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.plan-lista li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13.5px;
  color: var(--fm-text-secondary);
}
.plan-lista li::before {
  content: '✓';
  color: var(--fm-green-500);
  font-weight: 700;
  flex-shrink: 0;
}
.tarjeta-destacada {
  border-color: var(--fm-orange-500);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
  position: relative;
}
.etiqueta-popular {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--fm-orange-500);
  color: white;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.6px;
  padding: 3px 12px;
  border-radius: 999px;
}

/* ── CTA final ── */
.cta-final {
  text-align: center;
  padding: 64px 0;
}

/* ── Footer ── */
.pie {
  background: var(--fm-sidebar-bg);
  color: rgba(255, 255, 255, 0.6);
  padding: 36px 0;
  font-size: 13px;
}
.pie .contenedor {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.pie a {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 700;
}
.pie a:hover {
  color: var(--fm-orange-500);
}
.pie nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .rejilla-4 {
    grid-template-columns: 1fr 1fr;
  }
  .rejilla-3 {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
  }
}
@media (max-width: 640px) {
  .hero {
    padding: 48px 0 44px;
  }
  .rejilla-4 {
    grid-template-columns: 1fr;
  }
  .seguridad-lista {
    grid-template-columns: 1fr;
  }
  .hero-acciones .boton {
    width: 100%;
  }
  .enlace-nav {
    display: none;
  }
}


/* ═══ Animaciones del home ═══ */
@keyframes rk-subir {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes rk-flotar {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* Entrada escalonada del hero al cargar */
.hero .rk-anim {
  animation: rk-subir 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.hero .rk-anim:nth-child(1) { animation-delay: 0.05s; }
.hero .rk-anim:nth-child(2) { animation-delay: 0.15s; }
.hero .rk-anim:nth-child(3) { animation-delay: 0.25s; }
.hero .rk-anim:nth-child(4) { animation-delay: 0.35s; }
.hero .rk-anim:nth-child(5) { animation-delay: 0.45s; }

/* Insignia del hero flotando suavemente */
.hero .insignia {
  animation: rk-subir 0.7s cubic-bezier(0.16, 1, 0.3, 1) both, rk-flotar 4s ease-in-out 1.2s infinite;
}

/* Revelado al hacer scroll (activado por el script del index) */
.rk-reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.rk-reveal.rk-visible {
  opacity: 1;
  transform: translateY(0);
}
/* Escalonado dentro de grillas reveladas */
.rk-reveal.rk-visible:nth-child(2) { transition-delay: 0.1s; }
.rk-reveal.rk-visible:nth-child(3) { transition-delay: 0.2s; }
.rk-reveal.rk-visible:nth-child(4) { transition-delay: 0.3s; }

/* Tarjetas con elevación al pasar el mouse */
.tarjeta-hover {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.tarjeta-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(8, 43, 90, 0.12);
}

/* Sin animaciones para quien las desactiva en su sistema */
@media (prefers-reduced-motion: reduce) {
  .hero .rk-anim, .hero .insignia { animation: none; }
  .rk-reveal { opacity: 1; transform: none; transition: none; }
  .tarjeta-hover, .tarjeta-hover:hover { transform: none; }
}
