/* Reglas globales para prevenir scroll horizontal */
img {
  max-width: 100%;
  height: auto;
}

.container,
.container-fluid {
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
  margin-right: auto;
  margin-left: auto;
  box-sizing: border-box;
}

.row {
  margin-right: -15px;
  margin-left: -15px;
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 1120px) {
  .footer_bg {
    margin-top: 0;
  }
}

@media (max-width: 992px) {
  /* Fix para el scroll horizontal en móviles */
  body,
  html {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .container,
  .row {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px;
    padding-right: 15px;
  }

  .custom_nav-container .nav_search-btn {
    background-position: center;
  }

  .hero_area::before {
    display: none;
  }

  .service_section {
    background-size: cover;
  }

  .slider_section ol.carousel-indicators {
    display: none;
  }

  .slider_img-box img {
    z-index: 1;
    position: relative;
  }

  .slider_img-box {
    position: relative;
  }

  .slider_img-box::before {
    background-image: url(../images/hero-bg-mobile.png);
    width: 100%;
    height: 100%;
    content: '';
    position: absolute;
    background-size: cover;
    z-index: 0;
    left: 0;
    top: 0;
    transform: scale(1.7);
  }

  .hero_area {
    height: auto;
  }

  .slider_detail-box {
    margin-top: 35px;
    margin-bottom: 45px;
  }

  .slider_img-box {
    margin-bottom: 75px;
  }

  .slider_section .carousel_btn-container {
    display: none;
  }
}

@media (max-width: 768px) {
  .slider_section .carousel_btn-container {
    display: none;
  }

  .slider_section ol.carousel-indicators {
    display: none;
  }

  .slider_detail-box {
    text-align: center;
  }

  .slider_img-box img {
    z-index: 1;
    position: relative;
  }

  .slider_img-box {
    position: relative;
  }

  .slider_img-box::before {
    background-image: url(../images/hero-bg-mobile.png);
    width: 100%;
    height: 100%;
    content: '';
    position: absolute;
    background-size: cover;
    z-index: 0;
    left: 0;
    top: 0;
    transform: scale(1.5);
  }

  /* Sección de servicios */
  .service_section {
    padding-top: 375px;
    background-position: bottom;
    margin-top: -325px;
  }

  /* Sección de clientes */
  .client_container {
    width: 95%;
  }

  .client_section .carousel-control-prev,
  .client_section .carousel-control-next {
    display: none;
  }

  /* Sección why */
  .why_section .row .col-md-3 {
    margin: 15px auto;
    justify-content: flex-start;
    width: min-content;
  }

  .problem_section .migration-steps {
    padding: 0;
  }
  .problem_section .step-container {
    margin-bottom: 20px;
    width: 100%;
  }

  .problem_section .step-header {
    width: 100%;
    display: block;
  }

  .problem_section p {
    margin-left: 0 !important;
    padding: 0 5px;
  }

  .footer_bg {
    padding-top: 250px;
    background-position: center top;
  }

  /* Info section */
  .info_section {
    text-align: center;
    padding: 0 15px;
  }

  .info_section .row {
    margin: 0;
  }

  .info_section h5 {
    display: inline-block;
    margin: 15px 0;
    text-align: center;
  }

  .info_section ul {
    margin-bottom: 25px;
    text-align: center;
    display: block !important;
  }

  .info_section ul li {
    margin: 10px 0;
    padding: 5px 0;
  }

  .info_section ul li a {
    display: inline-block;
    padding: 3px 15px;
    font-size: 16px;
  }

  .info_section .row > div {
    margin-bottom: 20px;
  }

  .info_section .col-md-6 {
    width: 100%;
    padding: 0 20px;
  }

  .info_content {
    padding: 0 15px;
  }

  .footer_section {
    padding: 5px 15px 15px;
    text-align: center;
  }

  .footer_section p {
    padding: 12px 10px;
    width: 100%;
    line-height: 1.5;
    font-size: 15px;
  }

  .info_section .d-flex {
    align-items: center;
  }

  .info_content .row .col-md-6:first-child {
    margin-bottom: 25px;
  }

  .welcome_section {
    padding-bottom: 17rem;
  }

  .franja-separadora {
    width: 70%;
  }

  .step-header {
    padding: 10px 15px !important;
  }

  .step-header h4 {
    font-size: 1.2rem !important;
  }

  .migration-steps p {
    font-size: 0.9rem !important;
  }
}

@media (max-width: 576px) {
  .slider_section ol.carousel-indicators {
    right: 0;
  }

  .info_section .col-md-6 {
    margin-bottom: 20px;
  }

  .info_content .row {
    display: flex;
    flex-direction: column;
  }

  .info_section ul li a {
    font-size: 15px;
  }

  .footer_section p {
    font-size: 13px;
  }

  .problem_section .step-header {
    padding: 10px 15px !important;
  }

  .problem_section .step-header h4 {
    font-size: 1.1rem !important;
  }

  .problem_section p {
    font-size: 0.95rem !important;
  }
}

@media (max-width: 480px) {
  .info_section ul li {
    padding: 3px 0;
  }

  .info_section h5 {
    font-size: 19px;
  }

  .logo_icono {
    width: 110px !important;
  }

  .custom_heading-container h2 {
    font-size: 1.5rem;
  }
}

@media (max-width: 400px) {
  .welcome_section {
    padding-bottom: 9rem;
  }
}
