/* Minuto de Astronomía — estilo del sitio */

@font-face {
  font-family: 'Montserrat';
  src: url('/fuentes/montserrat.woff2') format('woff2');
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: 'Source Serif 4';
  src: url('/fuentes/serif.woff2') format('woff2');
  font-weight: 400 600;
  font-display: swap;
}
@font-face {
  font-family: 'Source Serif 4';
  src: url('/fuentes/serif-italica.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

/* ---------- colores ---------- */

:root {
  --fondo: #0b0c0f;
  --fondo-2: #14161b;
  --texto: #eeeeec;
  --texto-2: #a3a6ae;
  --linea: rgba(255, 255, 255, 0.11);
  --dorado: #f2c45c;
  --dorado-texto: #f2c45c;
  --boton-texto: #0b0c0f;
  --sans: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  color-scheme: dark;
}
:root[data-tema='claro'] {
  --fondo: #fbfaf7;
  --fondo-2: #f1efea;
  --texto: #14161b;
  --texto-2: #5c606a;
  --linea: rgba(20, 22, 27, 0.13);
  --dorado: #d6a531;
  --dorado-texto: #856008;
  --boton-texto: #14161b;
  color-scheme: light;
}

/* ---------- base ---------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--fondo);
  color: var(--texto);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  transition: background-color .25s ease, color .25s ease;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, figure, ul, blockquote { margin: 0; }
:focus-visible { outline: 2px solid var(--dorado); outline-offset: 3px; border-radius: 2px; }

.ancho { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: 20px; }
@media (min-width: 760px) { .ancho { padding-inline: 40px; } }

.oculto, .saltar:not(:focus) {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}
.saltar:focus {
  position: fixed; top: 12px; left: 12px; z-index: 10;
  background: var(--dorado); color: #0b0c0f; padding: 10px 16px; border-radius: 4px; font-weight: 600;
}

/* ---------- cabecera ---------- */

.cabecera { border-bottom: 1px solid var(--linea); }
.cabecera-in { display: flex; align-items: center; height: 72px; gap: 14px; }
.menu-btn, .cajon-cerrar {
  display: grid; place-items: center; width: 40px; height: 40px; margin-left: -9px; padding: 0; flex: none;
  background: none; border: 0; border-radius: 50%; color: var(--texto); cursor: pointer;
  transition: background-color .15s;
}
.menu-btn:hover, .cajon-cerrar:hover { background: var(--fondo-2); }
.menu-btn svg, .cajon-cerrar svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.marca { display: inline-flex; align-items: center; gap: 12px; }
.logo {
  width: 46px; height: 22px; flex: none;
  background: var(--texto);
  -webkit-mask: url('/logo.png') center / contain no-repeat;
  mask: url('/logo.png') center / contain no-repeat;
}
.marca-txt {
  font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; white-space: nowrap;
}
.nav {
  display: flex; align-items: center; gap: 30px; margin-left: 26px; padding-left: 30px;
  border-left: 1px solid var(--linea);
  font-size: 12.5px; font-weight: 600; letter-spacing: .13em; text-transform: uppercase;
}
.nav a { padding-block: 7px; white-space: nowrap; box-shadow: 0 2px 0 transparent; transition: box-shadow .2s; }
.nav a:hover, .nav a[aria-current] { box-shadow: 0 2px 0 var(--dorado); }
.tema {
  display: grid; place-items: center; width: 38px; height: 38px; margin-left: auto; margin-right: -9px; padding: 0; flex: none;
  background: none; border: 0; border-radius: 50%; color: var(--texto-2); cursor: pointer;
  transition: color .15s, background-color .15s;
}
.tema:hover { color: var(--texto); background: var(--fondo-2); }
.tema svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.i-luna { display: none; }
:root[data-tema='claro'] .i-luna { display: block; }
:root[data-tema='claro'] .i-sol { display: none; }
@media (max-width: 859px) {
  .cabecera-in { height: auto; flex-wrap: wrap; row-gap: 0; padding-top: 10px; gap: 8px; }
  .marca { gap: 10px; }
  .nav {
    order: 3; flex: 0 0 calc(100% + 40px); margin: 8px -20px 0; padding: 6px 20px;
    gap: 26px; border-left: 0; border-top: 1px solid var(--linea); font-size: 12px; overflow-x: auto;
  }
}
@media (min-width: 760px) and (max-width: 859px) {
  .nav { flex-basis: calc(100% + 80px); margin-inline: -40px; padding-inline: 40px; }
}
@media (max-width: 379px) { .marca-txt { font-size: 11.5px; letter-spacing: .12em; } }

/* ---------- menú desplegable ---------- */

.cajon {
  position: fixed; inset: 0 auto 0 0; margin: 0; width: min(340px, 86vw); height: 100dvh; max-height: none;
  padding: 16px 28px 32px; border: 0; border-right: 1px solid var(--linea);
  background: var(--fondo); color: var(--texto); overflow-y: auto;
}
.cajon[open] { animation: cajon-entra .22s ease; }
.cajon::backdrop { background: rgba(0, 0, 0, .55); }
@keyframes cajon-entra { from { transform: translateX(-24px); opacity: 0; } }
.cajon-cab { display: flex; align-items: center; justify-content: space-between; height: 40px; margin-bottom: 28px; }
.cajon-cerrar { margin: 0 -9px 0 0; }
.cajon-nav { display: grid; }
.cajon-nav a {
  padding-block: 15px; border-bottom: 1px solid var(--linea);
  font-size: 19px; font-weight: 600; letter-spacing: -.01em;
}
.cajon-nav a[aria-current] { color: var(--dorado-texto); }
.cajon-sec { display: grid; gap: 14px; margin-top: 30px; font-size: 14.5px; color: var(--texto-2); }
.cajon-sec a:hover, .cajon-nav a:hover { color: var(--dorado-texto); }

/* ---------- piezas comunes ---------- */

.rubro {
  font-size: 11.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--dorado-texto);
}
.meta { font-size: 13px; color: var(--texto-2); }
.bajada { font-family: var(--serif); font-size: 19px; line-height: 1.5; color: var(--texto-2); }
.seccion {
  display: flex; align-items: center; gap: 18px;
  font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  margin-bottom: 28px;
}
.seccion::after { content: ''; flex: 1; height: 1px; background: var(--linea); }
.boton {
  display: inline-block; padding: 13px 22px; border-radius: 999px;
  background: var(--dorado); color: var(--boton-texto);
  font-size: 14px; font-weight: 600; transition: filter .15s;
}
.boton:hover { filter: brightness(1.08); }
.boton-linea {
  display: inline-block; padding: 9px 16px; border-radius: 999px;
  border: 1px solid var(--linea); background: none; color: var(--texto);
  font: 500 13.5px var(--sans); cursor: pointer; transition: border-color .15s, background-color .15s;
}
.boton-linea:hover { border-color: var(--texto-2); background: var(--fondo-2); }
.rubro a:hover { text-decoration: underline; text-underline-offset: 3px; }
[hidden] { display: none !important; }

/* ---------- portada ---------- */

.destacada { display: grid; gap: 22px; padding-block: 24px 56px; }
.destacada-foto, .tarjeta-foto { display: block; overflow: hidden; border-radius: 14px; background: var(--fondo-2); }
.destacada-foto img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .6s ease; }
.destacada:hover .destacada-foto img, .tarjeta:hover .tarjeta-foto img { transform: scale(1.025); }
.destacada-txt { display: grid; gap: 14px; align-content: center; }
.destacada-titulo {
  font-size: clamp(28px, 3.3vw, 44px); font-weight: 700; line-height: 1.12; letter-spacing: -.015em;
  text-wrap: balance;
}
.destacada-titulo a, .tarjeta-titulo a {
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size .3s ease;
}
.destacada-titulo a:hover, .tarjeta-titulo a:hover { background-size: 100% 1px; }
@media (min-width: 900px) {
  .destacada { grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 48px; padding-block: 44px 80px; }
  .destacada-txt { gap: 18px; }
}

.grilla { display: grid; gap: 40px 32px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); }
.tarjeta { display: grid; gap: 10px; align-content: start; }
.tarjeta-foto { margin-bottom: 6px; }
.tarjeta-foto img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .6s ease; }
.tarjeta-titulo { font-size: 20px; font-weight: 600; line-height: 1.25; letter-spacing: -.01em; text-wrap: balance; }

.ver-mas { margin-top: 44px; text-align: center; }
.seccion-cab { padding-block: 44px 36px; display: grid; gap: 12px; max-width: 720px; }
.seccion-cab h1 { font-size: clamp(30px, 4.4vw, 46px); font-weight: 700; line-height: 1.1; letter-spacing: -.02em; }
.seccion-cab h1::before { content: ''; display: block; width: 36px; height: 3px; background: var(--dorado); margin-bottom: 20px; }
@media (min-width: 760px) { .seccion-cab { padding-block: 72px 48px; } }

/* ---------- nota ---------- */

.nota-cab { max-width: 760px; margin-inline: auto; padding: 44px 20px 30px; display: grid; gap: 16px; }
.nota-cab h1 {
  font-size: clamp(30px, 5vw, 50px); font-weight: 700; line-height: 1.1; letter-spacing: -.02em; text-wrap: balance;
}
.nota-cab .bajada { font-size: clamp(19px, 2.2vw, 22px); }
@media (min-width: 760px) { .nota-cab { padding-top: 72px; gap: 20px; } }

figure img { width: 100%; border-radius: 14px; background: var(--fondo-2); }
figcaption { margin-top: 10px; font-family: var(--sans); font-size: 13px; line-height: 1.45; color: var(--texto-2); }
.credito { opacity: .75; }
.credito::before { content: '· '; }
figcaption > .credito:first-child::before { content: ''; }

.nota-foto { max-width: 1080px; margin-inline: auto; padding-inline: 20px; }
.nota-foto img { max-height: 78vh; object-fit: cover; }

.nota-cuerpo {
  max-width: 720px; margin-inline: auto; padding: 36px 20px 0;
  font-family: var(--serif); font-size: 19px; line-height: 1.7;
}
@media (min-width: 760px) { .nota-cuerpo { font-size: 20px; padding-top: 48px; } }
.nota-cuerpo > * + * { margin-top: 1.3em; }
.nota-cuerpo a { text-decoration: underline; text-decoration-color: var(--dorado); text-underline-offset: 3px; text-decoration-thickness: 1px; }
.nota-cuerpo a:hover { text-decoration-thickness: 2px; }
.nota-cuerpo h2 {
  font-family: var(--sans); font-size: 24px; font-weight: 700; line-height: 1.2; letter-spacing: -.01em;
  margin-top: 2.2em;
}
.nota-cuerpo h2::before { content: ''; display: block; width: 36px; height: 3px; background: var(--dorado); margin-bottom: 16px; }
.nota-cuerpo ul { padding-left: 1.1em; }
.nota-cuerpo li + li { margin-top: .4em; }
.nota-cuerpo li::marker { color: var(--dorado); }
.nota-cuerpo figure { margin-block: 2.2em; }
.nota-cuerpo blockquote {
  margin-block: 2em; padding-left: 22px; border-left: 3px solid var(--dorado);
  font-style: italic; font-size: 1.2em; line-height: 1.45;
}

.compartir {
  margin-top: 2.6em; display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  font-family: var(--sans);
}
.compartir-tit { font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; margin-right: 6px; }
.nota-cuerpo .compartir a { text-decoration: none; }
.fija { padding-top: 8px; }
.fuentes { margin-top: 2.2em; padding-top: 26px; border-top: 1px solid var(--linea); font-family: var(--sans); }
.nota-cuerpo .fuentes h2 { font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; margin: 0 0 12px; }
.nota-cuerpo .fuentes h2::before { display: none; }
.fuentes ul { list-style: none; padding: 0; font-size: 14px; line-height: 1.5; color: var(--texto-2); }

.avatar { border-radius: 50%; flex: none; background: var(--fondo-2); }
.firma { display: flex; align-items: center; gap: 12px; margin-top: 4px; }
.firma-nombre { font-size: 14px; font-weight: 600; line-height: 1.3; }
.firma .meta { margin-top: 1px; }
.seguir {
  margin-top: 3em; padding: 22px 24px; border-radius: 8px; background: var(--fondo-2);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 20px;
  font-family: var(--sans); font-size: 14.5px; line-height: 1.45;
}
.seguir-quien { display: flex; align-items: center; gap: 14px; flex: 1 1 260px; color: var(--texto-2); }
.seguir-cuenta { font-size: 15.5px; font-weight: 600; color: var(--texto); }
.nota-cuerpo .seguir a { text-decoration: none; }
.mas { margin-top: 80px; }

/* ---------- pie ---------- */

.pie { margin-top: 96px; border-top: 1px solid var(--linea); padding-block: 40px 32px; }
.pie-in { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 24px; }
.pie-lema { margin-top: 12px; font-size: 14px; color: var(--texto-2); max-width: 36ch; }
.pie-nav { display: flex; flex-wrap: wrap; gap: 28px 64px; font-size: 13.5px; color: var(--texto-2); }
.pie-nav div { display: grid; gap: 9px; align-content: start; }
.pie-tit { font-size: 11.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--texto); margin-bottom: 4px; }
.pie-nav a:hover { color: var(--texto); }
.pie-legal { margin-top: 36px; font-size: 12px; color: var(--texto-2); }

.vacio { padding-block: 120px; display: grid; gap: 20px; justify-items: start; }
.vacio h1 { font-size: clamp(28px, 4vw, 42px); line-height: 1.15; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

/* Tilde azul de verificación */
.verif { display: inline-block; width: 1em; height: 1em; margin-left: .28em; vertical-align: -.14em; flex: none; }
/* Logos de redes */
.red { display: inline-flex; align-items: center; gap: 9px; }
.red-logo { width: 16px; height: 16px; fill: currentColor; flex: none; }
/* Redes sociales plegables en el menú */
.cajon-redes summary { display: flex; align-items: center; justify-content: space-between; cursor: pointer; list-style: none; }
.cajon-redes summary::-webkit-details-marker { display: none; }
.cajon-redes summary:hover { color: var(--dorado-texto); }
.cajon-redes .flecha { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s ease; }
.cajon-redes[open] .flecha { transform: rotate(180deg); }
.cajon-redes-lista { display: grid; gap: 13px; padding: 14px 0 2px 4px; }

/* Seguidores: franja de la portada */
.franja { border-bottom: 1px solid var(--linea, rgba(127,127,127,.2)); }
.franja-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 18px; padding-block: 11px; font-size: 13.5px; color: var(--texto-2); text-align: center; }
.franja-in strong { color: var(--dorado-texto); font-weight: 700; }
.franja-logos, .cifra-logos { display: flex; gap: 14px; }
.franja-logos a, .cifra-logos a { color: var(--texto-2); display: flex; }
.franja-logos a:hover, .cifra-logos a:hover { color: var(--dorado-texto); }
.franja-logos .red-logo { width: 15px; height: 15px; }
/* Seguidores: cifra grande en Sobre nosotros */
.cifra { text-align: center; padding: 28px 16px 30px; margin: 0 0 36px; border-block: 1px solid var(--linea, rgba(127,127,127,.2)); }
.cifra-num { font-family: var(--sans); font-weight: 700; font-size: clamp(44px, 9vw, 68px); line-height: 1; color: var(--dorado-texto); letter-spacing: -.01em; margin: 0; }
.cifra-txt { margin: 10px 0 18px; font-size: 15px; color: var(--texto-2); }
.cifra-logos { justify-content: center; gap: 20px; }
.cifra-logos .red-logo { width: 20px; height: 20px; }
