/* ==========================================================================
   HogarFinanzas - Landing Page Promocional
   Estilos CSS3 Modernos, Limpios y 100% Responsivos
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. VARIABLES DE DISEÑO & CONFIGURACIÓN BASE
   -------------------------------------------------------------------------- */
:root {
  /* Paleta Fintech: Azul Profundo, Verde Esmeralda y Acentos */
  --color-primary: #0f172a;       /* Slate 900 */
  --color-primary-light: #1e293b; /* Slate 800 */
  --color-brand: #0d9488;         /* Teal / Esmeralda */
  --color-brand-vibrant: #10b981; /* Emerald 500 */
  --color-brand-glow: rgba(16, 185, 129, 0.15);
  
  --color-accent: #f59e0b;        /* Amber 500 */
  --color-accent-hover: #d97706;  /* Amber 600 */
  --color-info: #3b82f6;          /* Blue 500 */
  --color-danger: #ef4444;        /* Red 500 */
  
  /* Fondos y Neutros */
  --bg-body: #ffffff;
  --bg-alt: #f8fafc;              /* Slate 50 */
  --bg-card: #ffffff;
  --bg-card-subtle: #f1f5f9;      /* Slate 100 */
  
  /* Textos */
  --text-main: #0f172a;
  --text-muted: #475569;          /* Slate 600 */
  --text-light: #94a3b8;          /* Slate 400 */
  --text-inverted: #ffffff;
  
  /* Bordes y Sombras */
  --border-color: #e2e8f0;        /* Slate 200 */
  --border-focus: #10b981;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 4px 16px -2px rgba(15, 23, 42, 0.08), 0 2px 6px -1px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 12px 32px -4px rgba(15, 23, 42, 0.12), 0 4px 12px -2px rgba(15, 23, 42, 0.06);
  --shadow-xl: 0 24px 48px -8px rgba(15, 23, 42, 0.16);

  /* Tipografías */
  --font-heading: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;

  /* Transiciones */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --------------------------------------------------------------------------
   2. RESETEO & REGLAS GLOBALES
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

ul {
  list-style: none;
}

button, input, textarea {
  font-family: inherit;
  font-size: inherit;
}

/* --------------------------------------------------------------------------
   3. CONTENEDOR & UTILIDADES DE TIPOGRAFÍA
   -------------------------------------------------------------------------- */
/* --------------------------------------------------------------------------
   3. CONTENEDOR & UTILIDADES DE TIPOGRAFÍA
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.text-center {
  text-align: center;
}

.text-gradient {
  background: linear-gradient(135deg, #0d9488 0%, #10b981 50%, #0284c7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Secciones genéricas */
.section {
  padding: 5rem 0;
  position: relative;
}

.section-header {
  max-width: 680px;
  margin: 0 auto 3.5rem auto;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-brand);
  background-color: var(--color-brand-glow);
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.9rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1.25;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* --------------------------------------------------------------------------
   4. BOTONES & COMPONENTES CTA
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-normal);
  text-align: center;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #0d9488 0%, #10b981 100%);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.35);
}

.btn-accent {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
}

.btn-accent:hover {
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.45);
}

.btn-outline {
  background-color: #ffffff;
  color: var(--color-primary);
  border-color: var(--border-color);
}

.btn-outline:hover {
  border-color: var(--color-brand);
  color: var(--color-brand);
  background-color: var(--bg-alt);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 0.85rem 1.6rem;
  font-size: 1rem;
  border-radius: var(--radius-md);
}

.btn-block {
  width: 100%;
}

/* --------------------------------------------------------------------------
   5. BARRA DE NAVEGACIÓN FIJA
   -------------------------------------------------------------------------- */
.navbar-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  transition: all var(--transition-normal);
}

.navbar-wrapper.scrolled {
  background-color: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-sm);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 1.5rem;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-primary);
  flex-shrink: 0;
  margin-right: 1.5rem;
}

.logo-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.logo-text strong {
  color: var(--color-brand-vibrant);
  font-weight: 800;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  flex: 1;
  justify-content: center;
}

.nav-link {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  padding: 0.35rem 0.2rem;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-primary);
  font-weight: 600;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: var(--color-brand-vibrant);
  border-radius: 2px;
  transition: width var(--transition-fast);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.mobile-only-cta {
  display: none;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
  margin-left: 1.5rem;
}

/* Botón CTA del Header más estilizado, compacto y fintech */
.nav-cta {
  padding: 0.5rem 1.15rem;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12);
}

.nav-cta svg {
  width: 14px;
  height: 14px;
}

.hamburger-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  flex-direction: column;
  gap: 5px;
}

.hamburger-btn .bar {
  width: 24px;
  height: 2px;
  background-color: var(--color-primary);
  border-radius: 2px;
  transition: all var(--transition-normal);
}

/* Estado activo del botón hamburguesa */
.hamburger-btn.is-active .bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger-btn.is-active .bar:nth-child(2) {
  opacity: 0;
}
.hamburger-btn.is-active .bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* --------------------------------------------------------------------------
   6. HERO PRINCIPAL & MOCKUP DEL DASHBOARD
   -------------------------------------------------------------------------- */
.hero-section {
  padding-top: calc(72px + 3.5rem);
  padding-bottom: 3.5rem;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  position: relative;
  overflow: hidden;
}

.hero-bg-glow {
  position: absolute;
  top: -150px;
  right: -100px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.12) 0%, rgba(59, 130, 246, 0.04) 60%, transparent 80%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.hero-container {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: 3.5rem;
  position: relative;
  z-index: 1;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-brand);
  background-color: #ecfdf5;
  border: 1px solid #a7f3d0;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  align-self: flex-start;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background-color: var(--color-brand-vibrant);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25);
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.5rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 0.5rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* Mockup visual estilizado con CSS/HTML */
.hero-mockup-wrapper {
  position: relative;
}

.mockup-card {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  transition: transform var(--transition-normal);
}

.mockup-card:hover {
  transform: translateY(-4px);
}

.mockup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #f8fafc;
  padding: 0.75rem 1.2rem;
  border-bottom: 1px solid var(--border-color);
}

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

.window-controls .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.window-controls .dot.red { background-color: #ef4444; }
.window-controls .dot.yellow { background-color: #f59e0b; }
.window-controls .dot.green { background-color: #10b981; }

.mockup-title-bar {
  font-family: monospace;
  font-size: 0.78rem;
  color: var(--text-light);
  background-color: #ffffff;
  padding: 0.2rem 0.8rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
}

.user-pill {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-primary);
}

.user-pill .avatar {
  width: 22px;
  height: 22px;
  background-color: #10b981;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
}

.mockup-body {
  padding: 1.25rem;
  background-color: #ffffff;
}

/* Alerta de pago dentro del mockup */
.payment-alert {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background-color: #fffbeb;
  border: 1px solid #fde68a;
  padding: 0.65rem 0.9rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.2rem;
  font-size: 0.82rem;
}

.payment-alert .alert-text {
  flex: 1;
  color: #92400e;
}

.alert-tag {
  background-color: #f59e0b;
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
}

/* KPI Cards */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.2rem;
}

.kpi-card {
  padding: 0.85rem;
  border-radius: var(--radius-md);
  background-color: #f8fafc;
  border: 1px solid var(--border-color);
}

.kpi-card.income { border-top: 3px solid #10b981; }
.kpi-card.expense { border-top: 3px solid #ef4444; }
.kpi-card.balance { border-top: 3px solid #0d9488; }

.kpi-label {
  font-size: 0.74rem;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
}

.kpi-value {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  color: var(--color-primary);
  margin-bottom: 0.2rem;
}

.kpi-trend {
  font-size: 0.68rem;
  font-weight: 600;
}
.kpi-trend.positive { color: #059669; }
.kpi-trend.warning { color: #d97706; }

/* Mockup split: Barras y Cuotas */
.mockup-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.mockup-widget {
  background-color: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.85rem;
}

.widget-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.widget-header h4 {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-primary);
}

.widget-subtitle {
  font-size: 0.7rem;
  color: var(--text-light);
}

.widget-badge {
  background-color: #e0f2fe;
  color: #0284c7;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-full);
}

/* Category Bars */
.category-bars {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.cat-item .cat-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.cat-progress {
  height: 6px;
  background-color: #e2e8f0;
  border-radius: var(--radius-full);
  overflow: hidden;
}

.cat-fill {
  height: 100%;
  border-radius: var(--radius-full);
}

/* Installments list */
.installments-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.installment-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background-color: #ffffff;
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
}

.inst-icon {
  font-size: 1rem;
}

.inst-details {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.inst-name {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-primary);
}

.inst-meta {
  font-size: 0.66rem;
  color: var(--text-light);
}

.inst-amount {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--color-primary);
}

/* Floating Card Decorator */
.mockup-float-card {
  position: absolute;
  bottom: -20px;
  left: -20px;
  background-color: #ffffff;
  border: 1px solid #10b981;
  box-shadow: var(--shadow-lg);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: 2;
}

.float-icon {
  width: 28px;
  height: 28px;
  background-color: #10b981;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
}

.float-text .title {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-primary);
}

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

/* Franja de Confianza */
.trust-strip {
  margin-top: 3.5rem;
  padding: 1.25rem 0;
  background-color: var(--color-primary);
  color: #ffffff;
}

.trust-strip-text {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-align: center;
}

.trust-strip-text .bullet {
  color: var(--color-brand-vibrant);
  font-weight: 800;
}

/* --------------------------------------------------------------------------
   7. SECCIÓN: PROBLEMA QUE RESUELVE
   -------------------------------------------------------------------------- */
.section-problem {
  background-color: #ffffff;
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 3.5rem;
}

.problem-card {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  padding: 2.2rem 1.8rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.problem-card:hover {
  transform: translateY(-4px);
  border-color: #fecaca;
  box-shadow: var(--shadow-md);
}

.problem-icon {
  width: 52px;
  height: 52px;
  background-color: #fef2f2;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.problem-item-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.75rem;
  line-height: 1.35;
}

.problem-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Solución Banner */
.solution-banner {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #ffffff;
  padding: 2.5rem 3rem;
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  box-shadow: var(--shadow-lg);
}

.solution-badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-brand-vibrant);
  margin-bottom: 0.5rem;
}

.solution-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.solution-text {
  font-size: 1rem;
  color: #94a3b8;
  max-width: 650px;
}

/* --------------------------------------------------------------------------
   8. BENEFICIOS PRINCIPALES
   -------------------------------------------------------------------------- */
.section-benefits {
  background-color: var(--bg-alt);
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.benefit-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 2.2rem 1.8rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.benefit-card:hover {
  transform: translateY(-5px);
  border-color: #a7f3d0;
  box-shadow: var(--shadow-lg);
}

.benefit-icon-wrapper {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-md);
  background-color: #ecfdf5;
  color: var(--color-brand-vibrant);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.benefit-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.65rem;
}

.benefit-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   9. FUNCIONALIDADES DESTACADAS (Alternando)
   -------------------------------------------------------------------------- */
.section-features {
  background-color: #ffffff;
}

.features-list {
  display: flex;
  flex-direction: column;
  gap: 4.5rem;
}

.feature-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 3.5rem;
}

.feature-item.reverse {
  grid-template-columns: 1fr 1fr;
}

.feature-item.reverse .feature-text {
  order: 2;
}

.feature-item.reverse .feature-visual {
  order: 1;
}

.feature-step-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-brand);
  background-color: var(--color-brand-glow);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.75rem;
}

.feature-title {
  font-family: var(--font-heading);
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1.3;
  margin-bottom: 1rem;
}

.feature-description {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

.feature-checklist {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.feature-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--text-main);
}

.feature-checklist li svg {
  flex-shrink: 0;
  margin-top: 3px;
}

/* Mockups dentro de features */
.feature-card-mockup {
  background-color: var(--bg-alt);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
}

.mockup-header-small {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--color-primary);
}

.badge-mini {
  font-size: 0.72rem;
  font-weight: 600;
  background-color: #ecfdf5;
  color: #059669;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-full);
}
.badge-mini.badge-warning {
  background-color: #fffbeb;
  color: #b45309;
}

.form-preview {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.input-sim {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
}

.input-sim .label {
  color: var(--text-light);
}

.input-sim .val.green {
  font-weight: 700;
  color: #10b981;
}

.tag-pill {
  background-color: #f1f5f9;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  color: var(--color-primary);
}

/* Budget meter */
.budget-meter {
  background-color: #ffffff;
  padding: 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.meter-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.meter-bar {
  height: 10px;
  background-color: #e2e8f0;
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: 0.75rem;
}

.meter-fill {
  height: 100%;
  background: linear-gradient(90deg, #10b981, #059669);
  border-radius: var(--radius-full);
}

.meter-note {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Credit card preview mockup */
.credit-card-preview {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  color: #ffffff;
  padding: 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.card-chip {
  width: 36px;
  height: 26px;
  background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
  border-radius: 4px;
  margin-bottom: 1.5rem;
}

.card-number {
  font-family: monospace;
  font-size: 1.15rem;
  letter-spacing: 0.15em;
  margin-bottom: 1.5rem;
  color: #e2e8f0;
}

.card-details-row {
  display: flex;
  justify-content: space-between;
}

.card-details-row .sub {
  display: block;
  font-size: 0.65rem;
  color: #94a3b8;
  text-transform: uppercase;
}

.card-details-row strong {
  font-size: 0.95rem;
}

/* Device Sync Mockup */
.device-sync-mockup {
  display: flex;
  justify-content: center;
}

.mobile-frame {
  width: 240px;
  background-color: #0f172a;
  border-radius: 36px;
  padding: 10px;
  box-shadow: var(--shadow-lg);
}

.screen-notch {
  width: 60px;
  height: 8px;
  background-color: #0f172a;
  border-radius: 4px;
  margin: 0 auto 8px auto;
}

.mobile-content-sim {
  background-color: #ffffff;
  border-radius: 28px;
  padding: 1.25rem 1rem;
  text-align: center;
}

.mini-title {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  color: var(--color-primary);
}

.mini-chart {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 8px;
  height: 90px;
  margin-bottom: 1rem;
}

.mini-chart span {
  width: 14px;
  background-color: #10b981;
  border-radius: 4px 4px 0 0;
}

.mini-label {
  display: inline-block;
  font-size: 0.7rem;
  color: #059669;
  background-color: #ecfdf5;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-full);
}

/* --------------------------------------------------------------------------
   10. CÓMO FUNCIONA
   -------------------------------------------------------------------------- */
.section-how {
  background-color: var(--bg-alt);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 3.5rem;
}

.step-card {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  padding: 2.5rem 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: all var(--transition-normal);
}

.step-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.step-number {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  color: #e2e8f0;
  line-height: 1;
}

.step-icon {
  width: 58px;
  height: 58px;
  background-color: #ecfdf5;
  color: var(--color-brand-vibrant);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.step-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.75rem;
  line-height: 1.35;
}

.step-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.step-desc a {
  color: var(--color-brand);
  font-weight: 600;
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   11. SECCIÓN DE CONFIANZA & AVISO LEGAL
   -------------------------------------------------------------------------- */
.section-trust {
  background-color: #ffffff;
}

.trust-box {
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 3.5rem 3rem;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  box-shadow: var(--shadow-sm);
}

.trust-icon-badge {
  width: 64px;
  height: 64px;
  background-color: #ecfdf5;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem auto;
}

.trust-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
}

.trust-points {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin-bottom: 2rem;
}

.trust-p {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.disclaimer-callout {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background-color: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  text-align: left;
}

.disclaimer-icon {
  font-size: 1.3rem;
  line-height: 1;
}

.disclaimer-text {
  font-size: 0.9rem;
  color: #92400e;
  line-height: 1.55;
}

/* --------------------------------------------------------------------------
   12. SECCIÓN DE PRECIOS
   -------------------------------------------------------------------------- */
.section-pricing {
  background-color: var(--bg-alt);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
  gap: 2rem;
  align-items: stretch;
  margin-bottom: 2.5rem;
}

.pricing-card {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: all var(--transition-normal);
}

.pricing-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.pricing-card.featured {
  border-color: var(--color-brand-vibrant);
  box-shadow: var(--shadow-xl);
  transform: scale(1.03);
  z-index: 2;
}

.pricing-card.featured:hover {
  transform: scale(1.03) translateY(-5px);
}

.popular-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #0d9488 0%, #10b981 100%);
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.35rem 1rem;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 10px rgba(16, 185, 129, 0.3);
}

.plan-name {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 0.4rem;
}

.plan-for {
  font-size: 0.9rem;
  color: var(--text-muted);
  min-height: 44px;
}

.plan-price {
  margin: 1.5rem 0;
  display: flex;
  align-items: baseline;
  gap: 0.3rem;
}

.plan-price .currency {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-muted);
}

.plan-price .amount {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1;
}

.plan-price .period {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.plan-features {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin-bottom: 2rem;
  flex-grow: 1;
}

.plan-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.92rem;
  color: var(--text-main);
}

.plan-features li svg {
  flex-shrink: 0;
  margin-top: 3px;
}

.feature-highlight {
  color: var(--color-brand) !important;
}

.pricing-card-footer {
  margin-top: auto;
}

.pricing-footnote {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-top: 1.5rem;
}

/* --------------------------------------------------------------------------
   13. PREGUNTAS FRECUENTES (FAQ) - ACORDEÓN
   -------------------------------------------------------------------------- */
.section-faq {
  background-color: #ffffff;
}

.accordion {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.accordion-item {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  background-color: #ffffff;
  transition: border-color var(--transition-fast);
}

.accordion-item.active {
  border-color: var(--color-brand-vibrant);
}

.accordion-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.35rem 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: background-color var(--transition-fast);
}

.accordion-header:hover {
  background-color: var(--bg-alt);
}

.accordion-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-primary);
}

.accordion-icon {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--color-brand);
  line-height: 1;
  transition: transform var(--transition-normal);
}

.accordion-item.active .accordion-icon {
  transform: rotate(45deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 1.5rem;
}

.accordion-item.active .accordion-content {
  padding: 0 1.5rem 1.35rem 1.5rem;
}

.accordion-content p {
  font-size: 0.98rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* --------------------------------------------------------------------------
   14. LLAMADO FINAL A LA ACCIÓN (BANNER CTA)
   -------------------------------------------------------------------------- */
.section-cta-final {
  background-color: var(--bg-alt);
  padding: 3rem 0;
}

.cta-banner {
  background: linear-gradient(135deg, #0f172a 0%, #134e4a 100%);
  border-radius: var(--radius-xl);
  padding: 4.5rem 3rem;
  text-align: center;
  color: #ffffff;
  box-shadow: var(--shadow-xl);
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.25) 0%, transparent 70%);
  pointer-events: none;
}

.cta-banner-content {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 0 auto;
}

.cta-title {
  font-family: var(--font-heading);
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.25rem;
}

.cta-description {
  font-size: 1.15rem;
  color: #cbd5e1;
  line-height: 1.6;
  margin-bottom: 2.25rem;
}

.cta-action-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
}

.cta-subnote {
  font-size: 0.85rem;
  color: #94a3b8;
}

/* --------------------------------------------------------------------------
   15. FORMULARIO DE CONTACTO
   -------------------------------------------------------------------------- */
.section-contact {
  background-color: #ffffff;
}

.contact-card {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.contact-info {
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  padding: 3.5rem;
  display: flex;
  flex-direction: column;
}

.contact-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.contact-desc {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 2rem;
}

.contact-feature-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: auto;
}

.c-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--text-main);
}

.c-item a {
  color: var(--color-brand);
  font-weight: 600;
  text-decoration: underline;
}

.contact-form-wrap {
  padding: 3.5rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-primary);
}

.form-group label .required {
  color: var(--color-danger);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background-color: #ffffff;
  color: var(--text-main);
  transition: all var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-brand);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

.form-group input.invalid,
.form-group textarea.invalid {
  border-color: var(--color-danger);
  background-color: #fef2f2;
}

.field-error {
  font-size: 0.78rem;
  color: var(--color-danger);
  display: none;
}

.field-error.show {
  display: block;
}

/* Mensaje de éxito simulado */
.form-success-alert {
  display: none;
  align-items: flex-start;
  gap: 0.85rem;
  background-color: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: var(--radius-md);
  padding: 1.2rem;
  margin-top: 1rem;
}

.form-success-alert.show {
  display: flex;
  animation: fadeIn 0.4s ease forwards;
}

.success-icon {
  width: 28px;
  height: 28px;
  background-color: #10b981;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  flex-shrink: 0;
}

.form-success-alert strong {
  display: block;
  color: #065f46;
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
}

.form-success-alert p {
  color: #047857;
  font-size: 0.88rem;
}

/* --------------------------------------------------------------------------
   16. FOOTER
   -------------------------------------------------------------------------- */
.footer {
  background-color: #0b1329;
  color: #94a3b8;
  padding-top: 4.5rem;
  border-top: 1px solid #1e293b;
}

.footer-content {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.2fr;
  gap: 3.5rem;
  padding-bottom: 3.5rem;
}

.footer-logo {
  color: #ffffff;
  margin-bottom: 1rem;
}

.footer-tagline {
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.footer-app-link {
  color: #38bdf8;
  font-size: 0.92rem;
}
.footer-app-link:hover {
  text-decoration: underline;
}

.footer-heading {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1.2rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-links a {
  font-size: 0.92rem;
}

.footer-links a:hover {
  color: #ffffff;
}

.legal-text {
  font-size: 0.88rem;
  line-height: 1.6;
}

.footer-bottom {
  border-top: 1px solid #1e293b;
  padding: 1.5rem 0;
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
}

.footer-host a {
  color: #38bdf8;
}

/* --------------------------------------------------------------------------
   17. ANIMACIONES AL HACER SCROLL (INTERSECTION OBSERVER)
   -------------------------------------------------------------------------- */
.fade-in-element {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in-element.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --------------------------------------------------------------------------
   18. RESPONSIVE BREAKPOINTS (MEDIA QUERIES)
   -------------------------------------------------------------------------- */

/* --------------------------------------------------------------------------
   18. RESPONSIVE BREAKPOINTS (MEDIA QUERIES)
   -------------------------------------------------------------------------- */

/* Breakpoint para barra de navegación (<= 1100px) */
@media (max-width: 1100px) {
  .hamburger-btn {
    display: flex;
  }

  .nav-cta {
    display: none;
  }

  .nav-links {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background-color: #ffffff;
    flex-direction: column;
    padding: 2rem 1.5rem;
    gap: 1.25rem;
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    transform: translateY(-150%);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
  }

  .nav-links.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .mobile-only-cta {
    display: block;
    width: 100%;
    margin-top: 0.5rem;
  }
}

/* Tablets y Pantallas Medianas (<= 1024px) */
@media (max-width: 1024px) {
  /* Hero perfectamente centrado en ambas partes */
  .hero-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    max-width: 760px;
    margin: 0 auto;
    gap: 3rem;
  }

  .hero-content {
    width: 100%;
    max-width: 620px;
    margin: 0 auto;
    text-align: center;
    align-items: center;
    display: flex;
    flex-direction: column;
  }

  .hero-badge {
    align-self: center;
    margin: 0 auto;
  }

  .hero-title {
    text-align: center;
  }

  .hero-subtitle {
    text-align: center;
    margin: 0 auto;
    max-width: 560px;
  }

  .hero-ctas {
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    width: 100%;
  }

  .hero-meta {
    justify-content: center;
    margin: 0 auto;
    width: 100%;
  }

  .hero-mockup-wrapper {
    width: 100%;
    max-width: 580px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    position: relative;
  }

  .mockup-card {
    width: 100%;
    margin: 0 auto;
  }

  /* Ocultar tarjeta flotante en tablet y móvil para evitar desalineaciones asimétricas */
  .mockup-float-card {
    display: none;
  }

  .problem-grid,
  .benefits-grid,
  .steps-grid,
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pricing-card.featured {
    transform: none;
    order: -1;
  }
  .pricing-card.featured:hover {
    transform: translateY(-5px);
  }

  .feature-item,
  .feature-item.reverse {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .feature-item.reverse .feature-text {
    order: 1;
  }

  .feature-item.reverse .feature-visual {
    order: 2;
  }

  .contact-card {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }

  .footer-legal-col {
    grid-column: span 2;
  }
}

/* Dispositivos Móviles (<= 768px) */
@media (max-width: 768px) {
  .section {
    padding: 3.5rem 0;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .section-title {
    font-size: 1.85rem;
  }

  /* Grids en una sola columna centrados */
  .problem-grid,
  .benefits-grid,
  .steps-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
  }

  .solution-banner {
    flex-direction: column;
    text-align: center;
    padding: 2rem 1.5rem;
  }

  .mockup-split {
    grid-template-columns: 1fr;
  }

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

  .trust-strip-text {
    gap: 0.75rem;
    font-size: 0.88rem;
    justify-content: center;
    text-align: center;
  }

  .trust-box {
    padding: 2.5rem 1.5rem;
  }

  .contact-info,
  .contact-form-wrap {
    padding: 2rem 1.5rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-legal-col {
    grid-column: span 1;
  }

  .footer-bottom-inner {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
}

/* Pantallas Pequeñas (<= 480px) */
@media (max-width: 480px) {
  .hero-title {
    font-size: 1.85rem;
  }

  .hero-ctas {
    flex-direction: column;
    width: 100%;
  }

  .hero-ctas .btn {
    width: 100%;
  }

  .cta-title {
    font-size: 1.85rem;
  }

  .cta-banner {
    padding: 3rem 1.5rem;
  }
}
