/* ============================================================
   Osphere · landing
   Los colores salen de la paleta del producto (themes.css del ERP):
   navy #0b1a3d / #12306a, acento #2f6bff, teal #0f766e, fondo #edf2fa.
   ============================================================ */

:root {
  --navy-900: #0b1a3d;
  --navy-800: #0e2350;
  --navy-700: #12306a;
  --navy-600: #1b3f86;
  --blue-500: #2f6bff;
  --blue-600: #2553b1;
  --teal-600: #0f766e;

  --ink: #0b1d3a;
  --ink-soft: #334a74;
  --ink-muted: #64748b;

  --bg-app: #edf2fa;
  --bg-surface: #ffffff;
  --bg-soft: #f7f9ff;

  --border: rgba(15, 23, 42, 0.1);
  --border-strong: rgba(15, 23, 42, 0.18);

  --shadow-sm: 0 1px 5px rgba(17, 24, 39, 0.08), 0 1px 2px rgba(17, 24, 39, 0.04);
  --shadow-md: 0 20px 50px -30px rgba(2, 18, 77, 0.45);
  --shadow-lg: 0 34px 68px -32px rgba(0, 0, 0, 0.28), 0 24px 45px -32px rgba(130, 199, 255, 0.35);

  --radius: 14px;
  --radius-lg: 20px;

  --gutter: 16px;
  --maxw: 1140px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  /* El encabezado es fijo: sin esto, el salto por ancla deja el título debajo de la barra. */
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg-surface);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { line-height: 1.18; margin: 0 0 0.5em; letter-spacing: -0.02em; }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.35rem); font-weight: 700; }
h3 { font-size: 1.08rem; font-weight: 650; }
p { margin: 0 0 1em; }
a { color: var(--blue-600); }

img { max-width: 100%; height: auto; }

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap-narrow { max-width: 780px; }

.skip-link {
  position: absolute;
  left: -9999px;
}
.skip-link:focus {
  left: var(--gutter);
  top: 10px;
  z-index: 100;
  background: #fff;
  padding: 10px 16px;
  border-radius: 10px;
  box-shadow: var(--shadow-md);
}

/* ---------------- Botones ---------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: linear-gradient(180deg, var(--blue-500) 0%, var(--blue-600) 100%);
  color: #fff;
  box-shadow: 0 14px 30px -14px rgba(47, 107, 255, 0.7);
}
.btn-primary:hover { background: linear-gradient(180deg, #4a7dff 0%, #2a5cc0 100%); }

.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.1); }

.btn-sm { padding: 9px 18px; font-size: 0.92rem; }
.btn-block { width: 100%; }

:where(a, button, input, select, textarea, summary):focus-visible {
  outline: 3px solid rgba(47, 107, 255, 0.45);
  outline-offset: 2px;
}

/* ---------------- Header ---------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 26, 61, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.brand img { filter: brightness(0) invert(1); }

.nav {
  display: flex;
  gap: 26px;
  margin-left: auto;
}
.nav a {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}
.nav a:hover { color: #fff; }

.header-cta { margin-left: auto; }
.nav + .header-cta { margin-left: 0; }

/* ---------------- Hero ---------------- */

.hero {
  background:
    radial-gradient(900px 520px at 78% -10%, rgba(15, 118, 110, 0.5), transparent 60%),
    linear-gradient(145deg, var(--navy-900) 0%, var(--navy-700) 62%, #103a62 100%);
  color: #fff;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
  padding-block: clamp(56px, 8vw, 96px);
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--blue-600);
  margin-bottom: 14px;
}
.eyebrow-light,
.hero .eyebrow { color: #82c7ff; }

.lead {
  font-size: clamp(1.02rem, 1.5vw, 1.18rem);
  color: rgba(255, 255, 255, 0.86);
  max-width: 52ch;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.hero-note {
  margin-top: 18px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
}

.flow-card {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-lg);
}
.flow-title {
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 18px;
  color: #fff;
}
.flow-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2px;
}
.flow-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.97rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}
.flow-list li:last-child { border-bottom: 0; }
.flow-dot {
  flex: none;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.18);
}
.flow-foot {
  margin: 16px 0 0;
  font-size: 0.86rem;
  color: #82c7ff;
  font-weight: 600;
}

.trust {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.16);
}
.trust-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 32px;
  justify-content: center;
  padding-block: 18px;
  font-size: 0.86rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
  text-align: center;
}

/* ---------------- Secciones ---------------- */

.section { padding-block: clamp(56px, 7vw, 92px); }
.section-alt { background: var(--bg-app); }

.section-head {
  max-width: 680px;
  margin-bottom: 44px;
}
.section-sub {
  color: var(--ink-soft);
  font-size: 1.03rem;
  margin: 0;
}

.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.card h3 {
  color: var(--navy-700);
  padding-bottom: 10px;
  border-bottom: 2px solid rgba(47, 107, 255, 0.18);
}
.card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.96rem;
}

.pitch {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 24px;
}
.pitch-num {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--teal-600);
  margin-bottom: 12px;
}
.pitch p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.96rem;
}

/* ---------------- Pasos ---------------- */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  counter-reset: paso;
}
.steps li {
  position: relative;
  padding: 26px 22px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--navy-700);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 14px;
}
.steps p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.94rem;
}

/* ---------------- FAQ ---------------- */

.faq { display: grid; gap: 12px; }
.faq details {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 4px 20px;
  box-shadow: var(--shadow-sm);
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 28px 16px 0;
  font-weight: 600;
  color: var(--navy-700);
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--blue-500);
  line-height: 1;
}
.faq details[open] summary::after { content: "–"; }
.faq details p {
  margin: 0 0 18px;
  color: var(--ink-soft);
  font-size: 0.96rem;
}

/* ---------------- Contacto ---------------- */

.contact {
  background: linear-gradient(145deg, var(--navy-900) 0%, var(--navy-700) 58%, var(--teal-600) 165%);
  color: #fff;
  padding-block: clamp(56px, 7vw, 92px);
}
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.contact-copy h2 { color: #fff; }
.contact-copy p { color: rgba(255, 255, 255, 0.84); }
.contact-points {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.contact-points li {
  position: relative;
  padding-left: 26px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.96rem;
}
.contact-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #22c55e;
}

.form-card {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-lg);
  color: var(--ink);
}
.field { margin-bottom: 16px; }
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.field label {
  display: block;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 6px;
}
.req { color: #b42318; }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 11px 13px;
  font: inherit;
  font-size: 0.97rem;
  color: var(--ink);
  background: var(--bg-soft);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(47, 107, 255, 0.16);
}
.field input[aria-invalid="true"],
.field select[aria-invalid="true"] { border-color: #b42318; }

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-legal {
  margin: 12px 0 0;
  font-size: 0.8rem;
  color: var(--ink-muted);
  text-align: center;
}
.form-status {
  margin: 14px 0 0;
  font-size: 0.93rem;
  font-weight: 600;
  text-align: center;
  min-height: 1.4em;
}
.form-status.ok { color: #166534; }
.form-status.error { color: #b42318; }

/* ---------------- Footer ---------------- */

.site-footer {
  background: var(--navy-900);
  color: rgba(255, 255, 255, 0.72);
  padding-block: 40px 24px;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: space-between;
  align-items: flex-start;
}
.footer-brand {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  max-width: 420px;
}
.footer-brand img { filter: brightness(0) invert(1); }
.footer-brand strong { color: #fff; font-size: 1.05rem; }
.footer-brand p {
  margin: 4px 0 0;
  font-size: 0.92rem;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
}
.footer-nav a {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  font-size: 0.93rem;
}
.footer-nav a:hover { color: #fff; }
.footer-legal {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.85rem;
}
.footer-legal p { margin: 0; }

/* ---------------- Responsive ---------------- */

@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .contact-inner { grid-template-columns: 1fr; gap: 32px; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .nav { display: none; }
  .header-cta { margin-left: auto; }
}

@media (max-width: 620px) {
  .grid-3,
  .steps,
  .field-row { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
  .form-card { padding: 22px 18px; }
  .trust-inner { gap: 8px 20px; font-size: 0.8rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
