/* labdata · estilos compartidos */
/* Archivo (variable: peso y ancho), alojada en el sitio · licencia OFL en fonts/ */
@font-face {
  font-family: "Archivo"; font-style: normal; font-display: swap;
  font-weight: 100 900; font-stretch: 62% 125%;
  src: url("fonts/archivo-latin-wdth-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo"; font-style: normal; font-display: swap;
  font-weight: 100 900; font-stretch: 62% 125%;
  src: url("fonts/archivo-latin-ext-wdth-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --papel: #F3F6F8;
  --cuadricula: #DCE4EA;
  --blanco: #FFFFFF;
  --tinta: #172A3A;
  --tinta-suave: #4A5D6E;
  --linea: #C5D1DA;
  --acento: #0F7C8C;
  --acento-claro: #D7EEF0;
  --verde: #2F9D5D;
  --verde-claro: #DDF2E5;
  --ambar: #D9930F;
  --ambar-claro: #FBEFD3;
  --rojo: #D2453B;
  --rojo-claro: #F9E0DD;
  --radio: 10px;
  --ancho: 1120px;
  --fuente: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--fuente);
  font-size: 17px;
  line-height: 1.6;
  color: var(--tinta);
  background-color: var(--papel);
  background-image:
    linear-gradient(var(--cuadricula) 1px, transparent 1px),
    linear-gradient(90deg, var(--cuadricula) 1px, transparent 1px);
  background-size: 28px 28px;
  background-position: -1px -1px;
  font-variant-numeric: tabular-nums;
}

a { color: var(--acento); text-underline-offset: 3px; }
a:hover { color: var(--tinta); }
:focus-visible { outline: 3px solid var(--acento); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-stretch: 118%; line-height: 1.12; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.2rem, 5.2vw, 3.9rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); font-weight: 750; }
h3 { font-size: 1.2rem; font-weight: 700; font-stretch: 110%; }
p { margin: 0 0 1em; }

.contenedor { width: min(var(--ancho), 100% - 40px); margin-inline: auto; }
.texto { max-width: 68ch; }
.chico { font-size: .9rem; color: var(--tinta-suave); }

/* Barra superior */
.barra {
  background: rgba(243, 246, 248, .92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--linea);
  position: sticky; top: 0; z-index: 50;
}
.barra .contenedor { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; }
.marca { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--tinta); font-weight: 800; font-stretch: 125%; font-size: 1.3rem; letter-spacing: -0.02em; }
.marca svg { width: 28px; height: 28px; }
.marca span b { color: var(--acento); font-weight: 800; }
.barra nav { display: flex; gap: 18px; flex-wrap: wrap; }
.barra nav a { color: var(--tinta-suave); text-decoration: none; font-weight: 600; font-size: .95rem; }
.barra nav a:hover, .barra nav a[aria-current="page"] { color: var(--tinta); }

/* Botones */
.boton {
  display: inline-flex; align-items: center; gap: 8px;
  font: inherit; font-weight: 700; font-size: 1rem;
  padding: 12px 20px; border-radius: var(--radio);
  border: 2px solid var(--tinta); background: var(--tinta); color: var(--blanco);
  text-decoration: none; cursor: pointer;
}
.boton:hover { background: var(--acento); border-color: var(--acento); color: var(--blanco); }
.boton.secundario { background: transparent; color: var(--tinta); }
.boton.secundario:hover { background: var(--blanco); color: var(--tinta); border-color: var(--acento); }
.boton.chico { padding: 7px 14px; font-size: .9rem; }

/* Paneles */
.panel { min-width: 0; background: var(--blanco); border: 1px solid var(--linea); border-radius: var(--radio); padding: 24px; }

/* Etiquetas de estado */
.estado { display: inline-block; align-self: flex-start; font-size: .82rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.estado.disponible { background: var(--acento-claro); color: #0A5560; }
.estado.preparacion { background: #E6EBEF; color: var(--tinta-suave); }
.estado.nasa { background: var(--tinta); color: var(--blanco); }
.etiquetas { display: flex; flex-wrap: wrap; gap: 8px; }
.primer-proyecto { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; color: var(--tinta-suave); }
.primer-proyecto::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--rojo); }

/* Pie */
.pie { border-top: 1px solid var(--linea); background: var(--blanco); margin-top: 80px; padding: 28px 0; }
.pie .contenedor { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; color: var(--tinta-suave); font-size: .92rem; }

/* Portada */
.portada-hero { padding: 72px 0 40px; position: relative; overflow: hidden; }
.portada-hero h1 { font-size: clamp(3.2rem, 11vw, 8.2rem); font-stretch: 125%; letter-spacing: -0.04em; margin-bottom: .15em; }
.portada-hero h1 b { color: var(--acento); font-weight: 800; }
.portada-hero .bajada { font-size: clamp(1.15rem, 2.1vw, 1.45rem); max-width: 34ch; color: var(--tinta); }
.portada-hero .curva { position: absolute; right: 3vw; top: 48px; width: min(560px, 48vw); opacity: .9; pointer-events: none; }
.curva path.trazo { fill: none; stroke: var(--acento); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 1400; stroke-dashoffset: 1400; animation: trazar 2.6s ease-out .3s forwards; }
.curva circle { fill: var(--rojo); opacity: 0; animation: aparecer .4s ease-out 2.8s forwards; }
@keyframes trazar { to { stroke-dashoffset: 0; } }
@keyframes aparecer { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .curva path.trazo { animation: none; stroke-dashoffset: 0; }
  .curva circle { animation: none; opacity: 1; }
}

.proyectos { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px; margin-top: 18px; }
.ficha {
  display: flex; flex-direction: column;
  background: var(--blanco); border: 1px solid var(--linea); border-radius: var(--radio);
  overflow: hidden; color: inherit; text-decoration: none; position: relative;
}
a.ficha:hover { border-color: var(--acento); box-shadow: 0 0 0 2px var(--acento); }
.ficha .grafico { background: #F8FAFB; border-bottom: 1px solid var(--linea); padding: 18px 18px 8px; height: 150px; }
.ficha .grafico svg { width: 100%; height: 100%; display: block; }
.ficha .cuerpo { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.ficha h3 { margin: 0; }
.ficha p { margin: 0; color: var(--tinta-suave); }
.ficha .ir { margin-top: auto; padding-top: 10px; font-weight: 700; color: var(--acento); }
.ficha.apagada { opacity: .78; }

.que-es { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; margin-top: 16px; }
.que-es .panel h3 { margin-bottom: .3em; }

@media (max-width: 640px) {
  body { font-size: 16px; }
  .portada-hero { padding-top: 40px; }
  .portada-hero .curva { opacity: .25; top: 70px; }
  .barra nav { gap: 12px; }
}
