/* Carrusel de trabajos realizados (clases únicas) */
.trabajos-carrusel {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 100%;
  margin: 0 auto;
  gap: 0;
}
.trabajos-carrusel-viewport {
  overflow: hidden;
  width: 90vw;
  max-width: 1100px;
  display: flex;
  justify-content: center;
}
.trabajos-carrusel-inner {
  display: flex;
  width: 100%;
  gap: 20px;
  justify-content: center;
}
.trabajos-carrusel-item {
  min-width: 300px;
  max-width: 340px;
  flex: 0 0 auto;
  background: #fff;
  border-radius: 15px;
  box-shadow: 0px 4px 10px rgba(0,0,0,0.1);
  overflow: hidden;
  transition: transform 0.3s;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 10px;
}
.trabajos-carrusel-item img {
  width: 100%;
  height: 290px;
  object-fit: cover;
  display: block;
}
.trabajos-carrusel-flecha {
  position: relative;
  background: rgba(0,0,0,0.2);
  border: none;
  color: #fff;
  font-size: 1.5rem;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  border-radius: 50%;
  transition: background 0.3s;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  margin: 0 10px;
@media (max-width: 900px) {
  .trabajos-carrusel-flecha {
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    font-size: 1.2rem;
    margin: 0 5px;
  }
}
}
.trabajos-carrusel-flecha:hover {
  background: rgba(0,0,0,0.5);
}

/* Modal para imagen maximizada */
.modal-trabajos-carrusel {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0; top: 0; right: 0; bottom: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.8);
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
.modal-trabajos-carrusel img {
  max-width: 90vw;
  max-height: 80vh;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.4);
}
.trabajos-carrusel-cerrar-modal {
  color: #fff;
  font-size: 2.5rem;
  position: absolute;
  top: 30px;
  right: 40px;
  cursor: pointer;
  z-index: 10001;
  font-weight: bold;
  transition: color 0.2s;
}
.trabajos-carrusel-cerrar-modal:hover {
  color: #6CAB5E;
}
