/* Tipografía base y variables */
:root {
  --color-primary: #3c5df5;
  --color-primary-dark: #273bc7;
  --color-secondary: #1f2937;
  --color-accent: #0f172a;
  --color-light: #f8fafc;
  --color-muted: #6b7280;
  --font-sans: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --max-width: 1080px;
  --shadow-soft: 0 12px 32px rgba(28, 41, 95, 0.15);
  --nav-height: 96px;
  --shadow-nav: 0 18px 36px rgba(8, 24, 96, 0.12);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--color-secondary);
  background-color: #ffffff;
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Navegación */
.site-header {
  position: relative;
  background: radial-gradient(circle at top right, rgba(60, 93, 245, 0.08), transparent 55%);
  padding-top: var(--nav-height);
}

.nav-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: var(--color-accent);
  display: flex;
  justify-content: center;
  box-shadow: var(--shadow-nav);
}

.nav {
  max-width: var(--max-width);
  width: 100%;
  margin: 0;
  padding: 0 clamp(1rem, 4vw, 2rem);
  min-height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(1rem, 3vw, 2rem);
  color: #ffffff;
  position: relative;
}

.nav__brand {
  display: inline-flex;
  align-items: center;
  width: 160px;
  height: 100%;
  flex-shrink: 0;
}

.nav__brand img {
  max-height: calc(var(--nav-height) - 24px);
  width: auto;
}

.nav__links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  align-items: center;
}

.nav__links a {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.86);
  transition: color 0.2s ease, opacity 0.2s ease;
}

.nav__links a:hover,
.nav__links a:focus {
  color: #ffffff;
  opacity: 1;
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 0.4rem;
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  color: inherit;
}

.nav__toggle-line {
  width: 22px;
  height: 2px;
  background-color: currentColor;
  transition: transform 0.25s ease;
}

.hero,
section[id],
footer[id] {
  scroll-margin-top: calc(var(--nav-height) + 24px);
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: 3rem;
  padding: 4rem 1.5rem 6rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.hero__content h1 {
  font-size: clamp(2.2rem, 3.4vw, 3.4rem);
  margin: 0.5rem 0 1rem;
  line-height: 1.15;
}

.hero__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  color: var(--color-primary);
  margin: 0;
}

.hero__lead {
  margin-bottom: 2rem;
  color: var(--color-muted);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero__visual {
  position: relative;
}

.hero__visual::after {
  content: "";
  position: absolute;
  inset: 12% -12% -12% 12%;
  background: linear-gradient(135deg, rgba(60, 93, 245, 0.1), rgba(15, 23, 42, 0.05));
  filter: blur(40px);
  z-index: -1;
}

/* Botones */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.9rem 1.8rem;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.button--primary {
  background-color: var(--color-primary);
  color: #ffffff;
  box-shadow: var(--shadow-soft);
}

.button--primary:hover,
.button--primary:focus {
  background-color: var(--color-primary-dark);
  transform: translateY(-1px);
}

.button--secondary {
  background-color: transparent;
  border-color: rgba(60, 93, 245, 0.4);
  color: var(--color-primary);
}

.button--secondary:hover,
.button--secondary:focus {
  background-color: rgba(60, 93, 245, 0.12);
}

/* Secciones genéricas */
.section {
  padding: 5rem 1.5rem;
}

.section--split {
  background-color: var(--color-light);
}

.section--dark {
  background-color: #0b1120;
  color: #f1f5f9;
}

.section--accent {
  background: linear-gradient(120deg, rgba(60, 93, 245, 0.95), rgba(15, 23, 42, 0.95));
  color: #ffffff;
}

.section__content {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  gap: 2rem;
}

.section--split .section__content {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
}

.section__content--center {
  text-align: center;
}

.section__lead {
  max-width: 680px;
  margin: 0 auto;
  color: inherit;
  opacity: 0.8;
}

.section__image {
  justify-self: center;
  max-width: 420px;
}

.list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.75rem;
}

.list li {
  position: relative;
  padding-left: 1.5rem;
  color: var(--color-muted);
}

.section--split .list li {
  color: var(--color-secondary);
}

.list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-size: 1.4rem;
  line-height: 1;
}

/* Grid servicios */
.grid {
  display: grid;
  gap: 1.5rem;
}

.grid--services {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-top: 2.5rem;
}

.card {
  background: rgba(15, 23, 42, 0.75);
  padding: 1.75rem;
  border-radius: 20px;
  box-shadow: 0 8px 24px rgba(9, 14, 34, 0.4);
  border: 1px solid rgba(241, 245, 249, 0.05);
  text-align: left;
}

.card h3 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  color: #ffffff;
}

.card p {
  color: rgba(241, 245, 249, 0.85);
  margin: 0;
}

/* Timeline */
.timeline {
  display: grid;
  gap: 1.5rem;
  margin-top: 3rem;
}

.timeline__step {
  background-color: #ffffff;
  border-radius: 18px;
  padding: 1.75rem;
  box-shadow: var(--shadow-soft);
  position: relative;
  text-align: left;
}

.timeline__badge {
  position: absolute;
  top: -18px;
  left: 1.75rem;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background-color: var(--color-primary);
  color: #ffffff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 18px rgba(60, 93, 245, 0.28);
}

.timeline__step h3 {
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
}

.timeline__step p {
  margin: 0;
  color: var(--color-muted);
}

/* Formulario */
.form {
  display: grid;
  gap: 1.25rem;
  max-width: 520px;
}

.form__group {
  display: grid;
  gap: 0.5rem;
}

.form label {
  font-weight: 600;
}

.form input,
.form textarea {
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  background: rgba(15, 23, 42, 0.35);
  color: #ffffff;
  font: inherit;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.form input::placeholder,
.form textarea::placeholder {
  color: rgba(240, 249, 255, 0.6);
}

.form input:focus,
.form textarea:focus {
  outline: none;
  border-color: #ffffff;
  background: rgba(15, 23, 42, 0.55);
}

.form__disclaimer {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}

/* Footer */
.site-footer {
  padding: 2.5rem 1.5rem;
  background-color: #020617;
  color: rgba(203, 213, 225, 0.9);
  display: grid;
  justify-items: center;
  gap: 1rem;
  text-align: center;
}

.site-footer__brand {
  width: 160px;
}

/* Responsividad */
@media (max-width: 960px) {
  .nav {
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
  }

  .nav__toggle {
    display: flex;
  }

  .nav__links {
    position: absolute;
    top: calc(100% + 0.75rem);
    left: clamp(1rem, 4vw, 2rem);
    right: clamp(1rem, 4vw, 2rem);
    flex-direction: column;
    gap: 1rem;
    background-color: rgba(39, 59, 199, 0.96);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 1.25rem;
    box-shadow: var(--shadow-soft);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    backdrop-filter: blur(12px);
  }

  .nav__links a {
    width: 100%;
    color: #ffffff;
    text-align: center;
  }

  .nav__links.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .hero {
    grid-template-columns: 1fr;
    padding-bottom: 4rem;
  }

  .section--split .section__content {
    grid-template-columns: 1fr;
  }

  .section__image {
    max-width: 320px;
  }

  .timeline {
    gap: 1rem;
  }
}

@media (max-width: 600px) {
  :root {
    --nav-height: 80px;
  }

  body {
    font-size: 15px;
  }

  .nav__brand {
    width: 140px;
  }

  .hero {
    gap: 2.5rem;
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .section {
    padding: 4rem 1.25rem;
  }

  .timeline__step {
    padding: 1.5rem;
  }

  .timeline__badge {
    left: 1.5rem;
  }
}
