/* Lylo Labs · hoja de estilo del sitio. Sin recursos externos: las tipografías se sirven desde /fonts (licencia OFL). */

@font-face { font-family: "Inter"; font-weight: 400; font-style: normal; font-display: swap; src: url("/fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-style: normal; font-display: swap; src: url("/fonts/inter-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-weight: 500; font-style: normal; font-display: swap; src: url("/fonts/space-grotesk-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-weight: 600; font-style: normal; font-display: swap; src: url("/fonts/space-grotesk-latin-600-normal.woff2") format("woff2"); }

:root {
  --navy: #14284C;
  --orange: #E9541E;
  --cream: #F5F1EA;
  --grey: #5F5F5F;      /* gris de texto secundario, más oscuro que el #767676 de marca para cumplir 4,5:1 sobre crema */
  --ink: #1A1A1A;
  --line: #DAD4C8;
  --bg: #FFFFFF;
  --max: 68rem;
  --gutter: 1rem;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1rem/1.6 "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

h1, h2, h3 { font-family: "Space Grotesk", "Inter", system-ui, sans-serif; color: var(--navy); line-height: 1.15; margin: 0 0 .75rem; }
h1 { font-weight: 600; font-size: clamp(2rem, 6vw, 3.25rem); letter-spacing: -.01em; }
h2 { font-weight: 600; font-size: clamp(1.5rem, 4vw, 2rem); }
h3 { font-weight: 600; font-size: 1.15rem; }
p { margin: 0 0 1rem; }

a { color: var(--navy); text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:hover { text-decoration-color: var(--orange); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 2px; }

.skip { position: absolute; left: -999px; top: 0; background: var(--navy); color: #fff; padding: .75rem 1rem; z-index: 10; }
.skip:focus { left: var(--gutter); top: var(--gutter); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* Encabezado */
.top { border-bottom: 1px solid var(--line); background: var(--bg); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4rem; flex-wrap: wrap; }
.brand { font: 600 1.25rem/1 "Space Grotesk", sans-serif; color: var(--navy); text-decoration: none; display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; }
.brand::before { content: ""; width: .6rem; height: 1.4rem; background: var(--orange); display: inline-block; }
.nav { display: flex; gap: .25rem; flex-wrap: wrap; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 .6rem; text-decoration: none; font-weight: 600; font-size: .95rem; }
.nav a:hover { text-decoration: underline; }

/* Portada */
.hero { background: var(--navy); color: #fff; padding: 3.5rem 0 3rem; }
.hero h1 { color: #fff; max-width: 22ch; }
.hero .rule { width: 3rem; height: 4px; background: var(--orange); margin: 0 0 1.25rem; }
.hero .place { color: var(--cream); font-size: .95rem; margin-bottom: 1rem; }
.hero .lead { color: #fff; font-size: 1.125rem; max-width: 40rem; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .75rem 1.25rem; border-radius: 4px; font-weight: 600; text-decoration: none; }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--cream); text-decoration: none; }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: #0E1D38; text-decoration: none; }

/* Secciones */
section { padding: 3rem 0; }
.alt { background: var(--cream); }
.intro { max-width: 42rem; color: var(--grey); }

.cards { display: grid; gap: 1rem; grid-template-columns: 1fr; margin-top: 1.5rem; }
.card { background: var(--bg); border: 1px solid var(--line); border-top: 4px solid var(--navy); border-radius: 0 0 6px 6px; padding: 1.25rem; }
.card p { margin: 0; }

.steps { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: 1.25rem; grid-template-columns: 1fr; counter-reset: paso; }
.steps li { counter-increment: paso; position: relative; padding-left: 3rem; }
.steps li::before { content: counter(paso); position: absolute; left: 0; top: 0; width: 2rem; height: 2rem; border-radius: 50%; background: var(--navy); color: #fff; font: 600 1rem/2rem "Space Grotesk", sans-serif; text-align: center; }
.steps li::after { content: ""; position: absolute; left: .85rem; top: 2.25rem; width: 4px; height: calc(100% - 1rem); background: var(--orange); opacity: .35; }
.steps li:last-child::after { display: none; }
.steps h3 { margin-bottom: .35rem; }
.steps p { margin: 0; }

.contact { text-align: left; }
.contact .mail { font: 600 clamp(1.1rem, 4vw, 1.5rem) "Space Grotesk", sans-serif; word-break: break-word; }

/* Pie */
.foot { border-top: 1px solid var(--line); padding: 2rem 0; font-size: .9rem; color: var(--grey); }
.foot .wrap { display: grid; gap: .75rem; }
.foot a { display: inline-flex; align-items: center; min-height: 44px; }

/* Páginas de texto */
.doc { padding: 3rem 0; }
.doc .wrap { max-width: 44rem; }
.doc .rule { width: 3rem; height: 4px; background: var(--orange); margin: 0 0 1.25rem; }

@media (min-width: 48rem) {
  :root { --gutter: 1.5rem; }
  .hero { padding: 5rem 0 4.5rem; }
  section { padding: 4.5rem 0; }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .steps li { padding-left: 0; padding-top: 3rem; }
  .steps li::after { left: 2.5rem; top: .85rem; width: calc(100% - 1.25rem); height: 4px; }
  .foot .wrap { grid-template-columns: 1fr auto; align-items: center; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
