/* ══════════════════════════════════════════════════════════════
   sitio.css — estilos compartidos del sitio "Apellido Cantueso"
   Usado por: index.html, prensa.html, comercios.html, marcas.html…
   genealogia.html también lo enlaza, solo para la barra de
   navegación — el resto de su diseño vive en su propio <style>.
   ══════════════════════════════════════════════════════════════ */

:root {
  --stone:    #3e3830;
  --stone2:   #504a44;
  --stone3:   #625c56;
  --parch:    #f2e8d5;
  --parch2:   #e8dcc4;
  --parch3:   #d4c8b0;
  --siena:    #c4622d;
  --siena2:   #a04f22;
  --olive:    #6b7c52;
  --olive2:   #8a9e6a;
  --ink:      #f2e8d5;
  --ink2:     #c8b898;
  --ink3:     #8a7a60;
  --line:     rgba(196,98,45,0.25);
  --line2:    rgba(196,98,45,0.12);
}

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

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: var(--stone);
  color: var(--ink);
  min-height: 100vh;
}

/* ── BARRA DE NAVEGACIÓN DEL SITIO ── */
.sitio-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--stone2);
  border-bottom: 1px solid var(--line);
  padding: 12px 32px;
  position: sticky;
  top: 0;
  z-index: 500;
}
.sitio-nav-marca {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  margin-right: auto;
}
.sitio-nav-marca img {
  height: 34px;
  width: auto;
}
.sitio-nav-marca span {
  font-family: 'Crimson Pro', serif;
  font-size: 19px;
  font-weight: 600;
  color: var(--parch);
  white-space: nowrap;
}
.sitio-nav-links {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.sitio-nav-links a {
  font-size: 14px;
  color: var(--ink2);
  text-decoration: none;
  padding: 7px 14px;
  border-radius: 7px;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}
.sitio-nav-links a:hover { background: var(--stone3); color: var(--parch); }
.sitio-nav-links a.activo {
  color: var(--siena);
  background: rgba(196,98,45,0.12);
}

@media (max-width: 720px) {
  .sitio-nav { padding: 10px 16px; gap: 12px; }
  .sitio-nav-marca span { display: none; }
  .sitio-nav-links { gap: 2px; }
  .sitio-nav-links a { padding: 6px 9px; font-size: 13px; }
}

/* ── PIE DE PÁGINA DEL SITIO ── */
.sitio-footer {
  margin-top: 24px;
  padding: 28px 32px 40px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--ink3);
  font-size: 12px;
  flex-wrap: wrap;
}
.sitio-footer img { height: 36px; width: auto; opacity: 0.85; flex-shrink: 0; }
.sitio-footer p { line-height: 1.6; margin: 0 0 4px; }
.sitio-footer a { color: var(--ink2); }

/* ── UTILIDADES COMUNES ── */
.sitio-main {
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 32px;
}
.sitio-titulo {
  font-family: 'Crimson Pro', serif;
  font-weight: 600;
  color: var(--parch);
  line-height: 1.15;
}
.sitio-tag {
  display: inline-block;
  font-size: 12px;
  color: var(--ink3);
  background: var(--stone3);
  border: 1px solid var(--line2);
  border-radius: 20px;
  padding: 2px 10px;
}

/* ── ENLACE "VER" EN CADA FICHA (foto o PDF) ── */
.ver-doc {
  align-self: flex-start;
  margin-top: 4px;
  font-size: 12px;
  color: var(--siena);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-decoration: none;
  font-family: 'Inter', sans-serif;
}
.ver-doc:hover { text-decoration: underline; }

/* Recuadro-marcador cuando el fichero de una ficha es un PDF en vez de una foto */
.foto-pdf {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--ink3);
  font-size: 14px;
  text-decoration: none;
  transition: color 0.15s;
}
.foto-pdf:hover { color: var(--siena); }

/* ── VISOR DE DOCUMENTOS (lightbox para fotos) ── */
.doc-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  align-items: center;
  justify-content: center;
}
.doc-modal.abierto { display: flex; }
.doc-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.75);
}
.doc-card {
  position: relative;
  z-index: 1001;
  max-width: 92vw;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.doc-card img {
  display: block;
  max-width: 92vw;
  max-height: 88vh;
  border-radius: 8px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.55);
}
.doc-cerrar {
  position: absolute;
  top: -38px;
  right: 0;
  font-size: 28px;
  line-height: 1;
  color: var(--parch);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 8px;
}
.doc-cerrar:hover { color: var(--siena); }
