html, body {
  height: 100%;   /* asegura altura completa */
  margin: 0;
  padding: 0;
}

body {
  font-family: Arial, sans-serif;
  line-height: 0,01;
  /* Fondo degradado de blanco a rosa pastel en toda la página */
   background-color: #000000; 
  min-height: 100dvh; /* asegura cubrir toda la pantalla */
  color: #333;
  display: flex;
  flex-direction: column;
}

 @keyframes slideUp {
      from {
        transform: translateY(100px);
        opacity: 0;
      }
      to {
        transform: translateY(0);
        opacity: 1;
      }
    }

/* HEADER */
header {
  text-align: center;
  background: transparent; /* transparente para mostrar el degradado */
  padding: 20px;
}

header img {
  width: 200px;
  border-radius: 90px;
}
/* SEPARADOR */
.separator {
    border: 0;
    height: 1px;
    background-color: #bb3a3a; 
    margin: 10px 0 40px 0;
}

/* COMPAÑEROS DE GRUPO  */

.group-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 20px;
    text-align: center;
}

/* TÍTULO */
.group-title {
    text-align: center;
    font-size: 1em;
    font-weight: bold;
    color: #c0346a;
    padding: 15px 30px;
    margin-bottom: 30px;
    border-radius: 8px;
    background-color: #000000; 
    border: 1px solid #f7727d;
}

/* CONTENEDOR DE LA CUADRÍCULA */
.group-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); 
    gap: 20px;
}

/* ESTILO TARJETAS */
.group-card {
    background-color: rgb(0, 0, 0);
    border: 2px solid #bd658e; 
    border-radius: 12px;
    padding: 20px 10px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05); 
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

/* FOTO */
.group-photo-placeholder {
    width: 100px;
    height: 100px;
    background-color: #ccc;
    border-radius: 50%;
    margin-bottom: 15px;
}

/* NOMBRE Y CARRERA */
.group-name {
    font-size: 1.2em;
    font-weight: bold;
    color: #4848a8; 
    margin: 5px 0 2px 0;
}

.group-career {
    font-size: 0.9em;
    color: #8d6db2; 
    margin: 0 0 15px 0;
}

/* BOTÓN "VER PERFIL" */
.profile-button {
    display: inline-block;
    text-decoration: none;
    font-weight: bold;
    color: #3f90f2; 
    border: 2px solid #aa1849; 
    padding: 8px 20px;
    border-radius: 20px;
    transition: background-color 0.3s, color 0.3s;
}

/* NAV */
nav {
  background: transparent;
  padding: 15px;
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

nav a {
  text-decoration: none;
  color: #b866ae;
  font-weight: bold;
  border: 1px solid #f1b4cb;
  padding: 6px 14px;
  border-radius: 20px;
  transition: all 0.3s ease;
  background: transparent;
}

nav a:hover {
  background: rgba(109, 18, 74, 0.2);
}

/* MAIN */
main {
  padding: 20px;
}

/* MATERIAS */
.materias-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* siempre 2 columnas */
  gap: 30px;
  max-width: 800px;   /* límite de ancho */
  margin: 0 auto;      /* centra el grid */
  padding: 40px 20px;  /* espacio interno */
}

.materias-section {
  background: #000000;
   border: 1px solid #af2158;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.materias-section h3 {
  margin-top: 0;
  text-align: center;
  color: #f8ddea;
}

/* LISTAS */
ul.materias {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px 12px;
  list-style: '✿ ';
  padding-left: 10px;
  margin: 0;
}

ul.materias li {
  padding-left: 6px;
}

/* FOOTER */
footer {
  text-align: center;
  background: transparent; /* también transparente */
  padding: 15px;
  margin-top: 5px;
  font-size: 0.7em;
  color: #660d2f; /* texto blanco para contraste */
}