/* Landing de Yelvy Finanzas — hoja propia, no comparte tokens con
   estilo.css (esa es clara/oscura según el sistema; la landing es
   siempre oscura para calzar con el material promocional de Play). */
:root {
  --bg: #0a0e17;
  --bg-alt: #0f1420;
  --surface: #141a26;
  --surface-2: #1a2130;
  --text: #f2f4f8;
  --text-muted: #a7afc0;
  --border: #232b3d;
  --azul: #3b6cff;
  --turquesa: #22d3c5;
  --verde: #22c58b;
  --violeta: #8b6cf2;
  --naranja: #ff8a3d;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

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

a {
  color: var(--turquesa);
}

.contenedor {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* --- Encabezado --- */

.encabezado {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(10, 14, 23, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.encabezado .contenedor {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}

.marca {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.marca img {
  height: 28px;
  width: auto;
}

.nav-enlaces {
  display: flex;
  gap: 1.5rem;
}

.nav-enlaces a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.92rem;
}

.nav-enlaces a:hover {
  color: var(--text);
}

@media (max-width: 620px) {
  .nav-enlaces {
    display: none;
  }
}

/* --- Hero --- */

.hero {
  padding: 3.5rem 0 2rem;
  background: radial-gradient(ellipse at 20% 0%, rgba(59, 108, 255, 0.18), transparent 55%),
    radial-gradient(ellipse at 90% 20%, rgba(34, 211, 197, 0.14), transparent 50%);
}

.hero .contenedor {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: center;
}

@media (max-width: 900px) {
  .hero .contenedor {
    grid-template-columns: 1fr;
  }
}

.hero h1 {
  font-size: 2.5rem;
  line-height: 1.15;
  margin: 0 0 0.75rem;
  letter-spacing: -0.01em;
}

.hero .subtitulo {
  font-size: 1.2rem;
  color: var(--text);
  font-weight: 600;
  margin: 0 0 1rem;
}

.hero .texto-breve {
  color: var(--text-muted);
  font-size: 1.02rem;
  max-width: 46ch;
  margin: 0 0 1.75rem;
}

.grupo-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.boton {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.35rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
}

.boton-primario {
  background: linear-gradient(135deg, var(--azul), var(--turquesa));
  color: #05070c;
}

.boton-primario[aria-disabled="true"] {
  background: var(--surface-2);
  color: var(--text-muted);
  border: 1px solid var(--border);
  cursor: default;
  pointer-events: none;
}

.boton-secundario {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.boton-secundario:hover {
  border-color: var(--turquesa);
  color: var(--turquesa);
}

.hero-imagen img {
  border-radius: 14px;
}

/* --- Secciones generales --- */

section {
  padding: 3.25rem 0;
}

.titulo-seccion {
  font-size: 1.7rem;
  text-align: center;
  margin: 0 auto 0.5rem;
  max-width: 34ch;
}

.subtitulo-seccion {
  text-align: center;
  color: var(--text-muted);
  max-width: 52ch;
  margin: 0 auto 2.25rem;
}

/* --- Tarjetas de funciones --- */

.grid-tarjetas {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.1rem;
}

.tarjeta-funcion {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.5rem;
}

.tarjeta-funcion .icono {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 0.85rem;
}

.tarjeta-funcion h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
}

.tarjeta-funcion p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.93rem;
}

/* --- Galería de capturas --- */

.galeria {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.25rem;
}

.galeria figure {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}

.galeria img {
  width: 100%;
  height: auto;
}

.galeria figcaption {
  padding: 0.75rem 1rem 1rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  text-align: center;
}

@media (max-width: 620px) {
  .galeria {
    grid-auto-flow: column;
    grid-auto-columns: 78%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 0.5rem;
  }
  .galeria figure {
    scroll-snap-align: start;
  }
}

/* --- Presupuestos y metas / bloque con imagen --- */

.bloque-imagen {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

@media (max-width: 900px) {
  .bloque-imagen {
    grid-template-columns: 1fr;
  }
  .bloque-imagen .orden-2 {
    order: -1;
  }
}

.bloque-imagen img {
  border-radius: 14px;
}

.bloque-imagen h2 {
  text-align: left;
  margin: 0 0 0.75rem;
  max-width: none;
}

.bloque-imagen p {
  color: var(--text-muted);
}

/* --- FREE / PRO --- */

.grid-planes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  max-width: 760px;
  margin: 0 auto;
}

.tarjeta-plan {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.75rem;
}

.tarjeta-plan.pro {
  border-color: var(--turquesa);
  background: linear-gradient(180deg, rgba(34, 211, 197, 0.08), transparent 60%), var(--surface);
}

.tarjeta-plan h3 {
  margin: 0 0 0.9rem;
  font-size: 1.15rem;
}

.tarjeta-plan ul {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--text-muted);
}

.tarjeta-plan li {
  margin-bottom: 0.4rem;
  font-size: 0.94rem;
}

/* --- Privacidad --- */

.bloque-privacidad {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 2.25rem;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}

.bloque-privacidad .grupo-cta {
  justify-content: center;
  margin-top: 1.5rem;
}

/* --- Contacto --- */

.contacto {
  text-align: center;
}

.contacto a {
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--turquesa);
}

/* --- Footer --- */

footer.pie-landing {
  border-top: 1px solid var(--border);
  padding: 2.25rem 0;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.pie-landing .contenedor {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  align-items: center;
  justify-content: space-between;
}

.pie-landing nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.25rem;
}

.pie-landing a {
  color: var(--text-muted);
  text-decoration: none;
}

.pie-landing a:hover {
  color: var(--text);
}
