/* ============================================================
   ASPHALT360 — Landing pública
   Usa la paleta oficial IMMAC (navy / green / blue) definida
   en style.css, más un acento ámbar propio de esta página
   (evoca el calor de la mezcla asfáltica en planta).
   ============================================================ */

:root {
  --amber: #ffb15e;
  --ink: #0c0f1a;
}

html { scroll-behavior: smooth; }

body.l-body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

.l-body * { box-sizing: border-box; }

/* ---------- Idioma: mostrar/ocultar bloques ---------- */
/* Español visible por defecto (SEO / no-JS). El botón ES/EN cambia html[lang]
   y estas reglas alternan la visibilidad. Los elementos con reglas propias de
   layout (eyebrow, kicker, stat label) envuelven el texto ES/EN en spans
   "neutros" para que 'revert' no choque con su display declarado. */
[data-en] { display: none; }
html[lang="en"] [data-es] { display: none; }
html[lang="en"] [data-en] { display: revert; }

/* ---------- Navbar ---------- */
.l-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem clamp(1.25rem, 4vw, 3.5rem);
  background: rgba(12, 15, 26, 0);
  transition: background .3s ease, box-shadow .3s ease, padding .3s ease;
}
.l-nav.scrolled {
  background: rgba(12, 15, 26, .92);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 rgba(255,255,255,.06);
  padding-top: .75rem; padding-bottom: .75rem;
}
.l-brand {
  display: flex; align-items: baseline; gap: .15rem;
  font-family: 'Montserrat', sans-serif; font-weight: 800;
  font-size: 1.3rem; color: #fff; text-decoration: none; letter-spacing: .01em;
}
.l-brand span { color: var(--green); }
.l-nav-links { display: flex; align-items: center; gap: 2rem; }
.l-nav-links a {
  color: rgba(255,255,255,.82); text-decoration: none; font-size: .92rem; font-weight: 500;
  transition: color .2s;
}
.l-nav-links a:hover { color: #fff; }
.l-nav-actions { display: flex; align-items: center; gap: .9rem; }
.l-lang-toggle {
  display: flex; border: 1.5px solid rgba(255,255,255,.25); border-radius: 20px; overflow: hidden;
  font-family: 'Montserrat', sans-serif; font-size: .74rem; font-weight: 700;
}
.l-lang-toggle button {
  background: transparent; border: none; color: rgba(255,255,255,.6);
  padding: .35rem .8rem; cursor: pointer; letter-spacing: .04em; transition: all .2s;
}
.l-lang-toggle button.active { background: var(--green); color: var(--navy); }
.l-btn-login {
  border: 1.5px solid var(--green); color: #fff; background: transparent;
  padding: .5rem 1.2rem; border-radius: 8px; font-weight: 600; font-size: .88rem;
  text-decoration: none; transition: all .2s;
}
.l-btn-login:hover { background: var(--green); color: var(--navy); }
.l-nav-toggle { display: none; background: none; border: none; color: #fff; font-size: 1.5rem; cursor: pointer; }

/* ---------- Hero ---------- */
.l-hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  overflow: hidden; background: var(--ink);
}
.l-hero-slide {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: 0; transform: scale(1.06); transition: opacity 1.6s ease, transform 6s ease;
}
.l-hero-slide.active { opacity: 1; transform: scale(1); }
.l-hero-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(12,15,26,.94) 0%, rgba(12,15,26,.82) 32%, rgba(12,15,26,.45) 62%, rgba(12,15,26,.25) 100%);
}
.l-hero-content {
  position: relative; z-index: 2; max-width: 620px;
  padding: 0 clamp(1.25rem, 4vw, 3.5rem); margin-top: 2rem;
}
.l-hero-eyebrow {
  display: inline-flex; align-items: center; gap: .5rem; color: var(--amber);
  font-size: .85rem; font-weight: 600; margin-bottom: 1.1rem;
}
.l-hero-eyebrow::before { content: ''; width: 26px; height: 2px; background: var(--amber); display: inline-block; }
.l-hero h1 {
  font-family: 'Montserrat', sans-serif; font-weight: 800; color: #fff;
  font-size: clamp(2.1rem, 4.2vw, 3.4rem); line-height: 1.1; margin: 0 0 1.2rem;
  letter-spacing: -.01em;
}
.l-hero p.l-lead {
  color: rgba(255,255,255,.82); font-size: 1.08rem; line-height: 1.65; margin: 0 0 2rem; max-width: 540px;
}
.l-hero-ctas { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 3rem; }
.l-btn-primary {
  background: var(--green); color: var(--navy); font-family: 'Montserrat', sans-serif; font-weight: 700;
  padding: .85rem 1.6rem; border-radius: 8px; text-decoration: none; font-size: .95rem;
  transition: transform .2s, box-shadow .2s;
}
.l-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(161,196,54,.3); color: var(--navy); }
.l-btn-ghost {
  border: 1.5px solid rgba(255,255,255,.35); color: #fff; padding: .85rem 1.6rem; border-radius: 8px;
  text-decoration: none; font-weight: 600; font-size: .95rem; transition: all .2s;
}
.l-btn-ghost:hover { background: rgba(255,255,255,.1); border-color: #fff; }

/* road-stripe divider marking the base of the hero */
.l-hero-road {
  position: absolute; left: 0; right: 0; bottom: 0; height: 5px; z-index: 3;
  background: repeating-linear-gradient(90deg, var(--amber) 0 40px, transparent 40px 80px);
  opacity: .8;
}

/* hero slide indicators */
.l-hero-dots {
  position: absolute; z-index: 3; right: clamp(1.25rem,4vw,3.5rem); bottom: 2.2rem;
  display: flex; flex-direction: column; gap: .6rem;
}
.l-hero-dots button {
  width: 8px; height: 26px; border-radius: 4px; border: none; cursor: pointer;
  background: rgba(255,255,255,.28); padding: 0; transition: background .3s;
}
.l-hero-dots button.active { background: var(--green); }

/* ---------- Stats strip ---------- */
.l-stats {
  background: var(--navy); padding: 2.6rem clamp(1.25rem, 4vw, 3.5rem);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.08); border-bottom: 1px solid rgba(255,255,255,.08);
}
.l-stat { text-align: left; border-left: 2px solid var(--green); padding-left: 1rem; }
.l-stat .num {
  font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: clamp(1.6rem,2.6vw,2.2rem);
  color: #fff; display: block; letter-spacing: -.02em;
}
.l-stat .lbl { color: rgba(255,255,255,.6); font-size: .82rem; margin-top: .2rem; display: block; }

/* ---------- Section shell ---------- */
.l-section { padding: 6rem clamp(1.25rem, 4vw, 3.5rem); max-width: 1280px; margin: 0 auto; }
.l-section-head { max-width: 640px; margin-bottom: 3.2rem; }
.l-kicker { color: var(--blue); font-weight: 700; font-size: .85rem; margin-bottom: .6rem; display: block; }
.l-section-head h2 {
  font-family: 'Montserrat', sans-serif; font-weight: 800; color: var(--navy);
  font-size: clamp(1.6rem, 2.6vw, 2.2rem); margin: 0 0 .8rem; letter-spacing: -.01em;
}
.l-section-head p { color: var(--text-muted); font-size: 1.02rem; line-height: 1.6; margin: 0; }

/* ---------- Benefits grid: panel de especificaciones, no tarjetas SaaS ---------- */
.l-benefits {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--border); border-left: 1px solid var(--border);
}
.l-benefit {
  border-right: 1px solid var(--border); border-bottom: 1px solid var(--border);
  padding: 2.2rem 2rem; background: var(--surface);
}
.l-benefit .ico {
  width: 42px; height: 42px; border-radius: 9px; background: var(--green-bg);
  color: var(--green-dark); display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem; margin-bottom: 1.2rem;
}
.l-benefit h3 {
  font-family: 'Lato', sans-serif; font-weight: 700; color: var(--navy);
  font-size: 1.06rem; margin: 0 0 .55rem;
}
.l-benefit p { color: var(--text-muted); font-size: .9rem; line-height: 1.6; margin: 0; }

/* ---------- Process (flujo real de la operación) ---------- */
.l-process { position: relative; }
.l-process-track {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.75rem; position: relative;
}
.l-process-track::before {
  content: ''; position: absolute; top: 21px; left: 6%; right: 6%; height: 2px;
  background: repeating-linear-gradient(90deg, var(--border) 0 10px, transparent 10px 20px);
}
.l-step { position: relative; }
.l-step .n {
  width: 44px; height: 44px; border-radius: 50%; background: var(--navy); color: var(--green);
  font-family: 'Montserrat', sans-serif; font-weight: 800; display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.2rem; position: relative; z-index: 1; font-size: 1rem;
}
.l-step h4 { font-family: 'Lato', sans-serif; font-weight: 700; color: var(--navy); font-size: 1rem; margin: 0 0 .4rem; }
.l-step p { color: var(--text-muted); font-size: .87rem; line-height: 1.55; margin: 0; }

/* ---------- CTA band ---------- */
.l-cta {
  background: var(--navy); color: #fff; padding: 4.5rem clamp(1.25rem, 4vw, 3.5rem);
  display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap;
  position: relative; overflow: hidden;
}
.l-cta::after {
  content: ''; position: absolute; right: -60px; top: -60px; width: 260px; height: 260px;
  border-radius: 50%; background: radial-gradient(circle, rgba(161,196,54,.18), transparent 70%);
}
.l-cta h2 {
  font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: clamp(1.4rem, 2.4vw, 2rem);
  margin: 0 0 .5rem; max-width: 480px;
}
.l-cta p { color: rgba(255,255,255,.72); margin: 0; max-width: 460px; font-size: .95rem; }

/* ---------- Footer ---------- */
.l-footer { background: var(--ink); color: rgba(255,255,255,.55); padding: 3.2rem clamp(1.25rem, 4vw, 3.5rem) 2rem; }
.l-footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2.5rem; max-width: 1280px; margin: 0 auto 2.2rem; }
.l-footer-brand { font-family: 'Montserrat', sans-serif; font-weight: 800; color: #fff; font-size: 1.15rem; margin-bottom: .8rem; }
.l-footer-brand span { color: var(--green); }
.l-footer p { font-size: .87rem; line-height: 1.6; max-width: 320px; }
.l-footer h5 { color: #fff; font-size: .84rem; font-weight: 700; margin: 0 0 1rem; }
.l-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .6rem; }
.l-footer a { color: rgba(255,255,255,.55); text-decoration: none; font-size: .87rem; transition: color .2s; }
.l-footer a:hover { color: var(--green); }
.l-footer-bottom {
  max-width: 1280px; margin: 0 auto; padding-top: 1.6rem; border-top: 1px solid rgba(255,255,255,.1);
  font-size: .8rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: .6rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
  .l-stats { grid-template-columns: repeat(2, 1fr); }
  .l-benefits { grid-template-columns: repeat(2, 1fr); }
  .l-process-track { grid-template-columns: repeat(2, 1fr); row-gap: 2.4rem; }
  .l-process-track::before { display: none; }
  .l-footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .l-nav-links { display: none; }
  .l-nav-toggle { display: block; }
  .l-benefits { grid-template-columns: 1fr; }
  .l-process-track { grid-template-columns: 1fr; }
  .l-stats { grid-template-columns: repeat(2, 1fr); padding: 2rem 1.25rem; }
  .l-footer-grid { grid-template-columns: 1fr; }
  .l-hero-dots { flex-direction: row; right: auto; left: clamp(1.25rem,4vw,3.5rem); bottom: 1.4rem; }
  .l-hero-dots button { width: 24px; height: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  .l-hero-slide { transition: opacity 1.2s ease; transform: none !important; }
  html { scroll-behavior: auto; }
}
