/* ==========================================================================
   Tus Gastos con Control — Estilos base
   Diseño: profesional, moderno, limpio, financiero pero cercano
   ========================================================================== */

/* ---- Reset y normalización ---- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  min-height: 100%;
  background: var(--background-base);
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--background-base);
  background-image:
    radial-gradient(circle at 8% 7%, rgba(0, 164, 126, 0.24) 0%, rgba(0, 164, 126, 0.10) 21%, transparent 43%),
    radial-gradient(circle at 92% 10%, rgba(30, 58, 138, 0.22) 0%, rgba(30, 58, 138, 0.08) 25%, transparent 46%),
    radial-gradient(circle at 82% 84%, rgba(255, 166, 92, 0.16) 0%, rgba(255, 166, 92, 0.06) 24%, transparent 44%),
    linear-gradient(145deg, #EAF3FF 0%, #EAF9F4 42%, #FFF5E9 73%, #EFF5FC 100%);
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

@media (max-width: 720px) {
  body {
    background-attachment: scroll;
  }
}

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

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--primary-dark);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ---- Variables (Sistema de diseño) ---- */
:root {
  /* Marca — paleta solicitada */
  --brand-navy: #082C69;
  --brand-blue: #1E3A8A;
  --brand-green: #00A47E;
  --background-blue: #E7F0FF;
  --background-green: #E8FAF4;
  --background-warm: #FFF3E7;
  --background-base: #F3F7FC;

  /* Colores primarios — Verde como color principal de control y economía */
  /* Colores primarios — Verde como color principal de control y economía */
  --primary: #059669;
  --primary-dark: #047857;
  --primary-light: #10b981;
  --primary-tint: #ecfdf5;
  --primary-tint-2: #d1fae5;

  /* Apoyo — azul/teal para acentos secundarios */
  --support: #0d9488;
  --support-light: #14b8a6;
  --support-tint: #f0fdfa;

  /* Acentos */
  --accent: #10b981;
  --accent-dark: #047857;
  --accent-tint: #d1fae5;

  /* Alertas y estados financieros (uso puntual) */
  --warn: #ea580c;
  --warn-tint: #fff7ed;
  --danger: #dc2626;
  --danger-tint: #fef2f2;

  /* Texto */
  --text: #0f172a;
  --text-muted: #475569;
  --text-light: #64748b;
  --text-on-primary: #ffffff;

  /* Fondos */
  --bg: #ffffff;
  --bg-subtle: #f0fdf4;       /* verde muy suave */
  --bg-soft: #f7fee7;         /* verde lima muy suave */
  --bg-blue-soft: #eff6ff;     /* azul muy suave para apoyo */
  --bg-card: #ffffff;
  --bg-overlay: rgba(15, 23, 42, 0.5);

  /* Bordes */
  --border: #e2e8f0;
  --border-strong: #cbd5e1;

  /* Sombras — más sutiles, con un toque verde */
  --shadow-sm: 0 1px 2px 0 rgba(6, 78, 59, 0.06);
  --shadow: 0 4px 12px -2px rgba(6, 95, 70, 0.10), 0 2px 4px -2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 12px 24px -6px rgba(6, 95, 70, 0.12), 0 4px 8px -4px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 24px 36px -8px rgba(6, 95, 70, 0.16), 0 8px 12px -6px rgba(15, 23, 42, 0.04);

  /* Radios */
  --radius-sm: 10px;
  --radius: 14px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-full: 9999px;

  /* Espaciado (escala 4px) */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Tipografía */
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-lg: 1.125rem;
  --fs-xl: 1.25rem;
  --fs-2xl: 1.5rem;
  --fs-3xl: 1.875rem;
  --fs-4xl: 2.25rem;
  --fs-5xl: 3rem;
  --fs-6xl: 3.75rem;

  /* Layout */
  --container: 1200px;
  --container-narrow: 800px;
  --header-height: 72px;

  /* Transiciones */
  --transition: 0.2s ease;
}

/* ---- Tipografía ---- */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
  letter-spacing: -0.02em;
}

h1 {
  font-size: var(--fs-4xl);
  letter-spacing: -0.03em;
}

h2 {
  font-size: var(--fs-3xl);
  letter-spacing: -0.025em;
}

h3 {
  font-size: var(--fs-xl);
}

p {
  color: var(--text-muted);
  line-height: 1.7;
}

/* ---- Layout principal ---- */
main {
  flex: 1;
  width: 100%;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.container-narrow {
  max-width: var(--container-narrow);
}

/* ---- HEADER ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 250, 253, 0.90);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(30, 58, 138, 0.10);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  gap: var(--space-6);
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: var(--fs-lg);
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.brand:hover {
  color: var(--primary);
}

.brand-logo {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  object-fit: contain;
}

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

.brand-name {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
  letter-spacing: -0.01em;
  background: linear-gradient(135deg, var(--text) 0%, var(--primary-dark) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.brand-tag {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-light);
  letter-spacing: 0.02em;
  display: none;
}

@media (min-width: 480px) {
  .brand-tag {
    display: block;
  }
}

/* Navegación principal */
.nav {
  display: none;
  align-items: center;
  gap: var(--space-2);
}

@media (min-width: 900px) {
  .nav {
    display: flex;
  }
}

.nav a {
  display: inline-block;
  padding: var(--space-2) var(--space-4);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.nav a:hover {
  color: var(--primary);
  background-color: var(--primary-tint);
}

.nav a.active {
  color: var(--primary);
  background-color: var(--primary-tint);
}

/* Botón hamburguesa */
.menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  color: var(--text);
  transition: background-color var(--transition);
}

.menu-toggle:hover {
  background-color: var(--primary-tint);
  color: var(--primary);
}

@media (min-width: 900px) {
  .menu-toggle {
    display: none;
  }
}

.menu-toggle svg {
  width: 24px;
  height: 24px;
}

/* Menú móvil */
.mobile-menu {
  display: none;
  position: fixed;
  top: var(--header-height);
  right: 0;
  bottom: 0;
  left: 0;
  background-color: var(--bg);
  z-index: 99;
  overflow-y: auto;
  padding: var(--space-6);
  border-top: 1px solid var(--border);
}

.mobile-menu.is-open {
  display: block;
}

.mobile-menu a {
  display: block;
  padding: var(--space-4) var(--space-3);
  font-size: var(--fs-lg);
  font-weight: 500;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  border-radius: 0;
}

.mobile-menu a:hover,
.mobile-menu a.active {
  color: var(--primary);
  background-color: transparent;
}

@media (min-width: 900px) {
  .mobile-menu {
    display: none !important;
  }
}

/* ---- FOOTER ---- */
.site-footer {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-top: 1px solid rgba(30, 58, 138, 0.10);
  padding: var(--space-16) 0 var(--space-8);
  margin-top: var(--space-20);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-10);
  margin-bottom: var(--space-10);
}

@media (min-width: 720px) {
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: var(--space-12);
  }
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-weight: 700;
  font-size: var(--fs-lg);
  color: var(--text);
  margin-bottom: var(--space-4);
  letter-spacing: -0.01em;
}

.footer-brand span {
  background: linear-gradient(135deg, var(--text) 0%, var(--primary-dark) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.footer-brand-logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.footer-tagline {
  font-size: var(--fs-sm);
  color: var(--text-light);
  line-height: 1.6;
  max-width: 360px;
}

.footer-title {
  font-size: var(--fs-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text);
  margin-bottom: var(--space-4);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-links a {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  font-weight: 500;
}

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

.footer-bottom {
  padding-top: var(--space-6);
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  align-items: flex-start;
}

@media (min-width: 720px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.footer-copyright {
  font-size: var(--fs-sm);
  color: var(--text-light);
}

.footer-disclaimer {
  font-size: 0.75rem;
  color: var(--text-light);
  line-height: 1.6;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  font-style: italic;
}

.footer-bottom-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  align-items: center;
}

/* ---- HERO (Inicio) ---- */
.hero {
  position: relative;
  padding: var(--space-20) 0 var(--space-20);
  background:
    /* Mancha azul marina en esquina superior izquierda */
    radial-gradient(ellipse 55% 55% at 0% 0%, rgba(8, 44, 105, 0.32) 0%, transparent 60%),
    /* Mancha teal/petróleo en zona superior central */
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(0, 164, 126, 0.40) 0%, transparent 60%),
    /* Mancha azul claro a la derecha */
    radial-gradient(ellipse 50% 55% at 100% 25%, rgba(30, 58, 138, 0.32) 0%, transparent 55%),
    /* Mancha de luz verde suave detrás del logo */
    radial-gradient(ellipse 45% 50% at 50% 30%, rgba(0, 164, 126, 0.30) 0%, transparent 55%),
    /* Toque melocotón cálido en la base derecha */
    radial-gradient(ellipse 35% 40% at 90% 80%, rgba(255, 166, 92, 0.22) 0%, transparent 55%),
    /* Halo blanco central para legibilidad del título */
    radial-gradient(ellipse 80% 55% at 50% 60%, rgba(255, 255, 255, 0.45) 0%, transparent 65%),
    /* Base: degradado principal azul-verde elegante */
    linear-gradient(160deg, #d1e1ff 0%, #d5f0e6 35%, #e6f5e9 65%, #ffeed6 100%);
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  z-index: 0;
  pointer-events: none;
}

.hero::before {
  width: 540px;
  height: 540px;
  background: linear-gradient(135deg, rgba(0, 164, 126, 0.55) 0%, rgba(20, 184, 166, 0.55) 100%);
  top: -200px;
  left: 20%;
  opacity: 0.50;
}

.hero::after {
  width: 480px;
  height: 480px;
  background: linear-gradient(135deg, rgba(8, 44, 105, 0.55) 0%, rgba(30, 58, 138, 0.55) 100%);
  bottom: -180px;
  right: -120px;
  opacity: 0.45;
}

.hero > .container {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 var(--space-6);
  max-width: 100%;
  width: 100%;
}

.hero-logo img {
  width: auto;
  max-width: 280px;
  height: auto;
  max-height: 108px;
  object-fit: contain;
  aspect-ratio: 1584 / 612;
  filter:
    drop-shadow(0 24px 48px rgba(6, 78, 59, 0.35))
    drop-shadow(0 4px 12px rgba(15, 76, 92, 0.15));
}

@media (min-width: 720px) {
  .hero-logo img {
    max-width: 440px;
    max-height: 170px;
  }
}

@media (min-width: 1024px) {
  .hero-logo img {
    max-width: 540px;
    max-height: 208px;
  }
}

@media (min-width: 1280px) {
  .hero-logo img {
    max-width: 580px;
    max-height: 224px;
  }
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  background-color: rgba(255, 255, 255, 0.85);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: var(--primary-dark);
  font-size: var(--fs-sm);
  font-weight: 600;
  border-radius: var(--radius-full);
  margin: 0 0 var(--space-8);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow:
    0 2px 12px -2px rgba(6, 78, 59, 0.20),
    0 0 0 1px rgba(5, 150, 105, 0.05);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.hero h1 {
  font-size: var(--fs-4xl);
  margin: 0 0 var(--space-5);
  color: #052e1f;
  letter-spacing: -0.035em;
  line-height: 1.05;
  max-width: 900px;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.4);
}

.hero h1 .accent {
  background: linear-gradient(135deg, var(--primary) 0%, var(--support) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

@media (min-width: 720px) {
  .hero h1 {
    font-size: var(--fs-5xl);
  }
}

@media (min-width: 1024px) {
  .hero h1 {
    font-size: var(--fs-6xl);
  }
}

.hero-subtitle {
  max-width: 720px;
  margin: 14px auto 22px;
  padding: 0 18px;
  color: #334155;
  font-size: clamp(17px, 2vw, 21px);
  font-weight: 500;
  line-height: 1.55;
  text-align: center;
  letter-spacing: -0.01em;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.4);
}

.hero-subtitle-highlight {
  display: block;
  margin-top: 3px;
  color: #087F6A;
  font-weight: 650;
}

.hero-actions {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
}

/* Banda de "confianza" bajo el CTA del hero */
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-4) var(--space-8);
  margin-top: var(--space-10);
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

.hero-trust-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero-trust-item svg {
  color: var(--primary);
  width: 16px;
  height: 16px;
}

/* ---- Botones ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-size: var(--fs-base);
  font-weight: 600;
  border-radius: var(--radius);
  transition: all var(--transition);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  min-height: 48px;
  line-height: 1;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--text-on-primary);
  box-shadow: 0 6px 18px -4px rgba(5, 150, 105, 0.45);
  border: 1px solid var(--primary-dark);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-dark) 0%, #065f46 100%);
  color: var(--text-on-primary);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px -4px rgba(5, 150, 105, 0.55);
}

.btn-secondary {
  background-color: white;
  color: var(--text);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary-dark);
  background-color: var(--primary-tint);
  transform: translateY(-1px);
}

.btn-ghost {
  background-color: transparent;
  color: var(--primary);
  border: 1px solid var(--primary-tint-2);
}

.btn-ghost:hover {
  background-color: var(--primary-tint);
}

.btn-disabled {
  cursor: not-allowed;
  opacity: 0.65;
  pointer-events: none;
  user-select: none;
}

/* ---- Secciones ---- */
.section {
  padding: var(--space-16) 0;
  position: relative;
}

@media (min-width: 720px) {
  .section {
    padding: var(--space-20) 0;
  }
}

.section + .section {
  border-top: none;
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto var(--space-12);
}

.section-eyebrow {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--primary-dark);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: var(--space-3);
  padding: 6px 14px;
  background: linear-gradient(90deg, var(--primary-tint) 0%, var(--support-tint) 100%);
  border-radius: var(--radius-full);
  box-shadow: inset 0 0 0 1px rgba(5, 150, 105, 0.10);
}

.section-title {
  font-size: var(--fs-3xl);
  margin-bottom: var(--space-4);
  letter-spacing: -0.025em;
  color: var(--text);
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  margin: var(--space-3) auto 0;
  background: linear-gradient(90deg, var(--primary) 0%, var(--support-light) 100%);
  border-radius: var(--radius-full);
}

@media (min-width: 720px) {
  .section-title {
    font-size: var(--fs-4xl);
  }
}

.section-subtitle {
  font-size: var(--fs-lg);
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 640px;
  margin: 0 auto;
}

/* ---- Tarjetas de funciones ---- */
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

@media (min-width: 640px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-card {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(30, 58, 138, 0.10);
  border-radius: var(--radius-md);
  padding: var(--space-8);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
  box-shadow:
    0 10px 28px rgba(30, 58, 138, 0.08),
    0 2px 6px rgba(15, 23, 42, 0.04);
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 100%);
  opacity: 0;
  transition: opacity var(--transition);
}

.feature-card:hover {
  border-color: var(--primary-tint-2);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, var(--primary-tint) 0%, var(--primary-tint-2) 100%);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-dark);
  margin-bottom: var(--space-5);
  box-shadow: inset 0 0 0 1px rgba(5, 150, 105, 0.08);
}

.feature-icon svg {
  width: 26px;
  height: 26px;
}

.feature-card h3 {
  font-size: var(--fs-lg);
  margin-bottom: var(--space-3);
  color: var(--text);
  letter-spacing: -0.01em;
}

.feature-card p {
  font-size: var(--fs-sm);
  line-height: 1.65;
  color: var(--text-muted);
}

/* ---- Sección "Cómo funciona" (pasos) — Beneficios ---- */
.steps {
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(0, 164, 126, 0.10) 0%, transparent 60%),
    linear-gradient(180deg, #ffffff 0%, #f0fbf6 100%);
}

.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

@media (min-width: 720px) {
  .steps-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.step {
  text-align: center;
  padding: var(--space-6);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: var(--fs-xl);
  margin-bottom: var(--space-4);
  box-shadow: 0 8px 20px -4px rgba(5, 150, 105, 0.45);
}

.step h3 {
  font-size: var(--fs-lg);
  margin-bottom: var(--space-2);
}

.step p {
  font-size: var(--fs-sm);
}

/* ---- Planes y precios ---- */
.pricing {
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(30, 58, 138, 0.10) 0%, transparent 60%),
    linear-gradient(180deg, #ffffff 0%, #e7f0ff 100%);
  position: relative;
}

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  max-width: 1080px;
  margin: 0 auto;
  align-items: stretch;
}

@media (min-width: 720px) {
  .pricing-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.pricing-card {
  position: relative;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(30, 58, 138, 0.10);
  border-radius: var(--radius-md);
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  transition: all var(--transition);
  background-image: linear-gradient(180deg, #ffffff 0%, #fafffe 100%);
  box-shadow:
    0 10px 28px rgba(30, 58, 138, 0.08),
    0 2px 6px rgba(15, 23, 42, 0.04);
}

.pricing-card:hover {
  border-color: var(--primary-tint-2);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.pricing-card--highlight {
  border-color: var(--primary);
  border-width: 2px;
  box-shadow: 0 20px 40px -8px rgba(5, 150, 105, 0.30), 0 0 0 4px rgba(5, 150, 105, 0.06);
  background-image: linear-gradient(180deg, #f0fdf4 0%, #ffffff 60%);
  transform: scale(1.02);
}

.pricing-card--highlight:hover {
  transform: scale(1.02) translateY(-4px);
  box-shadow: 0 24px 48px -8px rgba(5, 150, 105, 0.40), 0 0 0 4px rgba(5, 150, 105, 0.10);
}

.pricing-card--highlight::before {
  content: "Oferta de lanzamiento";
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  white-space: nowrap;
  box-shadow: 0 4px 12px -2px rgba(5, 150, 105, 0.5);
}

.pricing-card__name {
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--text);
  margin-bottom: var(--space-2);
}

.pricing-card__price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: var(--space-2);
}

.pricing-card__amount {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.03em;
  line-height: 1;
}

.pricing-card__currency {
  font-size: var(--fs-lg);
  font-weight: 600;
  color: var(--text-muted);
}

.pricing-card__period {
  font-size: var(--fs-base);
  color: var(--text-muted);
  font-weight: 500;
}

.pricing-card__old-price {
  display: block;
  font-size: var(--fs-sm);
  color: var(--text-light);
  text-decoration: line-through;
  margin-bottom: var(--space-3);
}

.pricing-card__description {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: var(--space-5);
  flex-grow: 1;
}

.pricing-card__note {
  display: inline-block;
  padding: 4px 10px;
  background-color: var(--accent-tint);
  color: var(--accent-dark);
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-4);
}

.pricing-card__features {
  list-style: none;
  margin-bottom: var(--space-6);
}

.pricing-card__features li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  font-size: var(--fs-sm);
  color: var(--text-muted);
  margin-bottom: var(--space-2);
  line-height: 1.5;
}

.pricing-card__features li::before {
  content: "✓";
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
  font-size: var(--fs-base);
  line-height: 1.2;
}

.pricing-card__cta {
  width: 100%;
  margin-top: auto;
}

.pricing-note {
  text-align: center;
  margin-top: var(--space-8);
  font-size: var(--fs-sm);
  color: var(--text-muted);
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.pricing-trial {
  background: linear-gradient(135deg, var(--support) 0%, #0f766e 100%);
  color: white;
  border-radius: var(--radius-md);
  padding: var(--space-8);
  text-align: center;
  margin: var(--space-8) auto 0;
  max-width: 820px;
  box-shadow: 0 16px 32px -8px rgba(13, 148, 136, 0.35);
}

.pricing-trial h3 {
  color: white;
  font-size: var(--fs-xl);
  margin-bottom: var(--space-3);
}

.pricing-trial p {
  color: rgba(255, 255, 255, 0.95);
  font-size: var(--fs-sm);
  line-height: 1.6;
  margin: 0;
}

.pricing-trial strong {
  font-weight: 700;
}

/* ---- Privacidad destacada ---- */
.privacy-callout {
  background: linear-gradient(135deg, #00A47E 0%, #082C69 100%);
  color: white;
  border-radius: var(--radius-lg);
  padding: var(--space-12);
  text-align: center;
  margin: var(--space-16) auto;
  max-width: 900px;
  box-shadow: 0 24px 48px -12px rgba(8, 44, 105, 0.35);
  position: relative;
  overflow: hidden;
}

.privacy-callout::before,
.privacy-callout::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

.privacy-callout::before {
  width: 220px;
  height: 220px;
  top: -90px;
  right: -50px;
}

.privacy-callout::after {
  width: 160px;
  height: 160px;
  bottom: -70px;
  left: -40px;
}

.privacy-callout > * {
  position: relative;
  z-index: 1;
}

.privacy-callout h2 {
  color: white;
  margin-bottom: var(--space-4);
  letter-spacing: -0.02em;
}

.privacy-callout p {
  color: rgba(255, 255, 255, 0.92);
  font-size: var(--fs-lg);
  margin-bottom: var(--space-6);
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.privacy-callout .btn {
  background-color: white;
  color: var(--primary-dark);
  border-color: white;
}

.privacy-callout .btn:hover {
  background-color: var(--primary-tint);
  color: var(--primary-dark);
  border-color: var(--primary-tint);
}

/* ---- CTA final ---- */
.cta-final {
  background:
    radial-gradient(ellipse 60% 70% at 0% 50%, rgba(0, 164, 126, 0.30) 0%, transparent 60%),
    radial-gradient(ellipse 60% 70% at 100% 50%, rgba(8, 44, 105, 0.30) 0%, transparent 60%),
    linear-gradient(135deg, #082C69 0%, #00A47E 100%);
  color: #ffffff;
  text-align: center;
  padding: var(--space-20) 0;
  position: relative;
  overflow: hidden;
}

.cta-final::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 100%, rgba(255, 255, 255, 0.10) 0%, transparent 60%);
  pointer-events: none;
}

.cta-final > .container {
  position: relative;
  z-index: 1;
}

.cta-final h2,
.cta-final p {
  color: #ffffff;
}

.cta-final h2 {
  margin-bottom: var(--space-4);
}

.cta-final p {
  font-size: var(--fs-lg);
  margin-bottom: var(--space-8);
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* ---- Página interior (Privacidad, Términos, Soporte, Descargas) ---- */
.page-header {
  position: relative;
  background:
    radial-gradient(circle at 50% 0%, rgba(0, 164, 126, 0.18) 0%, transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0.0) 100%);
  padding: var(--space-16) 0 var(--space-12);
  text-align: center;
  border-bottom: 1px solid rgba(30, 58, 138, 0.10);
  overflow: hidden;
}

.page-header h1 {
  font-size: var(--fs-4xl);
  margin-bottom: var(--space-4);
  letter-spacing: -0.03em;
  position: relative;
  display: inline-block;
}

.page-header h1::after {
  content: "";
  display: block;
  width: 64px;
  height: 3px;
  margin: var(--space-3) auto 0;
  background: linear-gradient(90deg, var(--primary) 0%, var(--support-light) 100%);
  border-radius: var(--radius-full);
}

@media (min-width: 720px) {
  .page-header h1 {
    font-size: var(--fs-5xl);
  }
}

.page-header p {
  font-size: var(--fs-lg);
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto;
}

.page-content {
  padding: var(--space-16) 0;
}

.content-card {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(30, 58, 138, 0.10);
  border-radius: var(--radius-md);
  padding: var(--space-8);
  margin-bottom: var(--space-6);
  box-shadow:
    0 10px 28px rgba(30, 58, 138, 0.08),
    0 2px 6px rgba(15, 23, 42, 0.04);
  transition: box-shadow var(--transition);
}

.content-card:hover {
  box-shadow: var(--shadow);
}

@media (min-width: 720px) {
  .content-card {
    padding: var(--space-12);
  }
}

.content-card h2 {
  font-size: var(--fs-2xl);
  margin-bottom: var(--space-4);
  color: var(--text);
  letter-spacing: -0.02em;
  position: relative;
  padding-left: 14px;
}

.content-card h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 4px;
  background: linear-gradient(180deg, var(--primary) 0%, var(--support) 100%);
  border-radius: var(--radius-full);
}

.content-card h3 {
  font-size: var(--fs-lg);
  margin-top: var(--space-6);
  margin-bottom: var(--space-3);
  color: var(--text);
}

.content-card p {
  margin-bottom: var(--space-4);
  font-size: var(--fs-base);
  line-height: 1.7;
}

.content-card ul,
.content-card ol {
  margin: var(--space-4) 0;
  padding-left: var(--space-6);
}

.content-card li {
  margin-bottom: var(--space-2);
  color: var(--text-muted);
  line-height: 1.7;
}

/* Placeholder para páginas en construcción (Parte 2) */
.placeholder-notice {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  padding: var(--space-5);
  background-color: var(--primary-tint);
  border: 1px solid var(--primary-tint-2);
  border-radius: var(--radius);
  margin-bottom: var(--space-6);
}

.placeholder-notice-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  color: var(--primary);
  margin-top: 2px;
}

.placeholder-notice-text {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  line-height: 1.5;
}

.placeholder-notice-text strong {
  color: var(--text);
  display: block;
  margin-bottom: 2px;
}

/* Marcador de dato pendiente de revisión por el titular */
.revisar {
  display: inline-block;
  padding: 2px 8px;
  background-color: #fef3c7;
  color: #92400e;
  border: 1px solid #fcd34d;
  border-radius: 4px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.85em;
  font-weight: 600;
  white-space: nowrap;
}

.revisar-block {
  display: block;
  margin: var(--space-3) 0;
  padding: var(--space-4);
  background-color: #fffbeb;
  border: 1px dashed #fcd34d;
  border-radius: var(--radius-sm);
  color: #78350f;
  font-size: var(--fs-sm);
  line-height: 1.6;
}

.revisar-block strong {
  display: block;
  margin-bottom: 4px;
  color: #92400e;
  font-size: 0.85em;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ---- FAQ Acordeón ---- */
.faq-section-title {
  font-size: var(--fs-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  margin-top: var(--space-10);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--border);
}

.faq-section-title:first-of-type {
  margin-top: 0;
}

.faq {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.faq-item {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
  box-shadow: var(--shadow-sm);
}

.faq-item[open] {
  border-color: var(--primary-tint-2);
  box-shadow: var(--shadow);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-5) var(--space-6);
  cursor: pointer;
  font-weight: 600;
  font-size: var(--fs-base);
  color: var(--text);
  list-style: none;
  user-select: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '';
  flex-shrink: 0;
  width: 12px;
  height: 12px;
  border-right: 2px solid var(--primary);
  border-bottom: 2px solid var(--primary);
  transform: rotate(45deg);
  margin-top: -4px;
  transition: transform var(--transition);
}

.faq-item[open] summary::after {
  transform: rotate(-135deg);
  margin-top: 4px;
}

.faq-item summary:hover {
  color: var(--primary);
}

.faq-answer {
  padding: 0 var(--space-6) var(--space-6);
  color: var(--text-muted);
  line-height: 1.7;
}

.faq-answer p {
  margin-bottom: var(--space-3);
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

/* ---- Formulario de contacto ---- */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-top: var(--space-6);
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.form-row label {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text);
}

.form-row .required {
  color: #dc2626;
}

.form-row input,
.form-row textarea,
.form-row select {
  font-family: inherit;
  font-size: var(--fs-base);
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background-color: var(--bg);
  color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition);
  width: 100%;
}

.form-row input:focus,
.form-row textarea:focus,
.form-row select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-tint);
}

.form-row textarea {
  resize: vertical;
  min-height: 140px;
}

.form-row .help-text {
  font-size: 0.8125rem;
  color: var(--text-light);
}

.form-row .checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--fs-sm);
  color: var(--text-muted);
  font-weight: 400;
}

.form-row .checkbox-row input[type="checkbox"] {
  width: auto;
  margin-top: 3px;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: center;
}

/* Tarjeta de "Próximamente" */
.coming-soon {
  text-align: center;
  padding: var(--space-12) var(--space-6);
  background-color: var(--bg-subtle);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-md);
}

.coming-soon-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  background-color: var(--primary-tint);
  border-radius: var(--radius-full);
  color: var(--primary);
  margin-bottom: var(--space-5);
}

.coming-soon h2 {
  margin-bottom: var(--space-3);
  font-size: var(--fs-2xl);
}

.coming-soon p {
  max-width: 520px;
  margin: 0 auto;
  font-size: var(--fs-base);
}

/* ---- Tarjetas de soporte (FAQ preview) ---- */
.support-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}

@media (min-width: 720px) {
  .support-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

.support-card {
  display: flex;
  gap: var(--space-4);
  padding: var(--space-6);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(30, 58, 138, 0.10);
  border-radius: var(--radius-md);
  transition: all var(--transition);
  text-decoration: none;
  color: inherit;
  box-shadow:
    0 10px 28px rgba(30, 58, 138, 0.08),
    0 2px 6px rgba(15, 23, 42, 0.04);
}

.support-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow);
  color: inherit;
}

.support-card-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary-tint) 0%, var(--primary-tint-2) 100%);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-dark);
}

.support-card-icon svg {
  width: 22px;
  height: 22px;
}

.support-card-body h3 {
  font-size: var(--fs-base);
  margin-bottom: var(--space-2);
  color: var(--text);
}

.support-card-body p {
  font-size: var(--fs-sm);
  margin: 0;
}

/* ---- Tarjetas de descarga ---- */
.download-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

@media (min-width: 720px) {
  .download-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.download-card {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(30, 58, 138, 0.10);
  border-radius: var(--radius-md);
  padding: var(--space-8);
  text-align: center;
  transition: all var(--transition);
  box-shadow:
    0 10px 28px rgba(30, 58, 138, 0.08),
    0 2px 6px rgba(15, 23, 42, 0.04);
}

.download-card:hover {
  border-color: var(--primary-tint-2);
  box-shadow: var(--shadow-md);
}

.download-store-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: white;
  border-radius: var(--radius-md);
  margin-bottom: var(--space-5);
  box-shadow: 0 8px 20px -4px rgba(15, 23, 42, 0.30);
}

.download-store-icon svg {
  width: 28px;
  height: 28px;
}

.download-card h3 {
  font-size: var(--fs-lg);
  margin-bottom: var(--space-2);
}

.download-card p {
  font-size: var(--fs-sm);
  margin-bottom: var(--space-5);
}

.download-card .btn {
  width: 100%;
}

/* ---- Utilidades ---- */
.text-center { text-align: center; }
.mb-0 { margin-bottom: 0; }
.mt-4 { margin-top: var(--space-4); }
.mt-8 { margin-top: var(--space-8); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-8 { margin-bottom: var(--space-8); }

.divider {
  height: 1px;
  background-color: var(--border);
  border: 0;
  margin: var(--space-12) 0;
}

/* ---- Accesibilidad ---- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Ocultar marcadores [REVISAR] en la vista pública.
   Los datos pendientes se mantienen en el HTML como
   comentarios para poder completarlos antes de la
   publicación definitiva, pero no se muestran al usuario. */
.revisar,
.revisar-block {
  display: none !important;
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---- Prevenir scroll horizontal en móvil ---- */
html, body {
  overflow-x: hidden;
}

/* ========== TUTORIAL EN VÍDEO ========== */
.video-tutorial-section {
  padding: 72px 20px;
  text-align: center;
}

.video-tutorial-content {
  width: min(100%, 900px);
  margin: 0 auto;
}

.video-tutorial-title {
  margin: 0 0 14px;
  color: #0f172a;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.video-tutorial-description {
  max-width: 680px;
  margin: 0 auto 32px;
  color: #475569;
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.6;
}

.tutorial-video-frame {
  position: relative;
  width: min(100%, 390px);
  margin: 0 auto;
  padding: 8px;
  border: 1px solid rgba(13, 148, 136, 0.28);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 24px 60px rgba(15, 118, 110, 0.16);
}

.tutorial-video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 16;
  border-radius: 22px;
  background: #effaf8;
  object-fit: contain;
}

.tutorial-play-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 72px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: transform 0.2s ease, opacity 0.2s ease;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.tutorial-play-overlay:hover {
  transform: translate(-50%, -50%) scale(1.08);
}

.tutorial-play-overlay:focus-visible {
  outline: 3px solid #087f6a;
  outline-offset: 4px;
}

.tutorial-play-overlay svg {
  display: block;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.35));
}

.tutorial-video-frame[data-state="playing"] .tutorial-play-overlay {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.85);
}

.video-privacy-message {
  margin: 20px auto 0;
  color: #087f6a;
  font-size: 14px;
  font-weight: 600;
}

@media (max-width: 480px) {
  .tutorial-video-frame {
    width: calc(100% - 32px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .tutorial-video,
  .tutorial-video-frame {
    animation: none !important;
    transition: none !important;
  }
}
