/* Sitio público de SAN PRO (portada, términos y privacidad). La app usa styles.css. */
:root {
  --navy: #011b52;
  --navy-2: #053178;
  --blue: #2563eb;
  --cyan: #22d3ee;
  --green: #00875a;
  --green-2: #10b981;
  --ink: #0f172a;
  --text: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #f8fafc;
  --card: #ffffff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Plus Jakarta Sans", Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.55;
}
a { color: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3 { color: var(--ink); line-height: 1.15; margin: 0; font-family: Outfit, "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif; }
.wrap { width: min(1120px, 100%); margin: 0 auto; padding: 0 16px; }

/* ---------- Encabezado ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(1, 27, 82, 0.94);
  backdrop-filter: blur(12px);
  color: #fff;
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 18px; color: #fff; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.nav { display: flex; align-items: center; gap: 20px; font-size: 14.5px; }
.nav a { text-decoration: none; color: #dbeafe; }
.nav a:hover { color: #fff; }
.nav .nav-cta { background: var(--green-2); color: #fff; padding: 8px 14px; border-radius: 10px; font-weight: 700; }
@media (max-width: 760px) { .nav .nav-link { display: none; } }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 20px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
}
.btn-primary { background: var(--green-2); color: #fff; }
.btn-primary:hover { background: var(--green); }
.btn-light { background: #fff; color: var(--navy); }
.btn-outline { border-color: rgba(255, 255, 255, 0.45); color: #fff; }
.btn-outline-dark { border-color: var(--line); color: var(--ink); background: #fff; }
.btn-wa { background: #128c7e; color: #fff; }

/* ---------- Portada ---------- */
.hero {
  background: radial-gradient(1200px 500px at 80% -10%, rgba(34, 211, 238, 0.25), transparent 60%),
              linear-gradient(160deg, var(--navy-2), var(--navy));
  color: #dbeafe;
  padding: 56px 0 72px;
  overflow: hidden;
}
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; } }
.eyebrow { display: inline-block; font-size: 12.5px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--cyan); margin-bottom: 12px; }
.hero h1 { color: #fff; font-size: clamp(32px, 6vw, 54px); margin-bottom: 16px; }
.hero h1 span { color: var(--cyan); }
.hero p.lead { font-size: 17.5px; max-width: 560px; margin: 0 0 24px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-note { margin-top: 14px; font-size: 13.5px; color: #93c5fd; }

/* Teléfono de muestra */
.phone {
  width: min(320px, 100%);
  margin: 0 auto;
  background: #0b1220;
  border-radius: 36px;
  padding: 12px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.screen { background: #f8fafc; border-radius: 26px; overflow: hidden; color: var(--ink); }
.screen-top { background: linear-gradient(160deg, #0b3d2e, #062a20); color: #fff; padding: 18px 16px 22px; }
.screen-top small { color: #a7f3d0; font-size: 11.5px; }
.screen-top strong { display: block; font-size: 26px; font-family: Outfit, sans-serif; }
.screen-body { padding: 12px; display: grid; gap: 10px; }
.mini-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px; }
.mini-card small { display: block; font-size: 11px; color: var(--muted); font-weight: 700; text-transform: uppercase; }
.mini-card b { font-size: 18px; color: var(--ink); }
.mini-bar { height: 7px; border-radius: 7px; background: #e2e8f0; margin-top: 8px; overflow: hidden; }
.mini-bar i { display: block; height: 100%; width: 72%; background: var(--green-2); }
.mini-row { display: flex; justify-content: space-between; align-items: center; font-size: 13px; padding: 6px 0; border-bottom: 1px solid #f1f5f9; }
.mini-row:last-child { border-bottom: none; }
.tag { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: #dcfce7; color: #15803d; }
.tag.late { background: #fee2e2; color: #b91c1c; }

/* ---------- Secciones ---------- */
section { padding: 64px 0; }
.section-head { max-width: 680px; margin-bottom: 32px; }
.section-head h2 { font-size: clamp(26px, 4vw, 36px); margin-bottom: 10px; }
.section-head p { margin: 0; color: var(--muted); font-size: 16px; }
.section-head .eyebrow { color: var(--blue); }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 20px; }
.feature .icon { font-size: 26px; margin-bottom: 10px; }
.feature h3 { font-size: 17px; margin-bottom: 6px; }
.feature p { margin: 0; font-size: 14.5px; color: var(--muted); }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; counter-reset: step; padding: 0; margin: 0; list-style: none; }
.steps li { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 20px; counter-increment: step; }
.steps li::before { content: counter(step); display: inline-flex; width: 32px; height: 32px; border-radius: 50%; background: var(--navy-2); color: #fff; align-items: center; justify-content: center; font-weight: 800; margin-bottom: 10px; }
.steps strong { display: block; color: var(--ink); margin-bottom: 4px; }
.steps span { font-size: 14.5px; color: var(--muted); }

/* ---------- Precios ---------- */
.alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; align-items: stretch; }
.plan { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 24px; display: flex; flex-direction: column; position: relative; }
.plan.featured { border: 2px solid var(--green-2); box-shadow: 0 16px 40px rgba(16, 185, 129, 0.15); }
.plan .badge { position: absolute; top: -12px; left: 24px; background: var(--green-2); color: #fff; font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: 999px; }
.plan .badge.save { background: var(--blue); }
.plan h3 { font-size: 19px; margin-bottom: 6px; }
.plan .price { font-family: Outfit, sans-serif; font-size: 34px; font-weight: 800; color: var(--ink); }
.plan .price small { font-size: 15px; font-weight: 600; color: var(--muted); }
.plan p { margin: 6px 0 16px; font-size: 14px; color: var(--muted); }
.plan ul { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 8px; font-size: 14.5px; }
.plan li::before { content: "✓ "; color: var(--green-2); font-weight: 800; }
.plan .btn { margin-top: auto; }
.trial-note { margin-top: 18px; text-align: center; color: var(--muted); font-size: 14.5px; }

/* ---------- Descarga ---------- */
.download { background: linear-gradient(160deg, var(--navy-2), var(--navy)); color: #dbeafe; border-radius: 24px; padding: 32px; display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; }
@media (max-width: 760px) { .download { grid-template-columns: 1fr; padding: 24px; } }
.download h2 { color: #fff; font-size: clamp(24px, 4vw, 32px); margin-bottom: 8px; }
.download p { margin: 0 0 6px; }
.download small { color: #93c5fd; }
.download-actions { display: grid; gap: 10px; }
.platforms { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin-top: 16px; }
.platform { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px; font-size: 14.5px; }
.platform strong { display: block; color: var(--ink); margin-bottom: 4px; font-size: 16px; }

/* ---------- Preguntas ---------- */
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 700; color: var(--ink); }
.faq details p { margin: 10px 0 0; color: var(--muted); font-size: 15px; }

/* ---------- Contacto y pie ---------- */
.contact { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.contact a { text-decoration: none; }
.site-footer { background: var(--navy); color: #93c5fd; padding: 32px 0; font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: center; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
.site-footer a { color: #dbeafe; text-decoration: none; }

/* ---------- Páginas legales ---------- */
.legal { max-width: 820px; margin: 0 auto; padding: 40px 16px 64px; }
.legal h1 { font-size: clamp(28px, 5vw, 38px); margin-bottom: 6px; }
.legal .updated { color: var(--muted); margin: 0 0 28px; }
.legal h2 { font-size: 20px; margin: 30px 0 10px; }
.legal p, .legal li { font-size: 15.5px; }
.legal ul { padding-left: 20px; }
.legal .box { background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 14px; padding: 14px 16px; margin: 16px 0; }
.legal table { width: 100%; border-collapse: collapse; font-size: 14.5px; margin: 10px 0; }
.legal th, .legal td { text-align: left; border-bottom: 1px solid var(--line); padding: 8px 6px; vertical-align: top; }
