/* ─── FUENTES ALOJADAS EN EL PROPIO SITIO ─── */
@font-face {
  font-family: 'DM Sans';
  font-style: normal; font-weight: 300; font-display: swap;
  src: url('fuentes/dm-sans-latin-300-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal; font-weight: 400; font-display: swap;
  src: url('fuentes/dm-sans-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal; font-weight: 500; font-display: swap;
  src: url('fuentes/dm-sans-latin-500-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal; font-weight: 400; font-display: swap;
  src: url('fuentes/playfair-display-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal; font-weight: 700; font-display: swap;
  src: url('fuentes/playfair-display-latin-700-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Playfair Display';
  font-style: italic; font-weight: 400; font-display: swap;
  src: url('fuentes/playfair-display-latin-400-italic.woff2') format('woff2');
}

/* ═══════════════════════════════════════════════════════════════
   j.muiños+ — Estilos base compartidos
   Actualizar aquí afecta a toda la web automáticamente
   ═══════════════════════════════════════════════════════════════ */

/* ─── VARIABLES ─── */
:root {
  --azul:        #1a2e4a;
  --verde:       #2dbd84;
  --verde-claro: #e8f7f1;
  --rojo:        #c0392b;
  --rojo-claro:  #fdf0ee;
  --amarillo:    #b8860b;
  --amarillo-claro: #fdf6e3;
  --morado:      #6b4c93;
  --morado-claro: #f1ecf7;
  --coral:       #d97757;
  --coral-claro: #fdf0ea;
  --gris-claro:  #f7f6f2;
  --gris-med:    #e8e6e0;
  --texto:       #1a2e4a;
  --texto-suave: #5a6a7a;
  --blanco:      #ffffff;
  --fuente-titulo: 'Playfair Display', Georgia, serif;
  --fuente-cuerpo: 'DM Sans', system-ui, sans-serif;
}

/* ─── RESET ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--fuente-cuerpo); color: var(--texto); background: var(--blanco); }

/* ─── NAV COMPLETO (blog, entradas, categorías) ─── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.8rem 5rem;
  background: rgba(255,255,255,0.92); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gris-med);
}
.nav-logo img { height: 62px; display: block; }
.nav-enlaces { display: flex; gap: 2.5rem; list-style: none; align-items: center; }
.nav-enlaces a {
  text-decoration: none; color: var(--texto-suave);
  font-size: 0.9rem; font-weight: 400; letter-spacing: 0.04em;
  transition: color 0.2s; position: relative;
}
.nav-enlaces a::after {
  content: ''; position: absolute; bottom: -3px; left: 0;
  width: 0; height: 2px; background: var(--verde); transition: width 0.3s;
}
.nav-enlaces a:hover { color: var(--azul); }
.nav-enlaces a:hover::after { width: 100%; }
.nav-enlaces a.activo { color: var(--azul); font-weight: 500; }
.nav-enlaces a.activo::after { width: 100%; }
.nav-contacto {
  background: var(--azul); color: var(--blanco) !important;
  padding: 0.55rem 1.4rem; border-radius: 100px;
}
.nav-contacto::after { display: none !important; }
.nav-contacto:hover { background: var(--verde) !important; color: var(--blanco) !important; }

/* ─── MENÚ HAMBURGUESA ─── */
.nav-hamburguesa {
  display: none; flex-direction: column; justify-content: space-between;
  width: 28px; height: 20px; background: none; border: none; cursor: pointer; padding: 0;
}
.nav-hamburguesa span {
  display: block; width: 100%; height: 2px;
  background: var(--azul); border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.nav-hamburguesa.abierto span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.nav-hamburguesa.abierto span:nth-child(2) { opacity: 0; }
.nav-hamburguesa.abierto span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

.nav-movil {
  display: none; position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--blanco); z-index: 99;
  padding-top: 6rem; flex-direction: column;
  align-items: center; justify-content: center;
}
.nav-movil.abierto { display: flex; }
.nav-movil ul { list-style: none; text-align: center; }
.nav-movil ul li { margin-bottom: 2rem; }
.nav-movil ul li a {
  text-decoration: none; font-family: var(--fuente-titulo);
  font-size: 1.8rem; font-weight: 700; color: var(--azul); transition: color 0.2s;
}
.nav-movil ul li a:hover { color: var(--verde); }

/* ─── PIE COMÚN ─── */
footer {
  background: var(--azul);
  padding: 5rem 5rem 3rem;
}
.pie-texto { font-size: 0.78rem; color: rgba(255,255,255,0.3); }
.pie-logo-tipo {
  font-family: var(--fuente-titulo);
  font-size: 1.8rem; font-weight: 700;
  line-height: 1; letter-spacing: -0.02em;
}
.pie-logo-j { color: var(--verde); }
.pie-logo-muinos { color: var(--blanco); }
.pie-logo-mas { color: var(--verde); }

/* ─── CITA EN ARTÍCULOS ─── */
.entrada-cita, .hito-cita {
  border-left: 4px solid var(--verde);
  padding: 1.5rem 2rem; margin: 2.5rem 0;
  background: var(--verde-claro);
  border-radius: 0 12px 12px 0;
}
.entrada-cita p, .hito-cita p {
  font-family: var(--fuente-titulo);
  font-size: 1.15rem; font-style: italic;
  color: var(--azul); line-height: 1.5; margin: 0 !important;
}

/* ─── HITOS: LAYOUT TEXTO + FOTOS LATERAL ─── */
.hito-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 4rem;
  align-items: start;
}
.hito-layout.fotos-izquierda {
  grid-template-columns: 340px 1fr;
}
.hito-layout.fotos-izquierda .hito-texto { order: 2; }
.hito-layout.fotos-izquierda .hito-fotos-lateral { order: 1; }
.hito-fotos-lateral {
  display: flex; flex-direction: column; gap: 1.5rem;
  position: sticky; top: 6rem;
}
.hito-fotos-lateral figure {
  margin: 0; border-radius: 12px; overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.10);
}
.hito-fotos-lateral figure img {
  width: 100%; height: auto; display: block;
}
.hito-fotos-lateral figcaption {
  font-size: 0.75rem; color: var(--texto-suave);
  padding: 0.5rem 0.8rem; background: var(--gris-claro);
  text-align: center; font-style: italic;
}
.hito-texto { max-width: 100%; }

/* ─── ANIMACIÓN DE ENTRADA ─── */
.animar { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.7s ease; }
.animar.visible { opacity: 1; transform: translateY(0); }

/* ─── MÓVIL: nav y hamburguesa ─── */
@media (max-width: 900px) {
  nav { padding: 1rem 1.5rem; }
  .nav-enlaces { display: none; }
  /* Hitos: layout de una columna en móvil */
  .hito-layout, .hito-layout.fotos-izquierda {
    grid-template-columns: 1fr;
  }
  .hito-layout.fotos-izquierda .hito-texto,
  .hito-layout.fotos-izquierda .hito-fotos-lateral { order: unset; }
  .hito-fotos-lateral { position: static; }
  .nav-hamburguesa { display: flex; }
}
