/* ------------------------------------------------------------
   parroquiasantiago.es — web informativa (estática)
   Estilos comunes a todas las páginas.
   Colores tomados del escudo parroquial.
   ------------------------------------------------------------ */
:root {
  --crema: #FAF6EE;
  --papel: #FFFFFF;
  --granate: #A8161C;
  --granate-oscuro: #7E1015;
  --oro: #B08A3E;
  --tinta: #2B2522;
  --gris: #6B625C;
  --linea: #E8DFD0;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: Georgia, "Iowan Old Style", "Palatino Linotype", "Times New Roman", serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 4.5rem; }
body {
  font-family: var(--serif);
  background: var(--crema);
  color: var(--tinta);
  font-size: 1.15rem;           /* letra grande: pensado para todas las edades */
  line-height: 1.65;
}
a { color: var(--granate); }
a:hover { color: var(--granate-oscuro); }
img { max-width: 100%; }

/* ---------- Cabecera y menú ---------- */
.cabecera {
  position: sticky; top: 0; z-index: 10;
  background: var(--papel);
  border-bottom: 3px solid var(--granate);
  box-shadow: 0 2px 12px rgba(43, 37, 34, .06);
}
.cabecera .contenedor {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding-top: .5rem; padding-bottom: .5rem;
}
.marca { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--tinta); }
.marca img { width: 2.8rem; height: 2.8rem; object-fit: contain; }
.marca span { font-size: 1.05rem; line-height: 1.2; }
.marca small { display: block; font-family: var(--sans); font-size: .75rem; color: var(--gris); }
nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: .2rem .9rem; font-family: var(--sans); font-size: .95rem; }
nav a { text-decoration: none; color: var(--tinta); padding: .3rem 0; }
nav a:hover { color: var(--granate); }
.menu-boton {
  display: none; font-family: var(--sans); font-size: 1rem;
  background: none; border: 2px solid var(--granate); color: var(--granate);
  border-radius: 6px; padding: .35rem .8rem; cursor: pointer;
}

/* ---------- Estructura ---------- */
.contenedor { max-width: 70rem; margin: 0 auto; padding-left: 1.25rem; padding-right: 1.25rem; }
section { padding: 3.5rem 0; }
section:nth-of-type(even) { background: var(--papel); }
h1, h2, h3 { font-weight: normal; line-height: 1.25; }
h2 { color: var(--granate); font-size: clamp(1.6rem, 4vw, 2.1rem); margin-bottom: .4rem; }
h3 { font-size: 1.3rem; margin-bottom: .4rem; }
.antetitulo {
  font-family: var(--sans); font-size: .8rem; letter-spacing: .18em;
  text-transform: uppercase; color: var(--oro); margin-bottom: .3rem;
}
.entradilla { color: var(--gris); max-width: 42rem; margin-bottom: 2rem; }
.rejilla { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.tarjeta {
  background: var(--papel); border: 1px solid var(--linea);
  border-top: 4px solid var(--granate); border-radius: 6px; padding: 1.5rem;
}
section:nth-of-type(even) .tarjeta { background: var(--crema); }
.nota {
  margin-top: 1.5rem; padding: 1rem 1.25rem; border-left: 4px solid var(--oro);
  background: rgba(176, 138, 62, .08); font-size: 1.05rem;
}

/* ---------- Portada ---------- */
.portada { text-align: center; padding: 4rem 0 3.5rem; }
.portada img { width: 10rem; height: 10rem; object-fit: contain; margin-bottom: 1.25rem; }
.portada h1 { color: var(--granate); font-size: clamp(2rem, 6vw, 2.8rem); }
.portada .lugar { color: var(--gris); margin-top: .2rem; }
.portada .bienvenida { max-width: 36rem; margin: 1.5rem auto 0; }
.accesos { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; margin-top: 2rem; }
.boton {
  display: inline-block; font-family: var(--sans); font-size: 1.05rem; text-decoration: none;
  padding: .75rem 1.4rem; border-radius: 6px; border: 2px solid var(--granate);
  color: var(--granate); background: var(--papel);
}
.boton:hover { background: var(--granate); color: #fff; }
.boton.principal { background: var(--granate); color: #fff; }
.boton.principal:hover { background: var(--granate-oscuro); border-color: var(--granate-oscuro); }

/* ---------- Horarios ---------- */
.horario { list-style: none; }
.horario li { display: flex; justify-content: space-between; gap: 1rem; padding: .45rem 0; border-bottom: 1px dotted var(--linea); }
.horario li:last-child { border-bottom: 0; }
.horario .dia { color: var(--gris); }
.horario .dia { flex: 1 1 auto; }
.horario .hora { font-family: var(--sans); font-weight: 600; text-align: right; flex: 0 1 auto; }

/* ---------- Grupos ---------- */
.grupo ul { list-style: none; margin-top: .3rem; }
.grupo li { padding: .2rem 0 .2rem 1.4rem; position: relative; }
.grupo li::before { content: "✦"; color: var(--oro); position: absolute; left: 0; top: .2rem; font-size: .9rem; }
.grupo small { color: var(--gris); }

/* ---------- Redes ---------- */
.redes a.tarjeta { display: block; text-decoration: none; color: var(--tinta); }
.redes a.tarjeta:hover { border-color: var(--granate); box-shadow: 0 6px 20px rgba(43, 37, 34, .08); }
.redes .red { font-family: var(--sans); font-size: .85rem; color: var(--oro); text-transform: uppercase; letter-spacing: .12em; }

/* ---------- Contacto ---------- */
.contacto dl { font-size: 1.05rem; }
.contacto dt { font-family: var(--sans); font-size: .85rem; color: var(--gris); margin-top: .7rem; }
.contacto dd a { text-decoration: none; font-weight: 600; }

/* ---------- Pie ---------- */
footer {
  background: var(--tinta); color: #E9E2D8; font-family: var(--sans);
  font-size: .9rem; padding: 2rem 0; text-align: center;
}
footer a { color: #fff; }
footer p + p { margin-top: .4rem; }

/* ---------- Páginas de texto (legales) ---------- */
.texto { max-width: 46rem; padding: 3rem 1.25rem; margin: 0 auto; }
.texto h1 { color: var(--granate); font-size: 2rem; margin-bottom: 1.5rem; }
.texto h2 { font-size: 1.35rem; margin: 1.75rem 0 .4rem; }
.texto p, .texto li { margin-bottom: .6rem; }
.texto ul { padding-left: 1.4rem; }

/* ---------- Móvil ---------- */
@media (max-width: 760px) {
  .menu-boton { display: block; }
  nav { display: none; width: 100%; }
  nav.abierto { display: block; }
  .cabecera .contenedor { flex-wrap: wrap; }
  nav ul { flex-direction: column; gap: 0; padding: .5rem 0; }
  nav a { display: block; padding: .6rem 0; border-top: 1px solid var(--linea); font-size: 1.1rem; }
  section { padding: 2.5rem 0; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ---------- Fotos en tarjetas ---------- */
.tarjeta .foto { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: .4rem; margin-bottom: 1rem; }
