@media(width<=991px) {
  footer h5 {
    margin-bottom: 10px;
  }

  footer .info {
    gap: 5px;
  }

  .floating-btn {
    gap: 5px;
    align-items: center;
    padding: 0;
    width: 70px;
  }

  .floating-btn a {
    display: grid !important;
    width: auto !important;
    line-height: 1;
    padding: 5px;
  }


  .floating-btn a span {
    font-size: 12px;
  }

  .id_5 .col-md-2 {
    width: 33%;
  }

  .id_5 .caja-contenido-simple {
    margin-bottom: 15px;
  }

  .img-responsive-principal {
    object-fit: cover;
    width: 100%;
    height: 400px;
  }
}

@media(width<=767px) {
  .logo-header {
    max-width: 60px;
  }

  .info-banner {
    text-align: center;
  }

  .contenido-banner .info-banner span {
    font-weight: 700;
    font-size: 20px !important;
    text-shadow: 1px 1px 2px rgb(255, 255, 255);
  }

  .titulo-sub-banners {
    font-size: 20px
  }

  .img-subbanner {
    max-width: 45px;
  }

  .texto-sub-banner {
    font-size: 14px !important;
  }

  .titulo-sub-banners {
    text-shadow: -1px 0px 3px rgba(255, 255, 255, 0.69);

  }

  .icono-sub-banner {
    width: 20px;
    height: 20px;
    border: 1px solid var(--accent-color);
  }

  .sub-banner {
    margin-bottom: 15px;
  }

  .sub-banner a {
    height: auto;
    min-height: 115px;
  }

  .carousel-control-next,
  .carousel-control-prev {
    width: auto;
  }

  .id_5 .col-md-2 {
    width: 50%;
  }

  .id_20 .design-two .descripcion p span {
    font-size: 20px !important;
  }

  .id_20 {
    background-position: bottom;
  }

  .id_20 .design-two .col-md-5 img {
    max-width: 250px;
    display: block;
    margin: auto;
  }

  .id_20 .design-two .col-md-7 .descripcion p::after {
    width: 38px;
    height: 53px;
  }

  .itemSlider.itemSlider_23 {
    flex-direction: column;
  }

  .itemSlider.itemSlider_23 .img-slider {
    width: 97%;
    display: block;
    margin: auto;
    height: auto;
  }

  .content-slider_23 {
    width: 100%;

  }

  .fondo-imagen-responsive .img-banner-internas {
    width: 100%;
    object-fit: cover;
    aspect-ratio: 175 / 38;
    height: 6vh;
  }

  .img-banner-interna {
    height: auto;
  }

  .img-banner-interna {
    height: 240px;
  }

  /* -------------------
  BANNER INTERNAS INICIO
  -------------------- */


  .titulo-banner-internas {
    position: absolute;
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #FFF;
    /* text-align: center; */
    font-weight: 700;
    padding: 15px;
    width: 100%;
    text-shadow: 4px 4px 2px rgba(0, 0, 0, 0.6)
  }

  .titulo-banner-internas::after {
    all: unset;
  }


  .titulo-banner-internas * {
    margin: 0;
  }

  .titulo-banner-internas img {
    width: 30px !important;
    height: auto;
  }

  /* -------------------
BANNER INTERNAS FIN
-------------------- */

  .contenido-interna .col-contenido {
    margin-bottom: 15px;
  }

  .contenido-servicios .id_46 .columna-seccion {
    width: 33%;
  }

  .id_63 .design-five {
    border-width: 1px !important;

  }
}

@media (max-width:576px) {
  .titulo-banner-internas * {
    margin: 0;
    font-size: 22px !important;
  }

  .titulo-banner-internas img {
    width: 100px;
  }
}

@media (max-width:476px) {
  .img-banner-interna {
    height: 202px;
  }
}

/* ===============================
    REDUCCIÓN FUERTE DE ALTURA
================================ */

/* ALTURA MÁXIMA PARA TODO EL SLIDER EN MÓVIL */
@media (max-width: 768px) {
    .pro-slide,
    .layout-grid,
    .layout-col,
    .layout-bg {
        max-height: 320px !important;
        min-height: 320px !important;
        height: 320px !important;
        overflow: auto !important;
    }

    /* Bloques internos más pequeños */
    .text-block,
    .img-block,
    .layout-col {
        padding: 1rem !important;
    }

    .slide-title {
        font-size: 5vw !important;
    }

    .layout7-content {
      max-width: 100% !important;
    }

    .slide-desc {
        font-size: 0.85rem !important;
        margin-bottom: 0.5rem !important;
        max-height: 45vh !important;
        overflow: hidden !important;
    }

    .slide-desc .descripcion {
        font-size: 3vw !important;
        text-align: justify;
        margin: auto;
        line-height: 2vh;
    }

    .slide-desc .nosotros-container {
      padding: 0px !important;
    }

    .slide-desc .titulo-seccion h2 {
        font-size: 5vw !important;
    }

    .slide-desc .intro-text {
        font-size: 3vw !important;
        margin-bottom: 0px !important;
    }

    /* Imagen más pequeña */
    .img-block img,
    .content-wrapper img {
        max-height: 160px !important;
        height: auto !important;
        object-fit: contain !important;
    }

    /* Botón más pequeño */
    .btn-more {
        padding: 0.4rem 1rem !important;
        font-size: 0.75rem !important;
    }

    /* Flechas más pequeñas */
    .nav-btn {
        width: 32px !important;
        height: 32px !important;
        opacity: 0.4;
    }
}


/* =======================================================
   ✅ RESPONSIVE FINAL — MÁS GRANDE + TEXTO CONTROLADO
   ======================================================= */

/* ===== TABLET ===== */
@media (max-width: 992px) {

    .item-products img {
        height: 200px; /* Más grande */
    }

    .item-products-text {
        padding: 1rem;
    }

    .item-products-text h3 {
        font-size: 1.2rem;
    }

    .item-products-text div {
        font-size: 0.95rem;
        line-height: 1.45;
        max-height: 65px;      /* ✅ Evita que sobresalga */
        overflow: hidden;
    }
    
    .is-horizontal.is-ltr .f-button.is-arrow.is-next {
      width: 10vw;
      height: 10vw;
    }

    .is-horizontal.is-ltr .f-button.is-arrow.is-prev {
      width: 10vw;
      height: 10vw;
    }
}

/* ===== MÓVIL MEDIANO ===== */
@media (max-width: 768px) {
    
    .clientes-container .f-carousel__slide {
      width: 20% !important;
      margin: auto;
    }

    .f-carousel__slide {
      padding-left: 1vw;
      padding-right: 1vw;
      width: 100% !important;  /* ✅ Más ancho, no tan pequeño */
      margin: auto;
    }

    .item-products img {
        height: 180px; /* ✅ más grande */
    }

    .item-products-text {
        padding: 0.85rem;
    }

    .item-products-text h3 {
        font-size: 1.1rem;
    }

    .item-products-text div {
        font-size: 0.9rem;
        max-height: 58px;   /* ✅ evita texto largo */
        overflow: hidden;
    }
}

/* ===== MÓVIL PEQUEÑO ===== */
@media (max-width: 480px) {

    .clientes-container .f-carousel__slide {
      width: 20% !important;
      margin: auto;
    }

    .f-carousel__slide {
      padding-left: 1vw;
      padding-right: 1vw;
      width: 100% !important;
      margin: auto;
    }

    .item-products img {
        height: 170px; /* ✅ un poco más grande */
    }

    .item-products-text {
        padding: 0.75rem;
    }

    .item-products-text h3 {
        font-size: 1.05rem;
    }

    .item-products-text div {
        font-size: 0.86rem;
        max-height: 52px; /* ✅ controla el desborde */
        overflow: hidden;
    }

    .btn-ver-mas-black {
        padding: 0.4rem 0rem;
        font-size: 0.78rem;
    }
}
