/*
 Theme Name:   Tema personalizado
 Theme URI:    
 Description:  Tema personalizado
 Author:       Lorenzo Sicilia Torres
 Author URI:   
 Template:     generatepress
 Version:      0.1
*/

/* Ocultar elementos */

.ocultar {
    display: none;
}


/* Quitamos el icono que indica la protección re-captcha */
.grecaptcha-badge { 
    visibility: hidden;
}

/* Fuentes tipográficas */

/* m-plus-rounded-1c-100 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'M-PLUS-Rounded-1c';
  font-style: normal;
  font-weight: 100;
  src: url('./fuentes/m-plus-rounded-1c-v15-latin-100.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* m-plus-rounded-1c-300 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'M-PLUS-Rounded-1c';
  font-style: normal;
  font-weight: 300;
  src: url('./fuentes/m-plus-rounded-1c-v15-latin-300.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* m-plus-rounded-1c-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'M-PLUS-Rounded-1c';
  font-style: normal;
  font-weight: 400;
  src: url('./fuentes/m-plus-rounded-1c-v15-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* m-plus-rounded-1c-500 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'M-PLUS-Rounded-1c';
  font-style: normal;
  font-weight: 500;
  src: url('./fuentes/m-plus-rounded-1c-v15-latin-500.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* m-plus-rounded-1c-700 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'M-PLUS-Rounded-1c';
  font-style: normal;
  font-weight: 700;
  src: url('./fuentes/m-plus-rounded-1c-v15-latin-700.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* m-plus-rounded-1c-800 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'M-PLUS-Rounded-1c';
  font-style: normal;
  font-weight: 800;
  src: url('./fuentes/m-plus-rounded-1c-v15-latin-800.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* m-plus-rounded-1c-900 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'M-PLUS-Rounded-1c';
  font-style: normal;
  font-weight: 900;
  src: url('./fuentes/m-plus-rounded-1c-v15-latin-900.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}




/* FIN Fuentes tipográficas */




/* Efectos en los items del menú principal: activo y hover */

/* Fuentes: 
    https://generatepress.com/forums/topic/underline-currently-active-nav-link/#post-2091663
    https://docs.generatepress.com/article/adding-menu-hover-animation/ */
    
@media (min-width: 769px) {
    .main-navigation .menu > .menu-item > a::after {
        content: "";
        position: absolute;
        right: 0;
        left: 50%;
        bottom: 14px;
        -webkit-transform: translate3d(-50%,0,0);
        transform: translate3d(-50%,0,0);

        display: block;
        width: 0;
        height: 1px;

        background-color: #ffffff;/*currentColor;*/
        transition: 0.3s width ease;
    }
    .main-navigation .menu > .menu-item.current-menu-item > a::after,
    .main-navigation .menu > .menu-item.current_page_item > a::after,
    .main-navigation .menu > .menu-item.current-menu-ancestor > a::after,
    .main-navigation .menu > .menu-item > a:hover::after {
        width: 75%;
    }
}


/* Reglas para mostrar o no mostrar elementos de los menús que se duplican por ser enlace interno en alguna de las páginas */

/* En este caso: página de inicio id 23 */
.ocultar-siempre-menos-en-inicio {
    display: none !important;
}

.mostrar-solo-en-inicio {
  display: none !important;
}

.page-id-23 .ocultar-en-inicio  {
    display: none !important;
}

.page-id-23 .ocultar-siempre-menos-en-inicio {
  /*display: inherit;*/ /*produce fallo de alineamiento*/
	display: initial !important;
}

.page-id-23 .mostrar-solo-en-inicio {
  display: inline-flex !important;
}

/* Personalización formulario reserva sala virtual */
input[type="number"].hora-minutos-reserva-sala-virtual {
    max-width: 100px;
}


/* Persdonalizamos estilos del plugin Adapta RGPD */
#cookies-eu-banner {
	/*top:0px;*/ /* situamos el banner arriba del todo */
	/*bottom: inherit;*/
	/* situamos el banner fijo en la parte inferior de la pantalla */
	position: fixed;
    bottom: 0;
	/*background-color: white;*/
	font-family: Lato, sans-serif; /* Tipografía utilizada en los párrafos textos del tema*/
}

#cookies-eu-accept, .cookies-eu-accept {
    background-color: var(--principal); /* Color de fondo de los botones del tema */
}

#cookies-eu-reject, .cookies-eu-reject {
    background-color: var(--oscuro-corporativo); /* Color de fondo de los botones del tema */
}


#cookies-eu-more {
    color: #B6A232; /* Color para el enlace más información */
}
/* FIN Persdonalizamos estilos del plugin Adapta RGPD */