* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
/*Body*/
body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #e3e4e4;
}
/*Header*/
a {
  text-decoration: none;
  color: inherit;
}


.hero-header-wrapper {
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}

.bg-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: -1;
  transition: transform 1s ease;
}

header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 40px;
  background-color: transparent;
}

header .container {
  background-color: #181818;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 10px 40px;
}

.logo {
  flex: 1;
}

header .logo img {
  height: 60px;
  display: block;
}


.nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 1;
}


.nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav ul li a {
  color: #e3e3e3;
  font-weight: bold;
  padding: 5px 10px;
  transition: color 0.3s;
}

.nav ul li a:hover {
  color: #0A5C63;
}

.hamburger {
  display: none;
}
/*Hero*/
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}


.hero img {
  width: 600px;
  margin-bottom: 20px;
  background-color: #ecececd5;
  padding: 60px 40px;
  border-radius: 10px;
  max-width: 900px;
}


.hero h1 {
  background-color: #222222;
  max-width: 900px;
  border-radius: 10px;
  font-size: 2.5rem;
  margin-bottom: 15px;
  color: #e3e3e3;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 20px;
}

.hero .btn {
  display: inline-block;
  padding: 12px 30px;
  background-color: #00CEF0;
  color: #fff;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s;
}

.hero .btn:hover {
  background-color: #0096B0;
}
/*Quienes somos y servicios*/
.about,
.services {
  background-color: #e3e4e4;
  padding: 60px 40px;
  text-align: center;
}

.about h2,
.services h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: #0A5C63;
}

.about p,
.services p {
  max-width: 800px;
  margin: 0 auto 20px;
  font-size: 1rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.service {
  background-color: #f9f9f9;
  padding: 20px;
  border-radius: 10px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.service:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.service h3 {
  margin-bottom: 10px;
  color: #393E46;
}

.services-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  margin-top: 30px;
}

.about .container{
  background-color: #f9f9f9;
  padding: 20px;
  border-radius: 10px;
  transition: transform 0.3s, box-shadow 0.3s;

}

.about .container:hover{
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
/*Carrusel*/
.carousel-track {
  display: flex;
  transition: transform 0.4s ease;
}

.service {
  min-width: 100%;
  background-color: #f9f9f9;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: #00CEF0;
  border: none;
  color: white;
  font-size: 2rem;
  padding: 5px 15px;
  cursor: pointer;
  border-radius: 5px;
}

.carousel-btn.prev {
  left: 10px;
}

.carousel-btn.next {
  right: 10px;
}

.carousel-btn:hover {
  background-color: #0096B0;
}

/*footer*/
.footer {
  width: 100%;
  background-color: #222;
  color: #fff;
  padding: 40px 0;
  text-align: center;
  position: relative;
  z-index: 10;
}

.footer .container {
  width: 95%;
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  gap: 100px;
  flex-wrap: wrap;
}

.footer .footer-section {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer h3 {
  color: #00CEF0;
  margin-bottom: 10px;
}

.footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer ul li {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.footer ul li :hover{
  color: #00CEF0;
}

.footer ul li img {
  margin-right: 8px;
  width: 20px;
  height: 20px;
}

.footer a img {
  width: 25px;
  height: 25px;
  transition: transform 0.3s;
}

.footer a img:hover {
  transform: scale(1.1);
}

.footer p {
  margin-top: 20px;
  font-size: 0.9rem;
}

html {
  scroll-behavior: smooth;
}

.menu-toggle {
  display: none;
  font-size: 2rem;
  cursor: pointer;
  color: #333;
  background: none;
  border: none;
  z-index: 2000;
  position: absolute; 
  top: 10px;          
  right: 20px;        
}

@media (max-width: 1024px) {
  header {
    padding: 10px 20px;
  }
  
  header .logo img {
    height: 50px;
    margin-left: 0;
  }
  .nav ul li a {
    padding: 5px 8px;
    font-size: 0.9rem;
  }
}

@media (max-width: 768px) {

  .logo{
    display: none;
  }
  .menu-toggle {
    display: block;
  }

  .nav {
    display: none;
    width: 70%;
  }

  .nav.active {
    display: flex;
    
  }

  .nav ul {
    flex-direction: column;
    align-items: center;
    gap: 15px;
    background-color: #2222229a;
    width: 60%;
    padding: 20px 0;
  }

  header {
    justify-content: space-between;
  }

  header .container {
    background-color: transparent;
    box-shadow: none;
  }
  
    .hero {
    height: auto !important;
    min-height: 100vh;
    padding: 60px 20px;
    overflow: visible !important;
  }

  .hero img {
    max-width: 90%;
    padding: 60px 40px;
  }
  
  .carousel-btn {
    top: auto;
    bottom: 10px;
    transform: none;
    font-size: 1.5rem;
    padding: 5px 12px;
  }

  .carousel-btn.prev {
    left: 20px;
  }

  .carousel-btn.next {
    right: 20px;
  }
  .footer .container {
    flex-direction: column;
    gap: 30px;
  }

  .vertical-line {
    width: 80% !important;
    height: 1px !important;
    margin: 20px auto !important;
  }

}



@media (max-width: 480px) {
  header .logo img {
    height: 45px;
  }
  .nav ul li a {
    font-size: 0.9rem;
    padding: 6px 0;
  }
  .hero .container {
    padding: 40px 20px;
  }
  .hero h1 {
    font-size: 1.8rem;
  }
  .hero p {
    font-size: 1rem;
  }
}

.separator {
  border-bottom: 2px solid #5b5b5b;
  height: 20px;
  margin: 10px 0;
  width: 70%;
  margin: auto;
}

.vertical-line {
  width: 1px;              
  height: 120px;           
  background-color: #f9f9f9; 
  margin: 0 auto;         
}

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s ease forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
