/* RESET Y BASE */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: 'Segoe UI', sans-serif;
  background-color: #1d1b17;
  color: #fff;
  line-height: 1.6;
}

/* NAVBAR */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.65);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.7rem 2rem;
  z-index: 1000;
}
.navbar .logo {
  height: 50px;
}
.navbar ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}
.navbar a {
  text-decoration: none;
  color: white;
  font-weight: 500;
}
.navbar a:hover {
  color: #00c6ff;
}
.hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: white;
  cursor: pointer;
}

/* HEADER Y VIDEO DE FONDO */
header {
  position: relative;
  height: 100vh;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding-top: 80px;
}
.video-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}
.header-content {
  z-index: 10;
  padding: 1rem;
}
.isologo {
  max-width: 180px;
  margin-bottom: 20px;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}
p {
  font-size: 1.1rem;
}

/* BOTÓN */
.btn {
  margin-top: 120px;
  padding: 0.75rem 1.5rem;
  background: #146363;
  color: rgb(255, 255, 255);
  border: none;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: 0.3s ease;
}

.boton{
  margin: 20px;
}
.btn:hover {
  background: #009ac3;
}

/* CARRUSEL */
#proyectos-destacados {
  padding: 100px 20px 60px;
  background-color: #1d1b17;
}
.carousel-container {
  position: relative;
  max-width: 1000px;
  margin: auto;
  overflow: hidden;
  perspective: 1000px;
  min-height: 620px;
}
.carousel-track {
  position: relative;
  width: 100%;
  height: 100%;
}
.carousel-item {
  position: absolute;
  top: 0;
  left: 50%;
  width: 60%;
  transform: translateX(-50%) scale(0.7);
  opacity: 0;
  transition: all 0.6s ease;
  text-align: center;
  z-index: 1;
}
.carousel-item img {
  width: 50%;
  max-height: 600px;
  object-fit: contain;
  
 box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}

/* ESTADOS */
.carousel-item.active {
  transform: translateX(-50%) scale(1) rotateY(0deg);
  opacity: 1;
  z-index: 3;
}
.carousel-item.left {
  transform: translateX(-110%) scale(0.7) rotateY(55deg);
  opacity: 0.6;
  z-index: 2;
}
.carousel-item.right {
  transform: translateX(10%) scale(0.7) rotateY(-55deg);
  opacity: 0.6;
  z-index: 2;
}
.carousel-item.hidden {
  opacity: 0;
  transform: scale(0.5);
  z-index: 0;
}

/* TEXTO DE DESCRIPCIÓN */
.descripcion {
  margin-top: 10px;
  color: #ddd;
}
.carousel-item.left .descripcion,
.carousel-item.right .descripcion {
  transform: rotateY(10deg);
  opacity: 0.7;
}

/* FLECHAS */
.prev, .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #1d1b17;
  color: white;
  border: none;
  font-size: 3rem;
  padding: 0.5rem 1rem;
  cursor: pointer;
  z-index: 5;
}
.prev {
  left: 10px;
}
.next {
  right: 10px;
}

/* DEGRADADOS LATERALES */
.carousel-container::before,
.carousel-container::after {
  content: "";
  position: absolute;
  top: 0;
  width: 120px;
  height: 100%;
  z-index: 4;
  pointer-events: none;
}
.carousel-container::before {
  left: 0;
  background: linear-gradient(to right, #1d1b17 60%, transparent);
}
.carousel-container::after {
  right: 0;
  background: linear-gradient(to left, #1d1b17 60%, transparent);
}

/* OTRAS SECCIONES */
section {
  padding: 60px 20px;
  max-width: 1000px;
  margin: auto;
}
.benefits h2, .contact h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}
.benefits ul {
  list-style: disc;
  padding-left: 1.5rem;
}
.benefits img {
  width: 100%;
  margin-top: 20px;
  border-radius: 8px;
}
.contact form {
  margin-top: 20px;
}
.contact input,
.contact textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  border: none;
  border-radius: 4px;
}
.contact textarea {
  resize: vertical;
}
footer {
  background: #000;
  color: #bbb;
  text-align: center;
  padding: 20px;
  font-size: 0.9rem;
}

/* RESPONSIVO */
@media (max-width: 768px) {
  .navbar ul {
    display: none;
    flex-direction: column;
    background-color: #000;
    position: absolute;
    top: 60px;
    right: 0;
    width: 100%;
    text-align: center;
  }
  .nav-links.active {
    display: flex;
  }
  .hamburger {
    display: block;
  }
  .carousel-track {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .carousel-item {
    position: relative;
    transform: none !important;
    opacity: 1 !important;
    width: 90%;
    margin: 20px auto;
  }
  .prev, .next,
  .carousel-container::before,
  .carousel-container::after {
    display: none;
  }
}
.logo {
  height: 50px;
  cursor: pointer;
  transition: filter 0.3s ease;
}

.logo:hover {
  filter: drop-shadow(0 0 5px white)
          drop-shadow(0 0 10px white)
          drop-shadow(0 0 15px white);
}