@font-face { font-family: Switzer; src: url("assets/fonts/Switzer-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: Switzer; src: url("assets/fonts/Switzer-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: Switzer; src: url("assets/fonts/Switzer-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: Switzer; src: url("assets/fonts/Switzer-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --noche: #14161B;
  --noche-2: #1F2229;
  --papel: #F6F5F1;
  --blanco: #FFFFFF;
  --tinta: #14161B;
  --gris: #565B64;
  --gris-claro: #AEB2BA;
  --linea: #E3E1D9;
  --linea-noche: #2E323B;
  --chat: #6E44FF;
  --chat-claro: #A58DFF;
  --factura: #0068D6;
  --factura-claro: #5AAEFF;
  --sire: #047857;
  --sire-claro: #34D399;
  --gutter: clamp(16px, 4.5vw, 64px);
  --ancho: 1320px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--papel);
  color: var(--tinta);
  font: 400 17px/1.55 Switzer, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--chat-claro); outline-offset: 3px; border-radius: 4px; }

.saltar {
  position: absolute; left: 16px; top: -60px; z-index: 20;
  padding: 10px 16px; background: var(--blanco); color: var(--tinta); border-radius: 8px;
}
.saltar:focus { top: 12px; }

/* Barra */
.barra {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 32px;
  padding: 14px var(--gutter);
  background: rgba(20, 22, 27, .92);
  backdrop-filter: blur(10px);
  color: var(--blanco);
  border-bottom: 1px solid var(--linea-noche);
}
.marca { font-size: 21px; font-weight: 700; letter-spacing: -.02em; text-decoration: none; white-space: nowrap; }
.marca span { font-weight: 400; color: var(--gris-claro); }
.barra nav { display: flex; gap: 28px; margin-left: auto; }
.barra nav a { font-size: 15px; font-weight: 500; color: #D6D8DD; text-decoration: none; }
.barra nav a:hover { color: var(--blanco); }

/* Botones */
.boton {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 22px;
  background: var(--blanco); color: var(--tinta);
  border-radius: 10px;
  font-weight: 600; font-size: 16px; text-decoration: none;
  transition: transform .15s ease, background-color .15s ease;
}
.boton:hover { transform: translateY(-1px); background: #ECEBE6; }
.boton-chico { min-height: 40px; padding: 8px 16px; font-size: 15px; white-space: nowrap; }
.boton-producto { color: var(--blanco); background: var(--acento); }
.boton-producto:hover { background: var(--acento-hover); }
.boton-claro { background: var(--blanco); color: var(--tinta); }
.enlace { font-weight: 500; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.enlace-claro { color: var(--blanco); overflow-wrap: anywhere; }
.acciones { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }

.sobre { font-size: 14px; font-weight: 600; letter-spacing: .02em; color: var(--gris); }

/* Portada */
.portada {
  background: var(--noche); color: var(--blanco);
  padding: clamp(48px, 7vw, 104px) var(--gutter) clamp(56px, 7vw, 112px);
  display: grid; gap: clamp(40px, 5vw, 80px);
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  align-items: center;
}
.portada .sobre { color: var(--gris-claro); margin-bottom: 20px; }
h1 {
  font-size: clamp(42px, 6.1vw, 92px);
  line-height: 1;
  font-weight: 700;
  letter-spacing: -.035em;
  text-wrap: balance;
}
.entrada { margin: 28px 0 36px; max-width: 34em; font-size: clamp(18px, 1.6vw, 21px); line-height: 1.5; color: #D6D8DD; }

/* Recorrido */
.recorrido { display: flex; flex-direction: column; gap: 28px; color: var(--tinta); }
.paso {
  position: relative;
  background: var(--blanco);
  border-radius: 14px;
  padding: 16px 18px;
  font-size: 15px;
  animation: entrar .6s cubic-bezier(.2, .7, .2, 1) both;
}
.paso-chat { width: 88%; --color-paso: var(--chat); }
.paso-factura { width: 88%; margin-left: 6%; --color-paso: var(--factura); animation-delay: .15s; }
.paso-sire { width: 88%; margin-left: 12%; --color-paso: var(--sire); animation-delay: .3s; }
.paso + .paso::before {
  content: ""; position: absolute; left: 28px; top: -28px;
  width: 2px; height: 28px;
  background: var(--linea-noche);
}
.paso header { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.paso header b { font-weight: 600; }
.paso header span { margin-left: auto; font-size: 13px; font-weight: 600; color: var(--color-paso); }
.paso footer {
  display: flex; align-items: center; gap: 8px;
  margin-top: 12px; padding-top: 10px;
  border-top: 1px solid var(--linea);
  font-size: 13px; color: var(--gris);
}
.punto { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--color-paso); }
.burbuja {
  width: fit-content; max-width: 85%;
  padding: 7px 12px; margin-bottom: 6px;
  background: var(--papel); border-radius: 12px 12px 12px 3px;
}
.burbuja-tuya { margin-left: auto; margin-bottom: 0; background: #EDE8FF; border-radius: 12px 12px 3px 12px; }
.paso dl div { display: flex; justify-content: space-between; gap: 16px; padding: 2px 0; }
.paso dt { color: var(--gris); }
.paso dd { font-variant-numeric: tabular-nums; font-weight: 500; }
.paso dl .total { margin-top: 4px; padding-top: 6px; border-top: 1px solid var(--linea); }
.paso dl .total dt, .paso dl .total dd { color: var(--tinta); font-weight: 700; }
.paso ol { display: flex; flex-wrap: wrap; gap: 6px; }
.paso li {
  padding: 3px 10px; border-radius: 999px;
  font-size: 13px; font-weight: 500;
  color: #065F46; background: #D1FAE5;
}
.paso li.falta { color: var(--gris); background: var(--papel); }
.nota-ejemplo { margin-top: -14px; text-align: right; font-size: 13px; color: var(--gris-claro); }

@keyframes entrar {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

/* Secciones */
.productos, .elegir { max-width: var(--ancho); margin: 0 auto; padding: clamp(64px, 8vw, 120px) var(--gutter) 0; }
.seccion-cabeza { margin-bottom: clamp(32px, 4vw, 56px); }
.seccion-cabeza .sobre { margin-bottom: 12px; }
h2 {
  font-size: clamp(32px, 4.2vw, 60px);
  line-height: 1.05; font-weight: 700; letter-spacing: -.03em;
  text-wrap: balance; max-width: 18em;
}

/* Productos */
.producto {
  position: relative; overflow: hidden;
  display: grid; gap: 28px clamp(32px, 5vw, 80px);
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  padding: clamp(28px, 4vw, 56px);
  margin-bottom: 20px;
  background: var(--blanco);
  border: 1px solid var(--linea);
  border-radius: 20px;
}
.producto-chat { --acento: var(--chat); --acento-hover: #5A33E6; }
.producto-factura { --acento: var(--factura); --acento-hover: #0056B3; }
.producto-sire { --acento: var(--sire); --acento-hover: #065F46; }
.producto .logo { height: 40px; width: auto; }
.para { margin-top: 18px; color: var(--gris); max-width: 16em; font-weight: 500; }
.producto-cuerpo { position: relative; z-index: 1; }
h3 { font-size: clamp(25px, 2.8vw, 40px); line-height: 1.1; font-weight: 700; letter-spacing: -.025em; text-wrap: balance; }
.producto-cuerpo > p { margin-top: 14px; max-width: 38em; color: var(--gris); font-size: 18px; }
.producto-cuerpo ul {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px;
  margin: 28px 0 32px;
}
.producto-cuerpo li { padding: 14px 0; border-top: 1px solid var(--linea); font-size: 16px; color: var(--gris); }
.producto-cuerpo li b { font-weight: 600; color: var(--tinta); }
.simbolo-fondo {
  position: absolute; left: -70px; bottom: -90px;
  width: 300px; height: 300px;
  opacity: .1; pointer-events: none;
}

/* Elegir */
.filas { border-bottom: 1px solid var(--linea); }
.fila {
  display: flex; align-items: baseline; justify-content: space-between; gap: 24px;
  padding: clamp(18px, 2.4vw, 30px) 8px;
  border-top: 1px solid var(--linea);
  text-decoration: none;
  transition: padding .2s ease;
}
.fila:hover { padding-left: 18px; }
.problema { font-size: clamp(19px, 2.2vw, 30px); line-height: 1.2; font-weight: 500; letter-spacing: -.015em; }
.respuesta { flex: none; font-size: clamp(16px, 1.6vw, 21px); font-weight: 700; color: var(--color-fila); }
.respuesta::after { content: " →"; }
.fila-chat { --color-fila: var(--chat); }
.fila-factura { --color-fila: var(--factura); }
.fila-sire { --color-fila: var(--sire); }

/* Contacto */
.contacto {
  margin-top: clamp(64px, 8vw, 120px);
  padding: clamp(64px, 8vw, 120px) var(--gutter);
  background: var(--noche); color: var(--blanco);
}
.contacto h2 { font-size: clamp(38px, 5.6vw, 84px); line-height: 1; }
.contacto p { margin: 20px 0 32px; max-width: 32em; font-size: clamp(18px, 1.6vw, 21px); color: #D6D8DD; }

/* Pie */
.pie {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 32px;
  padding: 24px var(--gutter);
  background: var(--noche); color: var(--gris-claro);
  border-top: 1px solid var(--linea-noche);
  font-size: 14px;
}
.pie b { color: var(--blanco); font-weight: 600; }

@media (max-width: 1020px) {
  .portada { grid-template-columns: minmax(0, 1fr); }
  .recorrido { max-width: 560px; }
  .producto { grid-template-columns: minmax(0, 1fr); }
  .para { max-width: none; }
  .simbolo-fondo { left: auto; right: -80px; bottom: auto; top: -70px; width: 240px; height: 240px; }
}

@media (max-width: 720px) {
  .barra { gap: 12px; justify-content: space-between; }
  .barra nav { display: none; }
  .paso-chat, .paso-factura, .paso-sire { width: 100%; margin-left: 0; }
  .producto-cuerpo ul { grid-template-columns: minmax(0, 1fr); }
  .producto .logo { height: 32px; }
  .simbolo-fondo { display: none; }
  .fila { flex-direction: column; gap: 6px; }
  .acciones .boton { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .paso { animation: none; }
  .boton, .fila { transition: none; }
}
