* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background-color: #ecf0f1 ;
}
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  color: white;
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  background: #00c9ff; /* fallback for old browsers */
  background: -webkit-linear-gradient(to right, #92fe9d, #00c9ff); /* Chrome 10-25, Safari 5.1-6 */
  background: linear-gradient(to right, #92fe9d, #00c9ff); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
}
.navbar.scrolled {
  background-color: #222;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}
.logo__menu {
  max-width: 40px;
}
.toggle {
  font-size: 1.8rem;
  background: none;
  border: none;
  color: white;
  display: none;
  cursor: pointer;
}
.nav-links {
  display: flex;
  list-style: none;
  gap: 20px;
  transition: max-height 0.3s ease;
}
.nav-links li {
  position: relative;
}
.nav-links a {
  color: white;
  text-decoration: none;
  padding: 8px 10px;
  display: block;
  transition: background-color 0.3s;
}
.nav-links li:hover > a {
  background-color: #3922b9;
  border-radius: 4px;
}
.submenu .dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #3922b9;
  list-style: none;
  display: none;
  flex-direction: column;
  width: 180px;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.3s ease;
}
.submenu:hover .dropdown {
  display: flex;
  opacity: 1;
  transform: translateY(0);
  background-color: rgb(21, 233, 233);
}
.dropdown li a {
  padding: 10px 15px;
  border-bottom: 1px solid #555555;
}
.dropdown li:last-child a {
  border-bottom: none;
}
@media screen and (max-width: 768px) {
  .toggle {
    display: block;
  }
  .nav-links {
    flex-direction: column;
    width: 100%;
    max-height: 0;
    overflow: hidden;
  }
  .nav-links.active {
    max-height: 500px;
  }
  .nav-links li {
    width: 100%;
  }
  .submenu .dropdown {
    position: static;
    transform: none;
    opacity: 1;
    display: none;
  }
  .submenu.active .dropdown {
    display: flex;
  }
}

/* *********MODAL******** */
.modal-overlay {
      display: none;
      position: fixed;
      z-index: 999;
      left: 0;
      top: 0;
      width: 100vw;
      height: 100vh;
      background-color: rgba(0, 0, 0, 0.6);
      justify-content: center;
      align-items: center;
    }
    
     .modal-content {
      background: #fff;
      padding: 20px;
      border-radius: 15px;
      max-width: 90%;
      width: 400px;
      text-align: center;
      box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
       animation: fadeIn 0.5s ease-in-out; 
    }
    h2{
      color: #3498db;
    }
    .modal__imag{
      max-width: 400px; 
    } 
    @keyframes fadeIn {
      from { transform: translateY(-50px); opacity: 0; }
      to { transform: translateY(0); opacity: 1; }
    }
    .modal-close {
      background-color: #3498db;
      color: white;
      border: none;
      padding: 10px 20px;
      margin-top: 15px;
      border-radius: 10px;
      cursor: pointer;
    }
    .modal-close:hover {
      background-color: #2980b9;
    }
    @media (max-width: 480px) {
      .modal-content {
        width: 90%;
        font-size: 16px;
      }
      .modal__imag{
      max-width: 300px;
    }
    }

/************* slider ******************/
.slider-container {
  width: 100%;
  /* max-width: 900px; */
  margin:10px auto;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  position: relative;
  
}

.slider {
  display: flex;
  width: 100%;
  transition: transform 0.5s ease-in-out;
}

.slide {
  min-width: 100%;
  height: 600px;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dots {
  position: absolute;
  bottom: 10px;
  width: 100%;
  text-align: center;
}

.dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin: 5px;
  background: #fff;
  border-radius: 50%;
  opacity: 0.5;
  cursor: pointer;
  transition: 0.3s;
}

.dot.active {
  background: #007bff;
  opacity: 1;
}

@media (max-width: 600px) {
  .slide {
    height: 250px;
  }
}


/* *****CARD DE LOS  NIVELES************ */
.principal{
  width: 90%;
  max-width: 1500px;
  margin: 0 auto;
}

.card-principal{
  margin: 100px auto;
  display: flex;
  justify-content: center;
  gap: 20px;
  
}

.card{
  width: 300px;
  height: 400px;
  border-radius: 10px;
  overflow: hidden;
  background-color: #fff;
  position: relative;
  transition: box-shadow 0.3s ease;
  transform: translateY(30%);
}
.card:hover{
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}
.card img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.8s ease;
}

.card-content{
  position: absolute;
  bottom: 0;
  width: 100%;
  background-color: #00000060;
  color: #fff;
  text-align: center;
  padding: 10px;
  transition: all 0.8s ease;
}
.card:hover img{
  width: 120px;
  height: 120px;
  border-radius: 50%;
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
}
.card:hover .card-content{
  bottom: 20px;
  background: none;
  color: #000;
  width: 100%;
}
.carde-title{
  font-size: 20px;
  font-weight: bold;
  margin-top: 10px;
  color: #007bff;
}

/* .skill{
  margin: 5px 0;
} */
.card-description{
  font-size: 14px;
  line-height: 1.5;
  display: none;
}
.card:hover .card-description, .card{
  display: block;
}
@media (max-width: 680px) {
  .card-principal {
    flex-wrap: wrap;
  }
  .card-description{
    font-size: 12px;
  }
  .card{
    width: 250px;
    height: 350px;
  }
}

/* ************CARRUSEL***************  */

.gallery{
  margin-top: 150px;
  /* padding: 30px 15px; */
  background-color: #fff;
}
.gallery h2{
  color: #1e88e5;
  margin-bottom: 15px;
  text-align: center;
}
.carrusel{
  display: flex;
  overflow-x: auto;
  gap: 15px;
  scroll-snap-type: x mandatory;
  scroll-padding: 15px;

}
.movie{
  min-width: 350px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  scroll-snap-align: start;
  padding: 15px;
}
.movie img{
  max-width: 100%;
  height: auto;
  transition: .3s ease;
}
.movie img:hover{
  transform: scale(1.2);
}
.movie h3{
  margin: 8px 0;
  color: #6a1b9a;
  font-size: 0.8rem;
  text-align: center;
}
/* .movie p{
  font-size: 0.8rem;
} */
/* .movie .btns{
  width: 100%;
  display: flex;
  justify-content: space-between;
  margin: 10px 0;
} */
/* .movie .btns a{
  background-color: #1e88e5;
  color: #fff;
  font-size: 0.8rem;
  padding: 4px 7px;
  display: flex;
  align-items: center;
  border-radius: 8px;
} */



/*******CARRUSEL DE IMAGENES INIMADOS***** */
.carrusel {
  margin: 50px 0;
  display: flex;
  align-items: center;
}

.carrusel-items {
  display: flex;
  overflow-x: hidden;
  overflow-y: hidden;
  padding: 30px 0px;
  gap: 10px;
  
}

.carrusel-item {
  min-width: 300px;
  /* max-width: 300px; */
  height: 200px;
  outline: 2px solid rgb(16, 109, 185);
  cursor: pointer;
  border-radius: 10px;
}

.carrusel-item img {
  width: 100%;
  height: 100%;
  /* object-fit: cover; */
}

.carrusel-item:hover {
  transform: scale(1.2);
}


/* ***********FOOTER *********** */
.footer{
  background-color: #232323;
  color: #fff;
  display: flex;
  justify-content: space-evenly;
 
}
.footer-column h3{ 
  margin: 25px 0;
  font-size: 1.2em;
}
.footer-column ul{
  list-style: none;
}
.footer-column ul li{
  margin-bottom: 10px;
}
.footer-column ul li a{
  color: #fff;
  text-decoration: none;
  transition: .3s ease;
}
.footer-column ul li a:hover{
  color: #00c9ff;
}
.footer-icon li{
  cursor: pointer;

  
}
.footer-icon li a:hover{
  color: #00c9ff;
}
.pie{
  text-align: center;
  background-color: #268cbb;
  color: #ecf0f1;
  height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
}
@media screen and (max-width:720px){
  .footer{
    flex-direction: column;
    text-align: center;
  }
  .pie{
    font-size: 14px;
   }
}
@media screen and (max-width:420px){
   .footer{
    font-size: 12px;
   }
   .pie{
    font-size: 12px;
   }
    
}