/* ═══════════════════════════════════════════════════════════
   Remitar — landing
   Sistema: navy + azul + blanco, tipografía del sistema.
   ═══════════════════════════════════════════════════════════ */

:root {
  --navy: #14213d;
  --navy-claro: #1f3159;
  --azul: #2b6cb0;
  --azul-hover: #245a94;
  --tinta: #1a202c;
  --gris: #5a6a7e;
  --borde: #dbe3ee;
  --fondo: #f6f8fb;
  --blanco: #ffffff;
  --verde-wa: #15803d;
  --verde-wa-hover: #166534;
  --radio: 12px;
  --sombra: 0 10px 30px rgba(20, 33, 61, 0.10);
  --ancho: 1080px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

section[id] { scroll-margin-top: 72px; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter,
    "Helvetica Neue", Arial, sans-serif;
  color: var(--tinta);
  background: var(--blanco);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

/* ─── Header ─── */

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(20, 33, 61, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header .contenedor {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--blanco);
  text-decoration: none;
  font-weight: 700;
  font-size: 21px;
  letter-spacing: 0.2px;
}

.logo svg { display: block; }

.header nav { display: flex; align-items: center; gap: 22px; }

.header nav a.enlace {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-size: 14.5px;
}
.header nav a.enlace:hover { color: var(--blanco); }

/* ─── Botones ─── */

.boton {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 22px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15.5px;
  text-decoration: none;
  transition: background 0.15s ease, transform 0.1s ease;
  white-space: nowrap;
}
.boton:active { transform: translateY(1px); }

.boton-primario { background: var(--azul); color: var(--blanco); }
.boton-primario:hover { background: var(--azul-hover); }

.boton-whatsapp { background: var(--verde-wa); color: var(--blanco); }
.boton-whatsapp:hover { background: var(--verde-wa-hover); }

.boton-secundario {
  background: transparent;
  color: var(--blanco);
  border: 1px solid rgba(255, 255, 255, 0.35);
}
.boton-secundario:hover { border-color: var(--blanco); }

.boton-chico { padding: 9px 16px; font-size: 14px; }

.boton svg { flex-shrink: 0; }

/* ─── Hero ─── */

.hero {
  background:
    radial-gradient(1000px 500px at 85% -10%, rgba(43, 108, 176, 0.35), transparent 60%),
    linear-gradient(160deg, var(--navy) 55%, var(--navy-claro));
  color: var(--blanco);
  padding: 84px 0 96px;
  overflow: hidden;
}

.hero .contenedor {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.hero h1 {
  font-size: 46px;
  line-height: 1.12;
  letter-spacing: -0.5px;
  margin-bottom: 18px;
}

.hero .subtitulo {
  font-size: 18.5px;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 30px;
  max-width: 46ch;
}

.hero .acciones { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }

.hero .micro {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.55);
}

/* Marco tipo navegador para las capturas de la plataforma */
.marco-navegador {
  background: #0e1830;
  border-radius: var(--radio);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.marco-navegador .barra {
  display: flex;
  gap: 6px;
  padding: 11px 14px;
  background: rgba(255, 255, 255, 0.06);
}
.marco-navegador .barra span {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
}

/* ─── Secciones ─── */

section { padding: 84px 0; }
.seccion-gris { background: var(--fondo); }

.encabezado-seccion { max-width: 640px; margin: 0 auto 52px; text-align: center; }
.encabezado-seccion h2 {
  font-size: 32px;
  letter-spacing: -0.3px;
  margin-bottom: 12px;
  color: var(--navy);
}
.encabezado-seccion p { color: var(--gris); font-size: 16.5px; }

/* Cómo funciona */
.pasos {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.paso {
  background: var(--blanco);
  border: 1px solid var(--borde);
  border-radius: var(--radio);
  padding: 26px 22px;
  box-shadow: 0 2px 8px rgba(20, 33, 61, 0.04);
}
.paso .numero {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--azul);
  color: var(--blanco);
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
  font-size: 15px;
}
.paso h3 { font-size: 17px; margin-bottom: 8px; color: var(--navy); }
@media (min-width: 901px) { .paso h3 { min-height: 44px; } }
.paso p { font-size: 14.5px; color: var(--gris); }

/* Funcionalidades */
.funcionalidades {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.funcion {
  border: 1px solid var(--borde);
  border-radius: var(--radio);
  padding: 24px 22px;
  background: var(--blanco);
}
.funcion .icono {
  width: 42px; height: 42px;
  border-radius: 10px;
  background: rgba(43, 108, 176, 0.10);
  color: var(--azul);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.funcion h3 { font-size: 16.5px; margin-bottom: 7px; color: var(--navy); }
.funcion p { font-size: 14.5px; color: var(--gris); }

/* Bloques con imagen al costado */
.bloque-dividido {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.bloque-dividido.invertido .texto { order: 2; }
.bloque-dividido.invertido .visual { order: 1; }

.bloque-dividido h2 {
  font-size: 30px;
  letter-spacing: -0.3px;
  color: var(--navy);
  margin-bottom: 14px;
}
.bloque-dividido p.parrafo { color: var(--gris); font-size: 16.5px; margin-bottom: 18px; }

.lista-checks { list-style: none; }
.lista-checks li {
  padding-left: 30px;
  position: relative;
  margin-bottom: 10px;
  font-size: 15.5px;
  color: var(--tinta);
}
.lista-checks li::before {
  content: "";
  position: absolute;
  left: 0; top: 4px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: rgba(43, 108, 176, 0.12) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="%232b6cb0" stroke-width="3.4" stroke-linecap="round" stroke-linejoin="round"><polyline points="20 6 9 17 4 12"/></svg>') center / 11px no-repeat;
}

/* Marco de teléfono */
.marco-telefono {
  width: min(300px, 80%);
  margin: 0 auto;
  border: 10px solid #0e1830;
  border-radius: 34px;
  box-shadow: var(--sombra);
  overflow: hidden;
  background: #0e1830;
}
.marco-telefono img { border-radius: 22px; }

/* Papel (comprobantes) */
.papel {
  background: var(--blanco);
  border: 1px solid var(--borde);
  border-radius: 8px;
  box-shadow: var(--sombra);
  overflow: hidden;
  width: min(430px, 100%);
  margin: 0 auto;
}

/* Bloque ARCA */
.arca { background: var(--navy); color: var(--blanco); }
.arca h2 { color: var(--blanco); }
.arca p.parrafo { color: rgba(255, 255, 255, 0.78); }
.arca .etiqueta {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #9cc3ec;
  background: rgba(43, 108, 176, 0.25);
  border-radius: 999px;
  padding: 5px 14px;
  margin-bottom: 16px;
}
.arca .lista-checks li { color: rgba(255, 255, 255, 0.88); }

/* Rubros */
.rubros {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  text-align: center;
}
.rubro {
  background: var(--blanco);
  border: 1px solid var(--borde);
  border-radius: var(--radio);
  padding: 28px 20px;
}
.rubro .icono {
  width: 46px; height: 46px;
  margin: 0 auto 12px;
  border-radius: 12px;
  background: rgba(43, 108, 176, 0.10);
  color: var(--azul);
  display: flex; align-items: center; justify-content: center;
}
.rubro h3 { font-size: 16.5px; color: var(--navy); margin-bottom: 6px; }
.rubro p { font-size: 14px; color: var(--gris); }

.prueba {
  text-align: center;
  color: var(--gris);
  font-size: 15px;
  font-style: italic;
  max-width: 56ch;
  margin: 44px auto 0;
}

/* CTA final */
.cta-final {
  background:
    radial-gradient(800px 400px at 15% 120%, rgba(43, 108, 176, 0.35), transparent 60%),
    linear-gradient(200deg, var(--navy) 55%, var(--navy-claro));
  color: var(--blanco);
  text-align: center;
}
.cta-final h2 { font-size: 34px; letter-spacing: -0.4px; margin-bottom: 14px; }
.cta-final p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 17px;
  max-width: 52ch;
  margin: 0 auto 30px;
}
.cta-final .acciones { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.cta-final .micro { font-size: 13.5px; color: rgba(255, 255, 255, 0.55); margin: 16px auto 0; }

/* Footer */
.footer {
  background: #0e1830;
  color: rgba(255, 255, 255, 0.55);
  padding: 34px 0;
  font-size: 14px;
}
.footer .contenedor {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer a { color: rgba(255, 255, 255, 0.75); text-decoration: none; }
.footer a:hover { color: var(--blanco); }
.footer .logo { font-size: 17px; }

/* ─── Responsive ─── */

@media (max-width: 900px) {
  .hero .contenedor { grid-template-columns: 1fr; gap: 40px; }
  .hero h1 { font-size: 34px; }
  .hero { padding: 56px 0 64px; }
  section { padding: 60px 0; }
  .pasos { grid-template-columns: repeat(2, 1fr); }
  .funcionalidades { grid-template-columns: repeat(2, 1fr); }
  .bloque-dividido { grid-template-columns: 1fr; gap: 34px; }
  .bloque-dividido.invertido .texto { order: 1; }
  .bloque-dividido.invertido .visual { order: 2; }
  .rubros { grid-template-columns: 1fr; }
  .encabezado-seccion h2 { font-size: 27px; }
  .header nav { gap: 14px; }
  .header nav a.enlace { font-size: 13px; }
}

@media (max-width: 560px) {
  .header nav a.enlace { display: none; }
  .pasos { grid-template-columns: 1fr; }
  .funcionalidades { grid-template-columns: 1fr; }
  .hero h1 { font-size: 30px; }
  .boton { width: 100%; justify-content: center; }
  .hero .acciones, .cta-final .acciones { flex-direction: column; }
}
