*{
    margin: 0;
    padding: 0;
    border: 0;
    color: #000000;
    font-family:Verdana, Geneva, Tahoma, sans-serif;
}

body{
    background: #eeeeee;
    
}

/*input*/
#search_input{
    width: 40%;
    padding: 15px 60px 15px 20px;
    border: 2px solid #ddd;
    border-top-left-radius: 20px; 
    border-bottom-left-radius: 20px;
    border-top-right-radius: 0;     
    border-bottom-right-radius: 0;   
    font-size: 16px;
    outline: none;
    transition: all 0.3s ease;
    background-color: white;
}
#search_input:focus {
    border-color: #4a90e2;
    box-shadow: 0 2px 10px rgba(74, 144, 226, 0.3);
}

/*button*/
#search_button {
    border: 2px solid #ddd;
    border-top-right-radius: 20px; 
    border-bottom-right-radius: 20px;
    border-top-left-radius: 0;     
    border-bottom-left-radius: 0;  
    background-color: rgb(162, 162, 162);
    font-size: 20px;
    width: 50px;
    height: 55px;
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-weight: bold;
    color: black;

}

.button_microfono {
    border: 2px solid #ddd;
    width: 35px;
    height: 55px;
    background-color: white;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.button_microfono:hover {
    background-color: #357ab8;
}

.button_microfono.active {
    background-color: #58d2fb; /* Cambia el color a gris cuando esté activo */
}

.button_microfono img {
    width: auto;
    height: 20px;
}

#search_button:hover {
    background-color: #357ab8;
}

#bubble{
    position: relative;
    z-index: 0;
    .animation_bubble{ 
        z-index: 1;
        position: fixed;
        display: inline-block;
        width: 20px;
        height: 20px;
        background: #3146e3;
        bottom: -150px;
        animation: bubbles_float 25s linear infinite;
    } 
}

.contenedor{
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    align-items: center;
    width: 100%;
    height: 100vh;
    z-index: 10;
}

.search_container{
    display: flex;
    flex-direction: row;
    justify-content: center;
    margin-top: 30px;
}

.elementos{
    text-align: center;
    span{
        display: block;
        font-size: 2.5em;
        font-weight: bold;
    }

}

/* CAMBIAR PARA LA CAJA SUPERIOR DERECHA LINEA 443
.logincss{
    display: flex;
    flex-direction: row;
    justify-content: right;
    margin-top: 0px;
}*/

.results{
    display: none;
    transition: transform 5s ease;
    grid-template-rows:  1fr;
    width: 100%;
    height: 100vh;
    /* Class for each item in the table*/
}

.results div{
        text-align: center;
        position: relative;
        bottom: 0;
        top: 30px;
        right: 0;
        z-index: 10;
        width: 60%;
        margin: 0 auto 20px;
}

.title_search{
        font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
        margin: 20px 0 0 0;
        max-height: 100px;
        font-size: 1.5em;
        font-weight: bold;
        &.found{
            color: #3147e3;
        }
        &.not_found{
            color: #cc1414;
        }
}

.filtros{
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 45%; 
    margin: 0 auto; /* centrado horizontal */
    margin-top: 5px;

}

#button_filtro_page, #button_filtro_video, #button_filtro_pdf, #button_filtro_all {
    border: 0;
    border-radius: 8px; 
    background-color: #f5f5fa;
    box-shadow: 10px 10px 30px 0 #1d0dca17; /* Solo sombra en la parte inferior */
    box-sizing: border-box;
    font-size: 15px;
    padding: 5px;
    width: 22%; /*Boton LOGIN SE AFECTA POR ESTO*/
    height: 35px;
    margin-left: -7px;
    font-family: Georgia, 'Times New Roman', Times, serif;
    color: #2a1f62;
    top: 15px;
    transition: .2s;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
    white-space: pre;
    word-break: normal;
    word-spacing: normal;
}

#loginBtn {
    width: auto;
    padding: 8px 18px;
    height: 40px;
    font-size: 15px;
    font-weight: bold;
    border-radius: 20px;
    background-color: #4a90e2;
    color: white;
    cursor: pointer;
}

#button_filtro_all:hover, #button_filtro_all.active, #button_filtro_all.active:hover{
    background: #c2c2c2f1;
    box-shadow: -15px -15px 30px 0 #fff, 15px 15px 30px 0 #1d0dca17;
}

#button_filtro_page:hover, #button_filtro_page.active, #button_filtro_page.active:hover{
    background: #c2c2c2f1;
    box-shadow: -15px -15px 30px 0 #fff, 15px 15px 30px 0 #1d0dca17;
}

#button_filtro_video:hover, #button_filtro_video.active, #button_filtro_video.active:hover{
    background: #c2c2c2f1;
    box-shadow: -15px -15px 30px 0 #fff, 15px 15px 30px 0 #1d0dca17;
} 

#button_filtro_pdf:hover, #button_filtro_pdf.active, #button_filtro_pdf.active:hover{
    background: #c2c2c2f1;
    box-shadow: -15px -15px 30px 0 #fff, 15px 15px 30px 0 #1d0dca17;
}

#loginBtn:hover {
    background: #c2c2c2f1;
    box-shadow: -15px -15px 30px 0 #fff, 15px 15px 30px 0 #1d0dca17;
}

#userSection {
    position: fixed;
    top: 0px;
    right: 10px;
    left: auto;           

    display: flex;
    align-items: center;
    gap: 10px;

    z-index: 90;
}

.results ul{
        position: absolute;
        place-content: start;
        height: 80%;
        width: 50%;
        margin-top: 100px;
        overflow-y: auto;
}

.results ul li{
    display: flex;
    flex-direction: column;
    text-align: left;
    justify-content: center;
    width: 65%;
    margin: 0 auto;
        margin-bottom: 20px;
    position: relative;
    background: #ffffff;
    height: 60px;
    /*box-shadow: 0 0 7px 1px #6b6b6b;*/
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border-radius: 10px;
    cursor: pointer;
    padding: 0 0 0 30px;
    &.item_video::before{
        background: #06a31b;
    }
    &.item_pdf::before{
        background: #ca3609;
    }
    &.item_text::before{
        background: #2c2c2c;
    }
}
.results li::before{
            position: absolute;
            content: " ";
            display: block;
            width: 17px;
            height: 17px;
            border-radius: 50%;
            top: 2px;
            left: 2px;
            margin: 2px 0 0 2px;
    }

.results li:hover{
    box-shadow: 0 0 7px 1px #6b6b6b;
    transform: perspective(2px) translateZ(0);
    transition-duration: 300ms;
    transition-property: transform;
    &.item_video::before{
        box-shadow:0 0 0 2px #06a31b;
    }
    &.item_pdf::before{
        box-shadow:0 0 0 2px #ca3609;
    }
    &.item_text::before{
        box-shadow:0 0 0 2px #383838;
    }

}

.item_text, .item_video, .item_pdf{
    padding-top: 3.5%;
}

.title_page, .title_pdf, .title_video{
    font-weight: bold;
}

.title_video{
    color: #06a31b;
}

.title_pdf{
    color: #ca3609;
}

#title_principal{
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    font-weight: bold;
    font-size: 70px;
}

#subtitle_principal{
    font-style: italic;
    font-size: 18px;
}


#logo_title{
    display: flex;  
    align-items: center;    
    gap: 1px;
    justify-content: center;
}

#logo_img{
    width: auto;
    height: 70px;
}

dialog{
    z-index: 20;
    position: fixed;
    top: 0;
    left: 0;
    display: none;
    width: 100%;
    height: 100vh;
    background:#000000aa;
    video{
        max-width: 80%;
        min-width: 300px; 
        margin: 0 auto;
        border-radius: 20px;
    }
}

dialog iframe {
    width: 80%;
    height: 90%;
    margin: 0 auto;
    border-radius: 20px;
}

.item_active{
    display: grid;
    align-items: center;
}

.video_config{

    width: auto;
    height: 80%;
}

@keyframes bubbles_float{
    0%{
        transform: translateY(0) rotate(0deg);
        opacity: 1;
        border-radius: 10%;
    }
    100%{
        transform: translateY(-1000px) rotate(720deg);
        opacity: 0;
        border-radius: 10%;
    }
}

/* Resaltado de texto encontrado*/

@media (max-width: 900px) { 

    body {
        max-width: 100%;
        overflow-x: hidden;
        overflow-y: hidden;
      }

    /*.contenedor {
        display: flex;
        flex-direction: column;
        align-items: center;
        height: 100%;
    }

    .elementos {
        display: flex;
        flex-direction: column;
        place-items: center;
        width: 100%;
        max-height: 25vh;
        padding: 20px;
        position: fixed;
        top: 0;
        left: 50%; 
        transform: translateX(-50%); 
        z-index: 1000;
    }

    .results {
        width: 100%;
        position: fixed;
        padding-top: 28vh; /* <-- altura de .elementos + margen extra
    }*/

    .contenedor {
        display: flex;
        flex-wrap: wrap;
        height: 100%;
    }

    .elementos {
        flex: 1;
        margin-top: 20px;
    }
    .results ul{
        max-height: 35%;   
        width: 100%;
        left: 50%;
        transform: translateX(-50%);
    }

    dialog{
    width: 100%;
    height: 50vh;
    left: 0;
    transform: translateX(0);
    display: none;
    z-index: 1050;
        video{
            margin-top: -50px;
            max-width: 80%;
            min-width: 300px;
            height: auto;
        }
    }

    #logo_title {
        display: flex;
        align-items: center; 
        justify-content: center;
        gap: 10px;
        width: 100%;
    }

    #logo_img{
        width: auto;
        height: 55px;
    }

    #subtitle_principal {
        text-align: center;
        margin-top: 10px;
    }

    .search_container {
        margin-top: 20px;
        width: 100%;
        display: flex;
        justify-content: center;
    }

    #search_input {
        width: 50%;
        font-size: 16px;
    }

    #search_button {
        height: 55px;
    }

    #loginBtn {
    width: auto;
    padding: 5px 10px;
    }

    #title_principal {
        font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
        font-weight: bold;
        font-size: 50px;
    }

    #subtitle_principal {
        font-style: italic;
        font-size: 18px;
    }

    .item_video, .item_pdf, .item_text {
        font-size: 14px;
    }

    .filtros{
        padding-top: 5px;
        width: 85%; /* o el ancho que quieras */
        margin: 0 auto; /* centrado horizontal */ 
    }


}



