@font-face { font-family: "Hanken Grotesk"; src: url("/static/fonts/hanken-grotesk-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("/static/fonts/hanken-grotesk-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("/static/fonts/hanken-grotesk-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("/static/fonts/hanken-grotesk-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Sora"; src: url("/static/fonts/sora-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Sora"; src: url("/static/fonts/sora-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }

/* Página pública de Labtitud: brand book (vidrio, grafito, petróleo, punto reactivo, tira reactiva solo en datos) */
:root {
  --vidrio: #F4F6F5; --blanco: #FFFFFF; --grafito: #121816; --suave: #4E5A56; --tenue: #5F6B67; --linea: #DDE3E0;
  --petroleo: #0E5F57; --petroleo-hover: #0A4A44; --tinte: #E1EFEC; --reactivo: #F2B43C;
  --ambar: #B47C08; --magenta: #C23C74; --menta: #23896F; --lila: #6A5AD8;
  --display: "Sora", "Hanken Grotesk", -apple-system, Arial, sans-serif;
  --texto: "Hanken Grotesk", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --ancho: 1120px; --r: 18px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--blanco); color: var(--grafito); font: 400 17px/1.6 var(--texto); -webkit-font-smoothing: antialiased; }
a { color: var(--petroleo); }
h1, h2, h3 { font-family: var(--display); letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(28px, 4vw, 40px); line-height: 1.12; font-weight: 700; margin-bottom: 14px; }
h3 { font-size: 19px; font-weight: 600; line-height: 1.25; margin-bottom: 8px; }
p { margin: 0; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--petroleo); margin-bottom: 12px; }
.lead { font-size: 19px; color: var(--suave); max-width: 680px; }
.nota { font-size: 14px; color: var(--tenue); margin-top: 14px; }

/* Botones cápsula */
.btn { position: relative; overflow: hidden; isolation: isolate; display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--petroleo); color: #fff; font: 600 16px/1 var(--texto); text-decoration: none; box-shadow: 0 8px 22px rgba(14,95,87,.22); transition: transform .25s cubic-bezier(.34,1.56,.64,1), background .2s ease, box-shadow .25s ease; }
.btn:hover { background: var(--petroleo-hover); transform: translateY(-2px); box-shadow: 0 14px 30px rgba(14,95,87,.3); }
.btn:active { transform: scale(.98); }
.btn.sec { background: var(--blanco); color: var(--grafito); border: 1px solid var(--linea); box-shadow: none; }
.btn.sec:hover { background: var(--vidrio); }
.btn.chico { min-height: 44px; padding: 0 18px; font-size: 14px; box-shadow: none; }
.btn:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid var(--petroleo); outline-offset: 3px; }

/* Barra superior */
.nav { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 24px; padding: 14px max(20px, calc((100vw - var(--ancho)) / 2));
  background: rgba(255,255,255,.82); -webkit-backdrop-filter: blur(18px) saturate(170%); backdrop-filter: blur(18px) saturate(170%); border-bottom: 1px solid transparent; transition: box-shadow .3s ease, border-color .3s ease, padding .3s ease; }
.nav.flota { border-bottom-color: var(--linea); box-shadow: 0 10px 30px rgba(18,24,22,.06); padding-top: 10px; padding-bottom: 10px; }
.nav .logo img { display: block; height: 26px; width: auto; }
.nav nav { display: flex; gap: 22px; margin-left: auto; }
.nav nav a { position: relative; color: var(--suave); text-decoration: none; font-size: 15px; font-weight: 500; padding: 4px 0; transition: color .2s ease; }
.nav nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; border-radius: 2px; background: var(--reactivo); transform: scaleX(0); transform-origin: left; transition: transform .35s cubic-bezier(.2,.7,.2,1); }
.nav nav a:hover, .nav nav a.activo { color: var(--grafito); }
.nav nav a:hover::after, .nav nav a.activo::after { transform: scaleX(1); }

/* Portada */
.hero { position: relative; isolation: isolate; max-width: var(--ancho); margin: 0 auto; padding: 72px 20px 64px; display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(38px, 6vw, 64px); line-height: 1.04; font-weight: 700; margin-bottom: 20px; }
.punto { color: var(--reactivo); }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-arte { display: grid; grid-template-columns: 1fr; gap: 12px; }
.gradilla { position: relative; overflow: hidden; height: 300px; border-radius: 28px; background: var(--petroleo); display: flex; align-items: flex-end; justify-content: center; gap: 16px; padding: 78px 32px 32px; }
.gradilla i { width: 36px; height: var(--h); border-radius: 999px; background: rgba(255,255,255,.9); position: relative; transform-origin: bottom; animation: sube 1.1s cubic-bezier(.34,1.56,.64,1) both; transition: height .9s cubic-bezier(.34,1.56,.64,1); }
.gradilla i:nth-child(2) { animation-delay: .08s; } .gradilla i:nth-child(3) { animation-delay: .16s; } .gradilla i:nth-child(4) { animation-delay: .24s; } .gradilla i:nth-child(5) { animation-delay: .32s; }
.gradilla i.alta b { position: absolute; top: -26px; left: 50%; width: 22px; height: 22px; margin-left: -11px; border-radius: 50%; background: var(--reactivo); animation: late 2.4s ease-in-out 1.2s infinite; }
.bloques { display: grid; grid-template-columns: 2fr 1fr .5fr; gap: 12px; height: 64px; }
.bloques span { border-radius: 20px; } .bloques .g { background: var(--grafito); } .bloques .gs { background: var(--suave); } .bloques .r { background: var(--reactivo); border-radius: 999px; }
@keyframes sube { from { transform: scaleY(.15); opacity: 0; } }
@keyframes late { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

/* Secciones */
.bloque { max-width: var(--ancho); margin: 0 auto; padding: 72px 20px; }
.bloque.claro { max-width: none; background: var(--vidrio); padding-left: max(20px, calc((100vw - var(--ancho)) / 2)); padding-right: max(20px, calc((100vw - var(--ancho)) / 2)); }
.muestras { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 36px; }
.muestra { border: 1px solid var(--linea); border-radius: var(--r); padding: 22px; background: var(--blanco); }
.muestra p, .entregables p, .confianza p { color: var(--suave); font-size: 16px; }
.tira { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 12px; color: #fff; font: 700 15px/1 var(--display); margin-bottom: 14px; }
.tira.ambar { background: var(--ambar); } .tira.magenta { background: var(--magenta); } .tira.menta { background: var(--menta); }
.tira.lila { background: var(--lila); } .tira.grafito { background: var(--grafito); } .tira.petroleo { background: var(--petroleo); }
.entregables, .confianza { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 32px; }
.entregables article, .confianza article { background: var(--blanco); border-radius: var(--r); padding: 26px; }
.entregables article.oscuro { background: var(--grafito); color: #fff; }
.entregables article.oscuro p { color: #C9D2CE; }
.confianza article { border-left: 4px solid var(--petroleo); }
.pasos { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: p; }
.pasos li { counter-increment: p; display: grid; gap: 8px; padding-top: 18px; border-top: 3px solid var(--grafito); }
.pasos li::before { content: counter(p); font: 700 44px/1 var(--display); color: var(--petroleo); }
.pasos b { font-family: var(--display); font-size: 19px; font-weight: 600; }
.pasos span { color: var(--suave); font-size: 16px; }

/* Ir a mi chequeo */
.mi { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.tarjeta { background: var(--blanco); border: 1px solid var(--linea); border-radius: 24px; padding: 28px; display: grid; gap: 14px; box-shadow: 0 18px 48px rgba(18,24,22,.08); }
.tarjeta label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; color: var(--suave); }
.tarjeta input { font: 400 17px/1.3 var(--texto); color: var(--grafito); padding: 13px 16px; min-height: 50px; border: 1px solid #C9D2CE; border-radius: 14px; background: #fff; }
.tarjeta input:focus { outline: 3px solid var(--petroleo); outline-offset: 1px; border-color: var(--petroleo); }
.tarjeta input[aria-invalid="true"] { border-color: #B3261E; }
.err { color: #B3261E; font-weight: 600; font-size: 15px; }

/* Contacto */
.contacto { text-align: left; }
.canales { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 28px; }
.canal { display: grid; gap: 4px; padding: 22px 24px; border-radius: var(--r); background: var(--tinte); text-decoration: none; color: var(--grafito); transition: transform .15s ease; }
.canal:hover { transform: translateY(-2px); }
.canal span { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--petroleo); }
.canal b { font-size: 18px; font-weight: 600; overflow-wrap: anywhere; }

/* Pie */
.pie { border-top: 1px solid var(--linea); padding: 40px max(20px, calc((100vw - var(--ancho)) / 2)) 48px; display: grid; gap: 12px; color: var(--tenue); font-size: 14px; }
.pie img { height: 64px; width: auto; }


/* ===== Movimiento ===== */
main { overflow-x: clip; }
/* Barra de progreso de lectura */
.progreso { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 20; pointer-events: none; }
.progreso i { display: block; height: 100%; background: linear-gradient(90deg, var(--petroleo), var(--menta) 60%, var(--reactivo)); transform: scaleX(0); transform-origin: left; }

/* Manchas de luz que flotan detrás de la portada */
.hero::before, .hero::after { content: ""; position: absolute; z-index: -1; border-radius: 50%; pointer-events: none; filter: blur(10px); }
.hero::before { width: 560px; height: 560px; right: -160px; top: -120px; background: radial-gradient(circle, rgba(242,180,60,.22), transparent 62%); animation: flota 16s ease-in-out infinite alternate; }
.hero::after { width: 520px; height: 520px; left: -220px; bottom: -200px; background: radial-gradient(circle, rgba(14,95,87,.14), transparent 62%); animation: flota 19s ease-in-out -6s infinite alternate-reverse; }
@keyframes flota { 0% { transform: translate(0,0) scale(1); } 50% { transform: translate(-40px,30px) scale(1.08); } 100% { transform: translate(30px,-20px) scale(.96); } }

/* Gradilla: brillo que barre y chip de "procesando" */
.gradilla::before { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.14) 48%, transparent 66%); transform: translateX(-100%); animation: barrido 5.5s ease-in-out 1.6s infinite; }
.gradilla::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(255,255,255,.07) 0 1px, transparent 1px 25%); pointer-events: none; }
@keyframes barrido { 0%, 55% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
.chip { position: absolute; top: 18px; left: 18px; z-index: 2; display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 10px; border-radius: 999px;
  background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.28); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: #fff; font: 600 13px/1 var(--texto); }
.chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--reactivo); box-shadow: 0 0 0 0 rgba(242,180,60,.7); animation: pulso 1.8s ease-out infinite; }
.chip em { font-style: normal; transition: opacity .25s ease, transform .25s ease; }
.chip em.cambia { opacity: 0; transform: translateY(-6px); }
@keyframes pulso { to { box-shadow: 0 0 0 10px rgba(242,180,60,0); } }
.bloques span { transform-origin: left; animation: crece 1s cubic-bezier(.2,.7,.2,1) .5s both; }
.bloques .gs { animation-delay: .62s; } .bloques .r { animation-delay: .74s; }
@keyframes crece { from { transform: scaleX(0); opacity: 0; } }

/* Botón principal con destello */
.btn.brilla::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, transparent 35%, rgba(255,255,255,.35) 50%, transparent 65%); transform: translateX(-120%); animation: destello 4.5s ease-in-out 2s infinite; }
@keyframes destello { 0%, 70% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }

/* Titular: las palabras suben */
.titular .pal { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.titular .pal > span { display: inline-block; }
html.js .titular .pal > span { transform: translateY(105%); transition: transform .9s cubic-bezier(.2,.8,.2,1) var(--d, 0s); }
html.js .titular.listo .pal > span { transform: none; }

/* Aparición al hacer scroll */
html.js [data-anima] { opacity: 0; transform: translateY(32px); transition: opacity .8s cubic-bezier(.2,.7,.2,1) var(--d, 0s), transform .9s cubic-bezier(.2,.7,.2,1) var(--d, 0s); }
html.js [data-anima="zoom"] { transform: translateY(24px) scale(.94); }
html.js [data-anima="izq"] { transform: translateX(-48px); }
html.js [data-anima="der"] { transform: translateX(48px); }
html.js [data-anima].visto { opacity: 1; transform: none; }

/* Cifras */
.cifras { max-width: var(--ancho); margin: 0 auto; padding: 8px 20px 56px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cifras div { display: grid; gap: 6px; padding: 22px 24px; border-radius: var(--r); background: var(--vidrio); }
.cifras b { font: 700 clamp(40px, 5vw, 56px)/1 var(--display); color: var(--petroleo); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.cifras div:nth-child(2) b { color: var(--magenta); } .cifras div:nth-child(3) b { color: var(--ambar); } .cifras div:nth-child(4) b { color: var(--grafito); }
.cifras span { color: var(--suave); font-size: 15px; line-height: 1.4; }

/* Cinta de temas en movimiento */
.cinta { overflow: hidden; background: var(--grafito); color: #fff; padding: 18px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.cinta > div { display: flex; align-items: center; gap: 28px; width: max-content; animation: corre 38s linear infinite; }
.cinta span { font: 600 clamp(18px, 2.4vw, 24px)/1 var(--display); letter-spacing: -0.01em; white-space: nowrap; }
.cinta i { width: 10px; height: 10px; border-radius: 50%; background: var(--reactivo); flex: none; }
.cinta:hover > div { animation-play-state: paused; }
@keyframes corre { to { transform: translateX(-50%); } }

/* Tarjetas vivas */
.muestra, .entregables article, .confianza article { position: relative; overflow: hidden; transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s ease, border-color .35s ease, opacity .8s cubic-bezier(.2,.7,.2,1) var(--d, 0s); }
html.js .muestra[data-anima], html.js .entregables article[data-anima] { transition: opacity .8s cubic-bezier(.2,.7,.2,1) var(--d, 0s), transform .9s cubic-bezier(.2,.7,.2,1) var(--d, 0s), box-shadow .35s ease, border-color .35s ease; }
.muestra::before, .entregables article::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s ease;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 0%), rgba(14,95,87,.09), transparent 70%); }
.entregables article.oscuro::before { background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 0%), rgba(242,180,60,.18), transparent 70%); }
.muestra:hover::before, .entregables article:hover::before { opacity: 1; }
.muestra:hover, .entregables article:hover, .confianza article:hover { box-shadow: 0 22px 44px rgba(18,24,22,.10); }
html.js .muestra.visto:hover, html.js .entregables article.visto:hover, .confianza article:hover, html:not(.js) .muestra:hover { transform: translateY(-6px); }
.muestra:hover { border-color: transparent; }
.tira { transition: transform .45s cubic-bezier(.34,1.56,.64,1); }
.muestra:hover .tira { transform: rotate(-8deg) scale(1.15); }

/* Pasos: la línea se dibuja */
.pasos li { position: relative; border-top-color: var(--linea); }
.pasos li::after { content: ""; position: absolute; top: -3px; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--petroleo), var(--reactivo)); transform-origin: left; }
html.js .pasos li::after { transform: scaleX(0); transition: transform .9s cubic-bezier(.2,.7,.2,1); }
html.js .pasos li::before, html.js .pasos li b, html.js .pasos li span { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1); }
html.js .pasos.visto li::after { transform: scaleX(1); }
html.js .pasos.visto li::before, html.js .pasos.visto li b, html.js .pasos.visto li span { opacity: 1; transform: none; }
html.js .pasos[data-anima] { opacity: 1; transform: none; }
.pasos li:nth-child(2)::after, .pasos li:nth-child(2) > * , .pasos li:nth-child(2)::before { transition-delay: .25s; }
.pasos li:nth-child(3)::after, .pasos li:nth-child(3) > * , .pasos li:nth-child(3)::before { transition-delay: .5s; }
.pasos li:nth-child(4)::after, .pasos li:nth-child(4) > * , .pasos li:nth-child(4)::before { transition-delay: .75s; }

/* Formulario: sacudida si hay error */
.sacude { animation: sacude .45s cubic-bezier(.36,.07,.19,.97); }
@keyframes sacude { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }

/* Contacto: cierre oscuro con luz */
.contacto { position: relative; overflow: hidden; isolation: isolate; background: var(--petroleo); color: #fff; padding: 96px max(20px, calc((100vw - var(--ancho)) / 2)); }
.contacto::before, .contacto::after { content: ""; position: absolute; z-index: -1; border-radius: 50%; pointer-events: none; }
.contacto::before { width: 640px; height: 640px; right: -180px; top: -260px; background: radial-gradient(circle, rgba(242,180,60,.35), transparent 62%); animation: flota 14s ease-in-out infinite alternate; }
.contacto::after { width: 700px; height: 700px; left: -260px; bottom: -380px; background: radial-gradient(circle, rgba(35,137,111,.6), transparent 62%); animation: flota 18s ease-in-out -4s infinite alternate-reverse; }
.contacto .eyebrow { color: #F9D27E; }
.contacto h2 { font-size: clamp(30px, 4.6vw, 48px); max-width: 860px; }
.contacto .lead { color: rgba(255,255,255,.82); }
.contacto .canal { position: relative; overflow: hidden; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22); color: #fff; -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); transition: transform .3s cubic-bezier(.34,1.56,.64,1), background .3s ease; }
.contacto .canal:hover { transform: translateY(-4px); background: rgba(255,255,255,.18); }
.contacto .canal span { color: #F9D27E; }
.contacto .canal::after { content: "→"; position: absolute; right: 22px; top: 50%; font: 600 22px/1 var(--display); transform: translate(-8px, -50%); opacity: 0; transition: transform .3s ease, opacity .3s ease; }
.contacto .canal:hover::after { transform: translate(0, -50%); opacity: 1; }

@media (max-width: 900px) {
  .hero, .mi { grid-template-columns: 1fr; }
  .hero { padding-top: 40px; }
  .gradilla { height: 250px; }
  .muestras { grid-template-columns: repeat(2, 1fr); }
  .pasos { grid-template-columns: repeat(2, 1fr); }
  .canales { grid-template-columns: 1fr; }
  .cifras { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .nav nav { display: none; }
  .nav .btn.chico { margin-left: auto; }
  .muestras, .entregables, .confianza, .pasos { grid-template-columns: 1fr; }
  .bloque { padding-top: 56px; padding-bottom: 56px; }
  .lead { font-size: 17px; }
  .cifras { gap: 10px; } .cifras div { padding: 18px; }
  .contacto { padding-top: 72px; padding-bottom: 72px; }
  .hero::before { width: 360px; height: 360px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } html { scroll-behavior: auto; } .cinta > div { flex-wrap: wrap; width: auto; justify-content: center; padding: 0 20px; row-gap: 10px; } .cinta > div > :nth-child(n+17) { display: none; } }
