/* Casa de la Piedra — diseño adaptable. Mantener este archivo junto a index.html. */
:root {
  --piedra: #b7a48a;
  --piedra-oscura: #75634e;
  --tinta: #292720;
  --texto-secundario: #625d54;
  --fondo: #f6f3ed;
  --papel: #fffefa;
  --linea: #ded6c9;
  --ancho: 1080px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--tinta);
  background: var(--fondo);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1rem;
  line-height: 1.75;
}
a { color: #684a2d; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover, a:focus { color: #352515; }
a:focus-visible { outline: 3px solid #a36b2c; outline-offset: 3px; }
.salto-contenido {
  position: absolute; left: -9999px; top: 0; padding: .75rem 1rem;
  background: #fff; z-index: 1000;
}
.salto-contenido:focus { left: 1rem; top: 1rem; }
.cabecera { background: var(--papel); border-bottom: 1px solid var(--linea); }
.barra-superior {
  max-width: var(--ancho); margin: 0 auto; padding: 1rem 1.5rem;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.marca-deporcuna img { display: block; max-width: 100%; height: auto; }
.navegacion-sitio { font-size: .92rem; }
.portada {
  max-width: var(--ancho); margin: 0 auto; padding: 2.5rem 1.5rem 3.5rem;
  text-align: center;
}
.logotipo-piedra { display: block; width: min(444px, 100%); height: auto; margin: 0 auto 1.5rem; }
.antetitulo {
  margin: 0 0 .4rem; color: var(--piedra-oscura); font-size: .78rem;
  font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
}
h1, h2 { line-height: 1.2; font-family: Georgia, "Times New Roman", serif; font-weight: 500; }
h1 { max-width: 850px; margin: .5rem auto 1rem; font-size: clamp(2rem, 4.4vw, 3.8rem); }
.introduccion { max-width: 680px; margin: 0 auto 2rem; color: var(--texto-secundario); font-size: 1.15rem; }
.foto-portada {
  display: block; width: min(760px, 100%); height: auto; max-height: 520px;
  object-fit: cover; margin: 0 auto; border: 8px solid #fff; box-shadow: 0 12px 32px #29272018;
}
.contenedor { max-width: var(--ancho); margin: 0 auto; padding: 0 1.5rem 3rem; }
section { margin: 0 0 4rem; }
.encabezado-seccion { max-width: 760px; margin: 0 auto 1.8rem; text-align: center; }
h2 { margin: .25rem 0 .75rem; font-size: clamp(1.7rem, 3vw, 2.5rem); }
.bajada { color: var(--texto-secundario); }
.ficha {
  padding: 2.5rem; background: var(--papel); border: 1px solid var(--linea);
  border-top: 4px solid var(--piedra); border-radius: 4px; margin-top: 3rem;
}
.datos { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 2rem; }
.datos div { padding: 1rem 0; border-bottom: 1px solid var(--linea); }
.datos dt { margin-bottom: .25rem; font-weight: 700; color: var(--piedra-oscura); }
.datos dd { margin: 0; }
.lista-enlaces { list-style: none; padding: 0; margin: 0; }
.lista-enlaces li { display: grid; grid-template-columns: minmax(130px, .32fr) 1fr; gap: .5rem 1.5rem; padding: 1.2rem 0; border-bottom: 1px solid var(--linea); }
.fuente { color: var(--texto-secundario); font-size: .9rem; font-weight: 700; }
.nota-enlace { display: block; color: var(--texto-secundario); font-size: .85rem; }
.relato { max-width: 850px; margin-left: auto; margin-right: auto; }
.foto-relato { margin: 2.2rem auto; text-align: center; }
.foto-relato img { display: block; width: 100%; height: auto; max-width: 760px; margin: 0 auto; border: 6px solid var(--papel); box-shadow: 0 8px 24px #29272012; }
.foto-vertical img { max-width: 360px; }
blockquote {
  margin: 1.8rem 0 2.5rem; padding: .25rem 0 .25rem 1.5rem;
  border-left: 3px solid var(--piedra); color: #403c35;
  font-family: Georgia, "Times New Roman", serif; font-size: 1.06rem;
}
blockquote p { margin: 0 0 1.2rem; }
.video { position: relative; width: 100%; max-width: 760px; margin: 2.5rem auto; aspect-ratio: 16 / 9; background: #24211d; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.fuente-historica { padding: 2rem; background: #ebe5da; border-radius: 4px; }
.fuente-historica h2 { font-size: 1.5rem; }
.credito { font-size: .92rem; color: var(--texto-secundario); }
.pie { padding: 2rem 1.5rem; text-align: center; background: #292720; color: #f8f4ec; font-size: .88rem; }
.pie a { color: #f2d8b5; }
.pie p { margin: .3rem 0; }
@media (max-width: 640px) {
  body { font-size: .98rem; line-height: 1.65; }
  .barra-superior { align-items: flex-start; flex-direction: column; padding: .8rem 1rem; }
  .portada { padding: 1.8rem 1rem 2.2rem; }
  .contenedor { padding: 0 1rem 2rem; }
  .ficha { padding: 1.3rem; margin-top: 1.5rem; }
  .datos { grid-template-columns: 1fr; }
  .lista-enlaces li { grid-template-columns: 1fr; gap: .25rem; }
  blockquote { padding-left: 1rem; margin-left: 0; margin-right: 0; font-size: 1rem; }
  .fuente-historica { padding: 1.3rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
