/* ===== Base ===== */
body {
  font-family: 'Montserrat', sans-serif;
  margin: 0;
  padding: 0;
  background-color: #e2e2e2;
  color: #1a1833;
}

/* ===== Header / Subnav ===== */
.topbar {
  background-color: #1a1833;
  text-align: center;
  padding: 1rem 0;
}

.subnav {
  background-color: #77767c;
  padding: 0.5rem 0;
}
.subnav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.subnav a {
  text-decoration: none;
  color: #1a1833;
  font-weight: 600;
  padding: 0.4rem 0.8rem;
  border-radius: 8px;
  transition: background 0.3s, color 0.3s;
}
.subnav a:hover {
  background-color: #1a1833;
  color: #e2e2e2;
}

/* ===== Presentación ===== */
.presentacion {
  background-color: #1a1833;
  padding: 2rem 0;
  display: flex;
  justify-content: center;
}
.presentacion-box {
  background-color: #e2e2e2;
  border: 2px solid #ccc7ff;
  border-radius: 15px;
  padding: 2rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  max-width: 800px;
}
.perfil {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
}
.presentacion-texto h2 {
  margin: 0;
  font-size: 1.5rem;
  color: #1a1833;
  font-weight: 800;
}
.presentacion-texto p {
  margin: 0.3rem 0 0;
  color: #1a1833;
}

/* ===== Foja académica ===== */
.foja {
  text-align: center;
  padding: 3rem 1rem;
}
.foja h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: #1a1833;
}
.niveles {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
}
.nivel {
  color: #e2e2e2;
  padding: 1.5rem;
  border-radius: 12px;
  width: 280px;
}
.nivel h3 {
  margin-top: 0;
  margin-bottom: 1rem;
  border-bottom: 1px solid #e2e2e2;
  display: inline-block;
}
/* colores tarjetas */
.nivel:nth-child(1) { background-color: #1a1833; }
.nivel:nth-child(2) { background-color: #1a1833; }
.nivel:nth-child(3) { background-color: #1a1833; }

/* ===== Equipo / Grupo VN02 ===== */
.equipo{
  padding: 2.5rem 1rem 3rem;
  text-align: center;
}
.equipo h2{
  font-size: 2rem;
  margin: 0 0 1.75rem;
  color: #1a1833;
}
.equipo-grid{
  width: min(1200px, 100% - 2rem);
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

/* pastillas */
.miembro{
  min-width: 0;
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .5rem;
  border-radius: 999px;
  background: #ffe6ff;
  border: 2px solid #e2e2e2;
  box-shadow: 0 10px 24px rgba(26,24,51,.06); /* #1a1833 con alpha */
  text-align: left;
}
.miembro-foto{
  width: 72px; height: 72px; flex: 0 0 72px;
  border-radius: 999px;
  object-fit: cover;
}
.miembro-datos{
  width: 100%;
}
.miembro-nombre{
  display: inline-block;
  margin: 0;
  font-size: 0.95rem;
  color: #1a1833;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
}

/* acentos por color */
.pill{ border-width: 2px; }
.pill-cyan{    border-color: #ccc7ff; }
.pill-lime{    border-color: #77767c; }
.pill-orange{  border-color: #1a1833; }
.pill-magenta{ border-color: #ffe6ff; }

/* responsive */
@media (max-width: 1280px){
  .equipo-grid{ grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1024px){
  .equipo-grid{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px){
  .equipo-grid{ grid-template-columns: 1fr; }
  .miembro{ border-radius: 16px; }
}

/* ===== Footer ===== */
.footer {
  background-color: #1a1833;
  color: #e2e2e2;
  padding: 1.25rem 1rem;
  text-align: center;
  font-size: 0.8rem;
}
.footer p{
  max-width: 1100px;
  margin: 0 auto .75rem;
}
.footer .logo{
  display: block;
  max-height: 90px;
  width: auto;
  margin: .5rem auto 0;
}
