/* Cuadre · página pública. Mismos colores y fuente que el registro (/registro) y la app. */
:root {
  --primary: #4f46e5; --primary-dark: #4338ca; --primary-soft: #eef2ff; --primary-line: #c7d2fe;
  --ink: #1f2937; --muted: #5b6472; --border: #e5e7eb; --bg: #ffffff; --bg-alt: #f5f6fa;
  --ok: #047857; --night: #0f172a;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 2px 8px rgba(15, 23, 42, .05);
  --shadow-md: 0 10px 30px rgba(15, 23, 42, .08);
  --shadow-lg: 0 30px 60px -20px rgba(49, 46, 129, .35), 0 12px 24px -12px rgba(15, 23, 42, .2);
  --radius: 16px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px; line-height: 1.6; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
[hidden] { display: none !important; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary-dark); }
h1, h2, h3, h4 { line-height: 1.2; margin: 0; color: var(--ink); }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.wrap { width: min(1180px, 100% - 2.5rem); margin-inline: auto; }
.narrow { width: min(820px, 100% - 2.5rem); }
.center { text-align: center; margin-top: 2.5rem; }
.ico { width: 1.25em; height: 1.25em; flex: none; }

:focus-visible { outline: 3px solid #818cf8; outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--primary); color: #fff; padding: .7rem 1rem; border-radius: 8px; }
.skip:focus { left: 8px; }

/* ---------- botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 46px; padding: .65rem 1.25rem;
  border-radius: 12px; border: 1.5px solid transparent; font: inherit; font-weight: 700; font-size: 1rem; line-height: 1.2;
  text-decoration: none; cursor: pointer; transition: background .15s, box-shadow .15s, transform .15s, border-color .15s;
}
.btn-lg { min-height: 54px; padding: .8rem 1.6rem; font-size: 1.06rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 6px 16px -4px rgba(79, 70, 229, .5); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); }
.btn-ghost { background: #fff; color: var(--primary-dark); border-color: var(--primary-line); }
.btn-ghost:hover { background: var(--primary-soft); border-color: var(--primary); }
.btn-outline { background: transparent; color: var(--ink); border-color: #cbd5e1; }
.btn-outline:hover { border-color: var(--primary); color: var(--primary-dark); background: var(--primary-soft); }
.btn-light { background: #fff; color: var(--primary-dark); box-shadow: 0 8px 20px -6px rgba(0, 0, 0, .4); }
.btn-light:hover { background: var(--primary-soft); transform: translateY(-1px); }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .55); }
.btn-ghost-light:hover { background: rgba(255, 255, 255, .12); border-color: #fff; }

/* ---------- encabezado ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .88); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--border); }
.header-in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: .65rem; color: var(--ink); font-weight: 800; font-size: 1.3rem; text-decoration: none; letter-spacing: -.01em; }
.brand img { border-radius: 9px; }
.nav { display: flex; align-items: center; gap: .25rem; }
.nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .98rem; padding: .6rem .85rem; border-radius: 10px; min-height: 44px; display: inline-flex; align-items: center; }
.nav a:not(.btn):hover { background: var(--primary-soft); color: var(--primary-dark); }
.nav-cta { margin-left: .5rem; min-height: 44px; }
.menu-btn { display: none; align-items: center; justify-content: center; width: 46px; height: 46px; border: 1px solid var(--border); border-radius: 12px; background: #fff; color: var(--ink); cursor: pointer; }
.menu-btn .ico { width: 24px; height: 24px; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: 4.5rem 0 5rem; background:
  radial-gradient(900px 500px at 85% -10%, #e0e7ff 0%, transparent 60%),
  radial-gradient(700px 400px at -5% 30%, #eef2ff 0%, transparent 60%), #fff; }
.hero-in { display: grid; grid-template-columns: .95fr 1.2fr; gap: 3rem; align-items: center; }
.eyebrow { display: inline-block; font-size: .85rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--primary); margin-bottom: .9rem; }
.hero h1 { font-size: clamp(2rem, 3.8vw, 2.85rem); letter-spacing: -.02em; font-weight: 800; }
.lead { margin-top: 1.2rem; font-size: 1.2rem; color: var(--muted); max-width: 34rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }
.center-row { justify-content: center; }
.reassure { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; margin-top: 1.4rem; font-size: .95rem; font-weight: 600; color: #374151; }
.reassure li { display: inline-flex; align-items: center; gap: .4rem; }
.reassure .ico { color: var(--ok); width: 1.15em; height: 1.15em; }

.hero-visual { position: relative; padding: 0 0 2rem 0; }
.browser { background: #fff; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-lg); }
.browser-bar { display: flex; align-items: center; gap: 6px; padding: .6rem .85rem; background: #f3f4f8; border-bottom: 1px solid var(--border); }
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: #d4d7e0; }
.browser-bar span { margin-left: .6rem; flex: 1; max-width: 18rem; font-size: .75rem; color: var(--muted); background: #fff; border: 1px solid var(--border); border-radius: 999px; padding: .15rem .8rem; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.browser img { width: 100%; }
.phone { position: absolute; right: -1.25rem; bottom: 0; width: 27%; min-width: 108px; border-radius: 22px; padding: 6px; background: #111827; box-shadow: var(--shadow-lg); }
.phone img { border-radius: 17px; width: 100%; }

/* ---------- secciones ---------- */
.section { padding: 5.5rem 0; }
.section.alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 44rem; margin: 0 auto 3rem; }
.section-head h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); letter-spacing: -.015em; font-weight: 800; }
.section-head .sub { margin-top: .9rem; color: var(--muted); font-size: 1.1rem; }

/* dolores */
.pains { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.pain { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow-sm); }
.pain-q { display: flex; align-items: center; gap: .8rem; margin-bottom: .9rem; }
.pain-q .ico { width: 44px; height: 44px; padding: 10px; border-radius: 12px; background: var(--primary-soft); color: var(--primary); }
.pain-q h3 { font-size: 1.2rem; }
.pain-a { color: #374151; }
.pain-a strong { color: var(--ink); }

/* funciones */
.groups { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; align-items: start; }
.group { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.7rem; box-shadow: var(--shadow-md); }
.group h3 { display: flex; align-items: center; gap: .75rem; font-size: 1.25rem; margin-bottom: 1.2rem; }
.g-ico { display: inline-grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 12px; background: linear-gradient(135deg, #eef2ff, #e0e7ff); color: var(--primary); }
.g-ico .ico { width: 24px; height: 24px; }
.ticks li { position: relative; padding-left: 1.8rem; margin-bottom: .7rem; font-size: .98rem; color: #374151; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .32em; width: 1.15rem; height: 1.15rem; border-radius: 50%; background: #d1fae5 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23047857' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/80% no-repeat; }
.ticks li b { color: var(--ink); }
.sub-h { text-align: center; font-size: 1.5rem; margin: 3.5rem 0 1.5rem; }
.verticals { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.vcard { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow-sm); }
.vcard h4 { font-size: 1.15rem; margin: 1rem 0 .5rem; }
.vcard p { font-size: .96rem; color: var(--muted); }

/* pasos */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; counter-reset: s; }
.steps li { position: relative; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 2.2rem 1.6rem 1.7rem; box-shadow: var(--shadow-md); }
.step-n { position: absolute; top: -1.2rem; left: 1.5rem; width: 2.6rem; height: 2.6rem; display: grid; place-items: center; border-radius: 50%; background: linear-gradient(135deg, #818cf8, #4338ca); color: #fff; font-weight: 800; font-size: 1.2rem; box-shadow: 0 6px 14px -4px rgba(79, 70, 229, .6); }
.steps h3 { font-size: 1.2rem; margin-bottom: .6rem; }
.steps p { color: var(--muted); font-size: .98rem; }
.steps b { color: var(--ink); }

/* galería */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.75rem; }
.shot { margin: 0; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); display: flex; flex-direction: column; }
.shot.wide { grid-column: span 2; }
.shot.wide img { aspect-ratio: 21 / 8; }
.shot img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: left top; border-bottom: 1px solid var(--border); background: var(--bg-alt); }
.shot figcaption { padding: 1rem 1.2rem 1.2rem; font-size: .95rem; color: var(--muted); }
.shot figcaption b { color: var(--ink); display: block; margin-bottom: .15rem; }

/* precios */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; max-width: 880px; margin-inline: auto; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--border); border-radius: 20px; padding: 2rem; box-shadow: var(--shadow-md); }
.plan.featured { border: 2px solid var(--primary); box-shadow: 0 24px 50px -18px rgba(79, 70, 229, .45); }
.plan h3 { font-size: 1.5rem; }
.badge { position: absolute; top: -.85rem; left: 2rem; background: var(--primary); color: #fff; font-size: .78rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; padding: .3rem .8rem; border-radius: 999px; }
.plan-for { margin-top: .4rem; color: var(--muted); font-size: .96rem; min-height: 3.2em; }
.price { margin: 1.2rem 0 1.4rem; font-size: 2.6rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.price small { font-size: 1rem; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.price-q { font-size: 1.7rem; color: var(--primary-dark); }
.plan .ticks { flex: 1; }
.plan-cta { display: grid; gap: .65rem; margin-top: 1.5rem; }
.plan-note { display: flex; align-items: center; justify-content: center; gap: .6rem; max-width: 52rem; margin: 2.2rem auto 0; padding: 1rem 1.3rem; background: var(--primary-soft); border: 1px solid var(--primary-line); border-radius: 14px; text-align: left; color: #312e81; font-size: .98rem; }
.plan-note .ico { color: var(--primary); width: 1.5rem; height: 1.5rem; }

/* preguntas */
.faq { display: grid; gap: .8rem; }
.faq details { background: #fff; border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow-sm); }
.faq summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 1.4rem; min-height: 56px; font-weight: 700; font-size: 1.05rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 1.8rem; height: 1.8rem; display: grid; place-items: center; border-radius: 50%; background: var(--primary-soft); color: var(--primary); font-size: 1.3rem; font-weight: 700; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { content: "–"; }
.faq details[open] { border-color: var(--primary-line); }
.faq details p { padding: 0 1.4rem 1.3rem; color: #374151; }

/* CTA final */
.final { padding: 5rem 0; color: #e0e7ff; background: radial-gradient(circle at 20% 20%, #4338ca 0%, #1e1b4b 55%, #0f172a 100%); text-align: center; }
.final h2 { color: #fff; font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 800; letter-spacing: -.015em; max-width: 36rem; margin-inline: auto; }
.final p { margin: 1rem auto 0; font-size: 1.15rem; max-width: 34rem; }
.final .cta-row { margin-top: 2rem; }

/* contacto */
.contact-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.contact-list a { display: flex; align-items: center; gap: .9rem; min-height: 72px; padding: 1rem 1.2rem; background: #fff; border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow-sm); color: var(--ink); text-decoration: none; font-weight: 700; word-break: break-word; }
.contact-list a:hover { border-color: var(--primary); box-shadow: var(--shadow-md); }
.contact-list a small { display: block; font-weight: 500; color: var(--muted); font-size: .85rem; }
.contact-list .c-ico { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 12px; background: var(--primary-soft); color: var(--primary); }
.contact-list .c-ico .ico { width: 24px; height: 24px; }
.contact-list .c-wa .c-ico { background: #dcfce7; color: #15803d; }
.contact-empty { text-align: center; display: grid; gap: 1.2rem; justify-items: center; font-size: 1.15rem; color: #374151; }

/* pie */
.site-footer { background: var(--night); color: #cbd5e1; padding: 3rem 0 1.5rem; font-size: .95rem; }
.site-footer .brand { color: #fff; }
.foot-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.5rem 3rem; align-items: flex-start; }
.foot-brand p { margin-top: .7rem; color: #94a3b8; }
.foot-nav { display: flex; flex-wrap: wrap; gap: .2rem 1rem; }
.foot-nav a { color: #e2e8f0; text-decoration: none; padding: .6rem .3rem; min-height: 44px; display: inline-flex; align-items: center; }
.foot-nav a:hover { color: #fff; text-decoration: underline; }
.foot-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem; margin-top: 2rem; padding-top: 1.2rem; border-top: 1px solid #1e293b; color: #94a3b8; font-size: .88rem; }

/* barra fija en teléfono */
.sticky-cta { display: none; }

/* ---------- adaptable ---------- */
@media (max-width: 1020px) {
  .hero-in { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero { padding: 3rem 0 3.5rem; }
  .hero-copy { text-align: center; }
  .lead { margin-inline: auto; }
  .cta-row, .reassure { justify-content: center; }
  .groups { grid-template-columns: 1fr; }
  .verticals { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; gap: 2rem; }
}
@media (max-width: 820px) {
  .menu-btn { display: inline-flex; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: .2rem; padding: .8rem 1.25rem 1.2rem; background: #fff; border-bottom: 1px solid var(--border); box-shadow: var(--shadow-md); }
  .nav.open { display: flex; }
  .nav-cta { margin: .5rem 0 0; }
  .pains { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; max-width: 520px; }
  .plan-for { min-height: 0; }
  .gallery { grid-template-columns: 1fr; }
  .shot.wide { grid-column: auto; }
  .shot.wide img { aspect-ratio: 16 / 10; }
  .section { padding: 4rem 0; }
}
@media (max-width: 600px) {
  body { font-size: 16px; padding-bottom: 84px; }
  .wrap, .narrow { width: min(1180px, 100% - 2rem); }
  .verticals { grid-template-columns: 1fr; }
  .hero-visual { padding-bottom: 1.5rem; }
  .browser { display: none; }
  .hero-visual { display: flex; justify-content: center; padding-bottom: 0; }
  .phone { position: relative; right: auto; width: min(260px, 70%); border-radius: 30px; padding: 8px; }
  .phone img { border-radius: 23px; }
  .cta-row .btn { width: 100%; }
  .btn-lg { padding-inline: 1.2rem; }
  .plan { padding: 1.6rem 1.3rem; }
  .plan-note { flex-direction: column; text-align: center; }
  .foot-in, .foot-legal { flex-direction: column; }
  .sticky-cta { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; padding: .7rem 1rem calc(.7rem + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .95); backdrop-filter: blur(10px); border-top: 1px solid var(--border); box-shadow: 0 -8px 24px rgba(15, 23, 42, .08); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
