/* --- ESTILOS PARA LOS BOTONES DE PROYECTOS --- */
.botones-proyectos {
  text-align: center;
  margin-bottom: 40px;
  padding: 20px 0;
  background: linear-gradient(135deg, #1a2332 0%, #4b78a2 100%);
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(102, 234, 142, 0.3);
  margin: 20px 50px 40px 50px;
}

.boton-proyecto {
  display: inline-block;
  padding: 5px;
  margin: 8px 12px;
  background: linear-gradient(145deg, #243142, #00b050);
  text-decoration: none;
  border-radius: 30px;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.5px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  border: 2px solid transparent;
  box-shadow:
    0 4px 15px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  text-transform: uppercase;
  width: 100px;
  height: 100px;
  animation: slideInUp 0.6s ease-out;
}

.boton-proyecto img {
  border-radius: 50%;
}

/* Efecto hover */
.boton-proyecto:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow:
    0 8px 25px rgba(0, 0, 0, 0.15),
    0 4px 10px rgba(128, 234, 102, 0.2);
}

.boton-proyecto:active {
  transform: translateY(-1px) scale(1.02);
  transition: all 0.1s ease;
}

/* Activo */
.boton-proyecto.active {
  background: linear-gradient(135deg, #66aaea 0%, #4ba27e 100%);
  box-shadow:
    0 6px 20px rgba(101, 240, 67, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  position: relative;
}

.boton-proyecto.active::after {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, #66aaea, #4ba27e, #71ea66);
  border-radius: 32px;
  z-index: -1;
  opacity: 0.7;
  animation: borderGlow 2s linear infinite;
}

/* Accesibilidad */
.boton-proyecto:focus {
  outline: none;
  box-shadow:
    0 4px 15px rgba(0, 0, 0, 0.1),
    0 0 0 3px rgba(102, 126, 234, 0.4);
}

/* Animaciones */
@keyframes borderGlow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- CONTENEDOR DE PROYECTOS --- */
.carrusel_proyectos {
  position: relative;
  height: auto;
  overflow: visible;
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  margin: 50px;
  padding: 20px;
}

.proyecto {
  position: relative;
  width: 100%;
  padding: 0;
  opacity: 0;
  transition:
    opacity 0.5s ease-in-out,
    visibility 0.5s ease-in-out;
  display: none;
}

.proyecto.active {
  opacity: 1;
  visibility: visible;
  display: block;
}

/* --- AJUSTES DE CONTENIDO --- */
.Proyectos {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: contain;
}

.proyecto p {
  line-height: 1.6;
  margin-bottom: 20px;
}

p {
  text-align: justify;
}

/* --- TÍTULO PREGUNTA (Ecofix) --- */
.heading_main_pregunta h2 {
  font-size: 40px;
  font-weight: 700;
  margin: 0 0 30px 0;
  width: 100%;
  color: var(--azul-oscuro);
  font-family: "Raleway", sans-serif;
}

.heading_main_pregunta p {
  text-align: center;
  font-size: 30px;
}

/* --- RESPONSIVE --- */
@media (max-width: 1445px) {
  .botones-proyectos {
    margin: 20px 20px 30px 20px;
    padding: 15px 0;
  }

  .boton-proyecto img {
    width: 70px;
    height: 70px;
  }
}

@media (max-width: 768px) {
  .inscribir {
    display: block;
    margin: 10px auto;
    width: 90%;
    max-width: 280px;
    padding: 16px 24px;
    font-size: 16px;
    text-align: center;
  }

  .carrusel_proyectos {
    margin: 20px;
    padding: 15px;
  }

  .botones-proyectos {
    margin: 10px 20px 30px 20px;
    padding: 15px 10px;
    border-radius: 12px;
  }

  .boton-proyecto {
    display: block;
    margin: 10px auto;
    width: 80%;
    max-width: 250px;
    padding: 16px 20px;
    font-size: 16px;
  }

  .Proyectos {
    margin: 0 auto;
    display: block;
  }

  .proyecto {
    margin: 20px;
  }
}
