.carusel-wrapper {
  position: relative;
  width: 90%;
  max-width: 1200px;
  margin: auto;
  overflow: hidden;
  
  border-radius: 0rem;
  box-shadow: 0 0 20px rgba(0, 255, 255, 0);
  padding: 20px 40px;
  display: flex;
  align-items: center;
}

.carusel-viewport {
  overflow: hidden;
  width: 100%;
}

.carusel-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
  gap: 20px;
}

.carusel-card {
  min-width: calc(33.333% - 13.3px);
  height: 500px;
  position: relative;
  border-radius: 1rem;
  flex-shrink: 0;
  overflow: hidden;
  transition: transform 0.3s ease, z-index 0.3s;
}

.carusel-card:hover {
  z-index: 2;
}

.carusel-before {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform 0.3s ease;
  z-index: 0;
}

.carusel-card:hover .carusel-before {
  transform: scale(1.1);
}

.carusel-overlay {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  background: rgba(0, 0, 0, 0.6);
  padding: 1rem;
  border-radius: 0.5rem;
  color: white;
  z-index: 1;
}

.carusel-overlay span {
  font-weight: bold;
  font-size: 1.2rem;
  display: block;
  margin-bottom: 0.5rem;
}

.carusel-overlay h3 {
  font-size: 1.4rem;
  font-weight: bold;
  margin: 0;
}

.carusel-overlay p {
  font-size: 1rem;
  margin-top: 0.5rem;
  color: #ccc;
}

.carusel-btn {
  width: 50px;
  height: 50px;
  background: linear-gradient(145deg, #00ffff00, #00777700);
  border: none;
  border-radius: 50%;
  color: #00ffff;
  font-size: 1.8rem;
  cursor: pointer;
  box-shadow: 0 0 15px rgba(0, 255, 255, 0);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}

.carusel-btn:hover {
  background: linear-gradient(145deg, #00ffff00, #00777702);
  transform: scale(1.1);
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.6);
}


.carusel-btn:hover {
  background: rgba(255, 255, 255, 0);
}

.carusel-btn.izquierda {
  margin-right: 20px;
}

.carusel-btn.derecha {
  margin-left: 20px;
}

/* Responsive: 2 tarjetas en tablet */
@media screen and (max-width: 1024px) {
  .carusel-card {
    min-width: calc(50% - 10px);
  }
}

/* Responsive: 1 tarjeta en móvil */
@media screen and (max-width: 600px) {
  .carusel-card {
    min-width: 100%;
  }

  .carusel-wrapper {
    padding: 10px;
  }

  .carusel-btn {
    font-size: 1.5rem;
    padding: 0.4rem 0.7rem;
  }
}
.carusel-card .abrir-modal {
  margin-top: 0.5rem;
  background: linear-gradient(90deg, #00ffff, #00baba);
  border: none;
  color: #000;
  padding: 10px 16px;
  font-weight: bold;
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.3s ease, transform 0.2s ease;
}

.carusel-card .abrir-modal:hover {
  background: linear-gradient(90deg, #00baba, #00ffff);
  transform: scale(1.05);
}

/* Modal */
.modal-proyecto {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.75);
  justify-content: center;
  align-items: center;
}

.modal-contenido {
  background: #111;
  color: #fff;
  padding: 2rem;
  border-radius: 12px;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 0 25px rgba(0, 255, 255, 0.4);
  position: relative;
  animation: fadeIn 0.3s ease-in-out;
}

.modal-contenido h3 {
  margin-top: 0;
  font-size: 1.8rem;
  color: #00ffff;
}

.modal-contenido p {
  font-size: 1.1rem;
  line-height: 1.5;
  margin-top: 1rem;
  color: #ccc;
}

.cerrar-modal {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 1.8rem;
  cursor: pointer;
  color: #fff;
}
.modal-detalle {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(5, 5, 5, 0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-contenido {
  background: #111;
  padding: 2rem;
  border-radius: 1rem;
  max-width: 600px;
  color: white;
  box-shadow: 0 0 20px cyan;
  position: relative;
}

.modal-contenido h2 {
  margin-top: 0;
  font-size: 1.8rem;
}

.modal-contenido p {
  font-size: 1.2rem;
  margin-top: 1rem;
}

.cerrar {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 1.5rem;
  cursor: pointer;
  color: cyan;
}

.hidden {
  display: none;
}

.carusel-boton {
  margin-top: 10px;
  background: cyan;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
  color: black;
}
