/* =========================================================
   Saldy · estilos de la web
   Una sola hoja para todas las páginas. Los colores viven
   arriba como variables: si cambia la marca, se cambia aquí.
   ========================================================= */

/* --- Fuente (servida desde la misma web: sin pedirle nada a Google) --- */
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("../fonts/plus-jakarta-sans-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("../fonts/plus-jakarta-sans-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* --- Colores de Saldy --- */
:root {
  --fondo: #141416;
  --fondo-alt: #1E1E20;
  --superficie: #2C2C2F;
  --borde: #2C2C2F;
  --borde-fuerte: #3A3A3E;
  --texto: #F2F2F0;
  --texto-suave: #B4B4B9;
  --texto-tenue: #A3A3A8;
  --enlace-nav: #C7C7CC;
  --azul: #3B6FFF;
  --lima: #D4F25A;
  --negro: #141414;
  --blanco: #FFFFFF;
  --papel: #EFEFEC;
  --gris-oscuro-texto: #4A4A47;
  --gris-texto: #5E5E5A;
  --halo: rgba(59, 111, 255, 0.35);
}

/* --- Base --- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--fondo);
  color: var(--texto);
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: #8FB0FF; }
a:hover { color: #C9D8FF; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--lima); outline-offset: 3px; border-radius: 8px; }
h1, h2, h3 { margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }

.contenedor { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.saltar { position: absolute; left: -9999px; }
.saltar:focus { left: 16px; top: 16px; z-index: 100; background: var(--lima); color: var(--negro); padding: 10px 14px; border-radius: 10px; }

/* --- Etiqueta lima (solo para etiquetas pequeñas, como en la app) --- */
.etiqueta {
  display: inline-block;
  background: var(--lima);
  color: var(--negro);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.08em;
  padding: 7px 12px;
  border-radius: 999px;
}

/* --- Botones --- */
.boton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 800;
  font-size: 16px;
  text-decoration: none;
  padding: 16px 24px;
  border-radius: 16px;
  min-height: 48px;
}
.boton-blanco { background: var(--blanco); color: var(--negro); }
.boton-blanco:hover { color: var(--negro); background: #E6E6E3; }
.boton-azul { background: var(--azul); color: var(--blanco); }
.boton-azul:hover { color: var(--blanco); background: #2F5FE6; }
.boton-negro { background: var(--negro); color: var(--blanco); }
.boton-negro:hover { color: var(--blanco); background: #2C2C2F; }
.boton-borde { color: var(--texto); border: 1px solid var(--borde-fuerte); font-weight: 700; }
.boton-borde:hover { color: var(--texto); background: var(--fondo-alt); }
.boton-ancho { display: flex; width: 100%; }

/* --- Barra superior --- */
.barra {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(20, 20, 22, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--borde);
}
.barra .contenedor { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.barra-logo img { height: 30px; width: auto; }
.barra-enlaces { display: flex; gap: 28px; }
.barra-enlaces a, .enlace-volver { color: var(--enlace-nav); text-decoration: none; font-weight: 600; font-size: 15px; }
.barra-enlaces a:hover, .enlace-volver:hover { color: var(--texto); }
.barra .boton { padding: 12px 20px; font-size: 14px; border-radius: 999px; min-height: 44px; }

/* --- Secciones --- */
.seccion { padding: 96px 0; }
.seccion-alt { background: var(--fondo-alt); border-top: 1px solid var(--borde); border-bottom: 1px solid var(--borde); }
.titulo-grande { font-size: 44px; line-height: 1.08; font-weight: 800; max-width: 760px; }
.titulo-seccion { font-size: 40px; line-height: 1.1; font-weight: 800; max-width: 720px; }
.etiqueta + .titulo-grande { margin-top: 18px; }
.texto-suave { color: var(--texto-suave); }

/* --- Portada --- */
.portada { position: relative; overflow: hidden; }
.halo { position: absolute; border-radius: 50%; pointer-events: none; }
.halo-portada { top: -200px; right: -160px; width: 760px; height: 760px; background: radial-gradient(circle, var(--halo) 0%, rgba(59, 111, 255, 0) 65%); }
.portada .contenedor { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 56px; padding-top: 88px; padding-bottom: 96px; }
.portada-texto { flex: 1 1 460px; min-width: 0; }
.portada h1 { margin-top: 22px; font-size: 60px; line-height: 1.04; font-weight: 800; letter-spacing: -0.03em; }
.portada-sub { margin-top: 22px; font-size: 19px; line-height: 1.55; color: var(--texto-suave); max-width: 560px; }
.portada-botones { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.portada-nota { margin-top: 18px; font-size: 14px; color: var(--texto-tenue); }

/* --- Teléfono ilustrativo --- */
.telefono-zona { flex: 0 1 340px; display: flex; justify-content: center; min-width: 0; }
.telefono { width: 300px; max-width: 100%; border-radius: 44px; background: #0B0B0C; padding: 12px; box-shadow: 0 40px 80px rgba(0, 0, 0, 0.55), 0 0 0 1px var(--borde); }
.pantalla { border-radius: 34px; background: var(--papel); overflow: hidden; padding: 22px 14px 18px; color: var(--negro); }
.app-encabezado { display: flex; align-items: center; justify-content: space-between; }
.app-usuario { display: flex; align-items: center; gap: 8px; }
.app-hola { font-size: 9px; color: var(--gris-texto); }
.app-nombre { font-size: 13px; font-weight: 800; }
.app-marca { font-weight: 900; font-size: 15px; letter-spacing: -0.02em; }
.app-balance { margin-top: 14px; background: var(--azul); color: var(--blanco); border-radius: 22px; padding: 16px; }
.app-pequeno { font-size: 10px; opacity: 0.88; }
.app-monto { font-size: 28px; font-weight: 800; letter-spacing: -0.02em; }
.barra-progreso { margin-top: 10px; height: 6px; border-radius: 4px; background: rgba(255, 255, 255, 0.25); }
.barra-progreso span { display: block; width: 58%; height: 6px; border-radius: 4px; background: var(--blanco); }
.app-dos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 8px; }
.app-tarjeta { background: var(--blanco); border-radius: 18px; padding: 12px; }
.app-tarjeta-oscura { background: #1E1E20; color: var(--texto); }
.app-tarjeta .app-pequeno { color: var(--gris-texto); opacity: 1; }
.app-tarjeta-oscura .app-pequeno { color: var(--texto-tenue); }
.app-cifra { font-size: 18px; font-weight: 800; }
.app-subtitulo { font-size: 11px; font-weight: 800; margin: 14px 2px 8px; }
.app-fila { background: var(--blanco); border-radius: 16px; padding: 10px 12px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.app-fila + .app-fila { margin-top: 6px; }
.app-tienda { font-size: 9px; color: var(--azul); font-weight: 800; }
.app-tienda-gris { color: var(--gris-texto); }
.app-concepto { font-size: 12px; font-weight: 700; }
.app-chip { background: var(--lima); color: var(--negro); font-size: 9px; font-weight: 800; padding: 4px 8px; border-radius: 999px; white-space: nowrap; }

/* --- Avatares (fondo oscuro con halo, igual que en la app) --- */
.avatar { border-radius: 50%; overflow: hidden; background: radial-gradient(circle, rgba(59, 111, 255, 0.4), var(--fondo) 70%); flex: 0 0 auto; }
.avatar img { width: 100%; height: 100%; }
.avatar-30 { width: 30px; height: 30px; }
.avatar-48 { width: 48px; height: 48px; }
.fila-avatares { display: flex; gap: 8px; flex-wrap: wrap; }

/* --- Rejillas de tarjetas --- */
.rejilla { display: grid; gap: 16px; margin-top: 36px; }
.rejilla-260 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.rejilla-300 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); margin-top: 40px; }
.rejilla-240 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-top: 32px; }

.tarjeta { border-radius: 28px; padding: 30px; display: flex; flex-direction: column; gap: 12px; }
.tarjeta h3 { font-size: 22px; font-weight: 800; }
.tarjeta p { line-height: 1.55; font-size: 15px; }
.tarjeta-azul { background: var(--azul); color: var(--blanco); }
.tarjeta-azul p { color: rgba(255, 255, 255, 0.9); }
.tarjeta-blanca { background: var(--blanco); color: var(--negro); }
.tarjeta-blanca p { color: var(--gris-oscuro-texto); }
.tarjeta-gris { background: var(--superficie); }
.tarjeta-gris p { color: var(--texto-suave); }
.tarjeta-negra { background: var(--fondo-alt); border: 1px solid var(--borde-fuerte); }
.tarjeta-negra p { color: var(--texto-suave); }
.tarjeta-problema { background: var(--superficie); border-radius: 24px; padding: 26px; }
.tarjeta-problema h3 { font-size: 18px; font-weight: 800; }
.tarjeta-problema p { margin-top: 8px; color: var(--texto-suave); line-height: 1.55; font-size: 15px; }

.fichas { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.ficha { background: var(--papel); font-weight: 700; font-size: 13px; padding: 7px 12px; border-radius: 999px; }
.ficha-activa { background: var(--negro); color: var(--blanco); }

/* --- Pasos --- */
.paso-numero { width: 44px; height: 44px; border-radius: 14px; background: var(--azul); color: var(--blanco); font-weight: 800; font-size: 18px; display: flex; align-items: center; justify-content: center; }
.paso h3 { font-size: 19px; font-weight: 800; margin-top: 16px; }
.paso p { margin-top: 6px; color: var(--texto-suave); line-height: 1.55; font-size: 15px; }

/* --- Precio --- */
.precio .contenedor { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; }
.precio-texto { flex: 1 1 380px; min-width: 0; }
.precio-texto p { margin-top: 16px; font-size: 17px; line-height: 1.55; max-width: 480px; }
.precio-tarjeta { flex: 0 1 380px; min-width: 0; background: var(--blanco); color: var(--negro); border-radius: 32px; padding: 34px; }
.precio-nombre { font-size: 18px; font-weight: 800; margin-top: 18px; }
.precio-pronto { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; margin-top: 6px; line-height: 1.15; }
.precio-detalle { color: var(--gris-texto); font-size: 14px; margin-top: 6px; }
.lista-check { display: flex; flex-direction: column; gap: 10px; margin: 20px 0 26px; padding: 0; list-style: none; font-size: 15px; }
.lista-check li { display: flex; gap: 10px; align-items: center; }

/* --- Preguntas --- */
.preguntas .contenedor { max-width: 860px; }
.lista-preguntas { display: flex; flex-direction: column; gap: 12px; margin-top: 30px; }
.lista-preguntas details { background: var(--superficie); border-radius: 20px; padding: 20px 22px; }
.lista-preguntas summary { font-weight: 800; font-size: 17px; cursor: pointer; }
.lista-preguntas details p { margin-top: 12px; color: var(--texto-suave); line-height: 1.6; }

/* --- Cierre --- */
.cierre { position: relative; overflow: hidden; }
.halo-cierre { left: 50%; top: 50%; width: 900px; height: 900px; margin: -450px 0 0 -450px; background: radial-gradient(circle, rgba(59, 111, 255, 0.28) 0%, rgba(59, 111, 255, 0) 60%); }
.cierre .contenedor { position: relative; padding-top: 110px; padding-bottom: 110px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.cierre-s { height: 64px; width: auto; }
.cierre h2 { margin-top: 26px; font-size: 48px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; max-width: 720px; }
.cierre p { margin-top: 14px; font-size: 18px; }
.cierre .boton { margin-top: 30px; }

/* --- Pie --- */
.pie { border-top: 1px solid var(--borde); }
.pie .contenedor { padding-top: 36px; padding-bottom: 40px; display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.pie-marca { display: flex; flex-direction: column; gap: 8px; }
.pie-marca img { height: 24px; width: auto; align-self: flex-start; }
.pie-marca span { color: var(--texto-tenue); font-size: 13px; }
.pie nav { display: flex; flex-wrap: wrap; gap: 22px; font-size: 14px; font-weight: 600; }
.pie nav a { color: var(--enlace-nav); text-decoration: none; }
.pie nav a:hover { color: var(--texto); }

/* --- Páginas de texto (privacidad, términos, eliminar cuenta) --- */
.legal { max-width: 760px; margin: 0 auto; padding: 72px 24px 96px; }
.legal-ancha { max-width: 820px; }
.legal h1 { font-size: 48px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; }
.legal-fecha { margin-top: 12px; color: var(--texto-tenue); font-size: 15px; }
.legal-intro { margin-top: 16px; color: var(--texto-suave); font-size: 18px; line-height: 1.6; }
.resumen { margin-top: 32px; background: var(--fondo-alt); border: 1px solid var(--borde); border-radius: 24px; padding: 24px 26px; }
.resumen h2 { font-size: 17px; font-weight: 800; }
.resumen ul { margin: 12px 0 0; padding-left: 20px; color: var(--enlace-nav); line-height: 1.55; font-size: 15px; }
.resumen li + li { margin-top: 6px; }
.legal-cuerpo { display: flex; flex-direction: column; gap: 34px; margin-top: 44px; color: var(--enlace-nav); line-height: 1.7; font-size: 16px; }
.legal-cuerpo h2 { margin-bottom: 8px; color: var(--texto); font-size: 22px; font-weight: 800; }
.legal-cuerpo ul { margin: 8px 0 0; padding-left: 20px; }

.pasos-borrar { display: flex; flex-direction: column; gap: 10px; margin: 16px 0 0; padding: 0; list-style: none; font-size: 15px; line-height: 1.5; }
.pasos-borrar li { display: flex; gap: 12px; }
.pasos-borrar .num { flex: 0 0 26px; height: 26px; border-radius: 8px; background: rgba(255, 255, 255, 0.2); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 13px; }
.caja-nota { margin-top: 40px; background: var(--fondo-alt); border: 1px solid var(--borde); border-radius: 24px; padding: 26px; }
.caja-nota h2 { font-size: 18px; font-weight: 800; }
.caja-nota p { margin-top: 10px; color: var(--enlace-nav); line-height: 1.6; font-size: 15px; }

/* --- Página 404 --- */
.no-encontrada { min-height: 70vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 48px 24px; gap: 16px; }
.no-encontrada .cierre-s { margin-bottom: 8px; }
.no-encontrada h1 { font-size: 40px; font-weight: 800; }

/* --- Teléfonos --- */
@media (max-width: 760px) {
  .barra-enlaces { display: none; }
  .portada h1 { font-size: 40px; }
  .portada .contenedor { padding-top: 56px; padding-bottom: 64px; gap: 40px; }
  .seccion { padding: 64px 0; }
  .titulo-grande, .titulo-seccion { font-size: 32px; }
  .cierre h2 { font-size: 34px; }
  .legal h1 { font-size: 36px; }
  .tarjeta { padding: 24px; }
}

/* Quien pidió menos movimiento en su teléfono, no ve desplazamientos suaves. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* Listas usadas como rejilla (pasos): sin viñetas ni sangría. */
ol.rejilla, ul.rejilla { list-style: none; padding: 0; margin-bottom: 0; }
.titulo-tarjeta { font-size: 22px; font-weight: 800; }
.legal .rejilla-300 { margin-top: 40px; }
.tarjeta .boton { margin-top: 10px; }