:root {
  --ink: #0F1B26;
  --muted: #52606D;
  --bg: #F5FAFE;
  --alt: #E8F3FC;
  --card: #FFFFFF;
  --line: #D6E4F0;
  --accent: #007FFF;
  --accent-ink: #FFFFFF;
  --accent-text: #0066CC;
  --ok: #1D6B45;
  --error: #B3261E;
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { max-width: 100%; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.center { text-align: center; }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border-radius: 999px; padding: 10px 18px; font: inherit; font-weight: 600; font-size: .95rem;
  text-decoration: none; cursor: pointer; border: 1.5px solid transparent; white-space: nowrap;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { filter: brightness(.95); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-large { padding: 14px 24px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .45; cursor: not-allowed; }

/* Cabecera */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(245, 250, 254, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 1.2rem; text-decoration: none; letter-spacing: -.01em; }
.logo-mark { width: 26px; height: 26px; border-radius: 50%; background: var(--accent); box-shadow: inset 0 0 0 5px var(--bg), 0 0 0 2px var(--accent); }
.nav { display: flex; gap: 22px; }
.nav a { text-decoration: none; color: var(--muted); font-weight: 500; font-size: .95rem; }
.nav a:hover { color: var(--ink); }
.header-actions { display: flex; align-items: center; gap: 10px; }

.signin-menu { position: relative; }
.signin-menu summary { list-style: none; padding: 8px 16px; }
.signin-menu summary::-webkit-details-marker { display: none; }
.signin-options {
  position: absolute; right: 0; top: calc(100% + 8px); width: 270px; background: var(--card);
  border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 16px 40px rgba(0, 0, 0, .12); padding: 6px;
}
.signin-options a { display: flex; flex-direction: column; padding: 10px 12px; border-radius: 10px; text-decoration: none; }
.signin-options a:hover { background: var(--alt); }
.signin-options span { color: var(--muted); font-size: .82rem; }

/* Hero */
.hero { padding: 64px 0 72px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.eyebrow { color: var(--accent-text); font-weight: 700; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 12px; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.05; letter-spacing: -.02em; margin: 0 0 18px; }
.highlight { color: var(--accent-text); }
.lead { font-size: 1.15rem; color: var(--muted); margin: 0 0 26px; max-width: 560px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 22px; }
.hero-points { list-style: none; padding: 0; margin: 0; display: flex; gap: 18px; flex-wrap: wrap; color: var(--muted); font-size: .9rem; }
.hero-points li::before { content: "✓ "; color: var(--ok); font-weight: 700; }

.hero-visual { position: relative; display: flex; justify-content: center; }
.phone { width: 300px; height: 600px; border: 12px solid #1B1B1B; border-radius: 46px; background: #F2F2F7; position: relative; box-shadow: 0 30px 60px rgba(0, 0, 0, .18); overflow: hidden; }
.phone-notch { width: 110px; height: 26px; background: #1B1B1B; border-radius: 0 0 16px 16px; margin: 0 auto; }
.phone-screen { padding: 14px 12px; }
.phone-wallet { font-weight: 800; font-size: 1.4rem; margin: 6px 4px 12px; }
.toast { position: absolute; left: 10px; right: 10px; bottom: 26px; display: flex; gap: 10px; align-items: center; background: rgba(255, 255, 255, .92); border-radius: 16px; padding: 10px 12px; box-shadow: 0 8px 24px rgba(0, 0, 0, .14); font-size: .82rem; animation: toast 4s ease-in-out infinite; }
.toast strong { display: block; }
.toast-icon { width: 34px; height: 34px; border-radius: 9px; background: #2E3A2F; display: grid; place-items: center; }
@keyframes toast { 0%, 15% { transform: translateY(140%); opacity: 0 } 25%, 85% { transform: translateY(0); opacity: 1 } 100% { transform: translateY(140%); opacity: 0 } }

/* Tarjeta (pase) */
.pass { --pass: #2E3A2F; background: var(--pass); color: #fff; border-radius: 14px; padding: 4px 0 14px; box-shadow: 0 8px 22px rgba(0, 0, 0, .18); transition: background .3s; }
.pass small { display: block; font-size: .55rem; font-weight: 700; letter-spacing: .05em; opacity: .85; }
.pass-top, .pass-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; padding: 10px 12px 0; font-size: .86rem; }
.pass-top { align-items: center; font-weight: 700; }
.pass-top span:nth-child(2) { flex: 1; }
.pass-logo { width: 26px; height: 26px; border-radius: 7px; background: rgba(255, 255, 255, .16); display: grid; place-items: center; font-size: .9rem; }
.pass-count { text-align: right; font-weight: 400; }
.pass-row span:last-child:not(:first-child) { text-align: right; }
.pass-stamps { display: grid; grid-template-columns: repeat(5, auto); justify-content: space-between; row-gap: 8px; padding: 14px 14px 6px; }
.pass-stamp { width: 34px; height: 34px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .45); display: grid; place-items: center; font-size: .95rem; }
.pass-stamp.on { border-color: #fff; background: rgba(0, 0, 0, .25); animation: pop .3s ease-out; }
@keyframes pop { from { transform: scale(.6) } to { transform: scale(1) } }
.pass-large { max-width: 380px; margin: 0 auto; }
.pass-large .pass-top, .pass-large .pass-row { font-size: 1rem; padding: 14px 18px 0; }
.pass-large .pass-stamp { width: 46px; height: 46px; font-size: 1.25rem; }
.pass-large small { font-size: .62rem; }

/* Secciones */
.section { padding: 80px 0; }
.section-alt { background: var(--alt); }
.section-title { font-size: clamp(1.7rem, 3.5vw, 2.4rem); line-height: 1.15; letter-spacing: -.015em; margin: 0 0 16px; }
h2.center + * { margin-top: 0; }

.steps { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.steps li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.step-number { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-weight: 800; }
.steps h3 { margin: 14px 0 6px; font-size: 1.1rem; }
.steps p { margin: 0; color: var(--muted); font-size: .95rem; }

.demo-grid, .panel-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.control-label { font-weight: 700; font-size: .85rem; margin: 18px 0 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1.5px solid var(--line); background: var(--card); border-radius: 999px; padding: 7px 14px; font: inherit; font-size: .9rem; cursor: pointer; }
.chip.active { border-color: var(--ink); background: var(--ink); color: #fff; }
.swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.swatch { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--bg); box-shadow: 0 0 0 1.5px var(--line); cursor: pointer; }
.swatch.active { box-shadow: 0 0 0 2.5px var(--ink); }
.demo-buttons { display: flex; gap: 10px; margin-top: 22px; flex-wrap: wrap; }
.demo-message { min-height: 1.5em; color: var(--ok); font-weight: 600; margin: 12px 0 0; }

.business-types { list-style: none; padding: 0; margin: 36px 0 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.business-types li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 12px; text-align: center; font-weight: 600; font-size: .95rem; }
.business-types span { display: block; font-size: 2rem; margin-bottom: 6px; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 36px; }
.features article { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.feature-icon { font-size: 1.6rem; }
.features h3 { margin: 10px 0 6px; font-size: 1.08rem; }
.features p { margin: 0; color: var(--muted); font-size: .95rem; }

.check-list { list-style: none; padding: 0; margin: 18px 0 24px; }
.check-list li { padding-left: 26px; position: relative; margin-bottom: 8px; }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 800; }
.panel-mock { background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 22px; box-shadow: 0 20px 50px rgba(0, 0, 0, .08); }
.panel-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.panel-stats div { background: var(--alt); border-radius: 14px; padding: 14px; }
.panel-stats strong { display: block; font-size: 1.5rem; }
.panel-stats span { color: var(--muted); font-size: .82rem; }
.panel-idea { display: flex; gap: 10px; align-items: center; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; margin-top: 10px; font-size: .95rem; }

.faq { margin-top: 30px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 0 18px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 600; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.3rem; line-height: 1; color: var(--accent-text); }
.faq details[open] summary::after { content: "–"; }
.faq p { margin: 0 0 16px; color: var(--muted); }

/* Formulario */
.cta-section { background: #003366; color: #fff; }
.cta-section .section-title { color: #fff; }
.lead-small { color: rgba(255, 255, 255, .75); margin: 0 0 28px; }
.lead-form { background: var(--card); color: var(--ink); border-radius: 24px; padding: 26px; display: flex; flex-direction: column; gap: 14px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.lead-form label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: .9rem; }
.lead-form input:not([type="submit"]), .lead-form select, .lead-form textarea {
  font: inherit; font-size: 16px; font-weight: 400; padding: 11px 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; width: 100%;
}
.lead-form textarea { resize: vertical; }
.form-note { color: var(--muted); font-size: .82rem; margin: 0; }
.form-ok, .form-error { border-radius: 14px; padding: 12px 16px; margin: 0 0 16px; list-style: none; }
.form-ok { background: #E8F5EE; color: var(--ok); }
.form-error { background: #FDECEA; color: var(--error); }
.lead-form .form-error { margin: 0; }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Ingresar */
.signin-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 28px; text-align: left; }
.signin-card { display: flex; flex-direction: column; gap: 6px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; text-decoration: none; }
.signin-card:hover { border-color: var(--ink); }
.signin-card span:last-child { color: var(--muted); font-size: .92rem; }
.signin-emoji { font-size: 1.8rem; }

/* Pie */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0 24px; }
.footer-row { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-row p { color: var(--muted); max-width: 360px; margin: 10px 0 0; font-size: .92rem; }
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links a { color: var(--muted); text-decoration: none; font-size: .92rem; }
.copyright { color: var(--muted); font-size: .82rem; margin-top: 28px; }

/* Celular */
@media (max-width: 900px) {
  .nav { display: none; }
  .hero-grid, .demo-grid, .panel-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding-top: 36px; }
  .steps, .features { grid-template-columns: 1fr 1fr; }
  .business-types { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 600px) {
  .hide-sm { display: none; }
  .section { padding: 56px 0; }
  .steps, .features, .form-grid, .signin-cards { grid-template-columns: 1fr; }
  .business-types { grid-template-columns: 1fr 1fr; }
  .phone { width: 270px; height: 540px; }
  .lead-form { padding: 20px; }
}

/* Foco en el mismo azul de la página, no el del navegador */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline-offset: 0; border-color: var(--accent); }
