/* Estilos comunes */
#nav-movil{
    display:none;
}
/* Ocultar el modal por defecto */
.modal {
    display: none; /* Elimina el modal del flujo normal de la página */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8); /* Fondo semitransparente */
    z-index: 1000; /* Asegúrate de que esté sobre otros elementos */
}

/* Mostrar el modal cuando tiene la clase "visible" */
.modal.visible {
    display: flex;
    justify-content: center;
    align-items: center;
}

#contenedor-enlaces-nav a{
    text-decoration: none;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: ghostwhite;
    padding: 10px;
    border-radius: 10px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    height: inherit;
    padding-top: 37%;
}

.close-button {
    background: transparent;
    border: none;
    font-size: 3.5rem;
    position: absolute;
    right: 10px;
    cursor: pointer;
    bottom: 17vh;
    right: 44vw;
}

.search-form {
    display: flex;
    gap: 10px;
}

#search-input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
}

.search-button {
    background: #00BC6D;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
}

.search-results {
    display: grid;
    gap: 10px;
}

.search-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f8f9fa;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
}

.result-image {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 5px;
}

.result-info {
    flex: 1;
}

.result-title {
    font-weight: bold;
    text-decoration: none;
    color: #007bff;
}

.result-location {
    font-size: 0.9rem;
    color: #6c757d;
}

#search-results > ul{
    list-style: none;
}

/* Ocultar resultados inicialmente */
.hidden {
    display: none;
}

#contenedor-enlaces-nav a{
    text-decoration:none;
}

.autocomplete-item {
    display: flex;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #ccc;
    cursor: pointer;
}

.autocomplete-item img.result-icon {
    width: 15%;
    margin-right: 10px;
}

.autocomplete-item a {
    text-decoration: none;
    color: #333;
    flex-grow: 1;
    text-align: initial;
}

.autocomplete-item:hover {
    background-color: #f0f0f0;
}

@media only screen and (max-width: 1024px) {
    #logo-web{
        top:0
    }
    #contenedor-enlaces-nav{
        display:flex;
        width:100%;
        justify-content:space-around;
        height:100%;
    }
    #contenedor-enlaces-nav div{
        display: flex;
        flex-direction: column;
        width:100%;
        align-items: center;
        justify-content: center;
    }
    #contenedor-enlaces-nav div:nth-child(3){
        border-radius:10px;
    }
    #contenedor-enlaces-nav img{
        width:30px;
    }
    #contenedor-enlaces-nav > div > a{
        display: flex;
        padding: 5px;
        width: 100%;
        text-align: center;
        flex-direction: column;
        align-items: center;
        color: black;
    }
}

/* Estilos para móviles pequeños */
@media only screen and (max-width: 480px) {

}

/* Estilos para móviles medianos */
@media only screen and (max-width: 768px) {
    #nav-movil{
        position:fixed;
        bottom:0;
        left:0;
        width:100%;
        height:10%;
        align-content:center;
        background-color: white;
        align-content: end;
        z-index:9999;
        display:flex;
    }
    #contenedor-enlaces-nav img{
        width: 30px;
    }
}

/* Estilos para tablets */
@media only screen and (max-width: 1024px) {
    /* Estilos */
}

/* Estilos para tablets en modo horizontal */
@media only screen and (min-width: 1025px) and (max-width: 1200px) {
    /* Estilos */
}

/* Estilos para pantallas de escritorio medianas */
@media only screen and (min-width: 1201px) {
    /* Estilos */
}

/* Estilos para pantallas grandes */
@media only screen and (min-width: 1601px) {
    /* Estilos */
}