/* Icono */
#icon-menu{
    width: 50px;
    height: 50px;
    position: absolute;
    right: 20px;
    top: 16px;
    padding: 10px;
    font-size: 20px;
    background: #eeeeeefa;
    border-radius: 100%;
    color: #787878;
    display: none;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

#icon-menu:hover{
    opacity: 0.8;
}

/*Buscador de contenido*/

#ctn-icon-search{
    position: absolute;
    right: 20px;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

#ctn-icon-search i{
    font-size: 18px;
    color: #777777;
    cursor: pointer;
    transition: all 300ms;
}

#ctn-icon-search i:hover{
    color: #46a2fd;
}


/* Contenedor del buscador */
#ctn-bars-search {
    position: relative;
    top: 0;
    width: 100%;
    max-width: 600px;
    margin: 20px auto;
    background: #f9f9f9;
    border: 2px solid #ddd;
    border-radius: 25px;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 300ms ease-in-out;
}

/* Resaltar el borde al seleccionar */
#ctn-bars-search:focus-within {
    border-color: rgba(170,41, 41, 1);
    box-shadow: 0 0 8px rgba(170,41, 41, 1);
}

#ctn-bars-search input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 16px;
    padding: 10px;
    border-radius: 25px;
    background: transparent;
}

#ctn-bars-search input::placeholder {
    color: #aaa;
}

#ctn-bars-search i {
    font-size: 20px;
    color: #777;
    margin-left: 10px;
    cursor: pointer;
    transition: color 300ms;
}

#ctn-bars-search i:hover {
    color: #46a2fd;
}

/* Resultados del buscador */
#box-search {
    position: absolute;
    top: 55px;
    width: 100%;
    max-width: 550px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 10;
    display: none;
    overflow: hidden;
    list-style: none;
    padding: 0;
    margin: 0;
    margin-top: 20px;
}

#box-search li {
    width: 100%;
    text-align: left;
}

#box-search li a {
    display: flex;
    align-items: left;
    justify-content: left;
    width: 100%;
    padding: 15px 0;
    padding-left: 20px;
    font-size: 16px;
    color: #555;
    text-decoration: none;
    transition: background 300ms;
    box-sizing: border-box;
}

#box-search li a:hover {
    background: whitesmoke;
}


#cover-ctn-search {
    display: none;
}

/* Botón de búsqueda */
.btn-search {
    background-color: #aaa;
    color: white;
    border: none;
    border-radius: 25px;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    margin-left: 10px;
    transition: background-color 300ms ease-in-out;
}

.btn-search:hover {
    background-color: #787878;
}
