.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.header-titulo {
  text-align: center;
  margin-bottom: 60px;
}

.header-titulo h1 {
  font-size: 4rem;
  font-weight: 700;
  color: #000;
  margin-bottom: 30px;
  letter-spacing: -2px;
}

.header-titulo p {
  font-size: 1rem;
  color: #333;
  max-width: 650px;
  margin: 0 auto;
  line-height: 1.6;
  font-weight: 400;
}

.alphabet-filter {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 50px 0;
  padding: 0 20px;
}

.alphabet-letter {
  background: none;
  border: none;
  font-size: 1rem;
  font-weight: 400;
  color: #333;
  cursor: pointer;
  padding: 8px 4px;
  transition: all 0.2s ease;
  min-width: auto;
  text-align: center;
  font-family: inherit;
}

.alphabet-letter:hover:not(.disabled) {
  color: #000;
  font-weight: 500;
}

/* Botón activo de letra del abecedario */
.alphabet-letter.active {
  color: #000;
  font-weight: 600;
}

.alphabet-letter.disabled {
  color: #ccc;
  cursor: not-allowed;
}

.alphabet-letter.disabled:hover {
  color: #ccc;
  font-weight: 400;
}

.glossary-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-top: 50px;
}

.glossary-column {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.glossary-item {
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
  transition: none;
  border-bottom: 1px solid #e5e5e5;
  padding: 0;
}

.glossary-item:last-child {
  border-bottom: none;
}

.glossary-item:hover {
  box-shadow: none;
}

.glossary-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  cursor: pointer;
  background: transparent;
  border: none;
  width: 100%;
  text-align: left;
}

.glossary-title {
  font-size: 1rem;
  font-weight: 400;
  color: #333;
  margin: 0;
  transition: color 0.2s ease;
}

/* Título del glosario cuando está expandido - CON COLOR */
.glossary-item.expanded .glossary-title {
  color: #991915;
  font-weight: 500;
}

.glossary-icon {
  font-size: 1.2rem;
  color: #333;
  transition: color 0.2s ease;
  font-weight: 300;
  line-height: 1;
}

/* Icono cuando está expandido - también con color */
.glossary-item.expanded .glossary-icon {
  color: #991915;
  transform: none;
}

.glossary-content-item {
  padding: 0 0 20px 0;
  color: #333;
  font-size: 0.9rem;
  line-height: 1.5;
  display: none;
  margin-top: -10px;
}

.glossary-item.expanded .glossary-content-item {
  display: block;
}

.glossary-content-item p {
  margin: 0;
  text-align: left;
}

.no-results {
  text-align: center;
  padding: 60px 20px;
  color: #000000;
  font-size: 1.1rem;
  grid-column: 1 / -1;
}

.no-results h3 {
  margin-bottom: 10px;
  color: #333;
}

@media (max-width: 768px) {
  .container {
    padding: 40px 15px;
  }

  .header-titulo h1 {
    font-size: 2.8rem;
  }

  .header-titulo {
    margin-bottom: 40px;
  }

  .alphabet-filter {
    gap: 6px;
    margin: 40px 0;
  }

  .alphabet-letter {
    font-size: 0.9rem;
    padding: 6px 3px;
  }

  .glossary-content {
    grid-template-columns: 1fr;
    gap: 40px;
    margin-top: 40px;
  }

  .glossary-header {
    padding: 16px 0;
  }

  .glossary-content-item {
    padding: 0 0 16px 0;
    text-align: justify;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 30px 15px;
  }

  .header-titulo h1 {
    font-size: 2.2rem;
  }

  .alphabet-filter {
    gap: 4px;
    margin: 30px 0;
  }

  .alphabet-letter {
    font-size: 0.85rem;
    padding: 5px 2px;
  }

  .glossary-title {
    font-size: 0.95rem;
  }

  .glossary-content-item {
    font-size: 0.85rem;
  }
}
