/*
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.0.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* Add your custom styles here */

:root {
    --evo-azul: #2c86d5;
    --evo-verde: #6dbc00 ;
    --evo-verde-claro: #9dd159 ;
    --evo-naranja: #ff8800;
    --evo-rojo:#fc4307;

    --evo-verde-fosforito: #D7FF00 ;
    --evo-naranja-fosforito: #FFBE00 ;
    --evo-azul-fosforito: #86C7FF;
    --navy: #0F1F3D;
    --gold: #C9A15A;
    --gold-light: #d4b070;
    --white: #ffffff;
    --bg: #FAF8F5;
    --off-white: #f2efe9;
    --mid-gray: #ddd8d0;
    --text-muted: #888070;
    --text-body: #2a2520;
    --max-width: 1280px;
    --gap: 28px;
    --ocio: #2E7D32;
    --restauracion: #E67E22;
    --viajes: #D4A017;
    --shopping: #7B2D8B;
    --educacion: #00695C;
    --salud: #1565C0;
    --actualidad: #C0392B;

}


/* listado posts */

.qhn-listado-posts {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr 1fr 1fr;

}

.qhn-post-item {
    display: flex;
    flex-direction: column;
    box-sizing: border-box;

    .tipo__cliente {
        position: absolute;
        top: 8px;
        left: 8px;
        background-color: red;
        padding: 4px 8px;
        color: white;
        font-size: 13px;
        border-radius: 4px;
    }

    .tipo__cliente.recomendado {
        background-color: #ff9800;
    }

    .image-content {
        position: relative;
        height: 175px !important;
        padding: 0;

        a {
            height: 100%;
            width: 100%;
        }

        img {
            height: 100% !important;
            width: 100%;
            border-radius: 8px;
            object-fit: cover;
        }
    }

    .qhn-post-data {
        font-size: 14px;
        display: flex;
        align-items: center;

        .star {
            svg {
                width: 12px;
                height: 12px;
                margin-right: 2px;
                fill: #fed141;
                stroke: #fed141;

                path {
                    fill: #fed141;
                    stroke: #fed141;
                }
            }
        }

        svg {
            width: 14px;
            height: 14px;
            margin-right: 4px;
        }

    }

    .noticia__categorias {
        display: flex;
        justify-content: start;
        gap: 16px;

        .ciudad {
            display: flex;
            align-items: center;

            a {
                font-size: 13px;
                color: gray;

                &:hover {
                    color: #2e529b;
                }
            }

            .ciudad__icono {
                display: flex;
                align-items: center;

                svg {
                    margin-right: 4px;
                    width: 18px;
                    height: 18px;
                }
            }


        }

        .topic {
            display: flex;
            font-size: 13px;

            a {
                color: gray;
            }

            .topic__icono {
                display: flex;

                align-items: center;

                svg {
                    margin-right: 4px;
                    width: 18px;
                    height: 18px;
                }
            }

        }
    }

    .qhn-post-content {
        margin-top: 8px;
        display: flex;
        flex-direction: column;
    }

    /*.ficha__enlace {
        .work__enlace {
            margin-top: 8px;
            font-size: 12px;
            font-weight: 700;
            position: absolute;
            bottom: 4px;
            left: 8px;
            right: 0;
            color: #bc0000;

            svg {
                width: 14px;
                margin-left: 4px;
                strike: #bc0000; !* Nota: 'strike' no es una propiedad CSS válida, quizás querías usar 'stroke' *!
            }
        }
    }*/
}

.qhn-post-thumb img {
    width: 100%;
    height: 200px;
    border-radius: 4px;
    object-fit: cover;
}

.qhn-post-title {
    margin: 4px 0;
    font-size: 16px;

    a {
        color: #222;
        font-weight: bold;

        &:hover {
            color: #2e529b;
        }
    }
}

/* Scroll horizontal en móviles */
@media (max-width: 768px) {
    .qhn-listado-posts {


        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        gap: 0.75rem;
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
    }

    .qhn-post-item {
        /*flex: 0 0 100%;*/
        scroll-snap-align: start;

        .noticia__categorias {
            display: flex;
            flex-direction: column !important;
        }
    }

    .qhn-pagination {
        display: none; /* opcional ocultar paginación en móvil */
    }

}

/* css de qhn que hay que limpiar */
.categorias-hijas {
    display: flex;
    flex-wrap: wrap;

    .categoria-item__boton {
        background: transparent;

        a {
            background: white;
            color: var(--color-marron);
            padding: 4px 8px;
            margin-right: 8px;
            font-size: 14px;
            border-radius: 50px;
            border: 2px solid var(--color-marron);

            &:hover {
                background: var(--color-marron);
                color: white;
            }
        }

    }

    .categoria-item__boton.activo {

        a {
            background: var(--color-marron);
            border-radius: 50px;
            color: white;
        }
    }

}

.categoria-item {
    a {
        flex: 0;
        text-align: center;
        padding: 4px 8px;
        border: 1px solid var(--color-azul);
        border-radius: 4px;
        background: #e9f0ff;
        color: var(--color-azul) !important;
        font-weight: 500;
    }


    &:hover {
        a {
            background: var(--color-azul);
            color: white !important;

        }

    }

}


.categoria-nombre {
    margin-top: 0.5rem;
    font-size: 1.1rem;
}


.categorias-principales {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    gap: 8px;
    margin: 8px 0;

}


.categoria-item img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    object-fit: cover;
}

.categoria-nombre {
    margin-top: 0.5rem;
    font-size: 1.1rem;
}


/* listado posts */

.qhn-listado-posts {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr 1fr 1fr;

}

.qhn-post-item {
    display: flex;
    flex-direction: column;
    box-sizing: border-box;

    .tipo__cliente {
        position: absolute;
        top: 8px;
        left: 8px;
        background-color: red;
        padding: 4px 8px;
        color: white;
        font-size: 13px;
        border-radius: 4px;
    }

    .tipo__cliente.recomendado {
        background-color: #ff9800;
    }

    .image-content {
        position: relative;
        height: 175px !important;
        padding: 0;

        a {
            height: 100%;
            width: 100%;
        }

        img {
            height: 100% !important;
            width: 100%;
            border-radius: 8px;
            object-fit: cover;
        }
    }

    .qhn-post-data {
        font-size: 14px;
        display: flex;
        align-items: center;

        .star {
            svg {
                width: 12px;
                height: 12px;
                margin-right: 2px;
                fill: #fed141;
                stroke: #fed141;

                path {
                    fill: #fed141;
                    stroke: #fed141;
                }
            }
        }

        svg {
            width: 14px;
            height: 14px;
            margin-right: 4px;
        }

    }

    .noticia__categorias {
        display: flex;
        justify-content: start;
        gap: 16px;

        .ciudad {
            display: flex;
            align-items: center;

            a {
                font-size: 13px;
                color: gray;

                &:hover {
                    color: #2e529b;
                }
            }

            .ciudad__icono {
                display: flex;
                align-items: center;

                svg {
                    margin-right: 4px;
                    width: 18px;
                    height: 18px;
                }
            }


        }

        .topic {
            display: flex;
            font-size: 13px;

            a {
                color: gray;
            }

            .topic__icono {
                display: flex;

                align-items: center;

                svg {
                    margin-right: 4px;
                    width: 18px;
                    height: 18px;
                }
            }

        }
    }

    .qhn-post-content {
        margin-top: 8px;
        display: flex;
        flex-direction: column;
    }

    /*.ficha__enlace {
        .work__enlace {
            margin-top: 8px;
            font-size: 12px;
            font-weight: 700;
            position: absolute;
            bottom: 4px;
            left: 8px;
            right: 0;
            color: #bc0000;

            svg {
                width: 14px;
                margin-left: 4px;
                strike: #bc0000; !* Nota: 'strike' no es una propiedad CSS válida, quizás querías usar 'stroke' *!
            }
        }
    }*/
}

.qhn-post-thumb img {
    width: 100%;
    height: 200px;
    border-radius: 4px;
    object-fit: cover;
}

.qhn-post-title {
    margin: 4px 0;
    font-size: 16px;

    a {
        color: #222;
        font-weight: bold;

        &:hover {
            color: #2e529b;
        }
    }
}

/* Scroll horizontal en móviles */
@media (max-width: 768px) {
    .qhn-listado-posts {


        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        gap: 0.75rem;
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
    }

    .qhn-post-item {
        /*flex: 0 0 100%;*/
        scroll-snap-align: start;

        .noticia__categorias {
            display: flex;
            flex-direction: column !important;
        }
    }

    .qhn-pagination {
        display: none; /* opcional ocultar paginación en móvil */
    }

}

.qhn-busqueda-form {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: flex-end;
    margin-bottom: 2rem;
    flex-direction: row;
}

.qhn-select-group {
    flex: 1 1 30%;
    min-width: 200px;

    label {
        font-size: 16px;
        font-weight: bold;
        margin-bottom: 4px;
    }
}

.qhn-btn {
    padding: 8px 16px;
    background: #2e529b;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.qhn-btn:hover {
    background: #005177;
}


.qhn-post-thumb img {
    width: 100%;
    border-radius: 8px;
}

.qhn-pagination {
    text-align: center;
    margin-top: 1.5rem;
    display: flex;
    flex-direction: row;
    justify-content: center;

    .page-numbers {
        display: flex;
        flex-direction: row;
        margin: 0 5px;
        padding: 0.5rem 1rem;
        color: #333;
        text-decoration: none;
        cursor: pointer;

        li {
            list-style: none;
        }

        &.current {
            border: 1px solid #0073aa;
            color: #0073aa;
        }
    }
}

.qhn-pagination a {
    display: inline-block;
    margin: 0 5px;
    padding: 0.5rem 1rem;
    color: #333;
    text-decoration: none;
}

.qhn-pagination a.active {
    border: 1px solid #0073aa;
    color: #0073aa;
}

@media (max-width: 768px) {
    .qhn-listado-posts {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 0.75rem;
    }

    /*.qhn-post-item {
        flex: 0 0 100%;
        scroll-snap-align: start;
    }*/
}

.select2-container--default .select2-selection--single .select2-selection__clear {
    padding: 4px 0 0;
}

.select2-container--default .select2-selection--single {
    height: 36px;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 36px;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 32px;
}


.categoria-imagen img {
    border-radius: 100px;
    object-fit: cover;
    width: 100px;
    height: 100px;
}


/*.ficha-noticia {
    .image-content {
        position: relative;
        height: 150px !important ;
        a {
            height: 100%;
        }
        img {
            height: 100% !important;
            border-radius: 8px;
            object-fit: cover;
        }
    }
    .noticia__categorias {

        .ciudad {
            background: var(--color-azul);
            color: white ;
            padding:  4px 8px;
            a {
                color: white ;
            }

        }
        .topic {
            background: var(--color-naranja);
            color: white ;
            padding:  4px 8px;
            a {
                color: white ;
            }

        }
    }
    .news__enlace-texto {
        font-size: 14px;
        display: flex;
        align-content: center;
        align-items: center;
        svg {
            margin-left: 4px;
            width: 16px;
            height: 16px;
        }
    }

}*/


.categoria-item__boton {
    background: transparent;

    a {
        background: white;
        color: #2e529b;
        padding: 4px 8px;
        margin-right: 8px;
        font-size: 14px;
        border-radius: 50px;
        border: 2px solid #2e529b;

        &:hover {
            background: #2e529b;
            color: white;
        }
    }

}

.categoria-item__boton.activo {

    a {
        background: #2e529b;
        border-radius: 50px;
        color: white;
    }
}

.qhn-breadcrumbs {
    span {
        font-size: 14px;
        color: #2e529b;
    }
}

a {
    font-size: 14px;
    color: #222;

    &:hover {
        color: #2e529b;
    }

}


.qhn-listado-posts-relacionados {

    .qhn-listado__titulo h2 {
        font-family: var(--e-global-typography-primary-font-family), sans-serif;
        font-size: 1.5rem;
        font-weight: 500;
        color: #222;
    }

    .qhn-listado__posts {
        display: grid;
        gap: 1rem;
        grid-template-columns: 1fr;
        .qhn-post-item.negocio {
            border: none !important ;
            .image-content {
                img {
                    border-radius: 8px;
                }
            }
        }
        .qhn-post-item {
            gap: 1rem;
            display: flex;
            flex-direction: row;
            .actividad__area {
                font-size: 12px !important;
            }
            .image-content {
                width: 150px;
                height: 100px !important;
                border-radius: 8px !important ;
            }

            .qhn-post-content {
                margin: 0;
                width: calc(100% - 150px);
                display: flex;
                padding: 0 8px;

                .noticia__categorias {
                    display: flex;
                    flex-direction: row;
                    order: 2;
                    gap: 8px;
                }

                .titulo {
                    display: flex;
                    flex-direction: column ;

                    .qhn-post-title {
                        margin: 0 0 8px;


                        a {
                            font-weight: bold;
                            font-size: 14px;
                        }


                    }
                }

                .titulo.revista {
                    display: grid;
                    grid-template-columns: 1fr !important;
                }

                .extracto {
                    font-size: 13px;
                    margin-bottom: 8px;
                }

            }

        }
    }


}

.qhn-listado-posts-relacionados.noticias_relacionadas {
}

.elementor-sticky {
    z-index: 999999999;
}

.mapa-negocio {
    z-index: 0;
}

.wpp-list-evo {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.wpplist__card {
    .wpp-post-title {
        line-height: 1.2;
        font-size: 16px;
        font-weight: bold;
    }
}

[type=button], [type=submit], button {
    background-color: transparent;
    border: 1px solid #2e529b;
    border-radius: 3px;
    color: #2e529b;
    display: inline-block;
    font-size: 1rem;
    font-weight: 400;
    padding: .5rem 1rem;
    text-align: center;
    transition: all .3s;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
    white-space: nowrap;
}

.qhn-listado-posts-seccion {
    display: flex;
    flex-direction: column;

    .columna-header {

        gap: 16px;
        display: flex;
        width: 100%;
        margin-bottom: 8px;

        .titulo {
            display: flex;

            gap: 8px;
            justify-content: space-between;
            width: 100%;
        }


        h3 {
            font-weight: 500 !important;
            font-size: 18px;
            margin: 0;
            width: auto;
        }

        h2 {

            font-weight: 600 !important;
            font-size: 24px;
            margin: 0;
            width: auto;

        }

        .enlace__masinfo {
            a {
                background: #0a4b78 !important;
                color: white !important;
                padding: 8px 16px;
                border-radius: 24px;
            }
        }

    }

    .descripcion {
        margin-bottom: 8px;

        p {
            margin: 0;
        }
    }

    .qhn-lista-post-seccion__categorias {
        margin-bottom: 16px;

    }
}

.qhn-listado-posts-seccion__posts {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr 1fr;
    width: 100%;

    .columna-cuatro-posts {
        gap: 16px;
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .columna-inicio {
        display: flex;

        .qhn-post-item {
            display: grid;
            height: 100%;
            position: relative !important;
            grid-template-rows: 2fr 1fr;

            .image-content {
                height: 100% !important;
                max-height: 485px;

            }

            .qhn-post-content {
                /*   position: absolute;
                   bottom: 0;
                   left: 0;
                   right: 0;*/
                height: auto;

                padding: 8px;
                /*     background-image: linear-gradient(0deg, #0009 50%, #0000 100%);*/
                /*    border-radius: 16px;*/

                .titulo {
                    h3 {
                        a {
                            font-size: 24px;
                            font-weight: bold;
                            margin: 0;

                        }
                    }
                }

                .noticia__categorias {


                    .ciudad {
                        a {
                            font-size: 16px;


                            &:hover {

                            }
                        }

                        .ciudad__icono {
                            svg {
                                margin-right: 4px;
                                width: 18px;
                                height: 18px;
                            }
                        }
                    }

                    .topic {

                        a {

                            font-size: 16px;
                        }

                        .topic__icono {
                            svg {
                                margin-right: 4px;
                                width: 18px;
                                height: 18px;
                            }
                        }

                    }
                }
            }
        }

    }

}

@media screen and (max-width: 767px) {
    .qhn-listado-posts-seccion {
        .columna-header {
            .titulo {
                display: flex;
                flex-direction: column;
                align-items: center;
                gap: 16px;

                h2 {
                    font-size: 24px !important;
                }

                .enlace__masinfo a {
                    font-size: 14px !important;
                }
            }

        }

        .descripcion {
            margin-bottom: 8px;
            text-align: center;
        }

    }

    .qhn-lista-post-seccion__categorias {
        margin-top: 16px;

        .categorias-principales {
            display: flex;
            flex-wrap: wrap;
            flex-direction: row;
            gap: 12px;
        }
    }

    .qhn-listado-posts-seccion__posts {
        display: grid;
        gap: 1rem;
        grid-template-columns: 1fr;
        width: 100%;

        .columna-cuatro-posts {
            gap: 16px;
            display: grid;
            grid-template-columns: 1fr 1fr;
        }

        .columna-inicio {
            display: flex;
            width: 100%;
            flex-direction: column;


        }

    }
}

.flex {
    display: flex;
}

.flex-col {
    flex-direction: column !important;
}

.cta_boton {
    margin-top: 16px;
}

.cta_boton a {
    background: var(--color-marron);
    color: white;
    display: flex;
    align-items: center;
    padding: 4px 16px;
    width: 100%;
    border-radius: 4px;
    justify-content: center;
    font-weight: bold;

    svg {
        margin-right: 8px;
        width: 24px;
    }

    &:hover {
        background: var(--color-marron);
    }

}

.cta_observaciones {
    margin-top: 4px;
    font-size: 13px;
    font-weight: normal;

    flex-direction: row;
    display: flex;

    &:before {
        display: flex;
        content: "*";
        color: red;
        margin-right: 4px;
        width: 8px;
    }
}

#menu-dinamico-ciudad .sub-menu {
    min-width: 220px !important;
}

.post__contenido {
    figure {
        margin: 24px 0;
    }

    img {
        width: 100% !important;
    }
}

.ppt-posts-list {
    padding: 0 !important;
}

.qhn-post-item {
    .actividad__area {

        font-size: 14px !important;
    }
}



.qhn-post-item.negocio {
    border-radius: 8px ;
    border: 1px solid #eee;

    .image-content {
        img {
            border-radius: 8px 8px 0 0;
        }
    }
    .qhn-post-content {
        margin-top: 0;
        padding: 16px;
        background: white ;
        min-height: 175px;
        border-radius: 0 0 8px

    }
}
.wp-singular {
    .elementor-page-title, h1.entry-title {
        display: block !important;
    }
}


.skynet-menu-icon svg {
    width: 24px;
    height: 24px;
    fill: gray;
}
.ppt-widget { font-family: inherit; }
.ppt-widget-title { font-size:1.1em; font-weight:700; margin:0 0 .8em; padding-bottom:.4em; border-bottom:2px solid currentColor; }
.ppt-no-results { opacity:.6; font-size:.9em; }

/* Spinner de carga */
.ppt-loading { display:flex; justify-content:center; padding:1em 0; }
.ppt-spinner { width:24px; height:24px; border:3px solid rgba(0,0,0,.12); border-top-color:currentColor; border-radius:50%; animation:ppt-spin .7s linear infinite; }
@keyframes ppt-spin { to { transform:rotate(360deg); } }

/* Wrapper de posts: columna de cards qhn */
.ppt-posts-list { display:flex; flex-direction:column; gap:.75em; margin:0; padding:0; }

/* Adaptar el formato de qhn_view_post() al widget lateral */
.ppt-posts-list .qhn-post-item {
    display: grid !important;
    grid-template-columns: 100px 1fr !important;;
    gap: 1rem !important;;
    /* quitar clase swiper que añade overflow */
    overflow: visible !important;
}
.ppt-posts-list .qhn-post-item .image-content {
    width: 100px;
    height: 100px !important;
    flex-shrink: 0;
}
.ppt-posts-list .qhn-post-item .image-content img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.ppt-posts-list .qhn-post-item .qhn-post-content {
    min-width: 0;
}

.qhn-buscador__input {
    border: none !important ;
}
