/* FUENTES */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@600&family=Roboto:wght@400;500&display=swap');

/* VARIABLES DE COLOR */
:root {
  --color-primary: #1f1f2e;
  --color-secondary: #ffffff;
  --color-accent: #775fce;
  --violeta-principal: #876de6;
  --nivel-1: #dfbeff;
  --nivel-2: #f9b2ff;
  --nivel-3: #ffb2d5;
  --nivel-4: #ffc3ce;
  --texto: #333;
  --blanco: #ffffff;
  --shadow-light: rgba(0, 0, 0, 0.07);
  --shadow-strong: rgba(0, 0, 0, 0.1);
  --transition: 0.3s ease;
}

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

/* BODY */
body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--color-secondary);
  color: var(--texto);
  max-width: 900px;
  padding: 0;
  margin: 0 auto;
  line-height: 1.5;
}

/* HEADER / NAV */
.header-content {
  background-color: #876de6;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
  padding: 0 20px;
}

.logo img {
  height: 50px;
  filter: brightness(0) invert(1);
  transition: var(--transition);
  margin: 0;
  cursor: pointer;
}

.logo:hover img {
  transform: scale(1.05);
}

.menu-toggle {
  display: none;
}

.menu-icon {
  display: none;
  font-size: 28px;
  color: white;
  cursor: pointer;
  padding: 10px;
  z-index: 1001;
  margin: 0;
}

/* NAV LINKS */
.nav-links {
  display: flex;
  list-style: none;
  gap: 30px;
  margin: 0;
}

.nav-links a {
  color: var(--blanco);
  font-weight: 500;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  padding: 5px 0;
  font-family: 'Poppins', sans-serif;
  text-decoration: none;
}

.nav-links li {
  list-style: none;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--blanco);
  transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* Responsive Menu */
@media (max-width: 768px) {
  .menu-icon {
    display: block;
    position: absolute;
    top: 20px;
    right: 20px;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    gap: 15px;
    background-color: #876de6;
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    padding: 15px 0;
    margin: 0;
    z-index: 1000;
  }

  /* Mostrar menú cuando checkbox está marcado */
  .menu-toggle:checked ~ nav .nav-links {
    display: flex;
  }

  .nav-links li {
    padding: 10px 0;
    text-align: center;
  }
}

/* SECCIONES */
.section {
  padding: 1.5rem;
  background-color: var(--blanco);
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(126, 200, 227, 0.15);
}

/* BIOGRAFÍA */
.bio-box {
  display: flex;
  align-items: center;
  gap: 2rem;
  background-color: #d494f7;
  padding: 2rem;
}

.bio-box img {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border: 3px solid var(--violeta-principal);
  border-radius: 50%;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
  margin-bottom: 1rem;
}

.bio-box-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.bio-box h1 {
  font-size: 1.6rem;
  text-transform: lowercase;
  font-weight: 700;
  color: var(--color-primary);
}

.bio-box p {
  font-family: 'Roboto', sans-serif;
  font-size: 1rem;
  color: #000;
}

/* LISTA DE MATERIAS */
.materias-container {
  background-color: var(--blanco);
  padding: 1rem;
}

/* BLOQUES DE MATERIAS */
.bloque-año {
  background-color: var(--blanco);
  border-radius: 24px;
  padding: 2rem;
  box-shadow: 0 3px 6px var(--shadow-light), 0 10px 20px var(--shadow-strong);
  transition: box-shadow var(--transition), transform var(--transition);
  cursor: default;
}

.bloque-año:hover {
  box-shadow: 0 8px 15px var(--shadow-strong), 0 20px 40px rgba(0, 0, 0, 0.12);
  transform: translateY(-6px);
}

.bloque-año h3 {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 1.4rem;
  color: var(--color-primary);
}

.bloque-año ul {
  list-style: none;
  padding-left: 1rem;
  font-family: 'Roboto', sans-serif;
  font-weight: 400;
  font-size: 1rem;
  color: var(--texto);
}

.bloque-año li {
  padding-left: 0;
}

/* COLORES DE FONDO DE BLOQUES */
.cbc,
.nivel-1,
.nivel-2,
.nivel-3,
.nivel-4 {
  font-weight: 600;
  font-size: 1.2rem;
  padding: 5px 10px;
  border-radius: 4px;
  display: inline-block;
  color: var(--blanco);
}

.cbc {
  background-color: var(--violeta-principal);
}
.nivel-1 {
  background-color: var(--nivel-1);
}
.nivel-2 {
  background-color: var(--nivel-2);
}
.nivel-3 {
  background-color: var(--nivel-3);
}
.nivel-4 {
  background-color: var(--nivel-4);
}

.cbc, .nivel-1, .nivel-2, .nivel-3, .nivel-4 {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* SUBITEMS CON VIÑETA */
.sub {
  position: relative;
  padding-left: 1.8rem;
  margin-bottom: 0.5rem;
}

.sub::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--violeta-principal);
  font-size: 1.2rem;
  line-height: 1;
  top: 0;
}

/* TÍTULOS GENERALES */
h1, h2 {
  font-family: 'Poppins', sans-serif;
  color: var(--color-primary);
  margin-bottom: 1rem;
}

/* FOOTER */
footer {
  padding-top: 2rem;
  border-top: 1px solid var(--shadow-light);
  font-size: 0.9rem;
  color: #666;
  text-align: center;
}

/* ESTILOS PARA IMÁGENES UX - RESPONSIVE */

.uxcan {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  padding: 1rem 0;
}

.uxi {
  width: 100%;
  max-width: 440px; /* ajusta el máximo ancho según preferencia */
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  object-fit: cover;
  transition: transform 0.3s ease;
  cursor: pointer;
}

.uxi:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

/* En pantallas grandes las imágenes pueden estar lado a lado */
@media (min-width: 600px) {
  .uxi {
    width: 48%; /* dos imágenes al lado */
  }
}

/* En pantallas chicas ocupan todo el ancho */
@media (max-width: 599px) {
  .uxi {
    width: 100%;
    max-width: 100%;
  }
}
