/*--------------------------------------------------------------------- File Name: responsive.css ---------------------------------------------------------------------*/


/*------------------------------------------------------------------- 991px x 768px ---------------------------------------------------------------------*/

@media (min-width: 1200px) and (max-width: 1342px) {
    #myCarousel a.carousel-control-next {
        right: -3%;
    }
    #myCarousel a.carousel-control-prev {
        right: -3%;
    }
    .map {
        margin-right: 0px;
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    .banner_slide {
        padding: 0 80px 0 0px;
    }
    .transfot span {
        font-size: 15px;
    }
    .transfot h3 {
        font-size: 16px;
    }
    .banner_main {
        background-size: auto 64%;
        padding: 220px 0px 0px 0px;
    }
    .text-bg h1 {
        font-size: 43px;
        line-height: 52px;
    }
    .about {
        margin-top: -340px;
    }
    .yelldark_colo {
        margin: 0 30px;
    }
    .titlepage h2 {
        font-size: 48px;
    }
    #myCarousel a.carousel-control-next {
        right: -3%;
    }
    #myCarousel a.carousel-control-prev {
        right: -3%;
    }
    #veh a.carousel-control-next {
        right: 43%;
    }
    .map {
        margin-right: 0px;
    }
    .bottom_form .enter {
        width: 63%;
    }
    ul.location_icon li {
        font-size: 18px;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .text-bg h1 {
        font-size: 43px;
        padding-bottom: 20px;
        line-height: 44px;
    }
    .banner_main {
        padding: 152px 0px 0px 0px;
        background-color: #cacaca !important;
        background: inherit;
        min-height: 919px;
    }
    .about {
        margin-top: 90px;
    }
    .transfot h3 {
        font-size: 19px;
    }
    #banner1 a.carousel-control-prev {
        top: 41%;
    }
    .titlepage h2 {
        font-size: 37px;
    }
    .service_box {
        width: 13.3%;
    }
    .service_box i {
        width: 120px;
        height: 120px;
    }
    .service_box h4 {
        font-size: 12px;
    }
    #veh a.carousel-control-prev {
        left: 43%;
    }
    #veh a.carousel-control-next {
        right: 43%;
    }
    .choose_box h3 {
        font-size: 20px;
    }
    ul.location_icon li {
        font-size: 12px;
        line-height: 20px;
    }
    .map {
        margin-right: 0px;
    }
    .bottom_form .enter {
        width: 100%;
        margin-bottom: 20px;
    }
    .banner_slide {
        padding: 0 80px 0 0px;
    }
}

@media (min-width: 576px) and (max-width: 767px) {
    .banner_main {
        padding: 152px 0px 90px 0px;
        background-color: #cacaca !important;
        background: inherit;
    }
    .banner_slide {
        padding: 0 80px 0 0px;
    }
    .text-bg {
        max-width: inherit;
    }
    .transfot {
        padding-top: 30px;
    }
    .about {
        margin-top: 90px;
    }
    #myCarousel a.carousel-control-prev {
        top: 34%;
    }
    .text-bg h1 {
        font-size: 48px;
        line-height: 51px;
    }
    #banner1 a.carousel-control-prev {
        top: 44%;
    }
    #banner1 a.carousel-control-next {
        top: 50%;
    }
    .service_box {
        width: 25.0%;
    }
    .service_box i {
        width: 156px;
        height: 156px;
    }
    .vehicles_truck {
        margin-bottom: 30px;
    }
    .blac_co {
        margin-top: 0px;
        margin-bottom: 30px;
    }
    #veh .carousel-control-prev,
    #veh .carousel-control-next {
        top: 105%;
    }
    #veh a.carousel-control-prev {
        left: 40%;
    }
    #veh .carousel-control-next {
        right: 40%;
    }
    .main_form {
        max-width: inherit;
    }
    .co_tru {
        padding-right: 0px;
        margin-top: 30px;
    }
    .map {
        margin-right: 0px;
        margin-top: 30px;
    }
    .choose_box {
        margin-bottom: 30px;
    }
    .titlepage h2 {
        font-size: 31px;
    }
}

@media (max-width: 575px) {
    .header .row {
      flex-wrap: nowrap;
      align-items: center;
    }
  
    .col-sm-4 {
      flex: 0 0 33.3333%;
      max-width: 33.3333%;
    }
      
  
    .logo {
        display: flex !important;
        align-items: center;
        justify-content: center; 
        width: 200%;
        padding: 10px 0;
        padding-right: 40px;
    }
    
    .logo a img {
        max-width: 100px; 
        height: auto;
    }
    
    .logo img[alt="Certificado"] {
        width: 70px !important;
        height: auto;
        position: static !important;
        padding-top: 50px;
        padding-right: 10px !important;
    }
      
  
    .language-switch {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
      margin: 10px auto;
    }
  
    .language-labels {
      font-size: 14px;
    }
  
    .toggle-switch {
      width: 40px;
      height: 20px;
    }
  
    .toggle-switch::before {
      width: 16px;
      height: 16px;
      top: 2px;
      left: 2px;
    }
  
    .toggle-switch.active::before {
      left: 22px;
    }
  
    .right_bottun button img {
      width: 28px !important;
    }
  
    .banner_main {
        background-color: #ffffff;
        background-image: url(../images/banner.png);
        background-repeat: no-repeat;
        background-position: center top;
        background-size: cover;
        padding: 180px 0px 170px 0px;
        min-height: 2000px; /* <-- clave */
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
    }
      
  
    .text-bg {
        margin-top: 70px;
        text-align: center;
        max-width: 300%;
        width: 120%;
        float: none;
        padding: 0 30px;
    }
      
  
    .text-bg h1 {
      font-size: 25px;
      text-align: center;
      line-height: 36px;
      color: #ffffff;
      font-weight: bold;
      padding-top: 30px;
    }
  
    .text-bg span {
      font-size: 16px;
      line-height: 26px;
      color: #ffffff;
      display: block;
      margin-top: 10px;
    }
  
    .read_more {
      background-color: #ffffff;
      color: #101d86 !important;
      padding-bottom: 15px !important;
      display: inline-block;
      padding: 15px 0px;
      font-weight: 600;
      border-radius: 8px;
      text-align: center;
      align-items: center;
    }

    section {
        padding-bottom: 0 !important;
    }
      
  
    .ban_track {
      display: none !important;
    }

    .language-switch {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        margin: 10px auto;
    }
      
    .language-labels {
        font-size: 14px;
        font-weight: bold;
        transition: color 0.3s;
    }
      
    .language-labels.active {
        color: #101d86;
    }
      
    .toggle-switch {
        position: relative;
        width: 50px;
        height: 26px;
        background: #ddd;
        border-radius: 13px;
        cursor: pointer;
        transition: background 0.3s;
        flex-shrink: 0;
    }
      
    .toggle-switch::before {
        content: "";
        position: absolute;
        top: 3px;
        left: 3px;
        width: 20px;
        height: 20px;
        background: white;
        border-radius: 50%;
        transition: 0.3s ease;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    }
      
    .toggle-switch.active {
        background: #101d86;
    }
      
    .toggle-switch.active::before {
        left: 27px;
    }

    .col-md-18 {
        margin-bottom: -500 !important;
        padding-bottom: -500 !important;
        text-align: center;
    }
      
  
    /* Carrusel: botones en posición */
    #veh a.carousel-control-prev {
      left: 5% !important;
      bottom: 485px !important;
      top: auto !important;
    }
  
    #veh a.carousel-control-next {
      right: 5% !important;
      bottom: 485px !important;
      top: auto !important;
    }

    .vehicles_truck {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        height: 100%;
        background-color: #efedf0;
        padding: 20px;
        border-radius: 25px;
        min-height: 300px;
    }
      
    .vehicles_truck figure {
        display: flex;
        align-items: center;
        justify-content: center;
        height: 200px; /* Estándar para todas */
        margin: 0;
    }
      
    .vehicles_truck figure img {
        max-height: 100%;
        object-fit: contain;
    }
  
    .blac_co {
      display: block !important;
      text-align: center;
      font-size: 20px;
      font-weight: bold;
      margin-top: 10px;
    }
  
    /* FORMULARIO */
    .main_form {
        position: center;
        align-items: center;
        z-index: 10;
        background-color: #ffffff;
        border-radius: 12px;
        padding: 20px;
        max-width: 90%;
        float: none;
        box-shadow: 0 0 10px rgba(0, 0, 0, 1);
        display: block;
        margin: 20px auto 0 auto;
        text-align: center;
    }

    .transfot {
        width: 100%;
        padding: 0 15px;
        margin-top: 20px;
    }
    
    /* Asegura que los inputs se vean bien */
    .main_form .contactus,
    .main_form .contactusmess {
        width: 100%;
        font-size: 16px;
    }
    
    /* Botón de enviar bien visible */
    .send_btn {
        position: relative;
        z-index: 10;
        margin-top: 15px;
        margin-bottom: 15px;
        width: 100%;
        display: block;
        margin: 20px auto 0 auto;
        text-align: center;
    }
    
    /* Fondo gráfico detrás */
    .about_right {
        position: relative;
        margin-top: 200px;
    }
    
      
    
    /* Servicios */
    .service_box {
        width: 100% !important;
        text-align: center;
        margin: 20px 0;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .service_box i {
        width: 140px;
        height: 140px;
        border-radius: 50%;
        background-color: #101d86;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0 auto 10px auto;
    }
    
    .service_box i img {
        width: 50px; /* puedes subir hasta 60px si se ve bien */
        height: auto;
        padding-top: 0 !important;
        margin: 0 auto;
    }

    ul.location_icon li {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 8px; 
        font-size: 16px;
        line-height: 22px;
        word-break: break-word;
    }
    
    ul.location_icon li a {
        font-size: 24px;
        min-width: 28px;
    }
    
    ul.location_icon li strong,
    ul.location_icon li {
        white-space: normal;
    }
      
      
}
  