:root {
  --bg: #fafbfc;
  --surface: #ffffff;
  --ink: #12181c;
  --ink-dim: #5b6670;
  --teal: #1487a3;
  --teal-deep: #0d5f74;
  --teal-wash: #e5f2f5;
  --line: rgba(18, 24, 28, 0.09);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --max: 1240px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Outfit', sans-serif;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

.envoltorio { max-width: var(--max); margin: 0 auto; padding-inline: clamp(20px, 5vw, 48px); }

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

.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(250, 251, 252, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav .envoltorio {
  height: 108px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-marca {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--ink);
}

.nav-marca img { width: 84px; height: 84px; object-fit: contain; transition: transform 0.25s ease; }
.nav-marca:hover img { transform: scale(1.06); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--ink-dim);
  text-decoration: none;
  font-size: 15px;
  transition: color 0.2s ease;
}

.nav-links a:hover { color: var(--ink); }

.boton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.18s ease, background 0.18s ease;
}

.boton-primario {
  background: var(--teal);
  color: #ffffff;
  box-shadow: 0 10px 24px -10px rgba(20, 135, 163, 0.55);
}

.boton-primario:hover { background: var(--teal-deep); transform: translateY(-1px); }
.boton-primario:active { transform: scale(0.98); }

.nav-cta { display: none; }

@media (min-width: 860px) {
  .nav-cta { display: inline-flex; }
}

.nav-links { display: none; }

@media (min-width: 860px) {
  .nav-links { display: flex; }
}

.idiomas {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
}

.idioma-boton {
  border: none;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  font-size: 16px;
  line-height: 1;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0.5;
  filter: grayscale(60%);
  transition: opacity 0.18s ease, filter 0.18s ease, background 0.18s ease;
}

.idioma-boton:hover { opacity: 0.85; filter: grayscale(0%); }

.idioma-boton.activo {
  opacity: 1;
  filter: grayscale(0%);
  background: var(--teal-wash);
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding-top: clamp(48px, 8vw, 88px);
  padding-bottom: clamp(56px, 8vw, 96px);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

@media (min-width: 960px) {
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; gap: 24px; }
}

.hero-texto { max-width: 540px; }

.hero-texto h1 {
  font-size: clamp(2.4rem, 5.2vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
  font-weight: 600;
  margin: 0 0 20px;
}

.hero-texto h1 em {
  font-style: italic;
  color: var(--teal);
}

.hero-sub {
  font-size: 1.08rem;
  line-height: 1.6;
  color: var(--ink-dim);
  max-width: 46ch;
  margin: 0 0 30px;
}

.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

.boton-secundario {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

.boton-secundario:hover { border-color: var(--teal); color: var(--teal); }

.hero-visual {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--teal-wash);
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-ola {
  position: absolute;
  inset: auto 0 0 0;
  height: 55%;
  pointer-events: none;
  opacity: 0.16;
}

/* ---------- reveal ---------- */

.revela {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.revela.visible { opacity: 1; transform: translateY(0); }

/* ---------- sections ---------- */

section { padding-block: clamp(56px, 9vw, 108px); }

.seccion-cabecera { max-width: 620px; margin-bottom: 44px; }

.seccion-cabecera h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 14px;
}

.seccion-cabecera p {
  color: var(--ink-dim);
  font-size: 1.02rem;
  line-height: 1.6;
  margin: 0;
  max-width: 52ch;
}

/* flota bento */

.flota-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

@media (min-width: 860px) {
  .flota-grid {
    grid-template-columns: 1.3fr 1fr;
    grid-template-rows: repeat(2, 1fr);
  }
  .flota-destacada { grid-row: span 2; }
}

.flota-tarjeta {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  aspect-ratio: 4 / 3;
}

.flota-destacada { aspect-ratio: auto; min-height: 420px; }

.flota-tarjeta img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.flota-tarjeta:hover img { transform: scale(1.045); }

.flota-etiqueta {
  position: absolute;
  left: 18px;
  bottom: 18px;
  color: #ffffff;
  font-weight: 500;
  font-size: 1.05rem;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.45);
}

.flota-tarjeta::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(12, 16, 19, 0.55), transparent 55%);
}

/* contenido feature */

.feature {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  align-items: center;
  background: var(--teal);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 5vw, 56px);
  color: #ffffff;
}

@media (min-width: 900px) {
  .feature { grid-template-columns: 0.95fr 1.05fr; }
}

.feature h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.3rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 14px;
}

.feature p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.02rem;
  line-height: 1.6;
  max-width: 46ch;
  margin: 0 0 24px;
}

.feature .boton-primario {
  background: #ffffff;
  color: var(--teal-deep);
  box-shadow: none;
}

.feature .boton-primario:hover { background: #f0f7f9; }

.feature-visual {
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.feature-visual img { width: 100%; height: 100%; object-fit: cover; }

/* pasos */

.pasos {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--line);
}

@media (min-width: 760px) {
  .pasos { grid-template-columns: repeat(3, 1fr); }
}

.paso {
  padding: 28px 8px;
  border-bottom: 1px solid var(--line);
}

@media (min-width: 760px) {
  .paso {
    border-bottom: none;
    border-right: 1px solid var(--line);
    padding: 8px 28px;
  }
  .paso:last-child { border-right: none; }
  .paso:first-child { padding-left: 0; }
}

.paso-numero {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--teal);
  margin-bottom: 10px;
  display: block;
}

.paso h3 {
  font-size: 1.15rem;
  font-weight: 500;
  margin: 0 0 8px;
}

.paso p {
  color: var(--ink-dim);
  font-size: 0.98rem;
  line-height: 1.55;
  margin: 0;
}

/* cta final */

.cta-final {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.cta-final h2 {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 16px;
}

.cta-final p {
  color: var(--ink-dim);
  font-size: 1.05rem;
  margin: 0 0 28px;
}

.cta-final .hero-ctas { justify-content: center; }

/* footer */

footer {
  border-top: 1px solid var(--line);
  padding-block: 40px;
}

.footer-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

@media (min-width: 760px) {
  .footer-grid { flex-direction: row; justify-content: space-between; align-items: center; }
}

.footer-marca {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--ink);
}

.footer-marca img { width: 26px; height: 26px; object-fit: contain; }

.footer-links {
  display: flex;
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--ink-dim);
  text-decoration: none;
  font-size: 14px;
}

.footer-links a:hover { color: var(--teal); }

@media (prefers-reduced-motion: reduce) {
  .revela { opacity: 1; transform: none; transition: none; }
  .flota-tarjeta:hover img { transform: none; }
}
