@media screen and (min-width: 1401px) {
    .carousel-caption-box {
        width: auto;
    }
}

@media screen and (max-width: 1400px) {
    header .carousel-item {
        height: 100vh;
    }
}
@media screen and (max-width: 1300px){
    .frase-inicio{
        padding: 30px 15px;
        min-height: 100px;
    }
}

@media screen and (max-width: 1150px) {
    .frase-inicio h2 {
        font-size: 2rem;
    }

    .frase-inicio p {
        font-size: 1.2rem;
    }

    .btn-pague,
    .btn-informe {
        font-size: 1rem;
        display: inline-block;
        padding: 5px 15px !important;
        margin: 0px auto 10px auto;
    }

    .hidden-mobile {
        display: none;
    }

    .visible-mobile {
        display: block;
    }

    .g-recaptcha {
        transform: scale(1);
        transform-origin: 0 0;
    }
}

@media screen and (max-width: 992px) {
    #layer1 {
        display: none;
    }

    .navbar-nav.ml-auto {
        background: rgba(0, 0, 0, 0.9);
    }

    .visible-desktop {
        display: none;
    }

    #layer2 {
        position: relative;
        top: 0px;
        left: 0px;
        right: 0px;
        margin-bottom: 0px;
        height: 200px;
    }

    .frase-inicio {
        background: transparent;
    }

    .frase-inicio h2,
    .frase-inicio p {
        color: #ffffff;
    }

    .frase-inicio hr {
        display: none;
    }

    .fondo-amarillo {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .fondo-quienes-somos {
        height: 400px;
    }

    .fondo-quienes-somos p {
        font-size: 1.5rem;
    }

    h1 {
        font-size: 2rem !important;
    }

    h2 {
        font-size: 1.5rem;
    }

    .marca {
        height: 100px;
    }

    .miembros {
        margin-bottom: 20px;
    }

    .miembros img {
        display: block;
        margin: 10px auto !important;
    }

    .miembros p {
        text-align: center;
    }

    .fondo-servicios-izquierda .carousel-item>img,
    .fondo-servicios-derecha .carousel-item>img {
        height: auto !important;
    }

    .fondo-porque-elegirnos-interna .bold,
    .fondo-porque-elegirnos-interna .regular {
        font-size: 2rem !important;
        text-align: left !important;
    }

    .fondo-servicios-izquierda h2,
    .fondo-servicios-derecha h2 {
        font-size: 1.5rem !important;
        text-align: center !important;
        margin-top: 10px;
    }

    .fondo-servicios-izquierda,
    .fondo-servicios-derecha {
        background-position: left !important;
        min-height: auto !important;
    }

    .card-fondo-gris h2,
    .card-fondo-gris .vision {
        text-align: center !important;
        margin-left: 0px !important;
    }

    .pleft-15 {
        padding-left: 15px !important;
    }

    .pright-15 {
        padding-right: 15px !important;
    }

    .servicio2 h2:first-child,
    .servicio3 h2:first-child,
    .servicio4 h2:first-child,
    .servicio5 h2:first-child {
        margin-top: 50px !important;
    }

    .ml-70px {
        margin-left: 0px;
    }

    .navbar-nav a {
        text-align: center;
    }
}

@media screen and (max-width: 767px) {
    h1 {
        text-align: center;
        font-size: 1.5rem !important;
    }

    p {
        font-size: 1rem !important;
    }

    .navbar-brand {
        margin-bottom: 20px;
    }

    .navbar-brand img {
        height: 100px;
    }

    .top-165 {
        top: 0;
    }

    .top-165 img {
        height: 300px;
        margin: 0px auto 50px auto;
    }

    .img-quienes-somos {
        height: 400px;
    }

    .frase-inicio {
        padding: 15px;
        min-height: auto;
        display: block;
    }

    .frase-inicio h2 {
        font-size: 1.5rem;
    }

    .carousel-indicators {
        bottom: -10px;
    }

    header .carousel-item {
        height: 80vh;
    }

    .carousel-caption-box {
        top: 30% !important;
    }

    .bg-whatsapp img {
        width: 100px;
    }

    .quienes-somos p {
        text-align: left;
    }

    .historia-de-exito img {
        max-width: 70%;
    }

    .historia-de-exito .col-md-10 {
        min-height: 400px;
    }

    .servicios-item {
        height: 320px;
    }

    .servicios-item img {
        height: 140px;
    }

    .servicios {
        top: 38%;
    }

    .btn-me-interesa {
        width: 250px;
    }

    .ocultar-desktop {
        display: block !important;
    }

    .ocultar-mobile {
        display: none;
    }

    .whatsapp-flotante {
        top: 50%;
        right: -20px;
        opacity: 1;
    }

    .servicio3 h2:first-child {
        margin-left: 0px;
    }

    .formulario {
        padding: 40px 15px;
    }
}

@media (max-width: 500px) {
    footer .nav {
        flex-direction: column;
    }

    footer .redes-sociales {
        flex-direction: row;
    }

    .g-recaptcha {
        transform: scale(0.80);
    }

    .detalle-servicio span {
        font-size: 0.7rem;
        margin-bottom: 10px !important;
    }

    #carouselHistorias .carousel-control-prev {
        left: 0;
    }

    #carouselHistorias .carousel-control-next {
        right: 0;
    }

    #eapps-instagram-feed-1 {
        overflow: hidden;
    }

    .carousel-caption-box {
        width: 70%;
        left: 0;
        right: 0;
        margin: 0 auto;
    }

    .frase-inicio h2 {
        font-size: 1rem;
    }

    #layer2 {
        height: auto;
    }

    .whatsapp-flotante {
        width: 100px;
    }

    .servicios-item,
    .servicios-item img {
        height: 100px;
    }

    .servicios {
        top: 0;
        left: 0;
        position: relative;
        text-align: center;
    }

    .pagar p,
    .pagar {
        top: 0;
        right: 0;
        position: relative;
    }

    .pagar p {
        width: 100%;
        left: 0;
    }

    .aliado p,
    .servicios p {
        top: 0;
        right: 0;
    }

    .servicios-item p {
        opacity: 1;
        position: relative;
        margin-bottom: 10px;

    }
}