/* Página de presentación de OpiQR (dominio raíz). */
:root {
  --ink: #0b1f33;
  --muted: #4a5b6c;
  --brand: #0f766e;
  --brand-dark: #0b5650;
  --star: #f59e0b;
  --cream: #f7f5f0;
  --line: #e4e1d8;
  --font: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: #fff; line-height: 1.6; font-size: 16px; }
a { color: var(--brand); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 12px; }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); letter-spacing: -.01em; }
h3 { font-size: 1.1rem; }
p { margin: 0 0 12px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.center { text-align: center; }
.narrow { max-width: 640px; margin-left: auto; margin-right: auto; }
.lead { font-size: 1.1rem; color: var(--muted); }

/* Navegación */
.nav { position: sticky; top: 0; z-index: 10; background: rgba(255, 255, 255, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.25rem; color: var(--ink); text-decoration: none; }
.logo-qr { color: var(--brand); font-weight: 700; }
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a { color: var(--ink); text-decoration: none; font-size: .95rem; }
.nav-links a:hover { color: var(--brand); }
.nav-login { border: 1.5px solid var(--line); padding: 6px 14px; border-radius: 999px; }
@media (max-width: 720px) { .nav-links a:not(.nav-login) { display: none; } }

/* Botones */
.btn { display: inline-block; padding: 13px 22px; border-radius: 12px; font-weight: 700; text-decoration: none; border: 2px solid transparent; transition: transform .12s, background .12s; }
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid var(--star); outline-offset: 2px; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-ghost { color: var(--ink); border-color: var(--line); background: #fff; }
.btn-light { background: #fff; color: var(--brand-dark); }
.btn-outline-light { color: #fff; border-color: rgba(255, 255, 255, .6); margin-left: 8px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 18px; }

/* Portada */
.hero { background: linear-gradient(180deg, var(--cream), #fff); padding: 56px 0 72px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-block; font-size: .85rem; font-weight: 600; color: var(--brand-dark); background: #ddf1ee; padding: 4px 12px; border-radius: 999px; margin-bottom: 18px; }
.hl { color: var(--brand); }
.hero-points { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--muted); font-size: .95rem; }
.hero-points li::before { content: "✓ "; color: var(--brand); font-weight: 700; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } .hero { padding-top: 36px; } }

/* Celular de ejemplo (solo ilustración) */
.phone { position: relative; justify-self: center; width: 280px; max-width: 100%; }
.phone-screen { background: #fffbeb; border: 10px solid var(--ink); border-radius: 36px; padding: 28px 18px 24px; text-align: center; box-shadow: 0 30px 60px rgba(11, 31, 51, .18); }
.mock-logo { font-weight: 700; font-size: 1.2rem; }
.mock-badge { display: inline-block; margin: 6px 0 14px; background: var(--brand); color: #fff; font-size: .75rem; padding: 2px 10px; border-radius: 999px; }
.mock-q { font-weight: 600; font-size: .9rem; margin: 0; }
.mock-stars { color: var(--star); font-size: 2rem; letter-spacing: 2px; margin: 4px 0 10px; }
.mock-stars span { color: #d6d3cb; }
.mock-input { text-align: left; font-size: .75rem; color: #8a94a0; background: #fff; border: 1px solid #d9dde3; border-radius: 10px; padding: 10px; height: 64px; }
.mock-btn { margin-top: 12px; background: #d97706; color: #fff; font-weight: 700; padding: 10px; border-radius: 10px; font-size: .9rem; }
.toast { position: absolute; right: -40px; bottom: -22px; width: 250px; background: #fff; border-radius: 14px; padding: 12px 14px; box-shadow: 0 16px 40px rgba(11, 31, 51, .16); font-size: .8rem; border-left: 4px solid var(--brand); }
.toast strong { display: block; font-size: .8rem; }
.toast span { color: var(--muted); }
@media (max-width: 480px) { .toast { right: -6px; width: 230px; } }

/* Secciones */
.section { padding: 72px 0; }
.section-alt { background: var(--cream); }
.steps { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.steps li { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 24px; }
.step-n { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 700; margin-bottom: 12px; }
.steps p, .card p { color: var(--muted); margin: 0; }
.cards { display: grid; gap: 18px; margin-top: 28px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.card { background: #fff; border-radius: 18px; padding: 24px; border-top: 4px solid var(--brand); }
.trust { display: grid; grid-template-columns: 1.3fr .7fr; gap: 40px; align-items: start; }
@media (max-width: 860px) { .trust { grid-template-columns: 1fr; } }
.checks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 14px; }
.checks li { padding-left: 32px; position: relative; color: var(--muted); }
.checks li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 50%; background: #ddf1ee; color: var(--brand-dark); font-weight: 700; display: grid; place-items: center; font-size: .8rem; }
.checks strong { color: var(--ink); }
.ideal { background: var(--cream); border-radius: 18px; padding: 24px; }
.tags { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; font-size: .9rem; }

/* Preguntas */
.faq { max-width: 780px; }
.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--brand); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--muted); margin: 10px 0 0; }

/* Cierre y pie */
.final { background: var(--brand-dark); color: #fff; padding: 72px 0; }
.final .lead { color: #cfe9e5; }
.final .btn { margin-top: 8px; }
.footer { padding: 24px 0; font-size: .9rem; color: var(--muted); }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.footer nav { display: flex; gap: 18px; }
.footer a { color: var(--muted); }
