@import url(main-image.css);

html {
    overflow-x: hidden;
}

body {
    background-color: #f5f5f5;
    overflow-x: hidden;
    overflow-y: hidden;
}

/* Estructura */

.row {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
}

.column {
    width: 50%;
    min-width: 300px;
}

/* Imágen principal */


#image {
    background-image: url(../img/image-back.webp);
    margin-bottom: 2vh;
}


/* Datos debajo de la imágen principal */

#data-container {
    width: 100%;
    background-color: #f5f5f5;
}

.data-box {
    text-align: center;
    padding: 10px;
    font-size: calc(2px + .8vw);
    color: black;
}

.img-span {
    display: inline-block;
    border-radius: 50%;
    background: linear-gradient(180deg, rgb(46, 117, 52) 0%, rgb(28, 77, 39) 100%);
    padding: 1vw;
    margin-bottom: 5px;
    transition: 0.5s;
}

.img-span:hover {
    box-shadow: rgb(0 0 0 / 20%) 0px 19px 38px, rgb(0 0 0 / 20%) 0px 15px 12px;
    transform: scale3d(1.1, 1.1, 1.1);
}


.img-span>img {
    width: 3vw;
    height: 3vw;
    filter: invert();
}


/* Formulario de consultas */

.header-form {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    font-size: calc(2vw);
}


#form_container {
    min-width: 300px;
    font-family: sans-serif, Verdana, Geneva, Tahoma;
    background-color: white;
    max-width: 35vw;
    margin: auto;
    margin-top: 20px;
    border-radius: .6vw;
    padding: 0.8rem;
    transition: 0.5s;
}

#form_container:hover {
    box-shadow: rgb(10 10 20 / 10%) 0px 4px 16px, rgb(10 10 20 / 10%) 0px 8px 32px;
}



.input-block {
    margin-bottom: 0.5rem;
}

small {
    font-size: calc(.9vw);
}

.form-control {
    border: none;
    border-bottom: 2px solid #78db8d;
    border-radius: unset;
    background-color: transparent;
    resize: none;
    padding: calc(2.2vh);
    font-size: calc(3px + .7vw);
}

.form-control:hover {
    background-color: rgba(138, 192, 133, 0.062);
    border-bottom: 2px solid #0dd438;
}

.form-control:focus {
    background-color: rgba(138, 192, 133, 0.062);
    border-bottom: 2.1px solid #11f041;
}

.is-invalid:hover {
    border-color: red !important;
}

.input-group {
    height: 35px;
    flex-wrap: unset;
}

.input-block {
    margin-bottom: 15px;
}

.form-text,
.form-label {
    margin-bottom: 5px;
    font-weight: bold;
}

/* Mapa de ubicación */

#map-container {
    width: 25vw;
    min-width: 400px;
    margin: auto;
    border-radius: 10px;
}

#map-container > p{
    font-size: calc(6px + .8vw);
}

#map-title{
    font-size: calc(10px + .8vw);
}

#img-location {
    width: 32px;
    height: 32px;
}

#map-container>a {
    position: relative;
    transition: 0.5s;
}

#map-container>a:hover {
    filter: brightness(0.5);
}

#map-container>a>img {
    width: 100%;
    box-shadow: rgb(10 10 20 / 40%) 0px 4px 16px, rgb(10 10 20 / 40%) 0px 8px 32px;
}

/* Links de redes sociales */

#links-loma {
    align-items: center;
    width: 100%;
    height: 100px;
    margin-top: 7vh;
    margin-left: 10px;
}

.img-link {
    width: 50px;
    height: 50px;
    transition: .5s;
}

.img-link:hover {
    transform: translateY(-5px);
    filter: saturate(1.3);
}


/* Variedades */

.font {
    font-size: calc(2px + .7vw);
}

#btn-submit {
    transition: .5s;
    background-color: #0d8035
}

#btn-submit:hover {
    background-color: #12a847;
}

.button {
    border-radius: 5px;
    border: none;
    padding: calc(2px + .4vw);
}


/* Adaptaciónes a las resoluciónes */


@media screen and (max-width: 820px) {


    .row{
        flex-wrap: wrap;
    }

    #form_container{
        max-width: 50vw;
        margin-bottom: 8vh;
    }

    .data-box {
        font-size: calc(6px + .8vw);
    }

    .img-span>img {
        width: 4vw;
        height: 4vw;
    }
    
    #form_container{
        max-width:none;
        width: 75vw;
    }

    .header-form {
        font-size: calc(11px + 2vw);
    }

    small {
        font-size: calc(7px + 1vw);
    }

    .form-control {
        font-size: calc(7px + 1.2vw);
    }

    #map-container > p{
        font-size: calc(10px + .8vw);
    }

    #map-title{
        font-size: calc(10px + 1.1vw);
        margin-bottom: 0px;
    }

    .flex-map{
        align-items: center;
    }

    .font {
        font-size: calc(8px + 1vw);
    }

}

@media screen and (max-width: 450px) {

        #float-title {
            font-size: calc(20px + 2vw);
        }

        .data-box {
            font-size: calc(6.5px + 1.3vw);
        }

        .img-span{
            padding: 2.2vw;
        }

        .img-span>img {
            width: 6vw;
            height: 6vw;
        }
    
        .header-form {
            font-size: calc(10px + 2.3vw);
            font-weight: 700;
        }
    
        small {
            font-size: calc(7px + 1vw);
        }
    
        .form-control {
            font-size: calc(7px + 1.2vw);
        }

        #map-container{
            min-width: unset;
            width: unset;
        }

        .img-link{
            width: 10vw;
            margin-left: 20px;
            height: unset;
        }

        #links-loma > h3{
            font-size: calc(15px + 1.6vw);
        }
    
        #map-container > p{
            font-size: calc(11px + .8vw);
        }
    
        #map-title{
            font-size: calc(12px + 1.1vw);
            margin-bottom: 0px;
        }
        
        .font {
            font-size: calc(8.5px + 1vw);
        }

}