/* === ESTILOS GENERALES === */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: rgb(182, 224, 224);
  font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
  color: #222;
}

/* === ENCABEZADOS === */
h4 {
  background-color: rgb(211, 169, 224);
  width: 55%;
  margin: 2rem auto;
  font-size: 1.5rem;
  text-align: center;
  border-radius: 0.5rem;
  padding: 0.5rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* === MENÚ DE NAVEGACIÓN === */
.menu {
  background-color: rgb(216, 199, 248);
  border: solid 0.2rem rgb(110, 4, 114);
  font-size: 1rem;
  font-family: Arial, sans-serif;
  padding: 1rem;
  text-align: center;
  transition: background-color 0.3s ease;
}

.menu:hover {
  background-color: rgb(238, 92, 214);
}

/* === FOTO === */
.foto-contenedor {
  margin: 5rem auto;
  width: 250px;
  height: 250px;
  background-color: #9643d4;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 1rem;
  transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.foto-contenedor:hover {
  background-color: #efcef1;
  transform: scale(1.1);
  box-shadow: 0 0 25px rgba(226, 150, 201, 0.8);
}

.foto {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 0.5rem;
}

/* === HISTORIAL ACADÉMICO === */
.materias {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  padding: 2rem;
  flex-wrap: wrap;
}

.primeraño,
.segundoaño,
.terceraño,
.cuartoaño {
  flex: 1;
  min-width: 250px;
  height: 20rem;
  margin: 1rem;
  font-size: 1.3rem;
  text-align: center;
  border-radius: 0.7rem;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.primeraño { background-color: bisque; }
.segundoaño { background-color: rgb(91, 245, 245); }
.terceraño { background-color: aquamarine; }
.cuartoaño { background-color: burlywood; }

.primeraño:hover,
.segundoaño:hover,
.terceraño:hover,
.cuartoaño:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
}

/* === COMPAÑERAS === */
.compañeras {
  display: flex;
  justify-content: center;
  gap: 2rem;
  padding: 5rem;
  flex-wrap: wrap;
}

.Catalina,
.Iara,
.Agustina {
  width: 15%;
  min-width: 150px;
  height: 3rem;
  text-align: center;
  font-family: fantasy;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
  cursor: pointer;

}

.Catalina { background-color: rgb(207, 139, 247); }
.Iara { background-color: rgb(119, 209, 209); }
.Agustina { background-color: bisque; }

.Catalina:hover,
.Iara:hover,
.Agustina:hover {
  transform: scale(1.1);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
  background-color: rgb(238, 178, 255);
}

/* === INFORMACIÓN FINAL === */
.segundacolumnas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  padding: 2rem;
}

.infocatedra,
.uba {
  width: 45%;
  min-width: 250px;
  min-height: 12rem;        /* ahora el alto es flexible */
  margin: 0.8rem;
  font-size: 0.9rem;
  text-align: left;
  border-radius: 0.5rem;
  padding: 1.2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0.5rem;
  border: 3px solid rgb(80, 80, 80);  /* 🔹 borde visible */
  overflow: visible;
  background-clip: padding-box;
}

/* Colores base */
.infocatedra {
  background-color: rgb(20, 233, 169);   /* verde base */
}

.uba {
  background-color: rgb(185, 90, 154);   /* rosa base */
}

/* Efecto hover: movimiento + brillo */
.infocatedra:hover,
.uba:hover {
  transform: scale(1.05);                      /* agranda suavemente */
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.25);    /* sombra flotante */
  border-color: rgb(0, 0, 0);                  /* resalta el borde */
}

/* Cambios de color al pasar el mouse */
.infocatedra:hover {
  background-color: rgb(74, 245, 195);   /* verde más claro */
}

.uba:hover {
  background-color: rgb(220, 130, 190);  /* rosa más claro */
}

/* Contenedor para ubicar los bloques */
.contenedor {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

/* Ajustes internos de texto e imágenes */
.infocatedra h3,
.uba h3 {
  margin: 0 0 0.4rem 0;
  line-height: 1.2;
}

.infocatedra p,
.uba p {
  margin: 0;
  word-break: break-word;
}

.infocatedra img,
.uba img {
  max-width: 100%;
  height: auto;
  border-radius: 0.3rem;
}

/* === PIE DE PÁGINA === */
.fin {
  color: rgb(54, 7, 223);
  font-size: 0.8rem;
  margin: 1rem auto;
  text-align: center;
  font-family: Arial, sans-serif;
}