@import url("../../config/styles/config.css");
@import url("../../config/styles/navbar.css");

body{
    background-color: var(--Color_Principal);
    width: 100%;
    height: 100vh;
}

.contenedor__principal{
    background-color: #fff;
    width: 100%;
    border-radius: 10px;
}

.contenedor__image{
    width: 100%;
    height: 300px;
    background-image: url("../assets/images/inteligencia_artificial_analisis_de_datos.jpg");
    background-repeat: no-repeat;
    background-size: 200%;
    background-position: center;
    overflow: hidden;
    position: relative;

    display: flex;
    justify-content: center;
    align-items: center;
}

.contenedor__image::after{
    content: " ";
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background-color: #00000087;
    pointer-events: none;
}

.contenedor__image h1{
    color: #fff;
    z-index: 2;
}

.contenedor__formulario{
    padding: 20px;
}

.contenedor__formulario__texto{
    font-weight: 300;
    line-height: 25px;
}

.formulario{
    margin-top: 30px;
    width: 100%;
}

.formulario__grupo__label{
    width: 100%;
    display: grid;
    grid-template-areas: "input";
    margin-bottom: 30px;
}

.formulario__grupo__label__input{
    grid-area: input;
    padding: 15px 10px;
    border-radius: 5px;
    border: 1px solid var(--Color_Principal);
}

.formulario__grupo__label__text{
    grid-area: input;
    display: flex;
    width: max-content;
    height: 100%;
    align-items: center;
    margin-left: 10px;
    font-size: 13px;
    color: #062c43a6;
    transform-origin: left center;
    transition: transform 0.3s;
    pointer-events: none;
    padding: 0px 5px;
}

.formulario__grupo__label__input:is(:focus, :not(:placeholder-shown)) + .formulario__grupo__label__text{
    background-color: #fff;
    transform: translateY(-50%) scale(.8);
    height: 25px;
}

textarea {
    border-radius: 5px;
    border: 1px solid var(--Color_Principal);
    height: 150px;
    padding: 10px;
    grid-area: input;
}

span.formulario__grupo__label__text__mensaje {
    grid-area: input;
    /* background: red; */
    width: max-content;
    height: 40px;
    display: flex;
    align-items: center;
    margin-left: 10px;
    font-size: 14px;
    color: #062c43a6;
    transform-origin: left center;
    transition: transform 0.3s;
    pointer-events: none;
    padding: 0px 5px;
}

textarea:is(:focus, :not(:placeholder-shown)) + .formulario__grupo__label__text__mensaje{
    background-color: #fff;
    transform: translateY(-50%) scale(.8);
    height: 25px;
}

.btn__enviar{
    padding: 15px 25px;
    background-color: var(--Color_Principal);
    color: #fff;
    border: none;
    border-radius: 5px;
}

select.combobox {
    width: 50%;
    height: 45px;
    border-radius: 5px;
    border: 1px solid var(--Color_Principal);
    margin-bottom: 30px;
}

@media screen and (min-width:628px){
    .formulario{
        width: 80%;
        margin: 40px auto;
    }

    .contenedor__image{
        height: 400px;
    }

    .contenedor__image h1{
        font-size: 40px;
    }
}

@media screen and (min-width:768px){
    .formulario{
        max-width: 1000px;
    }

    .formulario__imputs{
        display: flex;
        gap: 30px;
    }
}

@media screen and (min-width:1024px){
    body {
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .contenedor__principal{
        max-width: 1100px;
        height: auto;
        display: grid;
        grid-template-columns: 40% 60%;
        overflow: hidden;
        margin-top: 70px;
        height: 600px;
    }

    .contenedor__image {
        height: 100%;
        border-radius: 10px;
    }

    p.contenedor__formulario__texto {
        width: 80%;
        margin: 30px auto 0px;
    }
}