/* ─── VARIABLES ──────────────────────────────────────────────────────────────── */
:root {
  --blue:        #1a2a4c;
  --blue-mid:    #243562;
  --blue-light:  #2e437a;
  --gold:        #b8963a;
  --gold-light:  #d4ae5a;
  --white:       #ffffff;
  --bg:          #f7f6f3;
  --bg-card:     #ffffff;
  --border:      #e4e0d8;
  --text:        #1a2a4c;
  --text-mid:    #374151;
  --text-muted:  #6b7280;
  --text-light:  #9ca3af;
  --shadow-sm:   0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow:      0 4px 16px rgba(26,42,76,.10);
  --shadow-lg:   0 12px 40px rgba(26,42,76,.14);
  --radius:      10px;
  --radius-lg:   16px;
  --nav-h:       58px;
}

/* ─── RESET ──────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; font-family: inherit; }
ul { list-style: none; }

/* ─── UTILITIES ─────────────────────────────────────────────────────────────── */
.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 780px; margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section-alt { background: var(--white); }
.section-dark { background: var(--blue); color: var(--white); }
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(184,150,58,.12);
  color: var(--gold);
  font-size: 13px; font-weight: 600; letter-spacing: .04em;
  padding: 5px 14px; border-radius: 20px;
  border: 1px solid rgba(184,150,58,.25);
}
.section-label {
  font-size: 12px; font-weight: 700; letter-spacing: .10em;
  text-transform: uppercase; color: var(--gold);
  margin-bottom: 10px;
}
.section-title {
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 700; line-height: 1.2;
  color: var(--blue);
  margin-bottom: 16px;
}
.section-dark .section-title { color: var(--white); }
.section-subtitle {
  font-size: 17px; color: var(--text-mid);
  max-width: 600px; line-height: 1.7;
}
.section-dark .section-subtitle { color: rgba(255,255,255,.72); }
.text-center { text-align: center; }
.text-center .section-subtitle { margin: 0 auto; }

/* ─── BUTTONS ────────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 15px; font-weight: 600;
  padding: 11px 24px; border-radius: 8px;
  border: 2px solid transparent;
  transition: all .18s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--blue); color: var(--white);
  border-color: var(--blue);
}
.btn-primary:hover { background: var(--blue-mid); border-color: var(--blue-mid); }
.btn-gold {
  background: var(--gold); color: var(--white);
  border-color: var(--gold);
}
.btn-gold:hover { background: var(--gold-light); border-color: var(--gold-light); }
.btn-outline {
  background: transparent; color: var(--blue);
  border-color: var(--blue);
}
.btn-outline:hover { background: var(--blue); color: var(--white); }
.btn-outline-white {
  background: transparent; color: var(--white);
  border-color: rgba(255,255,255,.5);
}
.btn-outline-white:hover { background: rgba(255,255,255,.1); border-color: var(--white); }
.btn-sm { font-size: 14px; padding: 8px 18px; }
.btn-lg { font-size: 16px; padding: 14px 32px; border-radius: 9px; }

/* ─── NAVBAR PÚBLICA ─────────────────────────────────────────────────────────── */
.pub-nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--white);
  display: flex; flex-direction: column;
  box-shadow: 0 1px 0 rgba(0,0,0,.06);
}
/* Línea dorada institucional debajo de la navbar */
.pub-nav::after {
  content: ''; display: block;
  height: 1px;
  background: linear-gradient(to right, transparent 0%, var(--gold) 20%, var(--gold) 80%, transparent 100%);
  opacity: .55;
}
.nav-inner {
  display: flex; align-items: center;
  width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px;
  height: var(--nav-h);
}
.nav-brand {
  display: flex; align-items: center;
  flex-shrink: 0; margin-right: auto;
}
.nav-logo {
  height: 30px; width: auto; flex-shrink: 0;
}
/* Divisor vertical entre logo y nombre del producto */
.nav-divider {
  display: block; width: 1px; height: 22px;
  background: rgba(26,42,76,.15);
  margin: 0 14px; flex-shrink: 0;
}
.nav-brand-product {
  font-size: 14px; font-weight: 700;
  color: var(--blue); letter-spacing: .01em;
  white-space: nowrap;
}
.nav-links {
  display: flex; align-items: center; gap: 2px;
  margin: 0 20px;
}
.nav-links a {
  font-size: 14px; font-weight: 500;
  color: var(--text-mid);
  padding: 6px 11px; border-radius: 6px;
  transition: color .15s, background .15s;
}
.nav-links a:hover { color: var(--blue); background: rgba(26,42,76,.05); }
.nav-actions {
  display: flex; align-items: center; gap: 8px;
  flex-shrink: 0;
}
.nav-actions .btn-nav-ghost {
  font-size: 14px; font-weight: 500;
  color: var(--blue);
  padding: 7px 15px; border-radius: 7px;
  background: transparent;
  border: 1px solid rgba(26,42,76,.22);
  transition: all .15s;
}
.nav-actions .btn-nav-ghost:hover {
  background: rgba(26,42,76,.05);
  border-color: rgba(26,42,76,.4);
}
.nav-actions .btn-nav-cta {
  font-size: 14px; font-weight: 600;
  color: var(--white);
  background: var(--gold);
  border: none;
  padding: 8px 18px; border-radius: 7px;
  transition: background .15s;
}
.nav-actions .btn-nav-cta:hover { background: var(--gold-light); }
.nav-hamburger {
  display: none;
  background: transparent; border: none;
  color: var(--blue); padding: 6px;
  margin-left: auto;
}
.nav-mobile-menu {
  display: none;
  position: absolute;
  top: calc(var(--nav-h) + 1px); /* justo debajo de línea dorada */
  left: 0; right: 0;
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 2px solid var(--border);
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
  padding: 8px 24px 20px;
  flex-direction: column; gap: 0;
  z-index: 99;
}
.nav-mobile-menu.open { display: flex; }
.nav-mobile-menu a {
  color: var(--text-mid); font-size: 15px; font-weight: 500;
  padding: 12px 4px;
  border-bottom: 1px solid var(--border);
  display: block;
}
.nav-mobile-menu a:last-of-type { border-bottom: none; }
.nav-mobile-actions {
  display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap;
}

/* ─── HERO ───────────────────────────────────────────────────────────────────── */
.hero {
  background: var(--blue);
  padding: 64px 0 80px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 70% at 80% 50%, rgba(184,150,58,.08) 0%, transparent 65%);
  pointer-events: none;
}
.hero-inner {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 64px; align-items: center;
  max-width: 1120px; margin: 0 auto; padding: 0 24px;
}
.hero-left { color: var(--white); }
.hero-tag { margin-bottom: 22px; }
.hero-title {
  font-size: clamp(28px, 5vw, 52px);
  font-weight: 800; line-height: 1.1;
  color: var(--white);
  margin-bottom: 20px;
  letter-spacing: -.01em;
}
.hero-desc {
  font-size: 18px; line-height: 1.65;
  color: rgba(255,255,255,.78);
  margin-bottom: 12px;
}
.hero-subdesc {
  font-size: 15px; color: rgba(255,255,255,.55);
  margin-bottom: 36px; line-height: 1.6;
}
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 28px; }
.hero-ctas .btn-lg { padding: 14px 30px; }
.hero-tagline {
  font-size: 14px; color: rgba(255,255,255,.45);
  font-style: italic;
}
.hero-tagline strong { color: rgba(255,255,255,.65); font-style: normal; }

/* ─── PRODUCT MOCKUP ────────────────────────────────────────────────────────── */
.hero-mockup {
  position: relative;
}
.mockup-window {
  background: #1e2d52;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,.35);
}
.mockup-titlebar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px;
  background: rgba(0,0,0,.2);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.mockup-dots { display: flex; gap: 6px; }
.mockup-dots span {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255,255,255,.18);
}
.mockup-hotel-name {
  font-size: 12px; font-weight: 600;
  color: rgba(255,255,255,.6);
}
.mockup-body { padding: 20px; }
.mockup-header {
  font-size: 11px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--gold);
  margin-bottom: 16px;
}
.mockup-stats {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 10px; margin-bottom: 16px;
}
.mockup-stat {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 8px; padding: 12px;
  text-align: center;
}
.mockup-stat-val {
  font-size: 22px; font-weight: 800;
  color: var(--white); line-height: 1;
  margin-bottom: 4px;
}
.mockup-stat-val.gold { color: var(--gold-light); }
.mockup-stat-label {
  font-size: 10px; color: rgba(255,255,255,.45);
  text-transform: uppercase; letter-spacing: .05em;
}
.mockup-status {
  display: flex; align-items: center; gap: 8px;
  background: rgba(184,150,58,.1);
  border: 1px solid rgba(184,150,58,.2);
  border-radius: 7px; padding: 10px 12px;
  margin-bottom: 16px;
}
.mockup-status-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--gold); flex-shrink: 0;
}
.mockup-status-text {
  font-size: 12px; color: rgba(255,255,255,.75);
  font-style: italic;
}
.mockup-dates {
  display: flex; gap: 8px; flex-wrap: wrap;
}
.mockup-date {
  flex: 1; min-width: 0;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 7px; padding: 8px 6px;
  text-align: center;
}
.mockup-date.alert { border-color: rgba(184,150,58,.3); background: rgba(184,150,58,.06); }
.mockup-date-day {
  font-size: 14px; font-weight: 700; color: var(--white);
  line-height: 1;
}
.mockup-date.alert .mockup-date-day { color: var(--gold-light); }
.mockup-date-month {
  font-size: 10px; color: rgba(255,255,255,.4);
  text-transform: uppercase; margin-bottom: 6px;
}
.mockup-date-tag {
  font-size: 9px; font-weight: 600;
  padding: 2px 5px; border-radius: 4px;
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.55);
  letter-spacing: .03em;
}
.mockup-date.alert .mockup-date-tag {
  background: rgba(184,150,58,.18);
  color: var(--gold-light);
}

/* ─── PROBLEMA ──────────────────────────────────────────────────────────────── */
.problema-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr));
  gap: 20px; margin-top: 48px;
}
.problema-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px 20px;
  display: flex; flex-direction: column; gap: 10px;
}
.problema-icon {
  width: 40px; height: 40px;
  background: rgba(26,42,76,.06);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--blue-light);
}
.problema-card h4 { font-size: 14px; font-weight: 700; color: var(--text); }
.problema-card p { font-size: 13px; color: var(--text-muted); line-height: 1.5; }

/* ─── QUÉ ES ─────────────────────────────────────────────────────────────────── */
.que-es-inner {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 64px; align-items: center;
}
.que-es-text p { font-size: 16px; color: var(--text-mid); line-height: 1.7; margin-bottom: 14px; }
.que-es-text p:last-child { margin-bottom: 0; }
.que-es-visual {
  background: var(--blue);
  border-radius: var(--radius-lg);
  padding: 36px;
  display: flex; flex-direction: column; gap: 18px;
}
.qev-item {
  display: flex; align-items: flex-start; gap: 14px;
}
.qev-icon {
  width: 36px; height: 36px; border-radius: 8px;
  background: rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; color: var(--gold-light);
}
.qev-text { font-size: 13px; color: rgba(255,255,255,.7); line-height: 1.5; }
.qev-text strong { color: var(--white); display: block; margin-bottom: 2px; }

/* ─── FUNCIONES ─────────────────────────────────────────────────────────────── */
.funciones-grid {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 20px; margin-top: 48px;
}
.funcion-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px 24px;
}
.funcion-icon {
  width: 44px; height: 44px;
  background: rgba(26,42,76,.06);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--blue); margin-bottom: 16px;
}
.funcion-card h3 { font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.funcion-card p { font-size: 14px; color: var(--text-muted); line-height: 1.6; }

/* ─── PASOS ──────────────────────────────────────────────────────────────────── */
.pasos-list {
  display: flex; gap: 0;
  margin-top: 48px; position: relative;
}
.pasos-list::before {
  content: '';
  position: absolute; top: 22px; left: 44px; right: 44px; height: 2px;
  background: var(--border);
}
.paso {
  flex: 1; text-align: center; position: relative;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.paso-num {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--blue); color: var(--white);
  font-size: 16px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  position: relative; z-index: 1;
  border: 3px solid var(--bg);
}
.paso-text { font-size: 14px; color: var(--text-mid); line-height: 1.5; max-width: 140px; }
.paso-text strong { display: block; font-weight: 700; color: var(--text); margin-bottom: 3px; }

/* ─── ORIGEN ─────────────────────────────────────────────────────────────────── */
.origen-inner {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 64px; align-items: center;
}
.origen-logo-box {
  display: flex; align-items: center; justify-content: center;
  background: var(--white); border-radius: var(--radius-lg);
  padding: 40px; border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.origen-logo { max-width: 260px; max-height: 260px; margin: 0 auto; }
.origen-text p {
  font-size: 16px; color: var(--text-mid); line-height: 1.7; margin-bottom: 16px;
}
.origen-quote {
  border-left: 3px solid var(--gold);
  padding-left: 20px; margin: 24px 0;
  font-size: 15px; color: var(--text-mid);
  font-style: italic; line-height: 1.7;
}
.origen-tagline {
  font-size: 16px; font-weight: 600; color: var(--blue);
  margin-top: 20px;
}

/* ─── PLANES ─────────────────────────────────────────────────────────────────── */
.planes-grid {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 24px; margin-top: 48px; align-items: start;
}
.plan-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 32px 28px;
  position: relative;
  transition: box-shadow .2s;
}
.plan-card:hover { box-shadow: var(--shadow-lg); }
.plan-card.destacado {
  border-color: var(--blue);
  box-shadow: var(--shadow-lg);
}
.plan-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--blue); color: var(--white);
  font-size: 11px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; padding: 4px 14px; border-radius: 20px;
  white-space: nowrap;
}
.plan-name {
  font-size: 20px; font-weight: 800; color: var(--blue);
  margin-bottom: 8px;
}
.plan-desc {
  font-size: 14px; color: var(--text-muted); line-height: 1.5;
  margin-bottom: 24px;
}
.plan-features { display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }
.plan-feature {
  display: flex; align-items: flex-start; gap: 9px;
  font-size: 14px; color: var(--text-mid);
}
.plan-feature svg { flex-shrink: 0; margin-top: 2px; color: var(--blue); }
.plan-feature.soon { color: var(--text-light); }
.plan-feature.soon svg { color: var(--text-light); }
.plan-soon-tag {
  font-size: 11px; background: var(--bg); color: var(--text-muted);
  padding: 1px 8px; border-radius: 10px; border: 1px solid var(--border);
  margin-left: 4px; white-space: nowrap;
}
.plan-cta { width: 100%; justify-content: center; }

/* ─── CTA FINAL ─────────────────────────────────────────────────────────────── */
.cta-final {
  background: var(--blue); padding: 80px 0; text-align: center;
}
.cta-final h2 {
  font-size: clamp(24px, 4vw, 36px); font-weight: 800;
  color: var(--white); margin-bottom: 14px;
}
.cta-final p { font-size: 17px; color: rgba(255,255,255,.7); margin-bottom: 36px; }
.cta-final-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ─── FOOTER ─────────────────────────────────────────────────────────────────── */
.pub-footer {
  background: #fafaf8;
  border-top: 3px solid var(--blue);
  padding: 44px 0 28px;
}
.footer-inner {
  display: grid; grid-template-columns: 1fr auto;
  gap: 40px; align-items: center;
  max-width: 1120px; margin: 0 auto; padding: 0 24px;
}
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-logo { height: 28px; width: auto; }
.footer-product { font-size: 14px; font-weight: 700; color: var(--blue); }
.footer-links { display: flex; gap: 24px; }
.footer-links a { font-size: 13px; color: var(--text-muted); transition: color .15s; }
.footer-links a:hover { color: var(--blue); }
.footer-bottom {
  max-width: 1120px; margin: 28px auto 0; padding: 18px 24px 0;
  border-top: 1px solid var(--border);
  font-size: 12px; color: var(--text-light);
  text-align: center;
}

/* ─── AUTH PAGES (LOGIN / REGISTRO / ONBOARDING) ─────────────────────────────── */
.auth-page {
  min-height: 100vh;
  display: flex; flex-direction: column;
}
.auth-nav {
  height: 54px;
  background: var(--white);
  display: flex; align-items: center; padding: 0 24px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.auth-nav-brand {
  display: flex; align-items: center;
}
.auth-nav-logo { height: 26px; width: auto; flex-shrink: 0; }
.auth-nav-divider {
  display: block; width: 1px; height: 18px;
  background: rgba(26,42,76,.15);
  margin: 0 12px; flex-shrink: 0;
}
.auth-nav-product {
  font-size: 13px; font-weight: 700;
  color: var(--blue); white-space: nowrap;
  letter-spacing: .01em;
}

.auth-body {
  flex: 1; display: flex; align-items: center; justify-content: center;
  padding: 40px 24px;
  background: var(--bg);
}
.auth-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 40px;
  width: 100%; max-width: 440px;
}
.auth-logo-box {
  text-align: center; margin-bottom: 28px;
}
.auth-logo-img {
  max-width: 180px; width: 100%; margin: 0 auto 12px;
}
.auth-product-title {
  font-size: 16px; font-weight: 700; color: var(--blue);
  letter-spacing: .01em;
}
.auth-divider {
  border: none; border-top: 1px solid var(--border);
  margin: 20px 0;
}
.auth-card h2 {
  font-size: 22px; font-weight: 800; color: var(--text);
  margin-bottom: 6px;
}
.auth-card .auth-subtitle {
  font-size: 14px; color: var(--text-muted);
  margin-bottom: 28px; line-height: 1.5;
}
.form-group { display: flex; flex-direction: column; gap: 5px; margin-bottom: 18px; }
.form-group label {
  font-size: 13px; font-weight: 600; color: var(--text-mid);
}
.form-group input {
  padding: 10px 14px;
  font-size: 15px; font-family: inherit;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  background: var(--white); color: var(--text);
  transition: border-color .15s, box-shadow .15s;
  outline: none;
}
.form-group input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(26,42,76,.08);
}
.form-group input.error { border-color: #dc2626; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-error {
  font-size: 13px; color: #dc2626;
  background: #fef2f2; border: 1px solid #fecaca;
  border-radius: 7px; padding: 10px 14px;
  margin-bottom: 18px; display: none;
}
.form-error.visible { display: block; }
.form-success {
  font-size: 13px; color: #166534;
  background: #f0fdf4; border: 1px solid #bbf7d0;
  border-radius: 7px; padding: 10px 14px;
  margin-bottom: 18px;
}
.form-optional { font-size: 12px; color: var(--text-light); font-weight: 400; margin-left: 4px; }
.btn-submit {
  width: 100%; justify-content: center;
  font-size: 15px; padding: 12px 20px; border-radius: 8px;
  margin-top: 4px;
}
.btn-submit:disabled { opacity: .6; cursor: not-allowed; }
.auth-footer-link {
  text-align: center; margin-top: 20px;
  font-size: 14px; color: var(--text-muted);
}
.auth-footer-link a { color: var(--blue); font-weight: 600; }
.auth-footer-link a:hover { text-decoration: underline; }

/* ─── ONBOARDING ────────────────────────────────────────────────────────────── */
.onboarding-card {
  max-width: 560px;
  text-align: center;
}
.onboarding-check {
  width: 64px; height: 64px; border-radius: 50%;
  background: rgba(26,42,76,.08);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px; color: var(--blue);
}
.onboarding-card h2 {
  font-size: 24px; font-weight: 800; color: var(--text);
  margin-bottom: 8px;
}
.onboarding-card .auth-subtitle { text-align: center; }
.onboarding-steps {
  display: flex; gap: 0; margin: 32px 0; position: relative;
  justify-content: space-between;
}
.onboarding-steps::before {
  content: '';
  position: absolute; top: 14px; left: 10%; right: 10%; height: 2px;
  background: var(--border);
}
.ob-step {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  flex: 1; position: relative; z-index: 1;
}
.ob-step-dot {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--border); color: var(--text-light);
  font-size: 12px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--bg);
}
.ob-step-label {
  font-size: 11px; color: var(--text-muted); text-align: center;
  max-width: 70px; line-height: 1.3;
}
.onboarding-status {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px; padding: 20px;
  margin-bottom: 24px;
  font-size: 14px; color: var(--text-mid); line-height: 1.6;
}
.onboarding-status strong { color: var(--blue); }
.btn-onboarding-disabled {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 15px; font-weight: 600;
  padding: 12px 28px; border-radius: 8px;
  background: var(--bg); color: var(--text-muted);
  border: 1.5px solid var(--border);
  cursor: default;
}

/* ─── PÁGINAS LEGALES ─────────────────────────────────────────────────────────── */
.legal-main { padding: 60px 0 80px; min-height: 60vh; }
.legal-header { text-align: center; margin-bottom: 48px; }
.legal-header h1 { font-size: clamp(24px, 4vw, 36px); color: var(--blue); margin: 12px 0 8px; }
.legal-date { color: var(--text-muted); font-size: 14px; margin: 0; }
.legal-body { max-width: 720px; margin: 0 auto; }
.legal-body h2 { font-size: 18px; color: var(--blue); margin: 32px 0 12px; font-weight: 700; }
.legal-body p, .legal-body li { color: var(--text-mid); font-size: 15px; line-height: 1.7; margin: 0 0 12px; }
.legal-body ul { padding-left: 20px; margin: 0 0 16px; }
.legal-body a { color: var(--blue); text-decoration: underline; }
.legal-notice {
  background: #fef9ec; border: 1px solid #f0d87a;
  border-radius: 8px; padding: 16px 20px;
  font-size: 14px; color: #7c5c0a; margin-bottom: 32px; line-height: 1.5;
}

/* ─── SCROLL-MARGIN PARA NAVBAR STICKY ───────────────────────────────────────── */
[id] { scroll-margin-top: calc(var(--nav-h) + 16px); }

/* ─── SECCIÓN CONTACTO ────────────────────────────────────────────────────────── */
.contact-section { background: var(--bg); }
.contact-subtitle {
  max-width: 600px; margin: 0 auto 40px;
  color: var(--text-mid); font-size: 17px; line-height: 1.6; text-align: center;
}
.contact-inner {
  display: grid; grid-template-columns: 1fr 1.6fr; gap: 48px; align-items: start;
}
.contact-info { display: flex; flex-direction: column; gap: 28px; }
.contact-info-item { display: flex; gap: 16px; align-items: flex-start; }
.contact-info-icon {
  font-size: 22px; line-height: 1; flex-shrink: 0; margin-top: 2px;
}
.contact-info-item strong { display: block; color: var(--blue); font-size: 15px; margin-bottom: 4px; }
.contact-info-item p { margin: 0; color: var(--text-mid); font-size: 14px; line-height: 1.5; }

.contact-form-card {
  background: var(--bg-card); border-radius: var(--radius-lg);
  border: 1px solid var(--border); padding: 36px;
  box-shadow: var(--shadow);
}
.contact-form-card .form-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px;
}
.contact-form-card .form-group { display: flex; flex-direction: column; gap: 6px; }
.contact-form-card .form-group:not(:last-child) { margin-bottom: 0; }
.contact-form-card label { font-size: 13px; font-weight: 600; color: var(--text); }
.contact-form-card label .optional { font-weight: 400; color: var(--text-muted); }
.contact-form-card input,
.contact-form-card select,
.contact-form-card textarea {
  width: 100%; padding: 10px 13px; border-radius: 8px;
  border: 1.5px solid var(--border); background: var(--white);
  font-size: 14px; color: var(--text); font-family: inherit;
  transition: border-color .15s, box-shadow .15s;
  box-sizing: border-box;
}
.contact-form-card input:focus,
.contact-form-card select:focus,
.contact-form-card textarea:focus {
  outline: none; border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(26,42,76,.08);
}
.contact-form-card textarea { resize: vertical; min-height: 80px; }
.contact-form-card select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236b7280' d='M1 1l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; }
.contact-form-card .form-group { margin-bottom: 16px; }

.contact-alert {
  padding: 12px 16px; border-radius: 8px; font-size: 14px;
  margin-bottom: 16px; line-height: 1.5;
}
.contact-alert-error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.contact-alert-success { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
.contact-submit { width: 100%; justify-content: center; margin-top: 4px; }
.contact-submit:disabled { opacity: .65; cursor: not-allowed; }

/* ─── RESPONSIVE ─────────────────────────────────────────────────────────────── */

/* Notebooks grandes y tablets horizontales: 1024–1279px */
@media (max-width: 1279px) {
  .nav-links { gap: 0; }
  .nav-links a { padding: 6px 9px; }
}

/* Tablets y pantallas medianas: 768–1023px */
@media (max-width: 1023px) {
  .nav-links a { font-size: 13px; padding: 6px 8px; }
  .hero-inner { gap: 40px; }
  .que-es-inner { gap: 40px; }
  .origen-inner { gap: 40px; }
  .funciones-grid { grid-template-columns: repeat(2,1fr); }
}

/* Mobile landscape y tablet portrait: hasta 900px */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-actions { display: none; }
  .nav-hamburger { display: flex; }

  /* Hero: apilado, mockup debajo del texto (orden HTML natural) */
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .hero { padding: 48px 0 56px; }

  .que-es-inner { grid-template-columns: 1fr; gap: 32px; }
  .origen-inner { grid-template-columns: 1fr; gap: 32px; }
  .funciones-grid { grid-template-columns: repeat(2,1fr); }
  .planes-grid {
    grid-template-columns: 1fr;
    max-width: 480px; margin-left: auto; margin-right: auto;
  }
  .pasos-list { flex-direction: column; gap: 20px; }
  .pasos-list::before { display: none; }
  .paso { flex-direction: row; text-align: left; gap: 16px; flex: none; width: 100%; }
  .paso-text { max-width: none; }

  .footer-inner { grid-template-columns: 1fr; gap: 16px; }
  .footer-brand { flex-wrap: wrap; gap: 10px; }
  .footer-links { flex-wrap: wrap; gap: 14px; }

  .origen-logo-box { padding: 28px; }
}

/* Contacto: 1 columna en tablet */
@media (max-width: 900px) {
  .contact-inner { grid-template-columns: 1fr; gap: 32px; }
  .contact-info { flex-direction: row; flex-wrap: wrap; gap: 20px; }
  .contact-info-item { flex: 1 1 200px; }
}

/* Smartphones: hasta 767px */
@media (max-width: 767px) {
  /* Previene zoom automático en Safari/iOS al enfocar inputs */
  .form-group input { font-size: 16px; }

  .auth-body { padding: 24px 16px; align-items: flex-start; }
  .auth-card { max-width: 100%; }

  /* Onboarding steps: vertical en mobile */
  .onboarding-steps {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    margin: 24px 0;
  }
  .onboarding-steps::before { display: none; }
  .ob-step {
    flex-direction: row;
    gap: 14px;
    flex: none;
    width: 100%;
    align-items: center;
  }
  .ob-step-dot { flex-shrink: 0; width: 32px; height: 32px; font-size: 13px; }
  .ob-step-label {
    max-width: none; text-align: left;
    font-size: 14px; font-weight: 500;
    color: var(--text-mid);
  }
  .onboarding-card { max-width: 100%; }
}

/* Smartphones medianos y chicos: hasta 580px */
@media (max-width: 580px) {
  .contact-form-card { padding: 24px 18px; }
  .contact-form-card .form-row { grid-template-columns: 1fr; }
  .contact-info { flex-direction: column; }
  .section { padding: 52px 0; }

  .funciones-grid { grid-template-columns: 1fr; }
  .problema-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }

  .auth-card { padding: 28px 20px; }

  /* Hero */
  .hero { padding: 40px 0 48px; }
  .hero-title { font-size: clamp(24px, 7vw, 36px); }
  .hero-desc { font-size: 16px; }
  .hero-subdesc { font-size: 14px; margin-bottom: 28px; }
  .hero-ctas {
    flex-direction: column; gap: 10px;
  }
  .hero-ctas .btn-lg {
    width: 100%; justify-content: center; text-align: center;
  }
  .hero-tagline { font-size: 13px; }

  /* Mockup: adaptar para pantallas chicas */
  .mockup-body { padding: 14px; }
  .mockup-stats { gap: 6px; }
  .mockup-stat { padding: 9px 6px; }
  .mockup-stat-val { font-size: 19px; }
  .mockup-stat-label { font-size: 9px; }
  .mockup-dates { gap: 6px; }
  .mockup-date { flex: 1 1 calc(33.33% - 5px); min-width: 52px; }

  /* Secciones */
  .que-es-visual { padding: 24px 20px; gap: 14px; }
  .qev-icon { width: 32px; height: 32px; }

  /* CTA final */
  .cta-final-actions {
    flex-direction: column; align-items: center;
  }
  .cta-final-actions .btn-lg {
    width: 100%; max-width: 320px; justify-content: center;
  }

  /* Footer */
  .footer-inner { gap: 16px; }
  .footer-links { gap: 14px; }
}

/* Teléfonos pequeños: hasta 430px */
@media (max-width: 430px) {
  .section { padding: 44px 0; }
  .container { padding: 0 20px; }
  .container-narrow { padding: 0 20px; }

  .hero { padding: 36px 0 44px; }
  .hero-inner { padding: 0 20px; }

  /* Navbar */
  .nav-inner { padding: 0 16px; }
  .nav-logo { height: 26px; }
  .nav-brand-product { font-size: 12px; }
  .nav-divider { margin: 0 10px; height: 18px; }
  .nav-mobile-menu { padding: 8px 16px 18px; }

  /* Auth nav */
  .auth-nav { padding: 0 16px; }
  .auth-nav-logo { height: 22px; }
  .auth-nav-product { font-size: 12px; }
  .auth-nav-divider { margin: 0 10px; }

  /* Auth card */
  .auth-card { padding: 24px 16px; }
  .auth-body { padding: 16px; }

  /* Origen */
  .origen-logo-box { padding: 24px 20px; }
  .origen-logo { max-width: 200px; }

  /* Mockup en pantallas muy chicas */
  .mockup-titlebar { padding: 8px 12px; }
  .mockup-body { padding: 10px; }
  .mockup-stat-val { font-size: 16px; }
  .mockup-date { flex: 1 1 calc(33.33% - 4px); min-width: 46px; padding: 6px 3px; }
  .mockup-date-day { font-size: 12px; }
  .mockup-date-month { font-size: 8px; }
  .mockup-date-tag { font-size: 7px; padding: 1px 3px; letter-spacing: 0; }
  .mockup-status-text { font-size: 11px; }

  /* Planes */
  .plan-card { padding: 28px 20px; }
}

/* Teléfonos muy pequeños: hasta 360px */
@media (max-width: 360px) {
  .container { padding: 0 16px; }
  .nav-inner { padding: 0 14px; }
  .auth-nav { padding: 0 14px; }
  /* Ocultar texto del producto en navbar si no hay espacio */
  .nav-brand-product { display: none; }
  .nav-divider { display: none; }
  .auth-nav-product { font-size: 11px; }
  .auth-nav-divider { margin: 0 8px; }
  .auth-card { padding: 20px 14px; }
}
