/*
Theme Name:  UPVGandiaCiencia
Description: Tema hijo de generatepress desarrollado por Oniriku: <a href="oniriku.com">oniriku.com</a>
Author:      Marcos Muñoz (Oniriku)
Author URL:  https://oniriku.com
Template:    generatepress
Version:     1.0.0
License:     GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: generatepress
*/

/*AJUSTES OPCIONES MENÚS*/

header {
    z-index: 8000;
}

#menu-menu-primario a:hover,
#menu-menu-fuera-de-lienzo a:hover,
#menu-menu-fuera-de-lienzo-1>li.menu-item.menu-item-type-custom.menu-item-object-custom.menu-item-has-children.menu-item-21690>a:hover {
    color: var(--travel);
    cursor: pointer;
}

#menu-item-21690-sub-menu li a {
    color: white;
}

#menu-menu-fuera-de-lienzo a {
    text-align: left;
    margin-right: 0;
}

.slideout-navigation .menu-item-has-children .dropdown-menu-toggle {
    float: none;
}

/*Efecto de las noticias con imagen completa al pasar el cursor*/
.noticia-todo-imagen {
    position: relative;
    overflow: hidden;
}

.noticia-todo-imagen::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--inline-bg-image);
    background-size: cover;
    background-position: center;
    transition: transform 0.6s ease;
    z-index: 0;
}

.noticia-todo-imagen:hover::before {
    transform: scale(1.1);
}

.noticia-todo-imagen::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0));
    z-index: 1;
}

.noticia-todo-imagen>* {
    position: relative;
    z-index: 2;
}

/*AJUSTES CABECERA MÓVIL*/
#mobile-menu-control-wrapper>button {
    background: transparent;
}

@media(max-width: 850px) {
    .header-image.is-logo-image {
        margin: 0 0 0 15px;
        max-width: 200px;
    }

    .inside-header.grid-container {
        padding: 7px 0 0 0;
    }

    /*Ocultar menú secundario*/
    #secondary-navigation {
        display: none !important;
    }
}

/*Alternar entre cabecera móvil y escritorio*/
/* @media(min-width: 901px){ .cabecera-entrada-pc{ display:default; } .cabecera-entrada-movil, .contenedor-cabecera-entrada-movil{ display:none; } } @media(max-width: 900px){ .cabecera-entrada-pc{ display:none; } .cabecera-entrada-movil, .contenedor-cabecera-entrada-movil{ display:default; } } */
/*Eliminar imagen de fondo de tema*/
body {
    background-image: none !important;
}

/*AJUSTES EXTRA PÁGINA DE INICIO*/
/*Ajuste de margen del looper de 4 noticias con dos filas*/
.looper-4-noticias-2-filas {
    margin-left: -10px;
}

/* Ajuste de paginación*/
.swiper-pagination.swiper-pagination-clickable.swiper-pagination-bullets.swiper-pagination-horizontal {
    z-index: 0;
    position: static;
}

/*Efectos iconos categorías destacadas*/
.categoria-destacada:hover,
.categoria-destacada:active {
    filter: drop-shadow(0px 0px 25px black);
}

/*AJUSTES EXTRA ENTRADAS*/
/*Fondo blanco semitransparente*/
.gb-element-1766ab98 {
    background-color: rgba(255, 255, 255, 0.6);
}

.inside-right-sidebar {
    position: sticky;
    top: 50px;
}

/*EFECTO APARICIÓN AL CARGAR PÁGINA*/
.aparicion-pagina {
    opacity: 0;
    animation: fadeIn 1s ease-in forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/*EFECTO APARICIÓN AL CARGAR PÁGINA PARA HOOKS DE CABECERA*/
.aparicion-pagina-cabecera {
    opacity: 0;
    animation: fadeInCabecera 1.5s ease-in forwards;
}

@keyframes fadeInCabecera {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/*OCULTAR COMENTARIOS*/
#comments {
    display: none;
}

/*INSERCIÓN NUEVOS ELEMENTOS*/
body {
    background: white;
}

/*AJUSTES OPCIONES MENÚS*/
header {
    z-index: 8000;
}

#menu-menu-primario a:hover,
#menu-menu-fuera-de-lienzo a:hover,
#menu-menu-fuera-de-lienzo-1>li.menu-item.menu-item-type-custom.menu-item-object-custom.menu-item-has-children.menu-item-21690>a:hover {
    color: var(--travel);
    cursor: pointer;
}

#menu-item-21690-sub-menu li a {
    color: white;
}

#menu-menu-fuera-de-lienzo a {
    text-align: left;
    margin-right: 0;
}

.slideout-navigation .menu-item-has-children .dropdown-menu-toggle {
    float: none;
}

/*Efecto de las noticias con imagen completa al pasar el cursor*/
.noticia-todo-imagen {
    position: relative;
    overflow: hidden;
}

.noticia-todo-imagen::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--inline-bg-image);
    background-size: cover;
    background-position: center;
    transition: transform 0.6s ease;
    z-index: 0;
}

.noticia-todo-imagen:hover::before {
    transform: scale(1.1);
}

.noticia-todo-imagen::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0));
    z-index: 1;
}

.noticia-todo-imagen>* {
    position: relative;
    z-index: 2;
}

/*AJUSTES CABECERA MÓVIL*/
#mobile-menu-control-wrapper>button {
    background: transparent;
}

@media(max-width: 850px) {
    .header-image.is-logo-image {
        margin: 0 0 0 15px;
        max-width: 200px;
    }

    .inside-header.grid-container {
        padding: 7px 0 0 0;
    }

    /*Ocultar menú secundario*/
    #secondary-navigation {
        display: none !important;
    }
}

/*Eliminar imagen de fondo de tema*/
body {
    background-image: none !important;
}

/*AJUSTES EXTRA PÁGINA DE INICIO*/
/*Ajuste de margen del looper de 4 noticias con dos filas*/
.looper-4-noticias-2-filas {
    margin-left: -10px;
}

/* Ajuste de paginación*/
.swiper-pagination.swiper-pagination-clickable.swiper-pagination-bullets.swiper-pagination-horizontal {
    z-index: 0;
    position: static;
}

/*efecto zoom imagen destacada de la entrada*/
.cabecera-entrada-pc {
    animation: zoomFondo 10s forwards;
}

@keyframes zoomFondo {
    0% {
        background-size: 130%;
    }

    100% {
        background-size: 100%;
    }
}

@media(max-width: 1184px) {
    .cabecera-entrada-pc {
        padding-top: 138px;
    }
}

.gb-element-1766ab98 {
    padding: 0
}

@keyframes zoomFondoMovil {
    0% {
        background-size: 130%;
        transform: scale(1);
    }

    100% {
        background-size: 100%;
        transform: scale(1);
    }
}

.contenedor-cabecera-entrada-movil {
    padding-top: 0px;
    margin-top: 0;
}

.cabecera-entrada-movil {
    height: 150%;
    animation: zoomFondoMovil 10s ease-out forwards;
    padding-top: 0px;
}

.gb-element-16c4de7c {
    margin-bottom: 100px;
}

@media(max-width: 1050px) {
    .cabecera-entrada-movil {
        height: 180%;
    }

    .gb-element-16c4de7c {
        margin-bottom: 150px;
    }
}

@media(max-width: 850px) {
    .cabecera-entrada-movil {
        height: 160%;
    }

    .gb-element-16c4de7c {
        margin-bottom: 100px;
    }
}

@media(max-width: 750px) {
    .cabecera-entrada-movil {
        height: 120%;
    }

    .gb-element-16c4de7c {
        margin-bottom: 40px;
    }
}

@media(max-width: 565px) {
    .cabecera-entrada-movil {
        height: 75%;
    }

    .gb-element-16c4de7c {
        margin-bottom: -50px;
    }
}

@media(max-width: 365px) {
    .cabecera-entrada-movil {
        height: 60%;
    }

    .gb-element-16c4de7c {
        margin-bottom: -80px;
    }
}

@media(max-width: 290px) {
    .cabecera-entrada-movil {
        height: 50%;
    }
}

