:root {
  --bg: #f7f9fc;
  --primary: #1f3a5f;
  --secondary: #4a6fa5;
  --accent: #eaeff6;
  --text: #1a1a1a;
  --link: #1f3a5f;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Poppins', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  scroll-behavior: smooth;
}

header {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  padding: 3rem 2rem 2rem;
  text-align: center;
}

header h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: 0.15em;
  margin-bottom: 1rem;
  font-weight: 700;
}

nav {
  background: white;
  border-bottom: 1px solid #e0e0e0;
}

nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  list-style: none;
}

nav li { margin: 0.5rem 1rem; }

nav a {
  text-decoration: none;
  color: var(--primary);
  font-weight: 600;
  transition: color 0.3s;
}

nav a:hover,
nav a:focus { color: var(--secondary); outline: none; }

main {
  max-width: 1100px;
  margin: 3rem auto;
  padding: 0 1.5rem;
}

section {
  margin-bottom: 3rem;
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

section h2 {
  color: var(--primary);
  margin-bottom: 1rem;
  font-size: 1.6rem;
  text-align: center;
}

section p { margin-bottom: 1rem; }

.valores,
.centros,
.profesores {
  display: grid;
  gap: 1.5rem;
}

.valores { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.valor,
.centro,
.profesor {
  background: var(--accent);
  padding: 1.5rem;
  border-radius: 12px;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}

.centro:hover,
.profesor:hover,
.valor:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.15);
}

.centro a,
.profesor a {
  text-decoration: none;
  color: var(--link);
  font-weight: 600;
  display: block;
  margin-top: 0.5rem;
}

.centros,
.profesores { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }

footer {
  text-align: center;
  padding: 2rem 1rem;
  background: #ffffff;
  border-top: 1px solid #e0e0e0;
  font-size: 0.9rem;
  color: #555;
}

@media (max-width: 600px) {
  nav ul { flex-direction: column; align-items: center; }
}