/*
Theme Name: Baianai
Template: hello-elementor
Version: 1.0.0
Description: Baianai is a child theme of Hello Elementor.
Author: baianai
Author URI: https://www.baianai.es/
Text Domain: baianai
*/

/* General */

/* Menú Smart Header Cáceres 2031 */
#reducido {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100vw !important;
    z-index: 9999 !important;

    /* Oculto rígidamente desde el píxel 0 */
    transform: translateY(-100%) !important;
    opacity: 0 !important;
    pointer-events: none !important;

    transition: transform 0.4s ease, opacity 0.4s ease !important;
}

#reducido.visible {
    transform: translateY(0) !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

#completo {
    position: relative !important;
    z-index: 9998 !important;
}

h1, h2, h3, h4, h5, h6 {
    line-height: 1.2 !important;
}

.noseve {
	display: none;
}

.enlace a {
    color: var(--e-global-color-primary);
}

.enlace a:hover {
    color: var(--e-global-color-secondary);
}

.sinmar p, .sinmar h1, .sinmar h2, .sinmar h3, .sinmar h4 .sinmar h5 .sinmar h6 {
    margin-block-end: 0rem;
}

/* Cookies */
.cky-audit-table-element h3 {
    font-family: var( --e-global-typography-text-font-family ), Sans-serif;
    font-size: var( --e-global-typography-text-font-size );
    font-weight: bold;
}

h1, h2, h3, h4, h5, h6 {
    line-height: 1.2 !important;
}

/* Ajuste específico para tablets */
@media screen and (min-width: 768px) and (max-width: 1024px) {
    h1, h2, h3, h4, h5, h6 {
        line-height: 1.1 !important; /* Ajusta este valor según lo apretado que quieras el texto */
    }
}

/* Animación hover en los botones */
.btn-icono .elementor-button-wrapper .elementor-button-icon svg{
    width: 16px;
    transition: all 0.3s ease;
}

.btn-icono:hover .elementor-button-wrapper .elementor-button-icon svg{
    width: 20px;
}

.btn-icono .elementor-button-content-wrapper{
    align-items: center;
}

/* Botones noticias */
.btn-icono:hover .hover-azul .elementor-button-wrapper a{
	color: var(--e-global-color-64ebb88);
}

.btn-icono:hover .hover-azul .elementor-button-icon svg{
    fill: var(--e-global-color-64ebb88); 
}

/* Botones eventos */
.btn-icono:hover .hover-blanco .elementor-button-wrapper a{
	color: var(--e-global-color-57506a8);
}

.btn-icono:hover .hover-blanco .elementor-button-icon svg{
    fill: var(--e-global-color-57506a8); 
}

/* Zoom noticias */
.btn-icono .zoom .elementor-widget-container {
    overflow: hidden;
}

.btn-icono .zoom img {
	transition: all 0.3s ease;
}

.btn-icono:hover .zoom img {
    transform: scale(1.1);
}

/* Cuadrículas de bucle suaves */
.bucle-flex .elementor-loop-container.elementor-grid {
    align-content: space-between;
    column-gap: 36px !important;
    flex: 0 0 25%;
    column-count: 4;
    display: block;
}
	
.bucle-flex .e-loop-item {
    width: 100%; 
    margin-bottom: 36px;
    break-inside: avoid; 
    height: fit-content;
}

/* Link formulario */
.link a{
	color: #1C1754;
	font-family: "Roboto Flex";
	font-style: normal;
	font-weight: 700;
	text-decoration-line: underline!important;
	text-underline-position: from-font;
}

.link a:hover{
	color: #E60082;
}

/* Fix pop ups */
html,
body {
    overflow-x: hidden;
}

body.elementor-popup-modal-open {
    position: static !important;
}

.dialog-type-lightbox {
    position: fixed !important;
    inset: 0 !important;
    z-index: 999999 !important;
}

/* Icono en el selector de idioma */
span.wpml-ls-native::before {
    content: "\1F310\FE0E";
	margin-right: 2px;
	font-size: 18px;
}

a.js-wpml-ls-item-toggle.wpml-ls-item-toggle {
    padding: 4px 8px !important;
}

.swiper-button-next:after, .swiper-button-prev:after {
    font-size: 18px!important;
    color: white!important;
}
.instagram-gallery-feed .swiper-container .swiper-button-next, .instagram-gallery-feed .swiper-container .swiper-button-prev {
    background-color: #E60082!important;
    width: 40px!important;
    height: 40px!important;
	border-radius: 30px!important;
}

.centrar-carrusel .swiper-wrapper {
    display: flex;
    align-items: center !important;
}

/* Asegura que cada diapositiva mantenga su altura natural */
.centrar-carrusel .swiper-slide {
    height: auto !important;
}

/* -------------------------------- TABLET -------------------------------- */
@media (max-width: 1024px) {
	/* Cuadrículas de bucle suaves */
	.bucle-flex .elementor-loop-container.elementor-grid {
		grid-column-gap: 4px !important;
		height: 850px;
		justify-content: center;
	}

	.bucle-flex .e-loop-item {
		width: 48%;
	}
}

/* -------------------------------- MOBILE -------------------------------- */
@media (max-width: 768px) {
	/* Cuadrículas de bucle suaves */
	.bucle-flex .elementor-loop-container.elementor-grid {
		grid-column-gap: 4px !important;
		grid-row-gap: 36px !important;
		height:auto;
	}

	.bucle-flex .e-loop-item {
		width: 100%!important;
	}
	
	.mobile-azul{
    	background-color: var( --e-global-color-1207758 ) !important;
	}
}

