/* ==========================================================================
   AylluCaja · Sistema de Diseño Midnight & Gold (Liquid Glass)
   Cero dependencias externas — Carga sub-segundo en redes móviles 4G
   ========================================================================== */

:root {
  --bg-midnight: #07090E;
  --bg-emerald: #081311;
  --surface-glass: rgba(15, 20, 28, 0.62);
  --surface-strong: rgba(255, 255, 255, 0.06);
  --surface-input: rgba(0, 0, 0, 0.38);

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-gold: rgba(212, 175, 55, 0.22);
  --border-gold-strong: rgba(212, 175, 55, 0.58);
  --highlight-top: rgba(255, 255, 255, 0.14);

  --text-main: #F5F7FA;
  --text-muted: #94A0B4;
  --text-subtle: #647084;

  --gold: #D4AF37;
  --gold-bright: #F59E0B;
  --gold-soft: rgba(212, 175, 55, 0.13);

  --emerald: #10B981;
  --emerald-soft: rgba(16, 185, 129, 0.13);

  --coral: #F43F5E;
  --coral-soft: rgba(244, 63, 94, 0.12);

  --radius-card: 22px;
  --radius-btn: 14px;
  --radius-pill: 999px;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
  background-color: var(--bg-midnight);
  color: var(--text-main);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(1100px 580px at 8% -5%, rgba(16, 185, 129, 0.11), transparent 60%),
    radial-gradient(920px 520px at 96% 4%, rgba(212, 175, 55, 0.09), transparent 55%),
    linear-gradient(180deg, var(--bg-midnight) 0%, var(--bg-emerald) 55%, var(--bg-midnight) 100%);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Resplandores ambientales */
.ambient-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.32;
}

.glow-gold {
  width: 420px;
  height: 420px;
  top: -140px;
  right: -100px;
  background: rgba(212, 175, 55, 0.28);
}

.glow-emerald {
  width: 460px;
  height: 460px;
  bottom: 10%;
  left: -160px;
  background: rgba(16, 185, 129, 0.22);
}

main,
header,
footer {
  position: relative;
  z-index: 1;
}

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

.num {
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.text-gold {
  color: var(--gold);
}

.text-emerald {
  color: var(--emerald);
}

a {
  color: inherit;
  text-decoration: none;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
  color: var(--gold);
  background: rgba(212, 175, 55, 0.1);
  padding: 2px 6px;
  border-radius: 6px;
}

/* Superficie Liquid Glass */
.glass-card {
  background: var(--surface-glass);
  backdrop-filter: blur(24px) saturate(150%);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
  border: 1px solid var(--border-gold);
  border-top-color: var(--highlight-top);
  border-radius: var(--radius-card);
  box-shadow:
    0 24px 48px -14px rgba(0, 0, 0, 0.65),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* Píldoras y etiquetas */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pill-gold {
  background: var(--gold-soft);
  border: 1px solid rgba(212, 175, 55, 0.4);
  color: var(--gold);
}

.pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 10px var(--emerald);
}

.kicker {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 10px;
}

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-weight: 800;
  border-radius: var(--radius-btn);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
  border: 1px solid transparent;
  text-align: center;
  line-height: 1.2;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn-sm {
  padding: 9px 15px;
  font-size: 13px;
  border-radius: 11px;
}

.btn-lg {
  padding: 15px 22px;
  font-size: 15px;
}

.btn-block {
  width: 100%;
  padding: 14px 18px;
  font-size: 14px;
}

.btn-gold {
  background: linear-gradient(135deg, #DFBD4B 0%, #C99E26 100%);
  color: #080A0F;
  box-shadow: 0 12px 28px -8px rgba(212, 175, 55, 0.48);
}

.btn-gold:hover {
  box-shadow: 0 16px 34px -8px rgba(212, 175, 55, 0.65);
}

.btn-emerald {
  background: rgba(16, 185, 129, 0.16);
  color: #34D399;
  border-color: rgba(16, 185, 129, 0.42);
}

.btn-emerald:hover {
  background: rgba(16, 185, 129, 0.25);
}

.btn-glass {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  border-color: var(--border-gold);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.btn-glass:hover {
  background: rgba(212, 175, 55, 0.12);
  border-color: var(--border-gold-strong);
}

/* ==========================================================================
   1. NAVBAR
   ========================================================================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 9, 14, 0.76);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border-bottom: 1px solid rgba(212, 175, 55, 0.16);
  transition: box-shadow 0.2s ease, background 0.2s ease;
}

.navbar.scrolled {
  background: rgba(7, 9, 14, 0.9);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--gold-soft);
  border: 1px solid rgba(212, 175, 55, 0.42);
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-sub {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav-links a {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  transition: color 0.16s ease;
}

.nav-links a:hover {
  color: var(--gold);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.menu-toggle {
  display: none;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text-main);
  border-radius: 2px;
}

.mobile-drawer {
  border-top: 1px solid var(--border-subtle);
  background: rgba(10, 14, 21, 0.97);
  padding: 16px 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mobile-drawer[hidden] {
  display: none;
}

.drawer-link {
  padding: 8px 4px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.drawer-ctas {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 6px;
}

/* ==========================================================================
   2. HERO
   ========================================================================== */
.hero {
  padding: 64px 0 76px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 44px;
  align-items: center;
}

.hero-title {
  font-size: clamp(2.05rem, 4vw, 3.25rem);
  font-weight: 850;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin: 18px 0 18px;
}

.hero-subtitle {
  font-size: clamp(1rem, 1.35vw, 1.12rem);
  color: var(--text-muted);
  max-width: 600px;
  margin-bottom: 28px;
}

.hero-subtitle strong {
  color: var(--text-main);
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
}

.trust-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 15px;
  border-radius: 14px;
  background: rgba(16, 185, 129, 0.07);
  border: 1px solid rgba(16, 185, 129, 0.22);
  max-width: 580px;
}

.trust-note svg {
  flex-shrink: 0;
  margin-top: 2px;
}

.trust-note p {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.45;
}

.trust-note strong {
  color: #6EE7B7;
}

/* Mockup App */
.mockup-shell {
  padding: 18px;
  border-color: rgba(212, 175, 55, 0.34);
  position: relative;
}

.mockup-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 14px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
}

.window-dots {
  display: flex;
  gap: 6px;
}

.window-dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
}

.window-dots span:nth-child(1) { background: #F43F5E; }
.window-dots span:nth-child(2) { background: #F59E0B; }
.window-dots span:nth-child(3) { background: #10B981; }

.mockup-tabs {
  display: flex;
  background: rgba(0, 0, 0, 0.4);
  padding: 3px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  gap: 4px;
}

.mock-tab {
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  padding: 6px 11px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.16s ease;
}

.mock-tab.active {
  background: var(--gold-soft);
  color: var(--gold);
  box-shadow: inset 0 0 0 1px rgba(212, 175, 55, 0.42);
}

.mock-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.mock-kicker {
  display: block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--text-subtle);
}

.mock-heading {
  font-size: 17px;
  font-weight: 800;
  margin-top: 2px;
}

.badge-emerald,
.badge-gold {
  font-size: 10px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-emerald {
  background: var(--emerald-soft);
  color: var(--emerald);
  border: 1px solid rgba(16, 185, 129, 0.38);
}

.badge-gold {
  background: var(--gold-soft);
  color: var(--gold);
  border: 1px solid rgba(212, 175, 55, 0.42);
}

.mock-kpi-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}

.mock-kpi {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border-subtle);
  border-radius: 15px;
  padding: 13px;
}

.mock-kpi-gold {
  background: rgba(212, 175, 55, 0.09);
  border-color: rgba(212, 175, 55, 0.3);
}

.mock-kpi-label {
  display: block;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.mock-kpi-val {
  display: block;
  font-size: 21px;
  font-weight: 850;
  margin-bottom: 3px;
}

.mock-kpi-val small {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
}

.mock-kpi-sub {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
}

.mock-loan-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: 15px;
  padding: 14px;
}

.mock-loan-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
}

.mock-loan-title {
  display: block;
  font-size: 13.5px;
  font-weight: 800;
}

.mock-loan-meta {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

.mock-loan-right {
  text-align: right;
}

.mock-progress {
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 10px;
}

.mock-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--emerald), var(--gold));
  border-radius: 999px;
}

.mock-loan-foot {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 11px;
  color: var(--text-muted);
}

/* Mockup Tesorero */
.mock-pills-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.mock-pills-row span {
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
}

.mock-pills-row .pill-mini-coral {
  color: var(--coral);
  border-color: rgba(244, 63, 94, 0.35);
  background: var(--coral-soft);
}

.mock-table {
  border: 1px solid var(--border-subtle);
  border-radius: 13px;
  overflow: hidden;
  margin-bottom: 12px;
  font-size: 12px;
}

.mock-tr {
  display: grid;
  grid-template-columns: 1.8fr 0.6fr 0.6fr 0.9fr;
  align-items: center;
  padding: 9px 11px;
  border-bottom: 1px solid var(--border-subtle);
  gap: 6px;
}

.mock-tr:last-child {
  border-bottom: none;
}

.mock-th {
  background: rgba(255, 255, 255, 0.04);
  font-size: 9.5px;
  font-weight: 800;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.mock-pill-input {
  display: inline-block;
  text-align: center;
  padding: 2px 6px;
  border-radius: 7px;
  background: var(--surface-input);
  border: 1px solid var(--border-subtle);
  font-weight: 700;
}

.tag-kid {
  font-style: normal;
  font-size: 9px;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 99px;
  background: var(--emerald-soft);
  color: var(--emerald);
  margin-left: 4px;
}

.dot-ok {
  font-size: 11px;
  font-weight: 700;
  color: var(--emerald);
  text-align: right;
}

.mock-summary-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--gold-soft);
  border: 1px solid rgba(212, 175, 55, 0.4);
}

.mock-total-num {
  font-size: 20px;
  font-weight: 850;
}

.mock-action-btn {
  padding: 8px 12px;
  border-radius: 10px;
  background: var(--gold);
  color: #080A0F;
  font-size: 12px;
  font-weight: 800;
}

/* ==========================================================================
   SECCIONES GENERALES
   ========================================================================== */
.section {
  padding: 72px 0;
}

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 46px;
}

.section-title {
  font-size: clamp(1.7rem, 3.1vw, 2.45rem);
  font-weight: 850;
  line-height: 1.18;
  letter-spacing: -0.025em;
  margin-bottom: 12px;
}

.section-sub {
  color: var(--text-muted);
  font-size: 1.02rem;
}

/* ==========================================================================
   3. CONTRASTE CORAL VS ESMERALDA
   ========================================================================== */
.contrast-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.contrast-card {
  padding: 30px;
}

.card-coral {
  border-color: rgba(244, 63, 94, 0.34);
  background: linear-gradient(180deg, rgba(244, 63, 94, 0.07) 0%, rgba(15, 20, 28, 0.68) 100%);
}

.card-emerald {
  border-color: rgba(16, 185, 129, 0.4);
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.09) 0%, rgba(15, 20, 28, 0.68) 100%);
}

.contrast-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 14px;
}

.badge-pain {
  background: var(--coral-soft);
  color: #FB7185;
  border: 1px solid rgba(244, 63, 94, 0.38);
}

.badge-gain {
  background: var(--emerald-soft);
  color: #34D399;
  border: 1px solid rgba(16, 185, 129, 0.42);
}

.contrast-card h3 {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 20px;
}

.contrast-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contrast-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14.5px;
  color: var(--text-muted);
}

.contrast-list strong {
  color: var(--text-main);
}

.icon-x,
.icon-check {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 900;
  flex-shrink: 0;
  margin-top: 2px;
}

.icon-x {
  background: var(--coral-soft);
  color: var(--coral);
  border: 1px solid rgba(244, 63, 94, 0.4);
}

.icon-check {
  background: var(--emerald-soft);
  color: var(--emerald);
  border: 1px solid rgba(16, 185, 129, 0.45);
}

/* ==========================================================================
   4. GRID 2x2 HERRAMIENTAS CLAVE
   ========================================================================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.feature-card {
  padding: 28px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-gold-strong);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.icon-gold {
  background: var(--gold-soft);
  color: var(--gold);
  border: 1px solid rgba(212, 175, 55, 0.38);
}

.icon-emerald {
  background: var(--emerald-soft);
  color: var(--emerald);
  border: 1px solid rgba(16, 185, 129, 0.38);
}

.feature-card h3 {
  font-size: 1.18rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 14.5px;
  color: var(--text-muted);
}

.feature-card strong {
  color: var(--text-main);
}

/* ==========================================================================
   5. PRUEBA SOCIAL / MÉTRICAS
   ========================================================================== */
.metrics-section {
  padding: 28px 0 64px;
}

.metrics-banner {
  padding: 36px;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, rgba(16, 185, 129, 0.08) 100%);
  border-color: rgba(212, 175, 55, 0.38);
}

.metrics-intro {
  text-align: center;
  margin-bottom: 30px;
}

.metrics-intro h2 {
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-weight: 850;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.metric-item {
  text-align: center;
  padding: 18px;
  border-radius: 16px;
  background: rgba(7, 9, 14, 0.46);
  border: 1px solid var(--border-subtle);
}

.metric-num {
  display: block;
  font-size: clamp(2rem, 3.6vw, 2.75rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 8px;
}

.metric-desc {
  font-size: 13.5px;
  color: var(--text-muted);
}

/* ==========================================================================
   6. PLANES EN SOLES
   ========================================================================== */
.billing-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 24px;
  padding: 5px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-gold);
}

.toggle-btn {
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 700;
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: all 0.18s ease;
}

.toggle-btn.active {
  background: var(--gold);
  color: #080A0F;
  font-weight: 800;
}

.save-badge {
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.2);
  color: #34D399;
}

.toggle-btn.active .save-badge {
  background: #080A0F;
  color: var(--gold);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  align-items: stretch;
}

.price-card {
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
  position: relative;
}

.price-card-featured {
  border: 1.5px solid var(--gold);
  background: linear-gradient(180deg, rgba(212, 175, 55, 0.11) 0%, rgba(15, 20, 28, 0.78) 45%);
  box-shadow:
    0 28px 60px -12px rgba(0, 0, 0, 0.75),
    0 0 36px -12px rgba(212, 175, 55, 0.35);
  transform: translateY(-6px);
}

.featured-ribbon {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: #080A0F;
  font-size: 10.5px;
  font-weight: 900;
  letter-spacing: 0.08em;
  padding: 4px 14px;
  border-radius: 999px;
  white-space: nowrap;
}

.plan-tier {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

.price-top h3 {
  font-size: 1.35rem;
  font-weight: 850;
  margin: 4px 0;
}

.plan-cap {
  font-size: 13.5px;
  color: var(--text-muted);
}

.plan-cap strong {
  color: var(--text-main);
}

.price-box {
  margin: 22px 0;
  padding: 18px 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.currency {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-muted);
}

.price-amount {
  font-size: 44px;
  font-weight: 900;
  line-height: 1;
}

.price-period {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 600;
}

.price-billing-note {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 6px;
}

.setup-pill {
  margin-top: 12px;
  display: inline-block;
  font-size: 12px;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  padding: 5px 11px;
  border-radius: 9px;
}

.setup-pill strong {
  color: var(--text-main);
}

.setup-pill-gold {
  background: var(--gold-soft);
  border-color: rgba(212, 175, 55, 0.35);
}

.setup-pill-gold strong {
  color: var(--gold);
}

.plan-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 11px;
  font-size: 13.5px;
  color: var(--text-muted);
  margin-bottom: 26px;
  flex: 1;
}

.plan-features strong {
  color: var(--text-main);
}

.migration-banner {
  margin-top: 26px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  border-color: rgba(16, 185, 129, 0.35);
  background: rgba(16, 185, 129, 0.07);
}

.migration-icon {
  font-size: 26px;
  flex-shrink: 0;
}

.migration-banner p {
  font-size: 14px;
  color: var(--text-muted);
}

.migration-banner strong {
  color: var(--text-main);
}

/* ==========================================================================
   7. PREGUNTAS FRECUENTES
   ========================================================================== */
.faq-container {
  max-width: 840px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  overflow: hidden;
}

.faq-question {
  width: 100%;
  background: transparent;
  border: none;
  color: var(--text-main);
  padding: 20px 24px;
  font-size: 15.5px;
  font-weight: 800;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
}

.faq-chevron {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--gold-soft);
  border: 1px solid rgba(212, 175, 55, 0.35);
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.faq-question[aria-expanded="true"] .faq-chevron {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 24px 22px;
  color: var(--text-muted);
  font-size: 14.5px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 14px;
}

.faq-answer strong {
  color: var(--text-main);
}

/* ==========================================================================
   8. CTA FINAL + FOOTER
   ========================================================================== */
.final-cta-section {
  padding-top: 32px;
  padding-bottom: 84px;
}

.final-cta-card {
  padding: 48px 32px;
  text-align: center;
  border-color: rgba(212, 175, 55, 0.45);
  background:
    radial-gradient(600px 280px at 50% 0%, rgba(212, 175, 55, 0.16), transparent 70%),
    var(--surface-glass);
}

.final-cta-card h2 {
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  font-weight: 850;
  max-width: 720px;
  margin: 16px auto 14px;
  line-height: 1.18;
}

.final-cta-card p {
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto 28px;
  font-size: 1rem;
}

.final-cta-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}

.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 32px 0 40px;
  background: rgba(5, 7, 11, 0.72);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.brand-credit {
  font-size: 14px;
  color: var(--text-muted);
}

.brand-credit strong {
  color: var(--text-main);
}

.brand-credit span {
  color: var(--gold);
  font-weight: 700;
}

.footer-note {
  font-size: 12px;
  color: var(--text-subtle);
  margin-top: 4px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 13px;
  color: var(--text-muted);
}

.footer-links a:hover {
  color: var(--gold);
}

/* Animación sutil de aparición */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ==========================================================================
   RESPONSIVE (MÓVIL Y TABLET)
   ========================================================================== */
@media (max-width: 980px) {
  .nav-links {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .hero {
    padding: 40px 0 56px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .contrast-grid,
  .features-grid,
  .metrics-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .price-card-featured {
    transform: none;
  }
}

@media (max-width: 560px) {
  .nav-actions .btn-glass {
    display: none;
  }

  .brand-sub {
    display: none;
  }

  .hero-ctas .btn,
  .final-cta-buttons .btn {
    width: 100%;
  }

  .mock-kpi-grid {
    grid-template-columns: 1fr;
  }

  .mockup-topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .mockup-tabs {
    width: 100%;
  }

  .mock-tab {
    flex: 1;
    text-align: center;
  }

  .section {
    padding: 54px 0;
  }

  .contrast-card,
  .feature-card,
  .metrics-banner,
  .final-cta-card {
    padding: 24px 20px;
  }

  .migration-banner {
    flex-direction: column;
    align-items: flex-start;
  }
}
