/*
  Una Carta del Rincón — hoja de estilo del sitio
  ------------------------------------------------
  Tipografías libres, auto-alojadas en /fonts/ (WOFF2, subsets latin + latin-ext):
    · Prata         (serif display, 400) — titulares y voz editorial.         SIL OFL 1.1
    · IBM Plex Mono (400/500) — cintillos, metadatos y navegación.            SIL OFL 1.1
    · Inter         (400/500/600) — texto de lectura y formularios.           SIL OFL 1.1
  Se sirven en local (no CDN) por privacidad/RGPD: ninguna petición a terceros.
*/

/* ---------- Prata (serif display, 400 · sin itálica) ---------- */
@font-face {
  font-family: 'Prata'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('/fonts/prata-normal-400-latin.woff2') format('woff2');
}
/* ---------- IBM Plex Mono ---------- */
@font-face {
  font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('/fonts/ibmplexmono-normal-400-latin-ext.woff2') format('woff2');
  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;
}
@font-face {
  font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('/fonts/ibmplexmono-normal-400-latin.woff2') format('woff2');
  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+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('/fonts/ibmplexmono-normal-500-latin-ext.woff2') format('woff2');
  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;
}
@font-face {
  font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('/fonts/ibmplexmono-normal-500-latin.woff2') format('woff2');
  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+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* ---------- Inter ---------- */
@font-face {
  font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('/fonts/inter-normal-400-latin-ext.woff2') format('woff2');
  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;
}
@font-face {
  font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('/fonts/inter-normal-400-latin.woff2') format('woff2');
  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+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('/fonts/inter-normal-500-latin-ext.woff2') format('woff2');
  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;
}
@font-face {
  font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('/fonts/inter-normal-500-latin.woff2') format('woff2');
  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+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('/fonts/inter-normal-600-latin-ext.woff2') format('woff2');
  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;
}
@font-face {
  font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('/fonts/inter-normal-600-latin.woff2') format('woff2');
  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+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --azul-tinta: #1B2C5C;
  --azul-tinta-90: rgba(27, 44, 92, 0.9);
  --azul-tinta-12: rgba(27, 44, 92, 0.12);
  --crema-papel: #ECEBE4;
  --crema-claro: #F4F2EB;
  --crema-hueso: #E3E1D7;
  --gris-archivo: #6B7384;
  --tinta-cuerpo: #131A26;
  --rojo-error: #B85050;
  --verde-ok: #4A6B4A;

  /* Hairline de marca: 1px azul tinta suave para reglas y bordes. */
  --linea: 1px solid var(--azul-tinta-12);
  --linea-fuerte: 1px solid var(--azul-tinta);

  /* Display serif (Prata): titulares, hero y voz editorial. */
  --font-serif: 'Prata', 'Iowan Old Style', 'Source Serif Pro', Charter, Georgia, serif;

  /* Body sans (Inter): texto corrido, formulario y microcopy. */
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Helvetica, Arial, system-ui, sans-serif;

  /* Mono (IBM Plex Mono): cintillos, metadatos, navegación y datos técnicos. */
  --font-mono: 'IBM Plex Mono', 'JetBrains Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;

  --max-width: 1200px;
  --max-width-content: 720px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

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

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--tinta-cuerpo);
  background: var(--crema-papel);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--azul-tinta);
  text-underline-offset: 2px;
}
a:hover { text-decoration-thickness: 1.5px; }

::selection {
  background: var(--azul-tinta);
  color: var(--crema-papel);
}

/* Focus visible global */
:focus-visible {
  outline: 2px solid var(--azul-tinta);
  outline-offset: 2px;
}

/* Cabecera */
.landing-header {
  padding: 24px 32px;
  border-bottom: 0.5px solid var(--gris-archivo);
}
.wordmark {
  display: inline-block;
  line-height: 0;
}
.wordmark a {
  display: inline-block;
  line-height: 0;
}
/* Logo caligráfico (ratio ~7:1). Altura fija, ancho automático. */
.wordmark .logo {
  display: block;
  height: 34px;
  width: auto;
}

/* Hero */
.hero {
  text-align: center;
  padding: 80px 32px 48px;
  max-width: var(--max-width-content);
  margin: 0 auto;
}
.hero h1 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.05;
  color: var(--azul-tinta);
  margin: 0 0 16px;
  letter-spacing: -0.01em;
}
/* Logo caligráfico como titular del hero (ratio ~7:1). */
.hero-logo {
  margin: 0 0 28px;
  line-height: 0;
}
.hero-logo .logo-hero {
  display: block;
  width: 100%;
  max-width: 540px;
  height: auto;
  margin: 0 auto;
}
.hero .subtitle {
  font-family: var(--font-serif);
  font-style: normal;
  font-size: clamp(18px, 2vw, 22px);
  color: var(--gris-archivo);
  margin: 0;
}

/* Grid de contenido */
.content-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 48px 32px 96px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 64px;
}
@media (min-width: 900px) {
  .content-grid {
    grid-template-columns: 1fr 1fr;
    gap: 96px;
    align-items: start;
  }
}

/* Eyebrow */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gris-archivo);
  margin-bottom: 16px;
}

/* Explicación */
.explanation p {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  margin: 0 0 18px;
  color: var(--tinta-cuerpo);
}
.explanation p:last-of-type { margin-bottom: 0; }
.plazo-destacado {
  font-family: var(--font-mono);
  font-size: 13px;
  background: var(--crema-claro);
  padding: 16px 20px;
  border-left: 2px solid var(--azul-tinta);
  margin-top: 32px;
  line-height: 1.5;
  color: var(--tinta-cuerpo);
}

/* Formulario */
.form-container form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 500px) {
  .form-row { grid-template-columns: 1fr 1fr; }
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-field > label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gris-archivo);
}
.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="tel"],
.form-field select {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.4;
  padding: 13px 14px;
  background: transparent;
  border: 1px solid var(--gris-archivo);
  border-radius: 0;
  color: var(--tinta-cuerpo);
  transition: border-color 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
}
.form-field input::placeholder {
  color: var(--gris-archivo);
  opacity: 0.7;
}
.form-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236B7384' stroke-width='1.2' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
.form-field input:focus,
.form-field select:focus {
  outline: none;
  border-color: var(--azul-tinta);
  border-width: 1.5px;
  padding-top: 12.5px;
  padding-bottom: 12.5px;
}
.form-field input.has-error,
.form-field select.has-error {
  border-color: var(--rojo-error);
}
.form-field .error {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--rojo-error);
  margin-top: 4px;
  letter-spacing: 0.02em;
}

/* Honeypot */
.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Checkboxes */
.checkbox-field { gap: 0; }
.checkbox-label {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  cursor: pointer;
  text-transform: none;
  letter-spacing: 0;
  color: var(--tinta-cuerpo);
  font-family: var(--font-body);
  font-size: 15px;
}
.checkbox-label input[type="checkbox"] {
  margin: 3px 0 0;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  accent-color: var(--azul-tinta);
  cursor: pointer;
}
.checkbox-text {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
}
.checkbox-text a {
  color: var(--azul-tinta);
  text-decoration: underline;
}

/* Banner de error general */
.form-banner {
  font-family: var(--font-mono);
  font-size: 13px;
  padding: 14px 18px;
  background: var(--crema-claro);
  border-left: 2px solid var(--rojo-error);
  color: var(--rojo-error);
  line-height: 1.5;
}

/* Botón */
button[type="submit"] {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 18px 32px;
  background: var(--azul-tinta);
  color: var(--crema-papel);
  border: 1.5px solid var(--azul-tinta);
  cursor: pointer;
  margin-top: 16px;
  transition: background-color 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}
button[type="submit"]:hover:not(:disabled) {
  background: var(--crema-papel);
  color: var(--azul-tinta);
}
button[type="submit"]:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Confirmación */
.success-message,
.closed-message {
  text-align: center;
  padding: 48px 0;
}
.success-message h2,
.closed-message h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(26px, 3vw, 32px);
  line-height: 1.15;
  color: var(--azul-tinta);
  margin: 16px 0 24px;
}
.success-message p,
.closed-message p {
  font-family: var(--font-body);
  font-size: 17px;
  max-width: 480px;
  margin: 0 auto 16px;
  line-height: 1.6;
}
.success-message .thanks,
.closed-message .thanks {
  font-style: italic;
  color: var(--gris-archivo);
  margin-top: 32px;
}

/* Pie */
.landing-footer {
  padding: 32px;
  text-align: center;
  border-top: 0.5px solid var(--gris-archivo);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--gris-archivo);
  letter-spacing: 0.03em;
}
.landing-footer p { margin: 0; }
.landing-footer a {
  color: var(--gris-archivo);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Aviso legal (página) */
.legal-page {
  max-width: var(--max-width-content);
  margin: 0 auto;
  padding: 64px 32px 96px;
}
.legal-page h1 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.1;
  color: var(--azul-tinta);
  margin: 0 0 32px;
}
.legal-page h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 22px;
  color: var(--azul-tinta);
  margin: 40px 0 12px;
}
.legal-page p,
.legal-page li {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--tinta-cuerpo);
}
.legal-page ul { padding-left: 20px; }
.legal-page li { margin-bottom: 8px; }
.legal-page .back-link {
  display: inline-block;
  margin-top: 48px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gris-archivo);
}

/* Mobile tweaks */
@media (max-width: 600px) {
  .landing-header { padding: 20px 24px; }
  .wordmark .logo { height: 28px; }
  .hero { padding: 48px 24px 32px; }
  .content-grid { padding: 24px 24px 64px; gap: 48px; }
  .landing-footer { padding: 24px; }
}

/* ============================================================
   CABECERA Y PIE COMUNES (todas las páginas del sitio)
   ============================================================ */
.site-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 22px 32px;
  border-bottom: 0.5px solid var(--gris-archivo);
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.03em;
}
.main-nav a {
  color: var(--azul-tinta);
  text-decoration: none;
  padding-bottom: 1px;
}
.main-nav a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}
.main-nav .nav-cta {
  border-bottom: 1px solid var(--azul-tinta);
}
.main-nav .nav-cta:hover {
  text-decoration: none;
  border-bottom-width: 1.5px;
}

.site-footer {
  border-top: 0.5px solid var(--gris-archivo);
  padding: 56px 32px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.5;
  color: var(--gris-archivo);
  letter-spacing: 0.03em;
}
.site-footer p { margin: 0 0 8px; }
.site-footer .footer-location { font-size: 11px; }
.site-footer .footer-links { margin: 14px 0 0; }
.site-footer .footer-links a {
  color: var(--gris-archivo);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Layout de página que rellena el viewport (home, contacto) */
body.fill {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
body.fill > main { flex: 1 0 auto; }

@media (max-width: 600px) {
  .site-header { padding: 18px 24px; gap: 16px; }
  .main-nav { gap: 16px; font-size: 12px; }
  .site-footer { padding: 40px 24px; }
}

/* ============================================================
   HOME PRE-LANZAMIENTO ( / )
   ============================================================ */
.home-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  max-width: 620px;
  margin: 0 auto;
  padding: 64px 24px;
}
.home-wordmark {
  margin: 0 0 22px;
  line-height: 0;
}
.home-wordmark .logo-hero {
  display: block;
  width: 100%;
  max-width: 540px;
  height: auto;
  margin: 0 auto;
}
.home-date {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gris-archivo);
  margin: 0 0 56px;
}
.home-intro {
  font-family: var(--font-serif);
  font-style: normal;
  font-size: clamp(20px, 2.6vw, 26px);
  line-height: 1.4;
  color: var(--tinta-cuerpo);
  max-width: 480px;
  margin: 0 auto 48px;
}
.home-cta {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 18px 36px;
  background: var(--azul-tinta);
  color: var(--crema-papel);
  border: 1.5px solid var(--azul-tinta);
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.home-cta:hover { background: var(--crema-papel); color: var(--azul-tinta); }
.home-closed {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--gris-archivo);
  margin: 0;
}
.home-secondary { margin-top: 44px; }
.home-secondary a {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--gris-archivo);
  text-decoration: underline;
  text-underline-offset: 3px;
}
@media (max-width: 600px) {
  .home-main { padding: 40px 24px; }
  .home-wordmark { margin-bottom: 16px; }
  .home-date { margin-bottom: 40px; }
}

/* ============================================================
   PÁGINAS EDITORIALES (/proyecto/, /contacto/)
   Columna estrecha, titulares en serif (Fraunces)
   ============================================================ */
.editorial-page {
  max-width: 680px;
  margin: 0 auto;
  padding: 72px 32px 32px;
}
.editorial-page h1 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--azul-tinta);
  margin: 8px 0 0;
}
.editorial-page h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(26px, 3vw, 32px);
  line-height: 1.15;
  color: var(--azul-tinta);
  margin: 0;
}
.editorial-page h2.sub {
  font-style: normal;
  font-size: clamp(20px, 2.4vw, 26px);
  color: var(--gris-archivo);
  margin-top: 10px;
}
.divider {
  border: none;
  border-top: 0.5px solid var(--gris-archivo);
  margin: 72px 0;
}
.project-body p {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.65;
  margin: 0 0 22px;
  color: var(--tinta-cuerpo);
}
.project-body p:last-child { margin-bottom: 0; }
.author-body p {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  margin: 0 0 18px;
  color: var(--tinta-cuerpo);
}
.author-body p:last-child { margin-bottom: 0; }
.colophon {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.8;
  color: var(--tinta-cuerpo);
  background: var(--crema-claro);
  border: 0.5px solid var(--gris-archivo);
  padding: 36px 40px;
}
.colophon p { margin: 0 0 24px; }
.colophon p:last-child { margin-bottom: 0; }
.colophon .col-label {
  display: block;
  color: var(--gris-archivo);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 11px;
  margin-bottom: 2px;
}
.colophon em { font-style: italic; }
@media (max-width: 600px) {
  .colophon { padding: 24px 22px; }
}
.eyebrow.spaced { margin-top: 0; }

/* Contacto */
.contacto-main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 600px;
  margin: 0 auto;
  padding: 80px 32px;
}
.contacto-main h1 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--azul-tinta);
  margin: 8px 0 0;
}
.contacto-body {
  font-family: var(--font-body);
  margin-top: 24px;
}
.contacto-body p {
  font-family: var(--font-body);
  font-size: clamp(17px, 2.2vw, 19px);
  line-height: 1.6;
  color: var(--tinta-cuerpo);
  margin: 0 0 28px;
}
.contacto-email {
  display: inline-block;
  font-family: var(--font-serif);
  font-size: clamp(22px, 3vw, 26px);
  color: var(--azul-tinta);
  text-underline-offset: 4px;
  margin: 0 0 28px;
}

/* Aviso legal: cuerpo con saltos preservados (texto plano del spec) */
.legal-body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--tinta-cuerpo);
}
.legal-body h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 20px;
  letter-spacing: 0.01em;
  color: var(--azul-tinta);
  margin: 44px 0 12px;
}
.legal-body h2:first-child { margin-top: 0; }
.legal-body p { margin: 0 0 16px; }
.legal-body .legal-list p {
  margin: 0 0 6px;
  padding-left: 4px;
}
.legal-body .legal-meta {
  margin-top: 48px;
  font-style: italic;
  color: var(--gris-archivo);
}

@media (max-width: 600px) {
  .editorial-page { padding: 48px 24px 24px; }
  .contacto-main { padding: 56px 24px; }
  .divider { margin: 56px 0; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
}

/* ============================================================
   PLUS DE DISEÑO · v2 (2026)
   Refinamientos sobre la base: fuentes libres (Fraunces / Inter /
   IBM Plex Mono), cabecera con logo, pie de autoría, galería con
   visor, entradas suaves. Mantiene la estética: plano, hairlines
   de 1px, mucho blanco, sin sombras ni degradados.
   ============================================================ */

html { font-optical-sizing: auto; }
body { text-underline-offset: 2px; }

/* Números y titulares Fraunces con cifras de estilo antiguo donde luce */
.hero h1, .editorial-page h1, .contacto-main h1,
.home-intro, .success-message h2, .closed-message h2 {
  font-feature-settings: "ss01";
}

/* ---------- Cabecera: logo a la izquierda, nav a la derecha, fija ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  justify-content: space-between;
  gap: 20px;
  padding: 15px 32px;
  background: var(--crema-papel);
  border-bottom: var(--linea);
}
.site-brand {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  flex-shrink: 0;
}
.site-brand img {
  height: 21px;
  width: auto;
  display: block;
  transition: opacity 0.2s ease;
}
.site-brand:hover img { opacity: 0.68; }
.main-nav a[aria-current="page"] {
  border-bottom: 1px solid var(--azul-tinta);
  padding-bottom: 1px;
}
@media (max-width: 600px) {
  .site-header { padding: 12px 22px; }
  .site-brand img { height: 18px; }
}

/* ---------- Pie: autoría Álex Fernández en todas las páginas ---------- */
.site-footer .footer-author {
  margin: 16px 0 0;
  font-size: 12px;
  color: var(--gris-archivo);
  letter-spacing: 0.02em;
}
.site-footer .footer-author a {
  color: var(--azul-tinta);
  text-decoration: none;
  border-bottom: 1px solid var(--azul-tinta-12);
  padding-bottom: 1px;
  transition: border-color 0.2s ease;
}
.site-footer .footer-author a:hover { border-bottom-color: var(--azul-tinta); }
.site-footer .footer-links { margin-top: 8px; }

/* ---------- Entrada suave de la home (sin JS; se anula con reduced-motion) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .home-main > * {
    animation: ucdr-rise 0.9s var(--ease) both;
  }
  .home-main > *:nth-child(2) { animation-delay: 0.06s; }
  .home-main > *:nth-child(3) { animation-delay: 0.12s; }
  .home-main > *:nth-child(4) { animation-delay: 0.18s; }
  .home-main > *:nth-child(5) { animation-delay: 0.24s; }
  .home-main > *:nth-child(6) { animation-delay: 0.30s; }
}
.home-main .home-closed { margin-top: 20px; }
@keyframes ucdr-rise {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}

/* ---------- Revelado al hacer scroll (páginas editoriales y galería) ---------- */
@media (prefers-reduced-motion: no-preference) {
  html.js .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  }
  html.js .reveal.is-in {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Entradilla editorial (lede) ---------- */
.lede {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(20px, 2.6vw, 27px);
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--tinta-cuerpo);
  margin: 0 0 8px;
}

/* ============================================================
   GALERÍA (/galeria/)
   ============================================================ */
.gallery-page {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 64px 32px 96px;
}
.gallery-head {
  max-width: var(--max-width-content);
  margin: 0 0 8px;
}
.gallery-head h1 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--azul-tinta);
  margin: 8px 0 0;
}
.gallery-intro {
  max-width: 560px;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--tinta-cuerpo);
  margin: 22px 0 0;
}

/* Selector de colección (pestañas) */
.gallery-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 32px 0 4px;
  scroll-margin-top: 84px;
}
.gallery-tab {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.03em;
  color: var(--azul-tinta);
  background: transparent;
  border: 1px solid var(--azul-tinta-12);
  border-radius: 0;
  padding: 11px 17px;
  cursor: pointer;
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.gallery-tab:hover { border-color: var(--azul-tinta); }
.gallery-tab .tab-n {
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--gris-archivo);
}
.gallery-tab.is-active {
  background: var(--azul-tinta);
  color: var(--crema-papel);
  border-color: var(--azul-tinta);
}
.gallery-tab.is-active .tab-n { color: rgba(236, 235, 228, 0.7); }

/* Solo cuando el JS confirma las pestañas (.is-tabbed): una colección a la vez.
   Si el JS falla, no se añade la clase y se ven todas (fallback seguro). */
.gallery-page.is-tabbed .gallery-section[data-collection] { display: none; }
.gallery-page.is-tabbed .gallery-section[data-collection].is-shown { display: block; }
.gallery-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin: 48px 0 20px;
  padding-bottom: 12px;
  border-bottom: var(--linea-fuerte);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gris-archivo);
}

/* Secciones de la galería (Actuales / Archivo histórico) */
.gallery-section { margin-top: 72px; }
.gallery-section:first-of-type { margin-top: 44px; }
.gallery-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
  margin-bottom: 14px;
  border-bottom: var(--linea-fuerte);
}
.gallery-section-head h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(22px, 3vw, 31px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--azul-tinta);
  margin: 0;
}
.gallery-count {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gris-archivo);
  white-space: nowrap;
}
.gallery-section-note {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  color: var(--gris-archivo);
  max-width: 640px;
  margin: 0 0 26px;
}
.gallery-empty {
  border: 1px dashed rgba(27, 44, 92, 0.28);
  background: var(--crema-claro);
  padding: 52px 28px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.8;
  color: var(--gris-archivo);
}
.gallery-empty strong { color: var(--azul-tinta); font-weight: 400; }

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 620px) {
  .gallery-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
}
@media (min-width: 1000px) {
  .gallery-grid { grid-template-columns: 1fr 1fr 1fr; gap: 28px 24px; }
}

/* Masonry por columnas: respeta la proporción de cada foto (archivo mixto).
   Móvil 2 col (rejilla de archivo densa), tablet 3, escritorio 4. */
.gallery-masonry {
  columns: 2;
  column-gap: 12px;
}
@media (min-width: 640px)  { .gallery-masonry { columns: 3; column-gap: 16px; } }
@media (min-width: 1024px) { .gallery-masonry { columns: 4; column-gap: 20px; } }
.gallery-masonry .gallery-figure {
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  margin: 0 0 12px;
}
@media (min-width: 640px)  { .gallery-masonry .gallery-figure { margin-bottom: 16px; } }
@media (min-width: 1024px) { .gallery-masonry .gallery-figure { margin-bottom: 20px; } }

.gallery-figure { margin: 0; }
.gallery-item {
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--azul-tinta-12);
  background: var(--crema-hueso);
  overflow: hidden;
  cursor: pointer;
  outline-offset: 3px;
}
.gallery-item img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.7s var(--ease), filter 0.4s ease;
  filter: saturate(0.96);
}
.gallery-item:hover img,
.gallery-item:focus-visible img {
  transform: scale(1.035);
  filter: saturate(1.05);
}
.gallery-figure figcaption {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--gris-archivo);
  margin-top: 10px;
  display: flex;
  gap: 10px;
}
.gallery-figure figcaption .cap-idx { color: var(--azul-tinta); }

.gallery-note {
  margin-top: 64px;
  padding-top: 24px;
  border-top: var(--linea);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.7;
  color: var(--gris-archivo);
}

/* ---------- Visor (lightbox) ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 5vh 4vw;
  background: rgba(19, 26, 38, 0.94);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.lightbox.is-open { display: flex; opacity: 1; }
.lightbox-figure {
  margin: 0;
  max-width: 100%;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.lightbox-figure img {
  display: block;
  max-width: min(94vw, 1400px);
  max-height: 82vh;
  width: auto;
  height: auto;
  border: 1px solid rgba(236, 235, 228, 0.18);
}
.lightbox-cap {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: rgba(236, 235, 228, 0.72);
}
.lightbox-close,
.lightbox-nav {
  position: absolute;
  background: transparent;
  border: 1px solid rgba(236, 235, 228, 0.28);
  color: var(--crema-papel);
  font-family: var(--font-mono);
  font-size: 13px;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.lightbox-close {
  top: 18px;
  right: 20px;
  padding: 8px 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }
.lightbox-close:hover,
.lightbox-nav:hover {
  background: rgba(236, 235, 228, 0.14);
  border-color: rgba(236, 235, 228, 0.6);
}
@media (max-width: 600px) {
  .gallery-page { padding: 40px 22px 64px; }
  .lightbox-nav { width: 40px; height: 40px; }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
}

/* ============================================================
   ESTADO CERRADO (/recibir/ tras el cierre de inscripciones)
   ============================================================ */
.closed-hero {
  max-width: var(--max-width-content);
  margin: 0 auto;
  padding: 88px 32px 72px;
  text-align: center;
}
.closed-hero .eyebrow { display: inline-block; }
.closed-hero h1 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(32px, 4.6vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--azul-tinta);
  margin: 10px 0 24px;
}
.closed-hero p {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--tinta-cuerpo);
  max-width: 520px;
  margin: 0 auto 18px;
}
.closed-hero .closed-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  justify-content: center;
  margin-top: 40px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
}
.closed-hero .closed-actions a { color: var(--azul-tinta); text-underline-offset: 4px; }
.corto-still {
  max-width: 560px;
  margin: 30px auto 8px;
}
.corto-still img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border: 1px solid var(--azul-tinta-12);
}
@media (max-width: 600px) {
  .closed-hero { padding: 56px 24px 48px; }
  .corto-still { margin: 26px auto 4px; }
}

/* ============================================================
   PORTADA EDITORIAL · HOME v3 (super top)
   Hero a pantalla + secciones tranquilas. Plano, hairlines,
   Fraunces para la voz, mono para las etiquetas de archivo.
   ============================================================ */
.home-landing { display: block; }

/* Botones reutilizables */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 16px 30px;
  border: 1.5px solid var(--azul-tinta);
  text-decoration: none;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.btn .arw { transition: transform 0.25s var(--ease); }
.btn:hover .arw { transform: translateX(4px); }
.btn--primary { background: var(--azul-tinta); color: var(--crema-papel); }
.btn--primary:hover { background: transparent; color: var(--azul-tinta); }
.btn--ghost { background: transparent; color: var(--azul-tinta); border-color: rgba(27, 44, 92, 0.4); }
.btn--ghost:hover { border-color: var(--azul-tinta); background: rgba(27, 44, 92, 0.04); }

/* Cintillo con número de sección */
.eyebrow-idx {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gris-archivo);
  margin: 0 0 26px;
}
.eyebrow-idx::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--azul-tinta-12);
}

/* ---------- Hero ---------- */
.hero-home {
  min-height: calc(100svh - 58px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 32px 40px;
  position: relative;
}
.hero-home__inner {
  width: 100%;
  max-width: 720px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
/* Línea de fecha-lugar, como el encabezado de una carta */
.hero-dateline {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gris-archivo);
  margin: 0 0 36px;
  max-width: 100%;
}
.hero-mark {
  margin: 0 0 30px;
  line-height: 0;
}
.hero-mark img {
  display: block;
  width: 100%;
  max-width: clamp(280px, 60vw, 600px);
  height: auto;
}
.hero-lead {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(22px, 3.1vw, 32px);
  line-height: 1.3;
  letter-spacing: -0.012em;
  color: var(--tinta-cuerpo);
  max-width: 17em;
  margin: 0 0 30px;
  text-wrap: balance;
}
/* Regla breve, ornamento de imprenta */
.hero-rule {
  display: block;
  width: 44px;
  height: 1px;
  background: var(--azul-tinta);
  margin: 0 0 34px;
  opacity: 0.55;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-bottom: 36px;
}
/* Sello de edición: firma anclada a los 100 ejemplares numerados a mano */
.hero-edition {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  line-height: 1.9;
  text-transform: uppercase;
  color: var(--gris-archivo);
  margin: 0;
  max-width: 100%;
}
.hero-edition__no { white-space: nowrap; }
.hero-blank {
  display: inline-block;
  width: 30px;
  border-bottom: 1px solid var(--gris-archivo);
  transform: translateY(-2px);
  margin: 0 2px;
}
.hero-scroll {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 16px;
  color: var(--gris-archivo);
  text-decoration: none;
  line-height: 1;
  padding: 8px;
}
@media (prefers-reduced-motion: no-preference) {
  .hero-scroll { animation: ucdr-nudge 1.8s var(--ease) infinite; }
  .hero-home__inner > * { animation: ucdr-rise 0.95s var(--ease) both; }
  .hero-home__inner > *:nth-child(1) { animation-delay: 0.05s; }
  .hero-home__inner > *:nth-child(2) { animation-delay: 0.13s; }
  .hero-home__inner > *:nth-child(3) { animation-delay: 0.22s; }
  .hero-home__inner > *:nth-child(4) { animation-delay: 0.31s; }
  .hero-home__inner > *:nth-child(5) { animation-delay: 0.40s; }
  .hero-home__inner > *:nth-child(6) { animation-delay: 0.49s; }
}
@keyframes ucdr-nudge {
  0%, 100% { transform: translate(-50%, 0); opacity: 0.55; }
  50% { transform: translate(-50%, 5px); opacity: 1; }
}

/* La caligrafía se "escribe": la tinta aparece de izquierda a derecha.
   (El logo es un PNG; el barrido con clip-path lee como escritura a mano.) */
@media (prefers-reduced-motion: no-preference) {
  .hero-mark { animation: none; }
  .hero-mark img {
    animation: ucdr-ink 1.6s cubic-bezier(0.62, 0.02, 0.34, 1) 0.3s both;
  }
}
@keyframes ucdr-ink {
  0%   { clip-path: inset(0 100% 0 0); opacity: 0.5; }
  60%  { opacity: 1; }
  100% { clip-path: inset(0 -2% 0 0); opacity: 1; }
}

/* ---------- Secciones de la home ---------- */
.home-section {
  max-width: var(--max-width-content);
  margin: 0 auto;
  padding: 96px 32px;
  scroll-margin-top: 72px;
}
.home-section--wide { max-width: var(--max-width); }
.home-section + .home-section { padding-top: 0; }

/* Manifiesto / declaración */
.home-statement {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(25px, 4vw, 44px);
  line-height: 1.22;
  letter-spacing: -0.015em;
  color: var(--azul-tinta);
  margin: 0;
  max-width: 15em;
  text-wrap: balance;
}
.home-statement .muted { color: var(--gris-archivo); }
.home-support {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--tinta-cuerpo);
  max-width: 34em;
  margin: 36px 0 0;
}

/* Cronología */
.datelist {
  list-style: none;
  margin: 0;
  padding: 0;
}
.datelist li {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 20px;
  align-items: baseline;
  padding: 22px 0;
  border-top: 1px solid var(--azul-tinta-12);
}
.datelist li:last-child { border-bottom: 1px solid var(--azul-tinta-12); }
.datelist .d-date {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--azul-tinta);
}
.datelist .d-label {
  font-family: var(--font-body);
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.4;
  color: var(--tinta-cuerpo);
}
.datelist .d-label small {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--gris-archivo);
  margin-top: 4px;
}
.home-note-inline {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.6;
  color: var(--gris-archivo);
  margin: 26px 0 0;
}

/* Guiño a la galería */
.home-gallery-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}
.home-gallery-head .see-all {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--azul-tinta);
  text-decoration: none;
  white-space: nowrap;
}
.home-gallery-head .see-all:hover { text-decoration: underline; text-underline-offset: 3px; }
.home-gallery-strip {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 700px) {
  .home-gallery-strip { grid-template-columns: repeat(3, 1fr); gap: 20px; }
}
.home-gallery-strip a {
  display: block;
  overflow: hidden;
  border: 1px solid var(--azul-tinta-12);
  background: var(--crema-hueso);
  outline-offset: 3px;
}
.home-gallery-strip img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: saturate(0.96);
  transition: transform 0.7s var(--ease), filter 0.4s ease;
}
.home-gallery-strip a:hover img,
.home-gallery-strip a:focus-visible img { transform: scale(1.04); filter: saturate(1.05); }

/* Cierre */
.home-outro {
  text-align: center;
  padding: 40px 32px 8px;
}
.home-outro p {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(19px, 2.6vw, 26px);
  line-height: 1.4;
  color: var(--gris-archivo);
  margin: 0;
  max-width: 22em;
  margin-inline: auto;
}

@media (max-width: 600px) {
  .hero-home { min-height: calc(100svh - 50px); padding: 40px 24px 36px; }
  .hero-kicker { margin-bottom: 26px; letter-spacing: 0.18em; }
  .home-section { padding: 68px 24px; }
  .datelist li { grid-template-columns: 74px 1fr; gap: 14px; }
}

/* ============================================================
   AJUSTES v3.1
   ============================================================ */

/* Textura de papel muy sutil al fondo (~5%).
   Para más/menos grano cambia SOLO el valor de opacity (0.05 = 5%). */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20width%3D%27180%27%20height%3D%27180%27%3E%3Cfilter%20id%3D%27p%27%3E%3CfeTurbulence%20type%3D%27fractalNoise%27%20baseFrequency%3D%270.9%27%20numOctaves%3D%272%27%20stitchTiles%3D%27stitch%27%2F%3E%3CfeColorMatrix%20type%3D%27saturate%27%20values%3D%270%27%2F%3E%3C%2Ffilter%3E%3Crect%20width%3D%27100%25%27%20height%3D%27100%25%27%20filter%3D%27url%28%2523p%29%27%2F%3E%3C%2Fsvg%3E");
  background-size: 180px 180px;
  opacity: 0.05;
}

/* Cabecera de la home sin logo: nav alineada a la derecha */
.site-header--nomark { justify-content: flex-end; }

/* Instagram en el pie */
.site-footer .footer-social { margin: 14px 0 0; }
.site-footer .footer-social a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gris-archivo);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  transition: color 0.2s ease;
}
.site-footer .footer-social a:hover { color: var(--azul-tinta); }
.site-footer .footer-social svg { width: 15px; height: 15px; display: block; }

/* ============================================================
   MENÚ RESPONSIVE (hamburguesa en móvil) · v3.2
   ============================================================ */

/* Cabecera a sangre (full-bleed): la barra ocupa todo el ancho y el
   contenido se alinea a la columna. Además evita el bug de margin:auto
   en el body flex-column (que encogía la cabecera). */
.site-header {
  max-width: none;
  margin: 0;
  padding-top: 15px;
  padding-bottom: 15px;
  padding-left: max(28px, calc((100% - var(--max-width)) / 2));
  padding-right: max(28px, calc((100% - var(--max-width)) / 2));
}
@media (max-width: 720px) {
  .site-header {
    padding-top: 12px;
    padding-bottom: 12px;
    padding-left: 22px;
    padding-right: 22px;
  }
}

/* Navegación de escritorio: subrayado animado al hover */
@media (min-width: 721px) {
  .main-nav a {
    position: relative;
    padding-bottom: 3px;
  }
  .main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1px;
    background: var(--azul-tinta);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.28s var(--ease);
  }
  .main-nav a:hover::after,
  .main-nav a[aria-current="page"]::after { transform: scaleX(1); }
  .main-nav a:hover { text-decoration: none; }
  .main-nav a[aria-current="page"] { border-bottom: none; }
}

/* Botón hamburguesa (oculto en escritorio) */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin: -6px -10px -6px auto;
  padding: 0;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--azul-tinta);
}
.nav-toggle__box { position: relative; width: 24px; height: 12px; }
.nav-toggle__line {
  position: absolute;
  left: 0;
  width: 24px;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.32s var(--ease), opacity 0.2s ease;
}
.nav-toggle__line:nth-child(1) { top: 0; }
.nav-toggle__line:nth-child(2) { bottom: 0; }
.site-header.is-open .nav-toggle__line:nth-child(1) { transform: translateY(5.25px) rotate(45deg); }
.site-header.is-open .nav-toggle__line:nth-child(2) { transform: translateY(-5.25px) rotate(-45deg); }

/* ---------- Móvil: nav en desplegable ---------- */
@media (max-width: 720px) {
  .nav-toggle { display: inline-flex; }
  .site-header { position: sticky; }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--crema-papel);
    border-bottom: var(--linea);
    padding: 4px 22px 14px;
    font-size: 15px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.26s var(--ease), transform 0.26s var(--ease), visibility 0.26s;
  }
  .site-header.is-open .main-nav {
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .main-nav a {
    padding: 15px 2px;
    letter-spacing: 0.04em;
    border-bottom: 1px solid var(--azul-tinta-12);
  }
  .main-nav a:last-child { border-bottom: none; }
  .main-nav a[aria-current="page"] {
    border-bottom: 1px solid var(--azul-tinta-12);
    color: var(--azul-tinta);
    font-weight: 500;
  }
  /* En la home (sin logo) el botón queda a la derecha igualmente */
  .site-header--nomark { justify-content: flex-end; }
}

/* ============================================================
   PULIDO FRONTEND-DESIGN · v3.3
   Capitular de imprenta fina en la apertura de /proyecto.
   ============================================================ */
.project-body > p:first-of-type::first-letter {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 3.4em;
  line-height: 0.78;
  float: left;
  margin: 0.04em 0.09em 0 0;
  color: var(--azul-tinta);
}
/* Contacto: línea secundaria (email de gestión + teléfono) */
.contacto-alt {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--gris-archivo);
  margin: 4px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  align-items: baseline;
}
.contacto-alt a { color: var(--azul-tinta); text-underline-offset: 3px; }
.contacto-alt .sep { color: var(--gris-archivo); opacity: 0.6; }

/* ============================================================
   PÁGINA DEL SPOT (/spot/) · "Una tarde cualquiera"
   ============================================================ */
.spot-page {
  max-width: 940px;
  margin: 0 auto;
  padding: 64px 32px 96px;
}
.spot-head { max-width: var(--max-width-content); }
.spot-head h1 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--azul-tinta);
  margin: 8px 0 0;
}
.spot-tagline {
  font-family: var(--font-serif);
  font-size: clamp(18px, 2.4vw, 23px);
  line-height: 1.4;
  color: var(--gris-archivo);
  margin: 20px 0 0;
  max-width: 24em;
}

/* Reproductor: marco 16:9 con póster y botón de play */
.spot-player { margin: 48px 0 0; }
.spot-frame {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--azul-tinta);
  background: var(--tinta-cuerpo);
}
.spot-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.95) brightness(0.92);
  transition: transform 0.9s var(--ease), filter 0.5s ease;
}
.spot-frame:hover img { transform: scale(1.03); filter: saturate(1) brightness(0.8); }
.spot-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.spot-play span {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  border: 1.5px solid var(--crema-papel);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(19, 26, 38, 0.28);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  transition: background-color 0.3s ease, transform 0.3s var(--ease);
}
.spot-frame:hover .spot-play span { background: rgba(27, 44, 92, 0.6); transform: scale(1.06); }
.spot-play svg { width: 20px; height: 22px; fill: var(--crema-papel); margin-left: 4px; }
.spot-badge {
  position: absolute;
  left: 16px;
  bottom: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--crema-papel);
  background: rgba(27, 44, 92, 0.72);
  padding: 7px 12px;
}
.spot-player figcaption {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--gris-archivo);
  margin-top: 14px;
}

.spot-body {
  max-width: var(--max-width-content);
  margin: 56px 0 0;
}
.spot-body .lede {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(21px, 2.8vw, 28px);
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--azul-tinta);
  margin: 0 0 24px;
  text-wrap: balance;
}
.spot-body p {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--tinta-cuerpo);
  margin: 0 0 20px;
}

/* Ficha técnica */
.spot-credits {
  margin: 56px 0 0;
  padding-top: 28px;
  border-top: 1px solid var(--azul-tinta);
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px 40px;
}
@media (min-width: 620px) { .spot-credits { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .spot-credits { grid-template-columns: repeat(4, 1fr); } }
.spot-credits dt {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gris-archivo);
  margin: 0 0 6px;
}
.spot-credits dd {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
  color: var(--tinta-cuerpo);
  margin: 0;
}
@media (max-width: 600px) {
  .spot-page { padding: 40px 22px 64px; }
}

/* ============================================================
   ACCESIBILIDAD (bloque en /proyecto) · motivo en Braille
   ============================================================ */
.access-block {
  margin-top: 26px;
  padding: 34px 36px;
  background: var(--crema-claro);
  border: 0.5px solid var(--gris-archivo);
}
.braille-motif {
  display: block;
  height: 32px;
  width: auto;
  margin-bottom: 24px;
}
.access-block p {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--tinta-cuerpo);
  margin: 0;
  max-width: 40em;
}
.access-block p + p { margin-top: 16px; }
.access-block .access-caption {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gris-archivo);
  margin-top: 20px;
}
@media (max-width: 600px) {
  .access-block { padding: 24px 22px; }
}

/* ============================================================
   MAPA DE LA DIÁSPORA (/mapa/)
   ============================================================ */
.mapa-page { max-width: var(--max-width); margin: 0 auto; padding: 64px 32px 96px; }
.mapa-head { max-width: var(--max-width-content); }
.mapa-head h1 {
  font-family: var(--font-serif); font-weight: 400;
  font-size: clamp(38px, 6vw, 68px); line-height: 1.02; letter-spacing: -0.02em;
  color: var(--azul-tinta); margin: 8px 0 0;
}
.mapa-intro {
  font-family: var(--font-body); font-size: 17px; line-height: 1.65;
  color: var(--tinta-cuerpo); max-width: 34em; margin: 20px 0 0;
}
.mapa-counts {
  display: flex; flex-wrap: wrap; gap: 40px 56px;
  margin: 40px 0 8px; padding: 24px 0; border-top: 1px solid var(--azul-tinta-12); border-bottom: 1px solid var(--azul-tinta-12);
}
.mapa-counts div { display: flex; flex-direction: column; gap: 2px; }
.mapa-counts strong {
  font-family: var(--font-serif); font-weight: 400; font-size: clamp(30px, 5vw, 48px);
  line-height: 1; color: var(--azul-tinta);
}
.mapa-counts span {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--gris-archivo);
}

.mapa-wrap { position: relative; margin: 32px 0 0; }
.mapa-svg { display: block; width: 100%; height: auto; max-width: 820px; margin: 0 auto; }
.m-sil path { fill: rgba(27, 44, 92, 0.07); stroke: rgba(27, 44, 92, 0.30); stroke-width: 2.5; }
.m-line { stroke: var(--azul-tinta); stroke-width: 2; opacity: 0.22; }
.m-hit { fill: transparent; cursor: pointer; }
.m-c { fill: var(--azul-tinta); opacity: 0.85; transition: opacity 0.2s ease, transform 0.2s ease; transform-box: fill-box; transform-origin: center; }
.m-dot:hover .m-c, .m-dot:focus-visible .m-c, .m-dot.is-active .m-c { opacity: 1; transform: scale(1.18); }
.m-dot:focus-visible { outline: none; }

.mapa-tip {
  position: absolute; z-index: 5; pointer-events: none;
  transform: translate(-50%, -140%);
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.03em;
  color: var(--crema-papel); background: var(--azul-tinta);
  padding: 6px 10px; white-space: nowrap;
}
.mapa-tip[hidden] { display: none; }

.mapa-legend {
  list-style: none; margin: 40px 0 0; padding: 0;
  max-width: var(--max-width-content);
  display: grid; grid-template-columns: 1fr; gap: 0;
}
@media (min-width: 620px) { .mapa-legend { grid-template-columns: 1fr 1fr; column-gap: 48px; } }
.mapa-legend li {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  padding: 13px 0; border-bottom: 1px solid var(--azul-tinta-12);
  cursor: default;
}
.mapa-legend .m-name { font-family: var(--font-body); font-size: 16px; color: var(--tinta-cuerpo); }
.mapa-legend .m-n { font-family: var(--font-mono); font-size: 14px; color: var(--azul-tinta); }
.mapa-legend li.is-intl .m-name { color: var(--gris-archivo); }
.mapa-legend li.is-active { background: var(--crema-claro); }
@media (max-width: 600px) { .mapa-page { padding: 40px 22px 64px; } }

/* Mapa: etiquetas SVG, origen, marca internacional, interacción */
.m-olabel, .m-flabel {
  font-family: var(--font-mono); font-size: 21px; letter-spacing: 0.02em;
  fill: var(--tinta-cuerpo);
}
.m-flabel { fill: var(--azul-tinta); }
.m-intl-mark { cursor: pointer; }
.m-intl-mark path { transition: transform 0.2s ease; transform-box: fill-box; transform-origin: center; }
.m-intl-mark.is-active path { transform: scale(1.25); }
.m-intl-mark.is-active .m-flabel { text-decoration: underline; }
.m-dot.is-active .m-c { opacity: 1; transform: scale(1.2); }

/* ============================================================
   MAPA v2 · lámina grabada + rutas de tinta
   ============================================================ */
.mapa-svg { display: block; width: 100%; height: auto; max-width: 900px; margin: 4px auto 0; overflow: visible; }
/* Provincias base: trazo fino de grabado */
.m-base path { fill: none; stroke: rgba(27, 44, 92, 0.20); stroke-width: 0.8; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
/* Provincias destino: coropleta (relleno inline por nº) */
.m-prov { stroke: rgba(27, 44, 92, 0.55); stroke-width: 1; stroke-linejoin: round; vector-effect: non-scaling-stroke; transition: fill 0.25s ease; cursor: pointer; }
.m-prov.is-active { fill: var(--azul-tinta) !important; }
/* Rutas postales (arcos) */
.m-arc { fill: none; stroke: var(--azul-tinta); stroke-width: 1.3; opacity: 0.5; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; vector-effect: non-scaling-stroke; }
.m-arc--intl { stroke-dasharray: 4 5; opacity: 0.55; }
@media (prefers-reduced-motion: no-preference) {
  .m-arc { stroke-dashoffset: 1; animation: m-draw 1.25s var(--ease) 0.3s forwards; }
}
@keyframes m-draw { to { stroke-dashoffset: 0; } }
/* Origen El Rincón */
.m-o-ring { fill: var(--crema-papel); stroke: var(--azul-tinta); stroke-width: 2; vector-effect: non-scaling-stroke; }
.m-o-dot { fill: var(--azul-tinta); }
.m-olabel { font-family: var(--font-mono); font-size: 15px; fill: var(--tinta-cuerpo); letter-spacing: 0.03em; }
/* Etiquetas de destino */
.m-label { cursor: pointer; }
.m-pt { fill: var(--azul-tinta); }
.m-lname { font-family: var(--font-mono); font-size: 13.5px; letter-spacing: 0.04em; text-transform: uppercase; fill: var(--gris-archivo); }
.m-lnum { font-family: var(--font-serif); font-size: 19px; fill: var(--azul-tinta); }
.m-label.is-active .m-lname { fill: var(--azul-tinta); }
.m-label--intl .m-lname { fill: var(--gris-archivo); }
/* Etiqueta de destino sobre provincia oscura (Murcia) */
.m-label--ondark .m-lname { fill: rgba(236, 235, 228, 0.72); }
.m-label--ondark .m-lnum { fill: var(--crema-papel); }
/* Móvil: ocultar nombres de provincia pequeños (los números + la leyenda bastan) */
@media (max-width: 640px) {
  .m-label:not(.m-label--ondark):not(.m-label--intl) .m-lname { display: none; }
  .m-lnum { font-size: 22px; }
  .m-olabel { font-size: 20px; }
  .m-label--intl .m-lname, .m-label--ondark .m-lname { font-size: 18px; }
}

/* Mapa v2.1 · leyenda-clave centrada + arcos más finos */
.m-arc { stroke-width: 1.05; opacity: 0.38; }
.m-arc--intl { opacity: 0.42; }
.m-label .m-lnum { font-size: 18px; }
.mapa-legend { max-width: 660px; margin: 46px auto 0; }
.mapa-legend li {
  display: grid; grid-template-columns: 15px 1fr auto; align-items: center; gap: 13px;
}
.m-sw { width: 13px; height: 13px; display: inline-block; border: 0.5px solid rgba(27, 44, 92, 0.28); }
.m-sw--intl { background: transparent !important; border: 1px dashed rgba(27, 44, 92, 0.5); }

/* Foto del autor en /proyecto/ */
.author-photo { margin: 32px 0 4px; max-width: 460px; }
.author-photo img { display: block; width: 100%; height: auto; border: 1px solid var(--azul-tinta-12); filter: saturate(0.97); }
.author-photo figcaption {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.04em;
  color: var(--gris-archivo); margin-top: 12px;
}
