/* Common styles for all screen sizes */
.container {
  max-width: 1170px;
}

@media (min-width: 1200px) {
  .container {
    max-width: 1170px;
  }
}

@media (max-width: 1300px) {
  /* Add styles if needed */
  .team_section-3 .team_container-3 .box-3 .img-box-3 {  
    display: flex;              /* Enable flexbox layout */
    justify-content: center;    /* Center horizontally */
    align-items: center;        /* Center vertically */
    height: 250px;
    width: 250px;
    overflow: hidden;           /* Crop anything that exceeds the container */
    border-radius: 50%;         /* Circular container */
 
  }
}

@media (max-width: 1120px) {
  /* Add styles if needed */
}

@media (max-width: 992px) {
  .hero_area {
    min-height: auto;
    background: linear-gradient(130deg, #23398e, #1b2847);
  }

  .hero_area .hero_bg_box {
    display: none;
  }

  .slider_section {
    padding: 45px 0 75px 0;
  }

  .custom_nav-container .navbar-nav {
    padding-top: 15px;
    align-items: center;
  }

  .custom_nav-container .navbar-nav .nav-item .nav-link {
    padding: 5px 25px;
    margin: 5px 0;
  }
}

@media (max-width: 768px) {
  .owl-item {
    width: 100%; /* 1 item per row for smaller screens */
  }

  .about_section .img-box {
    margin-bottom: 30px; /* Adjust bottom margin for spacing */
  }

  .prod_princi .overlap-1 {
    margin: 15px auto;
    max-width: 95%; /* Ensure maximum scaling down */
  }

  .prod_princi .overlap-group-wrapper {
    max-width: 100%; /* Full width scaling */
  }

  .prod_princi .rectangle-4 {
    font-size: 16px; /* Smaller font for readability */
    line-height: 24px;
    padding: 4% 10px; /* Adjust padding for mobile devices */
  }

  .team_section2 .team_container2 .box-2 {
    margin: 10px auto; /* Reduce margin for compact view */
    width: 95%; /* Almost full width for mobile */
  }

  .team_section2 .carousel-wrap {
    padding: 0;
    width: 100%;
  }

  .team_section2 .img2 {
    max-width: 80%; /* Ensure images scale down for mobile */
  }
  .about_section-a .card_row {
    flex-direction: column;
    align-items: center;
  }
  .overlap {
    flex-direction: column; /* Stack elements inside the overlap */
    align-items: center; /* Center align elements */
    width: 100%; /* Full width */
  
  }

}


/* Smaller screens */
@media (max-width: 767px) {
  .owl-item {
    width: 100%; /* 1 item per row */
  }
}

@media (max-width: 576px) {
  .header_section .header_top .contact_nav a span {
    display: none;
  }

  .client_section .client_container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    position: relative;
  }

  .client_section .box {
    width: 90%;
    height: auto;
    margin: 10px auto;
  }

  .owl-nav {
    display: flex;
    justify-content: center;
    margin-top: 45px;
  }

  .client_section .owl-carousel .owl-nav .owl-prev,
  .client_section .owl-carousel .owl-nav .owl-next {
    position: unset;
    margin: 0 2.5px;
  }
  .prod_princi .prod_container {
    padding: 10px;
  }

  .prod_princi .heading_container .productos {
    font-size: 28px;
    margin-bottom: 20px;
  }

  .prod_princi .box-b {
    padding: 15px;
  }

.team_section-3 .team_container-3 .box-3 .img-box-3 {  
  display: flex;              /* Enable flexbox layout */
  justify-content: center;    /* Center horizontally */
  align-items: center;        /* Center vertically */
  height: 250px;
  width: 250px;
  overflow: hidden;           /* Crop anything that exceeds the container */
  border-radius: 50%;         /* Circular container */
}
}

@media (max-width: 480px) {
  .row {
    display: flex;
    justify-content: center;
  }
  .soluciones-talent {
    font-size: 1.2rem;
  }

  .description {
    font-size: 0.9rem;
  }

  .icon-list li {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .prod_princi .rectangle-4 {
    height: 185px; /* Further reduce height */
    font-size: 14px; /* Smaller font for tiny screens */
    line-height: 20px;
    padding: 2% 10px;
  }
  
  .prod_princi .overlap-1 {
    margin: 15px auto;
  }
  
  .prod_princi .overlap-group-wrapper {
    max-width: 95%; /* Slightly smaller for very narrow screens */
  }
  
  .prod_princi .overlap-1 img.img-c {
    border-radius: 8px; /* Tighter border radius */
  }
  .service_section .box-a .image-section img {
    display:block;
    width: 100%;
    min-width: 200px;
    border-radius: 50%;
    object-fit: cover;
    align-items: center
  }
  }

@media (max-width: 440px) {
  .slider_section .detail-box h1 {
    font-size: 2rem;
  }

  .track_section form {
    flex-direction: column;
    align-items: flex-start;
  }

  .track_section form input {
    width: 100%;
  }

  .track_section form button {
    padding: 10px 60px;
    margin-top: 10px;
  }
}


@media (max-width: 420px) {
  .service_section .box {
    margin-left: auto;
    margin-right: auto;
  }

  .service_section .box .img-box {
    justify-content: center;
    margin-bottom: 15px;
  }
}

/* Custom styles for centering elements on medium screens */
@media (min-width: 768px) and (max-width: 991px) {
  .service_section .box {
    margin-left: auto;
    margin-right: auto;
  }

.team_section-3 .team_container-3 .box-3 .img-box-3 {  
    display: flex;              /* Enable flexbox layout */
    justify-content: center;    /* Center horizontally */
    align-items: center;        /* Center vertically */
    height: 200px;
    width: 200px;
    overflow: hidden;           /* Crop anything that exceeds the container */
    border-radius: 50%;         /* Circular container */
 
  }
  .overlap .text-wrapper-18 {
    position: absolute;
    top: 120px;
    left: 113%;
    transform: translateX(-80%) rotate(90deg); /* Combined transforms */
    height: 21px;
    font-family: "Montserrat", Helvetica;
    font-weight: 500;
    color: #ffffff;
    font-size: clamp(30px, 3vw, 32px); /* Responsive font size */
    letter-spacing: 0;
    text-shadow: 0px 4px 4px #00000040;
    text-wrap: nowrap;
    box-sizing: border-box;
  }
  .overlap .text-wrapper-16 {
    position: absolute;
    top: 180px;
    left: 71.2%;
    transform: translateX(-21.8%) rotate(90deg); /* Combined transforms */
    height: 21px;
    font-family: "Montserrat", Helvetica;
    font-weight: 500;
    color: #ffffff;
    font-size: clamp(30px, 3vw, 32px); /* Responsive font size */
    letter-spacing: 0;
    text-shadow: 0px 4px 4px #00000040;
    text-wrap: nowrap;
    box-sizing: border-box;
  }
  .overlap .text-wrapper-15 {
    position: absolute;
    top: 120px;
    left: 115%;
    transform: translateX(-80%) rotate(90deg); /* Combined transforms */
    height: 21px;
    font-family: "Montserrat", Helvetica;
    font-weight: 500;
    color: #ffffff;
    font-size: clamp(30px, 3vw, 32px); /* Responsive font size */
    letter-spacing: 0;
    text-shadow: 0px 4px 4px #00000040;
    text-wrap: nowrap;
    box-sizing: border-box;
  }
  .overlap .text-wrapper-17 {
    position: absolute;
    top: 90px;
    left: 90%;
    transform: translateX(-21.8%) rotate(90deg); /* Combined transforms */
    height: 21px;
    font-family: "Montserrat", Helvetica;
    font-weight: 500;
    color: #ffffff;
    font-size: clamp(30px, 3vw, 32px); /* Responsive font size */
    letter-spacing: 0;
    text-shadow: 0px 4px 4px #00000040;
    text-wrap: nowrap;
    box-sizing: border-box;
  }
  
  /* List Items */
  .rectangle-3-green ul {
    padding-left: 0; /* Remove default padding */
    margin: 0; /* Remove default margin */
  }
  
  .rectangle-3-green li {
    line-height: 1.1;
    margin-bottom: 5px;
    list-style-type: disc; /* Ensures list items have bullet points */
    margin-left: 5px;
    text-align: left; /* Center text */
    transform: translateY(200px); /* Adjust this value to move the list up or down */
  }
  .rectangle-2 li{
    line-height: 1.7;
    margin-bottom: 5px;
  }
}

/* Custom styles for centering elements on smaller screens */
@media (max-width: 767px) {
  .service_section .box {
    margin-left: auto;
    margin-right: auto;
  }
}

@media (width: 768px) {
    .overlap .text-wrapper-18 {
    position: absolute;
    top: 120px;
    left: 108%;
    transform: translateX(-80%) rotate(90deg); /* Combined transforms */
    height: 21px;
    font-family: "Montserrat", Helvetica;
    font-weight: 500;
    color: #ffffff;
    font-size: clamp(30px, 3vw, 32px); /* Responsive font size */
    letter-spacing: 0;
    text-shadow: 0px 4px 4px #00000040;
    text-wrap: nowrap;
    box-sizing: border-box;
  }
  .overlap .text-wrapper-16 {
    position: absolute;
    top: 180px;
    left: 78.2%;
    transform: translateX(-21.8%) rotate(90deg); /* Combined transforms */
    height: 21px;
    font-family: "Montserrat", Helvetica;
    font-weight: 500;
    color: #ffffff;
    font-size: clamp(30px, 3vw, 32px); /* Responsive font size */
    letter-spacing: 0;
    text-shadow: 0px 4px 4px #00000040;
    text-wrap: nowrap;
    box-sizing: border-box;
  }
  
    /* Responsive */
    @media (max-width: 991px) {
      .custom_nav-container .navbar-nav {
        padding-top: 15px;
        align-items: center;
      }
      .custom_nav-container .navbar-nav .nav-item .nav-link {
        padding: 5px 25px;
        margin: 5px 0;
      }
      /* Slider responsive */
      .slider_section2 .detail-box h1 {
        font-size: 2.5rem;
      }
    }
    
    @media (max-width: 767px) {
      .slider_section2 .img-box {
        margin-top: 35px;
      }
      
      /* En móvil permitimos altura automática para evitar huecos grandes */
      .slider_section2 .carousel-item,
      .slider_section2 .carousel-item .container,
      .slider_section2 .carousel-item .row {
        min-height: auto; 
        height: auto;
        padding-bottom: 20px;
      }
    }

    @media (max-width: 576px) {
      .slider_section2 .detail-box h1 {
        font-size: 2rem;
      }
      .slider_section2 .carousel_btn-box {
        bottom: 0;
      }
      .slider_section2 {
        padding-bottom: 50px;
      }
    }

}