/* ssp26.org · estilos de la web. Colores y tipografía: MARCA.md. */

@font-face { font-family: "Geist"; font-weight: 400; font-display: swap; src: url("/fonts/geist-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Geist"; font-weight: 600; font-display: swap; src: url("/fonts/geist-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Geist"; font-weight: 700; font-display: swap; src: url("/fonts/geist-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Geist Mono"; font-weight: 400; font-display: swap; src: url("/fonts/geist-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Geist Mono"; font-weight: 600; font-display: swap; src: url("/fonts/geist-mono-latin-600-normal.woff2") format("woff2"); }

:root {
  --tinta: #0E0F11;
  --grafito: #2A2D33;
  --gris: #6B7079;
  --linea: #D9DAD6;
  --papel: #F4F4F1;
  --blanco: #FFFFFF;
  --senal: #FF5A1F;

  --fondo: var(--papel);
  --superficie: var(--blanco);
  --hueco: #ECECE8;
  --texto: var(--tinta);
  --texto-2: var(--grafito);
  --texto-3: var(--gris);
  --borde: var(--linea);

  --sans: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --ancho: 1200px;
  --radio: 14px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --fondo: var(--tinta);
    --superficie: #17191C;
    --hueco: #1E2125;
    --texto: var(--papel);
    --texto-2: var(--linea);
    --texto-3: #9BA0A8;
    --borde: var(--grafito);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--fondo); color: var(--texto); font: 17px/1.6 var(--sans); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-color: var(--senal); text-decoration-thickness: 2px; text-underline-offset: 4px; }
a:hover { color: var(--texto); }
:focus-visible { outline: 2px solid var(--senal); outline-offset: 3px; border-radius: 4px; }

.envoltura { width: 100%; max-width: var(--ancho); margin: 0 auto; padding: 0 24px; }
.saltar { position: absolute; left: -9999px; }
.saltar:focus { left: 16px; top: 16px; z-index: 10; padding: 8px 14px; background: var(--superficie); border: 1px solid var(--borde); }

.etiqueta { margin: 0; font: 600 13px/1.4 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--texto-3); }

/* Cabecera */
.cabecera { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; padding-top: 24px; padding-bottom: 24px; }
.logo img { height: 28px; width: auto; }
.logo .oscuro { display: none; }
@media (prefers-color-scheme: dark) {
  .logo .claro { display: none; }
  .logo .oscuro { display: block; }
}
.cabecera nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; font-size: 15px; }
.cabecera nav a { text-decoration: none; color: var(--texto-2); }
.cabecera nav a:hover { color: var(--texto); text-decoration: underline; text-decoration-color: var(--senal); }
.idiomas { font: 13px var(--mono); color: var(--texto-3); }
.idiomas a[aria-current] { color: var(--texto); font-weight: 600; }

/* Portada */
.portada { padding-top: 72px; padding-bottom: 80px; border-bottom: 1px solid var(--borde); }
.portada h1 { margin: 16px 0 20px; max-width: 16em; font-size: clamp(2.4rem, 6vw, 4.2rem); font-weight: 600; line-height: 1.04; letter-spacing: -0.035em; }
.entradilla { margin: 0; max-width: 34em; font-size: clamp(1.1rem, 2vw, 1.3rem); line-height: 1.5; color: var(--texto-2); }

/* Secciones */
.seccion { padding-top: 64px; padding-bottom: 72px; border-bottom: 1px solid var(--borde); }
.cabecera-seccion { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 28px; }

/* Proyectos */
.rejilla { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
@media (max-width: 980px) { .rejilla { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .rejilla { grid-template-columns: minmax(0, 1fr); } }

.proyecto { display: flex; flex-direction: column; gap: 14px; }
.proyecto h3 { margin: 6px 0 0; font-size: 1.45rem; font-weight: 600; letter-spacing: -0.02em; }
.proyecto p { margin: 0; color: var(--texto-2); font-size: 1rem; line-height: 1.55; }

.escaparate { aspect-ratio: 4 / 3; border-radius: var(--radio); background: var(--hueco); overflow: hidden; display: flex; align-items: center; justify-content: center; gap: 4%; }
.escaparate--movil img { height: 86%; width: auto; border-radius: 12px; box-shadow: 0 1px 2px rgb(14 15 17 / 0.12), 0 10px 28px rgb(14 15 17 / 0.14); }
.escaparate--movil img + img { margin-top: 8%; }
.escaparate--pc img { width: 100%; height: 100%; object-fit: cover; }
.miniaturas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 4px; }
.miniaturas img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; }

.fichas { display: flex; flex-wrap: wrap; gap: 8px; margin: 2px 0 0; padding: 0; list-style: none; font: 12px/1.4 var(--mono); }
.fichas li { padding: 4px 10px; border: 1px solid var(--borde); border-radius: 999px; color: var(--texto-2); }
.fichas .estado { display: inline-flex; align-items: center; gap: 7px; }
.fichas .estado::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--senal); }
.fichas .estado--desarrollo::before { background: transparent; border: 1.5px solid var(--senal); }
.enlace { align-self: flex-start; margin-top: 2px; font: 600 14px var(--mono); }

/* Estudio y contacto */
.dos-columnas { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 32px; }
@media (max-width: 760px) { .dos-columnas { grid-template-columns: minmax(0, 1fr); gap: 16px; } }
.dos-columnas p { margin: 0 0 16px; max-width: 36em; font-size: 1.15rem; color: var(--texto-2); }
.dos-columnas .dato { font: 14px var(--mono); color: var(--texto-3); }
.correo { display: inline-block; font: 600 clamp(1.4rem, 4vw, 2.2rem)/1.2 var(--mono); letter-spacing: -0.02em; }

/* Pie */
.pie { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; padding-top: 28px; padding-bottom: 40px; font-size: 14px; color: var(--texto-3); }
.pie nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.pie a { color: var(--texto-3); }

/* Páginas de texto (aviso legal) */
.texto { max-width: 46em; padding-top: 48px; padding-bottom: 72px; }
.texto h1 { margin: 12px 0 8px; font-size: clamp(2rem, 5vw, 2.8rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; }
.texto h2 { margin: 40px 0 8px; font-size: 1.2rem; font-weight: 600; }
.texto p, .texto li { color: var(--texto-2); }
.texto .fecha { font: 14px var(--mono); color: var(--texto-3); }

/* 404 */
.error { min-height: 60vh; display: flex; flex-direction: column; justify-content: center; gap: 16px; padding-top: 48px; padding-bottom: 48px; }
.error h1 { margin: 0; font-size: clamp(2rem, 5vw, 3rem); font-weight: 600; letter-spacing: -0.03em; }
.error p { margin: 0; color: var(--texto-2); }
