/* Estilos generales para todos los modales */
.modal_modals {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1003;
}

.modal-contenido_modals {
    background-color: white;
    width: 100%;
    padding: 20px 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.modal-imagen_modals {
    text-align: center;
    margin: 4px 0px -24px 0;
}

.modal-imagen_modals img {
    max-width: 80%;
    height: auto;
}

.modal-buscador {
    display: flex;
    justify-content: center;
    padding: 10px;
    margin-top: 24px;
}

.logo {
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-buscador_modals {
    display: flex;
    justify-content: center;
    padding: 10px;
    margin-top: 24px;
}

.modal-buscador_modals input {
    padding: 10px;
    width: 70%;
    border: 1px solid #ccc;
    border-radius: 4px 0 0 4px;
}
.modal-buscador_modals button {
    padding: 10px 15px;
    border: 1px solid #ccc;
    background: #f8f8f8;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}

/* Botones cerrar */
.cerrar2_modals {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
}

/* Estilos para el input del buscador */

/* Pantallas mayores a 900px */
/* @media (min-width: 901px) {
    .custom-desktop-search_modals2 {
        display: block;
        position: absolute;
        width: 94%;
        top: -2px;
        left: 70%;
    }
} */
.famodal_modals {
    position: absolute;
    left: 93px;
    top: 33px;
    transform: translateY(-50%);
    color: #888;
    pointer-events: none;
    align-self: self-start;
    z-index: 1003;
}
.abrirModal2 {
    width: 200px !important;
    padding-left: 38px !important;
    background-position: 10px center;
    top: 13px;
    left: 80px;
    position: absolute;
    z-index: 1002;
}
.custom-desktop-search_modals {
    display: block;
}
.custom-mobile-search_modals {
    display: none;
}
/* menores a 1200 */
@media only screen and (max-width: 1200px) {
    .custom-desktop-search_modals {
        display: none;
    }
    /*     .custom-desktop-search_modals2 {
        display: block;
    } */
    .custom-mobile-search_modals {
        display: block;
    }
    .menu-button_modals {
         /* display: none; */
    }
}

/* Estilos para el modal izquierdo */
.modal-izquierdo_modals {
    display: none;
    height: 100vh;
    width: 420px;
    position: fixed;
    top: 0;
    left: 0;
    background-color: white;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    z-index: 1100;
    overflow-y: hidden;
    transition: transform 0.3s ease-out;
    transform: translateX(-100%);
}
.modal-izquierdo_modals.abierto {
    display: block;
    transform: translateX(0);
}

.modal-contenido-izquierdo_modals {
    padding: 20px;
    height: 100%;
}
/* Flecha ">" */
.menu-categoria_modals li a::after {
    content: ">";
    float: right;
    margin-left: 10px;
    font-weight: 700;
    font-size: 20px;
    color: #000;
    display: inline-block;
    transition: transform 0.2s;
    transform: scaleX(0.7) scaleY(1.5);
}

.menu-categoria_modals li a:hover::after {
    transform: scaleX(0.7) scaleY(1.5) translateX(3px);
    color: #555;
}
.logo-modal_modals {
    font-size: 16px;
    font-weight: bold;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
    margin-top: 25px;
}

.menu-categoria_modals {
    margin-bottom: 25px;
}

.menu-categoria_modals ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu-categoria_modals li {
    margin-bottom: 12px;
}

.menu-categoria_modals a {
    color: #333;
    text-decoration: none;
    font-size: 14px;
    display: block;
    padding: 20px 0;
}

.menu-categoria_modals a:hover {
    color: #000;
    text-decoration: underline;
}
.texto-descripcion_modals {
    font-size: 12px;
    color: #666;
    margin-top: 30px;
}

/* Botón para abrir el modal izquierdo */
.menu-button_modals {
    position: absolute;
    background-position: 10px center;
    top: 4px;
    left: 20px;
    font-size: 24px;
    cursor: pointer;
    z-index: 100;
    padding: 10px;
}
.linea-divisoria_modals {
    position: relative;
    margin: 10px 0;
}

.linea-divisoria_modals::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100vw;
    margin-left: -20px;
    border-bottom: 3px solid #eee;
}

/* centrar ubicacion */
.centrar-ubicacion_modals {
    display: flex;
    justify-content: center;
    align-items: center;
}

.enlace-ubicacion_modals {
    color: #333;
    text-decoration: none;
    font-weight: bold;
    padding: 5px 10px;
    display: inline-block;
    transition: transform 0.3s ease, color 0.3s ease;
}

.enlace-ubicacion_modals:hover {
    color: #333;
    transform: scale(1.05);
}

/* Overlay */
.overlay_modals {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: none;
}

.overlay_modals.visible {
    display: block;
}

/* Botones cerrar */
.cerrar-izquierdo_modals,
.cerrar-derecho_modals {
    top: 10px;
    font-size: 40px;
    cursor: pointer;
}

/* Modal derecho */
.modal-derecho_modals {
    display: none;
    height: 100vh;
    width: 420px;
    position: fixed;
    top: 0;
    left: 420px;
    background-color: white;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    z-index: 1101;
    overflow-y: hidden;
    transition: transform 0.3s ease-out;
    transform: translateX(-100%);
}

.modal-derecho_modals.abierto {
    display: block;
    transform: translateX(0);
}

.modal-contenido-derecho_modals {
    padding: 20px;
    height: 100%;
}

.border-margin-bottom_modals li {
    margin-bottom: 5px;
    border-bottom: 1px solid #eee;
}

/* Ajustar overlay para cubrir ambos modales */
.modal-izquierdo_modals.abierto ~ .overlay_modals,
.modal-derecho_modals.abierto ~ .overlay_modals {
    display: block;
    width: calc(100% + 300px);
    left: -300px;
}

/* Estilos para el acordeón */
.acordeon_modals {
    width: 100%;
}

.acordeon-item_modals {
    margin-bottom: 5px;
    border-bottom: 1px solid #eee;
}
.border-margin-bottom_modals li {
    margin-bottom: 5px;
    border-bottom: 1px solid #eee;
}

.acordeon-titulo_modals {
    padding: 15px 0;
    cursor: pointer;
    position: relative;
    font-weight: bold;
    color: #333;
    transition: color 0.3s;
}

.acordeon-titulo_modals:hover {
    color: #000;
}

.sacordeon-titulo_modals::after {
    content: "+";
    position: absolute;
    right: 0;
    font-size: 18px;
    transition: transform 0.3s;
}
.acordeon-titulo_modals::after {
    content: ">";
    display: inline-block;
    position: absolute;
    right: 0;
    font-weight: 700;
    font-size: 20px;
    color: #000;
    transition: transform 0.3s;
    /* Combina todas las transformaciones en una sola línea */
    transform: rotate(90deg) scaleX(0.7) scaleY(1.5);
}

.acordeon-item_modals.abierto .acordeon-titulo_modals::after {
    /* Mantiene scaleX y scaleY, solo cambia la rotación */
    transform: rotate(-90deg) scaleX(0.7) scaleY(1.5);
}

.acordeon-contenido_modals {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding-left: 15px;
}

.acordeon-item_modals.abierto .acordeon-contenido_modals {
    max-height: 500px; /* Ajusta según necesidad */
}

.acordeon-lista_modals {
    list-style: none;
    padding: 0;
    margin: 0;
}

.acordeon-lista_modals li {
    margin-bottom: 10px;
}

.acordeon-lista_modals a {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    display: block;
    padding: 5px 0;
    transition: all 0.3s;
}

.acordeon-lista_modals a:hover {
    color: #000;
    padding-left: 5px;
}
/* solo en pantallas menores a 900px */
@media only screen and (max-width: 600px) {
    .custom-desktop-search_modals2 {
        display: block;
        position: absolute;
        width: 94%;
        top: 0px;
        right: 93%;
    }
}
@media only screen and (max-width: 450px) {
    .custom-desktop-search_modals2 {
        transform: scale(0.8);
        top: 6px;
        right: 82px;
    }
}
.input-search {
    width: 200px !important;
    padding-left: 38px !important;
    background-position: 10px center;
    top: 13px;
    left: 80px;
    position: absolute;
    z-index: 1002;
}
/* Teléfonos */
@media only screen and (max-width: 767px) {
    .modal-derecho_modals.abierto {
        display: block;
        transform: translateX(-100%);
    }
}

/* Tablets */
@media only screen and (min-width: 768px) and (max-width: 1024px) {
    .modal-derecho_modals.abierto {
        display: block;
        transform: translateX(-100%);
    }
}