.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
}

.education {
  max-width: 1200px;
  width: 90%;
  margin: 60px auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

/* Categorías */
.edu-category {
  max-width: 750px;
  width: 100%;
  margin: 0 auto;
}

.edu-category-title {
  font-family: 'MontserratB', sans-serif;
  font-size: 20px;
  color: #cccccc;
  margin-bottom: 12px;
  margin-top: 10px;
  padding-left: 4px;
}

/* Item acordeón */
.edu-item {
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  margin-bottom: 10px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: border-color 0.3s ease;
}

.edu-item:hover {
  border-color: #cccccc;
}

/* Pregunta (cabecera clickeable) */
.edu-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  cursor: pointer;
  user-select: none;
}

.edu-question span {
  font-family: 'MontserratM', sans-serif;
  font-size: 15px;
  color: #cccccc;
}

/* Flecha */
.edu-arrow {
  width: 18px;
  height: 18px;
  filter: brightness(0) invert(1);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.edu-item.active .edu-arrow {
  transform: rotate(180deg);
}

/* Respuesta oculta por defecto */
.edu-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
  padding: 0 20px;
}

.edu-answer p {
  font-family: 'MontserratR', sans-serif;
  font-size: 14px;
  color: #cccccc;
  line-height: 1.7;
  padding-bottom: 16px;
}

/* Respuesta visible cuando está activo */
.edu-item.active .edu-answer {
  max-height: 300px;
  padding-top: 4px;
}

/* Línea separadora entre pregunta y respuesta */
.edu-item.active .edu-question {
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

/* Encabezado de Education */
.edu-header {
  max-width: 750px;
  width: 100%;
  margin: 0 auto 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.edu-title-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.edu-title {
  font-family: 'MontserratR', sans-serif;
  text-align: center;
  font-size: 16px;
  color: #cccccc;
  line-height: 1.6;
  margin-top: -10px;
  max-width: 700px;
}

.edu-main-title {
  font-family: 'MontserratB', sans-serif;
  font-size: 28px;
  color: #cccccc;
  margin-bottom: 10px;
  text-align: center;
}

/* Botón lupa */
.edu-search-btn {
  background: none;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 10px;
  padding: 8px 14px;
  cursor: pointer;
  transition: border-color 0.3s, background 0.3s;
  flex-shrink: 0;
  align-self: center;
  display: flex;
  align-items: center;
  gap: 8px;
}

.edu-search-label {
  font-family: 'MontserratR', sans-serif;
  font-size: 13px;
  color: #cccccc;
}

.edu-search-btn:hover {
  border-color: #cccccc;
  background: rgba(212,175,55,0.08);
}

.edu-search-icon {
  width: 20px;
  height: 20px;
  filter: brightness(0) invert(1);
}

/* Caja de búsqueda oculta por defecto */
.edu-search-box {
  display: none;
  animation: fadeIn 0.3s ease;
}

.edu-search-box.visible {
  display: block;
}

.edu-search-box input {
  width: 100%;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 10px;
  padding: 10px 16px;
  font-family: 'MontserratR', sans-serif;
  font-size: 14px;
  color: #cccccc;
  outline: none;
  transition: border-color 0.3s;
}

.edu-search-box input:focus {
  border-color: #cccccc;
}

.edu-search-box input::placeholder {
  color: rgba(255,255,255,0.3);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}