@import url('https://fonts.googleapis.com/css2?family=Barlow:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Rubik+Doodle+Shadow&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@500&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Lemon&display=swap');

:root{ --categorias: #303634; }

*{
    color: black;
    margin: 0;
    padding: 0;
    font-family: "Barlow", sans-serif;
    font-size: 22px;
    box-sizing: border-box;
}
body{ max-width: 100%; position: relative; }
a{ text-decoration: none; }
textarea{ resize: none; }

header{
    .articulos{
        .contacto::after, .categoria:hover::after{
            border: solid 1px;
            width: 100%;
        }
        .contacto, .categoria:hover{ font-weight: bold; }
    }
}

@media (max-width: 600px){ /* celulares */
    html, body{ overflow-x: hidden; }
    .Nav_compu{ display: none; }
}
@media (min-width: 601px) and (max-width: 821px){ /* tablets */
    html, body{ overflow-x: hidden; }
    .Nav_compu{ display: none; }
}
@media (min-width: 801px) and (max-width: 900px){
    body, html{ overflow-x: hidden; }
    .Nav_compu{ display: block; }
    .barra{ display: none; }
}
@media (min-width: 901px) and (max-width: 1200px) { /* Computadoras */
    body, html{ overflow-x: hidden; }
    .barra{ display: none; }
}
@media (min-width: 1201px) { /* Televisiones */
    body, html{ overflow-x: hidden; }
    .barra{ display: none; }
}

hr{
    border-color: black;
    opacity: 0.1;
}

.seccion-contacto{
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.5rem;
    padding: 2rem 0;

    .div-info-contacto{
        width: 100%;

        h1{
            text-shadow: 0 2px 10px rgba(255, 255, 255, 0.5);
            font-size: 2rem;
            background: linear-gradient(to right, lightblue, #B8E5C1, lightgreen); 
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            text-align: center;
            font-family: 'Rubik Doodle Shadow', system-ui;
        }
    }
    form{
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.3rem;

        .formulario__grupo{
            max-width: 90%;
            width: 800px;
            min-width: 280px;
            display: flex;
            flex-direction: column;
            gap: 0.3rem;

            .formulario__label{
                font-size: 0.7rem;
                margin-top: 0.5rem;
            }
            .formulario__grupo-input{
                position: relative;
                display: flex;
                align-items: center;

                .formulario__input{
                    height: 1.5rem;
                    font-size: 0.6rem;
                    padding: 0.7rem 0.5rem;
                    width: 100%;
                    border: solid 2px black; /* Cambiar con JS si es necesario */
                    border-radius: 0.1875rem;
                    line-height: 1.5rem;
                    transition: all 0.3s ease;
                }
                .formulario__input:focus, .formulario__textarea:focus{
                    border: 2px solid #B8E5C1;
                    outline: none;
                    box-shadow: 3px 0 10px rgba(163, 163, 163, 0.4);
                }
                .formulario__textarea{
                    width: 100%;
                    height: 5rem;
                    font-size: 0.6rem;
                    padding: 0.5rem;
                    margin: 0.2rem 0;
                    border: solid 2px black;
                    border-radius: 0.1875rem;
                    transition: all 0.3s ease;
                }
                .formulario__validacion-estado{
                    position: absolute;
                    font-size: 0.7rem;
                    right: 0.625rem;
                    top: 30%;
                    z-index: 100;
                    opacity: 0;
                }
            }
            .div_p_select_obra{
                display: flex;
                align-items: center;
                justify-content: space-between;
                position: relative;
                padding: 0.4rem 0.5rem;
                width: 100%;
                border: solid 2px black;
                border-radius: 0.1875rem;
                transition: all 0.3s ease;
                gap: 0.3rem; cursor: pointer;
                user-select: none;

                p{ font-size: 0.7rem; }
                svg{ fill: black; transition: all 0.3s ease; }
            }
            .div_select_obra{
                display: none; gap: 0.2rem;
                flex-direction: column;
                width: 101%;
                border-radius: 0.1875rem;
                position: absolute;
                bottom: 100%;
                left: -0.5%;
                z-index: 100;
                background: white;
                border: solid 2px black;
                transition: all 0.3s ease;

                p{ font-size: 0.7rem; padding: 0.5rem; cursor: pointer; }
                p:hover{ background: rgb(230, 230, 230); }
            }
            .formulario__input-error{
                font-size: 0.5rem;
                margin-bottom: 0.5rem;
                display: none;
            }
            .formulario__input-error-activo{ display: block; }
        }
        .formulario__grupo-correcto .formulario__validacion-estado{
            color: #1ed12d;
            opacity: 1;
        }
        .formulario__grupo-incorrecto .formulario__label{ color: #bb2929; }
        .formulario__grupo-incorrecto .formulario__validacion-estado{
            color: #bb2929;
            opacity: 1;
        }
        .formulario__grupo-incorrecto .formulario__input{ border: 2px solid #bb2929; }
        .formulario__mensaje{
            height: 2rem;
            line-height: 2rem;
            background: #F66060;
            padding: 0 0.9rem;
            border-radius: 3px;
            display: none;

            p, i, b{ font-size: 0.5rem; }
        }
        .formulario__mensaje-activo{ display: block; }
        .obras, option{
            display: flex;
            flex-direction: column;
            font-size: 0.7rem;
            width: 100%;
            padding: 0.4rem;
            /* height: 30px; */
        }
        .obras:focus{ border: 2px solid #B8E5C1; }
        .enviar{
            padding: 0.75rem 2rem;
            font-size: 0.8rem;
            border: none;
            border-radius: 10px;
            background: transparent;
            cursor: pointer;
            font-weight: 600;
            transition: all 0.3s ease;
            margin-top: 1rem;
            background: linear-gradient(to right, lightblue, lightgreen);
            box-shadow: 0 2px 10px 1px rgba(50, 50, 50, 0.5);
        }
        .enviar:hover{ 
            color: white; 
            background: linear-gradient(to left, lightblue, lightgreen); 
            scale: 1.05;
        }
    }
}
@keyframes glowing{
    0%{ background-position: 0 0; }
    50%{ background-position: 400% 0; }
    100%{ background-position: 0 0; }
}

.overlay{ 
    position: fixed; width: 100%; height: 100vh; display: none;
    top: 0; left: 0; background-color: rgba(50, 50, 50, 0.5);
}
.modal_validacion{
    position: fixed; min-width: 300px; top: -20%; left: 50%; 
    transform: translate(-50%, 0%); border-radius: 10px;
    background-color: white; box-shadow: 0 2px 10px rgba(50, 50, 50, 0.8);
    transition: top 0.4s ease-in-out;
}
.modal_validacion .div_modal_validacion{
    width: 100%; height: 100%; display: flex; gap: 0.8rem;
    flex-direction: column; padding: 0.8rem; 
    /* background-color: blue; */
} 
.modal_validacion .div_modal_validacion p{ font-size: 0.8rem; text-align: justify; }
.modal_validacion .div_modal_validacion .div_btns_validacion{
    width: 100%; display: flex; align-items: center;
    justify-content: space-between;
}
.modal_validacion .div_modal_validacion .div_btns_validacion .btns_validacion{
    padding: 0.5rem 0.7rem;
    font-size: 0.7rem;
    border: none;
    border-radius: 10px;
    background: transparent;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    background: linear-gradient(to right, lightblue, lightgreen);
    box-shadow: 0 2px 10px 1px rgba(50, 50, 50, 0.5);
}
.modal_validacion .div_modal_validacion .div_btns_validacion .btns_validacion:hover{
    color: white; scale: 1.05;
    background: linear-gradient(to left, lightblue, lightgreen); 
}

@media (max-width: 400px){
    html, body{ overflow-x: hidden; }
    .Nav_compu{ display: none; }
}
@media (min-width: 401px) and (max-width: 600px){ /* celulares */
    html, body{ overflow-x: hidden; }
    .Nav_compu{ display: none; }
}
@media (min-width: 601px) and (max-width: 800px){ /* tablets */
    html, body{ overflow-x: hidden; }
    .Nav_compu{ display: none; }
}
@media (min-width: 801px) and (max-width: 900px){
    body, html{ overflow-x: hidden; }
    .barra{ display: none; }
}
@media (min-width: 901px) and (max-width: 1200px) { /* Computadoras */
    body, html{ overflow-x: hidden; }
    .barra{ display: none; }
}
@media (min-width: 1201px) { /* Televisiones */
    body, html{ overflow-x: hidden; }
    .barra{ display: none; }
}