/* =========================================================
   QUBO — sitio público (landing)
   ========================================================= */

:root {
  --blue: #2563eb;
  --blue-dark: #1e40af;
  --blue-light: #eff6ff;

  --ink: #0f172a;
  --text: #1e293b;
  --text-muted: #64748b;

  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --border: #e2e8f0;

  --rojo: #dc2626;
  --rojo-bg: #fee2e2;
  --amarillo: #d97706;
  --amarillo-bg: #fef3c7;
  --verde: #16a34a;
  --verde-bg: #dcfce7;

  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --shadow: 0 10px 30px -12px rgba(15, 23, 42, 0.18);
  --shadow-soft: 0 2px 10px rgba(15, 23, 42, 0.06);
  --container: 1160px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

h1, h2, h3, p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ---------- botones ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: var(--radius-sm);
  padding: 13px 22px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }

.btn--primary { background: var(--blue); color: #fff; box-shadow: 0 8px 20px -6px rgba(37, 99, 235, 0.45); }
.btn--primary:hover { background: var(--blue-dark); }

.btn--outline { background: transparent; color: var(--ink); border: 1.5px solid var(--border); }
.btn--outline:hover { border-color: var(--ink); }

.btn--light { background: #fff; color: var(--blue); }

.btn--block { width: 100%; }

/* ---------- nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 72px;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 800;
  font-size: 19px;
  color: var(--ink);
  flex-shrink: 0;
}

.nav__brand svg { width: 24px; height: 24px; color: var(--blue); }

.nav__links {
  display: none;
  align-items: center;
  gap: 30px;
}

.nav__links a {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text-muted);
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
}
.nav__links a:hover { color: var(--ink); }
.nav__links a.is-active { color: var(--blue); border-bottom-color: var(--blue); }

.nav__cta { display: none; }

.nav__toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border: none;
  background: transparent;
  color: var(--ink);
}
.nav__toggle svg { width: 24px; height: 24px; }

.nav__mobile {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 8px 24px 20px;
  border-top: 1px solid var(--border);
}
.nav__mobile.is-open { display: flex; }
.nav__mobile a {
  padding: 12px 4px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}
.nav__mobile a.is-active { color: var(--blue); }
.nav__mobile .btn { margin-top: 12px; }

@media (min-width: 900px) {
  .nav__links { display: flex; }
  .nav__cta { display: inline-flex; }
  .nav__toggle { display: none; }
}

/* ---------- hero (home) ---------- */

.hero {
  position: relative;
  padding: 90px 0 70px;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(180deg, rgba(10, 14, 26, 0.78), rgba(10, 14, 26, 0.88)), var(--bg-soft) center/cover;
  background-image: linear-gradient(180deg, rgba(10, 14, 26, 0.78), rgba(10, 14, 26, 0.88)), url("../assets/hero_back.jpg");
  
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: -1;
}

.hero__grid {
  display: grid;
  gap: 40px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(32px, 5vw, 44px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.hero h1 .accent { color: #8fb4ff; display: block; }

.hero p {
  margin-top: 16px;
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.82);
  max-width: 460px;
}

.hero__actions { margin-top: 26px; display: flex; gap: 12px; flex-wrap: wrap; }

/* tarjeta flotante del semáforo */

.semaforo-card {
  background: #fff;
  color: var(--ink);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow);
  max-width: 360px;
  width: 100%;
  justify-self: center;
}

.semaforo-card__title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 14.5px;
  margin-bottom: 16px;
}
.semaforo-card__title svg { width: 18px; height: 18px; color: var(--amarillo); }

.semaforo-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  font-size: 13.5px;
  font-weight: 600;
}
.semaforo-row:last-child { margin-bottom: 0; }
.semaforo-row__label { display: flex; align-items: center; gap: 8px; }
.semaforo-row__dot { width: 8px; height: 8px; border-radius: 50%; }
.semaforo-row__count { font-size: 16px; font-weight: 800; font-variant-numeric: tabular-nums; }

.semaforo-row--rojo { background: var(--rojo-bg); }
.semaforo-row--rojo .semaforo-row__dot { background: var(--rojo); }
.semaforo-row--rojo .semaforo-row__count { color: var(--rojo); }

.semaforo-row--amarillo { background: var(--amarillo-bg); }
.semaforo-row--amarillo .semaforo-row__dot { background: var(--amarillo); }
.semaforo-row--amarillo .semaforo-row__count { color: var(--amarillo); }

.semaforo-row--verde { background: var(--verde-bg); }
.semaforo-row--verde .semaforo-row__dot { background: var(--verde); }
.semaforo-row--verde .semaforo-row__count { color: var(--verde); }

@media (min-width: 860px) {
  .hero { padding: 130px 0 90px; }
  .hero__grid { grid-template-columns: 1.1fr 0.9fr; gap: 60px; }
  .hero p { font-size: 17px; }
  .semaforo-card { justify-self: end; }
}

/* ---------- stats bar ---------- */

.stats-bar {
  background: var(--ink);
  color: #fff;
  padding: 30px 0;
}
.stats-bar__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  text-align: center;
}
.stats-bar__item { padding: 0 16px; }
.stats-bar__item strong { display: block; font-size: 17px; font-weight: 700; }
.stats-bar__item span { display: block; margin-top: 4px; font-size: 13px; color: rgba(255, 255, 255, 0.6); }

@media (min-width: 700px) {
  .stats-bar__grid { grid-template-columns: repeat(3, 1fr); }
  .stats-bar__item { border-left: 1px solid rgba(255, 255, 255, 0.12); }
  .stats-bar__item:first-child { border-left: none; }
}

/* ---------- secciones genéricas ---------- */

.section { padding: 76px 0; }
.section--soft { background: var(--bg-soft); }

.section__head {
  max-width: 620px;
  margin: 0 auto 44px;
  text-align: center;
}
.section__head h2 {
  margin-top: 10px;
  font-size: clamp(26px, 3.4vw, 34px);
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.section__head p {
  margin-top: 12px;
  font-size: 15.5px;
  color: var(--text-muted);
  line-height: 1.6;
}
.section__head.align-left { text-align: left; margin-left: 0; }

/* tarjetas de feature */

.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 640px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .feature-grid { grid-template-columns: repeat(4, 1fr); } }

.feature-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-soft);
}
.feature-card__icon {
  width: 42px; height: 42px;
  border-radius: 12px;
  background: var(--blue-light);
  color: var(--blue);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.feature-card__icon svg { width: 21px; height: 21px; }
.feature-card h3 { font-size: 16px; font-weight: 700; color: var(--ink); line-height: 1.35; }
.feature-card p { margin-top: 8px; font-size: 13.5px; color: var(--text-muted); line-height: 1.55; }

/* flujo de trabajo */

.workflow {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  align-items: center;
}
.workflow__image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 5;
  background: var(--bg-soft);
}
.workflow__frame {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.7s ease;
}
.workflow__frame.is-active { opacity: 1; }

.workflow__steps { display: flex; flex-direction: column; gap: 22px; }
.step {
  display: flex;
  gap: 16px;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.35s ease;
}
.step.is-active { opacity: 1; }
.step__num {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--border);
  color: var(--text-muted);
  font-weight: 800;
  font-size: 14px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background 0.35s ease, color 0.35s ease;
}
.step.is-active .step__num { background: var(--blue); color: #fff; }
.step h3 { font-size: 16px; font-weight: 700; color: var(--ink); }
.step p { margin-top: 4px; font-size: 14px; color: var(--text-muted); line-height: 1.55; }

@media (prefers-reduced-motion: reduce) {
  .workflow__frame, .step, .step__num { transition: none; }
}

@media (min-width: 860px) {
  .workflow { grid-template-columns: 0.9fr 1.1fr; gap: 60px; }
}

/* cta final */

.cta-card {
  background: var(--blue-light);
  border-radius: var(--radius-lg);
  padding: 48px 32px;
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}
.cta-card h2 { font-size: clamp(22px, 3vw, 28px); font-weight: 800; color: var(--ink); }
.cta-card p { margin-top: 10px; font-size: 15px; color: var(--text-muted); line-height: 1.6; }
.cta-card .btn { margin-top: 22px; }

/* ---------- footer ---------- */

.footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.65);
  padding: 34px 0;
}
.footer__inner {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
  text-align: center;
}
.footer__brand { display: flex; align-items: center; gap: 8px; font-weight: 800; color: #fff; font-size: 15px; }
.footer__brand svg { width: 18px; height: 18px; }
.footer__links { display: flex; gap: 18px; flex-wrap: wrap; justify-content: center; }
.footer__links a { font-size: 13px; }
.footer__links a:hover { color: #fff; }
.footer small { font-size: 12.5px; }

@media (min-width: 760px) {
  .footer__inner { flex-direction: row; justify-content: space-between; text-align: left; }
}

/* ---------- páginas internas (precios / quiénes somos / contacto) ---------- */

.page-header {
  padding: 64px 0 20px;
  text-align: center;
}
.page-header h1 { font-size: clamp(28px, 4vw, 38px); font-weight: 800; color: var(--ink); letter-spacing: -0.01em; }
.page-header p { margin-top: 12px; font-size: 15.5px; color: var(--text-muted); max-width: 560px; margin-left: auto; margin-right: auto; line-height: 1.6; }

/* precios */

.plans {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  max-width: 800px;
  margin: 0 auto;
}
@media (min-width: 700px) { .plans { grid-template-columns: repeat(2, 1fr); } }

.plan-card {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
}
.plan-card--destacado { border-color: var(--blue); box-shadow: var(--shadow); position: relative; }
.plan-card__tag {
  position: absolute; top: -12px; left: 28px;
  background: var(--blue); color: #fff;
  font-size: 11.5px; font-weight: 700;
  padding: 4px 12px; border-radius: 999px;
}
.plan-card h3 { font-size: 20px; font-weight: 800; color: var(--ink); }
.plan-card__price { margin-top: 6px; font-size: 15px; font-weight: 700; color: var(--blue); }
.plan-card p.plan-card__desc { margin-top: 10px; font-size: 14px; color: var(--text-muted); line-height: 1.55; }
.plan-card ul { margin-top: 20px; display: flex; flex-direction: column; gap: 11px; flex: 1; }
.plan-card li { display: flex; align-items: flex-start; gap: 9px; font-size: 14px; color: var(--text); }
.plan-card li svg { width: 17px; height: 17px; color: var(--verde); flex-shrink: 0; margin-top: 2px; }
.plan-card .btn { margin-top: 24px; }

.faq { max-width: 700px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 20px;
  font-weight: 700;
  font-size: 14.5px;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 20px;
  font-weight: 400;
  color: var(--text-muted);
  transition: transform 0.15s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding: 0 20px 18px; font-size: 14px; color: var(--text-muted); line-height: 1.6; }

/* quiénes somos */

.story {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.story__block h2 { font-size: 21px; font-weight: 800; color: var(--ink); }
.story__block p { margin-top: 12px; font-size: 15px; line-height: 1.7; color: var(--text); }
.story__block p + p { margin-top: 12px; }

.problem-list {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}
@media (min-width: 640px) { .problem-list { grid-template-columns: 1fr 1fr; } }
.problem-item {
  background: var(--bg-soft);
  border-radius: var(--radius);
  padding: 20px;
  font-size: 14px;
  color: var(--text);
  line-height: 1.55;
}
.problem-item strong { display: block; color: var(--ink); font-size: 15px; margin-bottom: 4px; }

/* contacto */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  max-width: 980px;
  margin: 0 auto;
}
@media (min-width: 860px) { .contact-grid { grid-template-columns: 1.1fr 0.9fr; } }

.contact-form {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-soft);
}
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13.5px; font-weight: 700; color: var(--ink); margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  font-family: inherit;
  color: var(--text);
  background: #fff;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--blue);
  outline-offset: 1px;
  border-color: var(--blue);
}
.field-row { display: grid; grid-template-columns: 1fr; gap: 0; }
@media (min-width: 560px) { .field-row { grid-template-columns: 1fr 1fr; gap: 14px; } }

.form-msg {
  display: none;
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 600;
}
.form-msg.is-visible { display: block; }
.form-msg--ok { background: var(--verde-bg); color: var(--verde); }
.form-msg--error { background: var(--rojo-bg); color: var(--rojo); }

.contact-info { display: flex; flex-direction: column; gap: 22px; }
.contact-info__item {
  background: var(--bg-soft);
  border-radius: var(--radius);
  padding: 20px;
}
.contact-info__item h3 { font-size: 14.5px; font-weight: 700; color: var(--ink); }
.contact-info__item p { margin-top: 6px; font-size: 13.5px; color: var(--text-muted); line-height: 1.6; }
.contact-info__item a { color: var(--blue); font-weight: 600; }
