/* OLJ Solutions — landing
   Marca: Poppins, blanco y negro #1D1D1B. Sin grises de marca. Logo oficial sin modificar.
   Estructura: 1 base · 2 cabecera · 3 inicio (v1 / v2) · 4 clientes y sectores · 5 servicios
               6 plataformas · 7 más soluciones · 8 contacto · 9 pie · 11 móvil */

/* ---------- 1. Base ---------- */
:root {
  --ink: #1d1d1b;
  --text: #3a3a37;
  --rule: #e2e0db;
  --tint-way: #e8f3ff;    /* tinte de WaySalud */
  --tint-ste: #dff5f9;    /* tinte de SisteTrámites */
  --tint-aut: #e7f2f5;    /* tinte de AutoDocs */
  --tint-neutral: #f1f0ec;
  --font: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --header-h: 73px;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0; background: #fff; color: var(--ink);
  font: 400 17px/1.65 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p, ul, dl, dd { margin: 0; }
ul { padding: 0; list-style: none; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -.035em; line-height: 1.08; text-wrap: balance; }
h3 { font-size: 22px; letter-spacing: -.02em; line-height: 1.25; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: #fff; padding: 8px 14px; border-radius: 6px; }
.skip:focus { left: 8px; }

.wrap { max-width: 1320px; margin: 0 auto; padding-inline: clamp(28px, 6.5vw, 110px); }
@media (min-width: 1900px) { .wrap { max-width: 1680px; } }
section { padding-block: 96px; }
.lead { font-size: clamp(16px, 1.25vw, 18px); font-weight: 300; color: var(--text); max-width: 56ch; }
.tag { display: inline-block; font-size: 12.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.num { display: flex; align-items: center; gap: 16px; margin-bottom: 30px; font-size: 14px; font-weight: 600; letter-spacing: .14em; }
.num::after { content: ""; flex: none; width: 80px; height: 1.5px; background: var(--ink); transform-origin: left; animation: grow 1.2s ease both; }
@keyframes grow { from { transform: scaleX(0); } }

.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 14px 26px; border-radius: 8px;
  font: 500 15.5px var(--font); text-decoration: none; border: 1.5px solid var(--ink); cursor: pointer; transition: .25s;
}
.btn-d { background: var(--ink); color: #fff; }
.btn-d:hover { background: #fff; color: var(--ink); }
.lnk { display: inline-block; font-weight: 500; text-decoration: none; border-bottom: 1.5px solid var(--ink); padding-bottom: 2px; }
.arrow { display: inline-block; transition: transform .25s; }
a:hover > .arrow, button:hover > .arrow { transform: translateX(4px); }

/* aparición al hacer scroll (solo con JavaScript; sin él todo se ve) */
.js .rv { opacity: 0; transform: translateY(22px); transition: opacity .8s ease var(--d, 0s), transform .8s ease var(--d, 0s); }
.js .rv.on { opacity: 1; transform: none; }

/* ---------- 2. Cabecera ---------- */
.hdr { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--rule); }
.hdr .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.hdr img { height: 36px; width: auto; }
.hdr nav { display: flex; gap: 30px; font-size: 15px; font-weight: 500; }
.hdr nav a { text-decoration: none; }
.hdr nav a:hover { text-decoration: underline; text-underline-offset: 6px; }
.hdr .btn { padding: 10px 20px; }

/* ---------- 3. Inicio ---------- */
.hero {
  position: relative; overflow: hidden; padding-block: 60px;
  min-height: max(calc(100vh - var(--header-h)), 600px);
  display: flex; flex-direction: column; justify-content: center;
}
.hero .wrap, .hero .in { position: relative; z-index: 2; }
.hero h1 { font-size: clamp(40px, min(6.6vw, 11.5vh), 130px); letter-spacing: -.06em; line-height: .94; font-weight: 700; }
/* entrada por palabra: el recuadro deja margen para que no se recorten descendentes ni bordes */
.hero h1 .w { display: inline-block; overflow: hidden; vertical-align: top; padding: .06em .05em .26em; margin: -.06em -.05em -.26em; }
.hero h1 .w > span { display: inline-block; animation: rise 1s cubic-bezier(.2, .7, .2, 1) backwards; }
@keyframes rise { from { transform: translateY(170%); } }
.hero .row { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 32px; margin-top: 32px; }
.fadein { animation: fi 1s .9s ease backwards; }
@keyframes fi { from { opacity: 0; } }

/* cintas de líneas (canvas) */
.rib { position: absolute; z-index: 1; pointer-events: none; }
canvas { display: block; width: 100%; height: 100%; }
.rib canvas {
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 14%, #000 86%, transparent);
          mask-image: linear-gradient(to bottom, transparent, #000 14%, #000 86%, transparent);
}

/* v1 · clara: cinta a la derecha */
.v1 .hero .in { max-width: 62%; }
.v1 .rib-a { top: 50%; right: clamp(28px, 8vw, 160px); transform: translateY(-50%); width: clamp(240px, 26vw, 420px); height: min(560px, 64vh); }
.v1 .rib-b { display: none; }

/* v2 · oscura: cinta grande a la izquierda y curva en la esquina */
.v2 .hero { background: var(--ink); color: #fff; padding-block: 70px; }
.v2 .hero h1 { font-size: clamp(40px, min(6vw, 10.5vh), 128px); }
.v2 .hero .lead { color: #fff; opacity: .85; }
.v2 .hero .in { width: 62%; margin-left: auto; }
.v2 .hero .btn-d { background: #fff; color: var(--ink); border-color: #fff; }
.v2 .hero .btn-d:hover { background: transparent; color: #fff; }
.v2 .rib-a { left: 3%; top: 0; bottom: 0; width: calc((100vh - var(--header-h)) * .55); min-width: 300px; }
.v2 .rib-b { right: -2%; bottom: -30px; width: 30%; height: 60%; opacity: .55; }

/* ---------- 4. Clientes y sectores ---------- */
.mq { overflow: hidden; }
.mq ul { display: flex; width: max-content; align-items: center; }
.mq.run ul { animation: mq 430s linear infinite reverse; }   /* hacia la derecha */
@keyframes mq { to { transform: translateX(-50%); } }

.clients { padding: 36px 0; border-block: 1px solid var(--rule); overflow: hidden; }
.clients p { text-align: center; margin-bottom: 20px; font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.clients .mq {
  -webkit-mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
          mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.clients li { flex: none; margin-right: 90px; }
.clients img { height: 30px; width: auto; opacity: .8; filter: brightness(0); transition: opacity .3s; }   /* logos en negro, sin colores; los que ya vienen en negro o a color usan filter:none por clase (las copias de la cinta no llevan alt) */
.clients img:hover { opacity: 1; }
.clients .lg-huniti { height: 34px; }
.clients .lg-runt { height: 58px; }
.clients .lg-euro { height: 42px; filter: none; opacity: .85; }
.clients .lg-cooprudea { height: 48px; }
.clients .lg-practicar { height: 54px; filter: none; opacity: .85; }   /* octágono en negro (texto como huecos), igual que AXA */
.clients .lg-axa { height: 50px; filter: none; opacity: .85; }

.sect { padding: 64px 0 60px; border-bottom: 1px solid var(--rule); overflow: hidden; }
.sect .num { margin-bottom: 30px; }
.sect .mq.run ul { animation-duration: 190s; }
.sect li { flex: none; display: flex; flex-direction: column; padding-right: 88px; line-height: 1.2; }
.sect li span { font-size: clamp(22px, 2.5vw, 36px); font-weight: 700; letter-spacing: -.04em; white-space: nowrap; }
.sect li small { margin-top: 4px; font-size: 13px; font-weight: 500; letter-spacing: .02em; color: var(--text); white-space: nowrap; }

/* ---------- 5. Servicios ---------- */
.svc-head { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; margin-bottom: 44px; }
.svc-head h2 { font-size: clamp(26px, 2.9vw, 42px); letter-spacing: -.04em; }
.svc { border-top: 1.5px solid var(--ink); }
.row-s {
  position: relative; display: grid; grid-template-columns: 70px 1.1fr 1.3fr 40px; gap: 28px; align-items: center;
  padding: 28px 20px; border-bottom: 1px solid var(--rule); overflow: hidden; transition: color .3s ease, padding .3s ease;
}
.js .row-s.rv { transition: opacity .8s ease var(--d, 0s), transform .8s ease var(--d, 0s), color .3s ease, padding .3s ease; }
/* al pasar el cursor: fondo y texto cambian a la vez, sin desfases */
.row-s::before { content: ""; position: absolute; inset: 0; background: var(--ink); opacity: 0; transition: opacity .3s ease; z-index: 0; }
.row-s > * { position: relative; z-index: 1; min-width: 0; }
.row-s:hover { color: #fff; padding-left: 34px; }
.row-s:hover::before { opacity: 1; }
.row-s .n { font-size: 15px; font-weight: 600; letter-spacing: .12em; }
.row-s h3 { font-size: clamp(20px, 2vw, 28px); letter-spacing: -.04em; color: inherit; }
.row-s p { font-size: 15px; color: var(--text); transition: color .3s ease; }
.row-s:hover p { color: #fff; }
.row-s .chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.row-s .chips span { border: 1px solid currentColor; border-radius: 99px; padding: 3px 13px; font-size: 12.5px; font-weight: 500; }
.row-s .go { font-size: 26px; transition: transform .4s; }
.row-s:hover .go { transform: translateX(6px); }

/* ---------- 6. Plataformas ---------- */
.work { margin-top: 0; }
.item { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; padding: 56px 0; border-bottom: 1px solid var(--rule); }
.item:nth-child(even) { grid-template-columns: 1.1fr .9fr; }
.item:nth-child(even) .txt { order: 2; }
.item > * { min-width: 0; }
.item h3 { font-size: clamp(26px, 2.8vw, 38px); margin: 18px 0 14px; }
.item .lead { font-size: 17px; }
.item .cta { margin-top: 26px; }
.logo img { height: 34px; width: auto; }
.logo img.autodocs { height: 44px; }
.item .logo img[alt="SisteTrámites"] { height: 40px; }
.pname { display: block; font-size: 24px; font-weight: 700; letter-spacing: -.02em; }

.vis-box { border-radius: 20px; padding: 36px; background: var(--tint-neutral); transition: transform .6s; }
.item:hover .vis-box { transform: scale(1.015); }
.vis-wb { background: var(--tint-way); }
.vis-st { background: var(--tint-ste); }
.vis-ad { background: var(--tint-aut); }

.checks { display: grid; gap: 9px; margin-top: 20px; }
.checks li { position: relative; padding-left: 28px; font-size: 15.5px; }
.checks li::before { content: ""; position: absolute; left: 0; top: 7px; width: 15px; height: 8px; border-left: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(-45deg) scale(.8); }
.stat { margin-top: 20px; }
.stat b { display: block; font-size: 56px; font-weight: 700; letter-spacing: -.04em; line-height: 1; }
.stat span { font-size: 14px; color: var(--text); }

/* captura del sitio que se desplaza sola dentro de una ventana de navegador */
.frame { border: 1px solid var(--rule); border-radius: 12px; background: #fff; overflow: hidden; box-shadow: 0 24px 60px -20px rgba(29,29,27,.28); }
.frame .bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--rule); font-size: 12px; }
.frame .bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--ink); opacity: .18; }
.frame .bar span { margin-left: 10px; color: var(--text); }
.frame .scr { aspect-ratio: 16 / 10; overflow: hidden; }
.frame .scr img { width: 100%; height: 100%; object-fit: cover; object-position: top; animation: pan 34s ease-in-out infinite alternate; }
@keyframes pan { from { object-position: 50% 0; } to { object-position: 50% 100%; } }

/* AutoDocs: paquete de documentos */
.docs { display: grid; gap: 10px; }
.doc { display: flex; justify-content: space-between; padding: 12px 16px; background: #fff; border: 1px solid var(--rule); border-radius: 8px; font-size: 14px; font-weight: 500; animation: slide 9s ease-in-out infinite; }
.doc::after { content: "✓"; font-weight: 700; }
.doc:nth-child(2) { animation-delay: .4s; } .doc:nth-child(3) { animation-delay: .8s; } .doc:nth-child(4) { animation-delay: 1.2s; }
@keyframes slide { 50% { transform: translateX(8px); } }
.signed { padding: 12px 16px; background: var(--ink); color: #fff; border-radius: 8px; font-size: 14px; font-weight: 500; }

/* SOAT Core: plataforma → SOAT Core → cliente */
.pipe { display: grid; grid-template-columns: 1fr 28px 1fr 28px 1fr; align-items: center; gap: 6px; text-align: center; }
.pipe > div { padding: 16px 8px; background: #fff; border: 1px solid var(--rule); border-radius: 10px; font-size: 14.5px; font-weight: 600; }
.pipe small { display: block; font-size: 12px; font-weight: 400; color: var(--text); }
.pipe > div.hl { background: var(--ink); color: #fff; border-color: var(--ink); }
.pipe > div.hl small { color: #fff; opacity: .8; }
.pipe > b { height: 2px; background: repeating-linear-gradient(90deg, var(--ink) 0 6px, transparent 6px 10px); background-size: 20px 2px; animation: dash 1.8s linear infinite; }
@keyframes dash { to { background-position: 20px 0; } }

/* ---------- 7. Más soluciones ---------- */
.more-sec { padding-top: 0; }
.more { display: grid; grid-template-columns: repeat(3, 1fr); }
.more > a { display: grid; gap: 8px; padding: 34px 30px 34px 0; border-bottom: 1px solid var(--rule); text-decoration: none; transition: padding .3s; }
.more > a:hover { padding-left: 14px; }
.more img { height: 34px; width: auto; justify-self: start; }
.more .tag { opacity: .7; }
.more h3 { font-size: 24px; }
.more p { font-size: 15.5px; color: var(--text); }

/* ---------- 8. Contacto ---------- */
.contact { position: relative; overflow: hidden; background: var(--ink); color: #fff; }
.contact canvas.bg { position: absolute; inset: 0; z-index: 1; opacity: .5; pointer-events: none; }
.contact .wrap { position: relative; z-index: 2; }
.contact .grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: start; }
.contact .grid > * { min-width: 0; }
.contact h2 { margin-top: 14px; font-size: clamp(34px, 5vw, 68px); }
.facts { display: grid; gap: 14px; margin-top: 28px; }
.facts dt { font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; opacity: .7; }
.facts dd a { text-decoration: none; }
.facts dd a:hover { text-decoration: underline; }

form { display: grid; gap: 14px; padding: 30px; background: #fff; color: var(--ink); border-radius: 14px; }
form label { display: grid; gap: 6px; font-size: 13.5px; font-weight: 500; }
form input, form select, form textarea {
  width: 100%; min-width: 0; padding: 12px 14px; font: inherit; font-size: 15.5px;
  color: var(--ink); background: #fff; border: 1.5px solid var(--rule); border-radius: 8px;
}
form input:focus, form select:focus, form textarea:focus { border-color: var(--ink); outline: none; }
form textarea { min-height: 100px; resize: vertical; }
form input:user-invalid, form textarea:user-invalid { border-color: #b3261e; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hp { position: absolute; left: -9999px; }
.form-msg { padding: 12px 16px; border-radius: 8px; font-size: 14px; }
.form-msg.ok { background: var(--ink); color: #fff; }
.form-msg.err { background: #fbeae8; color: #7a1a14; }
.form-msg[hidden] { display: none; }
form button[disabled] { opacity: .6; cursor: progress; }

/* ---------- 9. Pie ---------- */
footer { padding: 36px 0; border-top: 1px solid var(--rule); }
footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; font-size: 14px; }
footer img { height: 30px; width: auto; }

/* ---------- 11. Tableta y móvil ---------- */
@media (max-width: 900px) {
  section { padding-block: 64px; }
  .hdr nav { display: none; }

  .v1 .hero { min-height: max(calc(100svh - var(--header-h)), 560px); }
  .v1 .hero .in { max-width: none; }
  .v1 .rib-a { top: 0; bottom: 0; left: 0; right: 0; width: auto; height: auto; transform: none; opacity: .5; }   /* la cinta pasa a ser fondo */
  .v2 .hero .in { width: 100%; }
  .v2 .rib-a { width: 300px; opacity: .35; }
  .v2 .rib-b { display: none; }

  .num { font-size: 12px; gap: 12px; }
  .num::after { width: 36px; }
  .svc-head, .item, .item:nth-child(even), .more, .contact .grid { grid-template-columns: minmax(0, 1fr); }
  .contact .grid { gap: 36px; }
  .svc-head { gap: 20px; }
  .item:nth-child(even) .txt { order: 0; }
  .item { padding: 40px 0; gap: 28px; }
  .row-s { grid-template-columns: 44px 1fr; padding: 26px 8px; row-gap: 6px; }
  .row-s > div { grid-column: 2; }
  .row-s .go { display: none; }
  .sect li { padding-right: 48px; }
  .vis-box { padding: 18px; }
  .pipe { grid-template-columns: 1fr 12px 1.1fr 12px 1fr; gap: 4px; }
  .pipe > div { padding: 12px 4px; font-size: 12.5px; }
  .pipe small { font-size: 10.5px; }
  .logo img.autodocs { height: 38px; }
  .item .logo img[alt="SisteTrámites"] { height: 34px; }
  .row2 { grid-template-columns: 1fr; }
  form { padding: 22px; }
}
