/* ==========================================================================
   Página pública de inicio (la que encuentra Google). Reutiliza las variables de base.css
   ========================================================================== */
body.landing { background: #fff; color: var(--text); scroll-behavior: smooth; }
html { scroll-behavior: smooth; }
.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.container.narrow { max-width: 780px; }
.ic { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- Cabecera ---------- */
.site-header { position: sticky; top: 0; z-index: 30; background: rgba(255, 255, 255, 0.92); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--border); }
.bar { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 800; font-size: 1.15rem; letter-spacing: -0.02em; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 36px; height: 36px; border-radius: 10px; background: var(--brand-700); color: #fff; display: grid; place-items: center; }
.brand-mark .ic { width: 22px; height: 22px; }
.nav { display: flex; gap: 22px; margin-left: 12px; }
.nav a { color: var(--text-2); font-weight: 600; font-size: 0.94rem; text-decoration: none; }
.nav a:hover { color: var(--brand-700); }
.bar-actions { margin-left: auto; display: flex; gap: 10px; }

/* ---------- Banner de demostración (solo copia local) ---------- */
.demo-banner { background: #0b3f3c; color: #d5efec; font-size: 0.9rem; }
.demo-banner .container { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding-top: 8px; padding-bottom: 8px; }
.demo-banner a { color: #fff; font-weight: 700; background: rgba(255, 255, 255, 0.14); padding: 3px 12px; border-radius: 999px; text-decoration: none; }
.demo-banner a:hover { background: rgba(255, 255, 255, 0.26); }

/* ---------- Portada ---------- */
.hero { background: radial-gradient(900px 420px at 88% -10%, #ccfbf1 0%, transparent 60%), radial-gradient(700px 380px at -5% 110%, #dbeafe 0%, transparent 55%), #f8fdfc; padding: 56px 0 72px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 48px; align-items: center; }
.eyebrow { margin: 0 0 12px; color: var(--brand-700); font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.8rem; }
.hero h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); line-height: 1.1; letter-spacing: -0.03em; margin: 0 0 16px; }
.lead { font-size: 1.15rem; color: var(--text-2); max-width: 34em; margin: 0 0 24px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.center-row { justify-content: center; }
.chips-row { list-style: none; margin: 26px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 20px; color: var(--text-2); font-weight: 600; font-size: 0.93rem; }
.chips-row li { display: inline-flex; align-items: center; gap: 6px; }
.chips-row .ic { width: 18px; height: 18px; color: var(--green); }

/* Ilustración de la aplicación */
.mock { position: relative; padding-bottom: 46px; }
.mock-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #eef2f6; border: 1px solid var(--border); border-bottom: 0; border-radius: 14px 14px 0 0; }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: #cbd5e1; }
.mock-bar span { margin: 0 auto; font-size: 0.78rem; font-weight: 700; color: var(--muted); }
.mock-body { background: #fff; border: 1px solid var(--border); border-radius: 0 0 14px 14px; padding: 16px; box-shadow: 0 30px 60px -20px rgba(15, 23, 42, 0.28); }
.mock-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.mock-head small { display: block; font-family: var(--mono); font-weight: 700; color: var(--brand-800); letter-spacing: 0.05em; font-size: 0.75rem; }
.mock-head b { font-size: 1.05rem; }
.mock-pill { background: var(--brand-100); color: var(--brand-800); font-size: 0.78rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.mock-alert { display: flex; align-items: center; gap: 8px; background: var(--red-bg); color: #7f1d1d; border-radius: 8px; padding: 8px 12px; font-size: 0.82rem; margin-bottom: 12px; }
.mock-alert .ic { width: 16px; height: 16px; }
.mock-art { display: block; width: 100%; height: auto; }
.mock-float { position: absolute; right: -6px; bottom: 0; width: 230px; background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; font-size: 0.8rem; box-shadow: 0 18px 40px -12px rgba(15, 23, 42, 0.3); }
.mock-float b { display: block; margin-bottom: 6px; font-size: 0.85rem; }
.mock-float div { display: flex; align-items: center; gap: 6px; padding: 3px 0; color: var(--text-2); }
.mock-float span { font-weight: 700; color: var(--text); min-width: 34px; }
.d { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.d.ok { background: var(--green); }
.d.blue { background: var(--blue); }

/* ---------- Secciones ---------- */
.section { padding: 72px 0; }
.section.alt { background: var(--surface-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); letter-spacing: -0.02em; margin: 0 0 10px; text-align: center; }
.section-lead { text-align: center; color: var(--muted); font-size: 1.08rem; max-width: 40em; margin: 0 auto 36px; }
.section-lead.left { text-align: left; margin-left: 0; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.feature { padding: 24px; transition: transform 0.15s, box-shadow 0.15s; }
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.feature .ico { width: 48px; height: 48px; border-radius: 12px; background: var(--brand-100); color: var(--brand-700); display: grid; place-items: center; margin-bottom: 14px; }
.feature h3 { margin: 0 0 6px; font-size: 1.08rem; }
.feature p { margin: 0; color: var(--text-2); font-size: 0.96rem; }
.card { background: #fff; border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow-sm); }

.steps { list-style: none; margin: 34px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.steps li { text-align: center; padding: 0 8px; }
.steps .num { width: 52px; height: 52px; border-radius: 50%; background: var(--brand-700); color: #fff; font-weight: 800; font-size: 1.3rem; display: grid; place-items: center; margin: 0 auto 14px; }
.steps h3 { margin: 0 0 6px; }
.steps p { margin: 0; color: var(--text-2); }

.split { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 48px; align-items: start; }
.split h2 { text-align: left; }
.secure { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.secure li { display: flex; gap: 16px; align-items: flex-start; }
.secure .ic { width: 44px; height: 44px; padding: 10px; border-radius: 12px; background: var(--brand-100); color: var(--brand-700); }
.secure b { display: block; margin-bottom: 2px; }
.secure p { margin: 0; color: var(--text-2); font-size: 0.96rem; }

details { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 4px 18px; margin: 10px 0; }
summary { cursor: pointer; font-weight: 700; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--brand-700); }
details[open] summary::after { content: "–"; }
details p { margin: 0 0 14px; color: var(--text-2); }

.cta-band { background: linear-gradient(120deg, var(--brand-800), var(--brand-600)); color: #fff; }
.cta-band h2, .cta-band .section-lead { color: #fff; }
.cta-band .section-lead { color: #c9f3ee; margin-bottom: 24px; }
.cta-band .btn { background: #fff; color: var(--brand-800); }
.cta-band .btn:hover { background: #ecfeff; }
.cta-band .btn-secondary { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.6); }
.cta-band .btn-secondary:hover { background: rgba(255, 255, 255, 0.12); }
.center { text-align: center; }
.page-404 { padding-top: 96px; padding-bottom: 96px; }

.site-footer { padding: 26px 0; border-top: 1px solid var(--border); color: var(--muted); font-size: 0.9rem; }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }

/* ---------- Pantallas pequeñas ---------- */
@media (max-width: 960px) {
  .hero-grid, .split { grid-template-columns: 1fr; gap: 36px; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav { display: none; }
  .mock-float { right: 8px; }
}
@media (max-width: 640px) {
  .hero { padding: 36px 0 56px; }
  .section { padding: 52px 0; }
  .cards, .steps { grid-template-columns: 1fr; }
  .hide-sm { display: none; }
  .lead { font-size: 1.05rem; }
  .cta-row .btn-lg { width: 100%; }
  .mock-float { position: static; width: auto; margin-top: 12px; }
  .mock { padding-bottom: 0; }
}
