/* Estilos para el acordeón de experiencias */
.experience-plan-container {
  max-width: 100%;
  margin: 20px 0;
  font-family: "Staatliches", sans-serif;
}

.experience-plan-accordion {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.experience-plan-item {
  border-bottom: 1px solid #e5e7eb;
  /* Animación de entrada suave */
  animation: fadeIn 0.3s ease-in-out;
}

.experience-plan-item:last-child {
  border-bottom: none;
}

.experience-plan-header {
  display: flex;
  align-items: center; /* Centrado vertical del header completo */
  justify-content: space-between;
  padding: 18px 20px; /* Aumenté el padding vertical */
  background: #f9fafb;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
  min-height: 68px; /* Aumenté la altura mínima */
}

.experience-plan-header:hover {
  background: #f3f4f6;
}

.experience-plan-item.active .experience-plan-header {
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
}

.plan-header-content {
  display: flex;
  align-items: center; /* Centrado vertical del contenido */
  gap: 15px; /* Aumenté el gap */
  flex: 1;
  height: 100%; /* Ocupa toda la altura del header */
}

.plan-icon {
  display: flex;
  align-items: center; /* Centrado vertical del icono */
  justify-content: center; /* Centrado horizontal del icono */
  width: 42px; /* Aumenté el tamaño del contenedor */
  height: 42px; /* Aumenté el tamaño del contenedor */
  border-radius: 8px; /* Aumenté el border-radius proporcionalmente */
  background: #f3f4f6;
  flex-shrink: 0; /* Evita que el contenedor se reduzca */
}

.plan-icon img {
  width: 28px; /* Aumenté el tamaño de la imagen */
  height: 28px; /* Aumenté el tamaño de la imagen */
  object-fit: contain;
  display: block; /* Elimina espacios en blanco debajo de la imagen */
  vertical-align: middle; /* Alineación vertical adicional */
}

.plan-title-wrapper {
  display: flex;
  align-items: center; /* Centrado vertical del wrapper */
  height: 42px; /* Misma altura que el icono */
  flex: 1;
}

.plan-title {
  margin: 0;
  padding: 0;
  font-size: 18px; /* Aumenté el tamaño de fuente */
  font-weight: 600;
  color: #000;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.2; /* Altura de línea controlada */
  display: block; /* Cambiar a block para mejor control */
}

.plan-toggle {
  display: flex;
  align-items: center; /* Centrado vertical del toggle */
  justify-content: center; /* Centrado horizontal del toggle */
  width: 28px; /* Aumenté el tamaño del toggle */
  height: 28px; /* Aumenté el tamaño del toggle */
  color: #6b7280;
  transition: transform 0.3s ease;
  flex-shrink: 0; /* Evita que se reduzca */
}

.plan-toggle svg {
  width: 20px; /* Tamaño del SVG del toggle */
  height: 20px;
}

.experience-plan-item.active .plan-toggle {
  transform: rotate(180deg);
}

.experience-plan-content {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.3s ease, opacity 0.3s ease;
}

.experience-plan-item.active .experience-plan-content {
  max-height: 1000px;
  opacity: 1;
}

.plan-content-inner {
  padding: 20px;
  background: #ffffff;
  transform: translateY(-10px);
  transition: transform 0.3s ease;
}

.experience-plan-item.active .plan-content-inner {
  transform: translateY(0);
}

.plan-description {
  color: #000;
  font-family: "Roboto", sans-serif;
  line-height: 1.6;
}

.plan-description p {
  margin: 0 0 12px 0;
}

.plan-description p:last-child {
  margin-bottom: 0;
}

.plan-description ul,
.plan-description ol {
  margin: 12px 0;
  padding-left: 20px;
}

.plan-description li {
  margin-bottom: 6px;
}

/* Estados de carga */
.experience-plan-container.loading {
  opacity: 0.7;
  pointer-events: none;
}

.experience-plan-container.loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid #f3f3f3;
  border-top: 2px solid #6b7280;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* Responsive */
@media (max-width: 768px) {
  .experience-plan-header {
    padding: 16px; /* Aumenté el padding en móvil */
    min-height: 60px; /* Aumenté la altura mínima en móvil */
  }

  .plan-content-inner {
    padding: 16px;
  }

  .plan-title {
    font-size: 16px; /* Aumenté el tamaño en móvil */
  }

  .plan-header-content {
    gap: 12px; /* Mantuve un gap generoso en móvil */
  }

  .plan-icon {
    width: 36px; /* Aumenté el tamaño en móvil */
    height: 36px;
  }

  .plan-icon img {
    width: 24px; /* Aumenté el tamaño de la imagen en móvil */
    height: 24px;
  }

  .plan-title-wrapper {
    height: 36px; /* Ajustar altura en móvil para coincidir con el icono */
  }

  .plan-toggle {
    width: 26px; /* Aumenté el toggle en móvil */
    height: 26px;
  }

  .plan-toggle svg {
    width: 18px;
    height: 18px;
  }
}

/* Animaciones simples y suaves */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
