/* =========================================================
   Estilos compartidos para páginas internas
   I.E. Santa Teresita Pijao
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&family=Source+Sans+3:wght@300;400;600&display=swap');

:root {
  --rojo:       #9b1a1a;
  --rojo-oscuro:#6e1010;
  --dorado:     #c8943a;
  --crema:      #fdf8f2;
  --gris-fondo: #f4f1ec;
  --gris-borde: #ddd5c8;
  --texto:      #2c2c2c;
  --texto-suave:#5a5248;
  --azul:       #1a5276;
  --blanco:     #ffffff;
  --radio:      10px;
  --sombra:     0 2px 16px rgba(0,0,0,0.09);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Source Sans 3', sans-serif;
  background: var(--gris-fondo);
  color: var(--texto);
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── Encabezado de página ── */
.page-header {
  background: linear-gradient(135deg, var(--rojo-oscuro) 0%, var(--rojo) 100%);
  padding: 28px 32px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-header::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 28px;
  background: var(--gris-fondo);
  clip-path: ellipse(55% 100% at 50% 100%);
}
.page-header img {
  width: 64px; height: 64px;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.3));
  margin-bottom: 10px;
}
.page-header h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--crema);
  letter-spacing: 0.5px;
  font-weight: 700;
}
.page-header p {
  color: var(--dorado);
  font-size: 0.85rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: 4px;
}

/* ── Contenedor principal ── */
.page-body {
  flex: 1;
  max-width: 900px;
  width: 95%;
  margin: 28px auto 40px;
}

/* ── Tarjeta ── */
.card {
  background: var(--blanco);
  border-radius: var(--radio);
  box-shadow: var(--sombra);
  padding: 28px 32px;
  margin-bottom: 20px;
  border: 1px solid var(--gris-borde);
}
.card h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  color: var(--rojo);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--gris-borde);
}

/* ── Texto de contenido ── */
.card p {
  font-size: 1rem;
  color: var(--texto-suave);
  text-align: justify;
  margin-bottom: 14px;
}

/* ── Lista de datos ── */
.info-list { list-style: none; }
.info-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--gris-borde);
  font-size: 0.95rem;
  color: var(--texto-suave);
}
.info-list li:last-child { border-bottom: none; }
.info-list li strong { color: var(--rojo); min-width: 130px; flex-shrink: 0; font-weight: 600; }

/* ── Lista de documentos / links ── */
.doc-list { list-style: none; }
.doc-list li {
  border-bottom: 1px solid var(--gris-borde);
}
.doc-list li:last-child { border-bottom: none; }
.doc-list li a {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--texto);
  font-size: 0.93rem;
  padding: 11px 8px;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
}
.doc-list li a::before {
  content: '📄';
  font-size: 1rem;
  flex-shrink: 0;
}
.doc-list li a:hover { background: var(--crema); color: var(--rojo); }

/* ── Footer ── */
.page-footer {
  background: var(--rojo-oscuro);
  color: rgba(255,255,255,0.7);
  text-align: center;
  padding: 14px 20px;
  font-size: 0.8rem;
  margin-top: auto;
}
.page-footer a { color: var(--dorado); text-decoration: none; }

/* ── Responsive ── */
@media (max-width: 600px) {
  .page-header { padding: 20px 16px 36px; }
  .card { padding: 20px 16px; }
  .info-list li { flex-direction: column; gap: 2px; }
  .info-list li strong { min-width: unset; }
}
