@font-face {
  font-family: Titulo;
  src: url(../Fuentes/CHICKEN/PieHeight.ttf);
}

@font-face {
  font-family: Subtitulo;
  src: url(../Fuentes/KGPerfectPenmanship.ttf);
}

@font-face {
  font-family: Texto;
  src: url(../Fuentes/RandomWednesday.ttf);
}

@font-face {
  font-family: Principal;
  src: url(../Fuentes/TheStudentsTeacher-Regular.ttf);
}

:root {
  --Principal: rgba(146, 99, 153);
  --crema: rgba(214, 208, 177);
  --lavanda: rgba(175, 142, 159);
  --morado-oscuro: rgba(117, 48, 134);
  --rojo: rgba(127, 57, 72);
  --hover: #f0b7e8;
}

body {
  background-color: var(--crema);
  color: #4a004a;
  font-family: Texto, sans-serif;
  margin: 0;
  padding: 0;
}

/* Encabezado */
.banner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  background: linear-gradient(135deg, var(--Principal), var(--lavanda));
  color: white;
  padding: 30px 20px;
  text-align: center;
  border-bottom-left-radius: 30px;
  border-bottom-right-radius: 30px;
}

.banner img {
  width: 100px;
  margin: 10px;
}

.banner-texto h1 {
  font-family: Titulo, cursive;
  font-size: 2.6em;
  margin: 0;
}

.banner-texto p {
  font-family: Subtitulo, cursive;
  font-size: 1.3em;
  margin-top: 5px;
}

/* Botón regresar */
.boton-ayuda {
  text-align: center;
  margin: 25px 0;
}

.boton-ayuda a {
  background-color: var(--rojo);
  color: white;
  padding: 14px 30px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: bold;
  box-shadow: 0 3px 6px rgba(0,0,0,0.15);
  transition: background-color 0.3s ease;
  font-family: Subtitulo, cursive;
}

.boton-ayuda a:hover {
  background-color: #a0203a;
}

/* Glosario */
.glossary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 25px;
  padding: 20px 30px 60px;
  max-width: 1200px;
  margin: auto;
}

.term-card {
  background-color: #fff8fd;
  border: 2px solid #e1bee7;
  border-radius: 16px;
  padding: 20px;
  transition: transform 0.3s ease;
}

.term-card:hover {
  transform: translateY(-4px);
}

.term-card input {
  display: none;
}

.term-card label {
  display: block;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  padding: 10px 14px;
  background-color: var(--lavanda);
  border-radius: 10px;
  transition: background-color 0.3s;
  font-family: Principal, sans-serif;
  color: white;
}

.term-card label:hover {
  background-color: var(--Principal);
}

.definition {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.5s ease, opacity 0.5s ease;
  padding: 0 10px;
  font-size: 0.95em;
  font-family: Texto, sans-serif;
}

.term-card input:checked + label + .definition {
  max-height: 600px;
  opacity: 1;
  margin-top: 10px;
  color: #222;
}

/* Footer */
footer {
  background-color: var(--Principal);
  color: white;
  text-align: center;
  padding: 20px;
  font-family: Texto, sans-serif;
  font-size: 0.9em;
  margin-top: 40px;
}

/* Responsive */
@media screen and (max-width: 600px) {
  .hero {
    flex-direction: column;
  }

  .hero img {
    width: 80px;
  }

  .glossary {
    padding: 15px;
  }
}

.categoria {
  font-family: Principal, sans-serif;
  font-size: 1.4em;
  color: var(--morado-oscuro);
  margin: 30px 10px 10px;
  padding-left: 20px;
}
