/* Guía E — widgets propios de Elementor */

/* ---------- Listado ---------- */
.ge-loop__items {
	display: grid;
	grid-template-columns: repeat(var(--ge-columns, 3), minmax(0, 1fr));
	gap: var(--ge-row-gap, 20px) var(--ge-column-gap, 20px);
}
.ge-loop-equal-yes .ge-loop__items { grid-auto-rows: 1fr; }
.ge-loop-equal-yes .ge-loop-item > .elementor,
.ge-loop-equal-yes .ge-loop-item > .elementor > .e-con,
.ge-loop-equal-yes .ge-loop-item > .guiae-card,
.ge-loop--carousel .ge-loop-item,
.ge-loop--carousel .ge-loop-item > .elementor,
.ge-loop--carousel .ge-loop-item > .elementor > .e-con { height: 100%; }
.ge-loop--carousel .swiper-slide { height: auto; }
.ge-loop__empty { padding: 20px 0; text-align: center; }

/* Tarjeta completa clicable: el enlace la cubre y los enlaces/botones propios quedan encima. */
.ge-loop-item { position: relative; }
.ge-loop-item__link { position: absolute; inset: 0; z-index: 1; border-radius: var(--guiae-radius, 20px); }
.ge-loop-item a:not(.ge-loop-item__link), .ge-loop-item button { position: relative; z-index: 2; }
.ge-loop-item > .elementor > .e-con, .ge-loop-item > .guiae-card { transition: box-shadow .3s ease; }
.ge-loop-item { transition: transform .3s ease; }
.ge-loop-item .elementor-heading-title { transition: color .25s; }
@media (hover: hover) {
	.ge-loop-item:hover { transform: translateY(-6px); }
	.ge-loop-item:hover > .elementor > .e-con, .ge-loop-item:hover > .guiae-card { box-shadow: 0 16px 32px rgba(9, 50, 121, .22); }
	.ge-loop-item:hover .elementor-heading-title { color: #ffe1ef; }
}
/* Espacio para que la elevación y la sombra no se corten dentro del carrusel. */
.ge-loop--carousel .ge-carousel__viewport { padding-block: 10px 24px; margin-block: -10px -24px; }
@media (prefers-reduced-motion: reduce) { .ge-loop-item, .ge-loop-item:hover { transform: none; } }

.ge-pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 30px; }
.ge-pagination .page-numbers { padding: 4px 10px; color: inherit; }
.ge-pagination .current { font-weight: 700; }

/* ---------- Carruseles (Swiper) ---------- */
.ge-carousel { position: relative; }
.ge-carousel__viewport { overflow: hidden; }
.ge-carousel .swiper-wrapper { display: flex; }
/* Swiper fija el ancho de cada slide; un max-width heredado del CSS viejo los encogía y descuadraba el carrusel. */
.ge-carousel .swiper-slide { flex-shrink: 0; box-sizing: border-box; max-width: none !important; }
.ge-arrow {
	position: absolute;
	top: 50%;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	font-size: 25px;
	line-height: 1;
	color: #fff;
	background: transparent;
	border: 0;
	border-radius: 0;
	transform: translateY(-50%);
	cursor: pointer;
	transition: opacity .2s, background-color .2s;
}
.ge-arrow:hover, .ge-arrow:focus { color: inherit; background-color: inherit; opacity: .85; }
.ge-arrow svg { width: 1em; height: 1em; fill: currentColor; }
.ge-arrow--prev { left: 10px; }
.ge-arrow--next { right: 10px; }
.ge-arrows-outside .ge-arrow--prev { left: -40px; }
.ge-arrows-outside .ge-arrow--next { right: -40px; }
.ge-arrow.swiper-button-disabled { opacity: .3; cursor: default; }
.ge-carousel .swiper-pagination { position: static; margin-top: 16px; text-align: center; }
.ge-carousel .swiper-pagination-bullet { width: 8px; height: 8px; margin: 0 4px; background: #000; opacity: .3; }
.ge-carousel .swiper-pagination-bullet-active { opacity: 1; }
/* Flechas iguales en todos los carruseles: círculo blanco con chevron azul y sombra
   para que se vean sobre cualquier foto (anula colores y tamaños de cada widget). */
.ge-carousel .ge-arrow {
	width: 44px;
	height: 44px;
	padding: 0 !important;
	font-size: 22px !important;
	color: #0b3a82 !important;
	background: #fff !important;
	border: 0 !important;
	border-radius: 50% !important;
	box-shadow: 0 4px 14px rgba(0, 0, 0, .25) !important;
}
.ge-carousel .ge-arrow svg { width: 22px; height: 22px; fill: none !important; }
.ge-carousel .ge-arrow:hover, .ge-carousel .ge-arrow:focus-visible { color: #fff !important; background: #f24998 !important; opacity: 1; }
@media (max-width: 767px) {
	.ge-carousel .ge-arrow { width: 40px; height: 40px; }
	.ge-carousel .ge-arrow svg { width: 20px; height: 20px; }
	.ge-carousel .ge-arrow--prev, .ge-arrows-outside .ge-arrow--prev { left: 8px; }
	.ge-carousel .ge-arrow--next, .ge-arrows-outside .ge-arrow--next { right: 8px; }
	.elementor-widget-ge-testimonios .ge-carousel .ge-arrow--prev { left: 0; }
	.elementor-widget-ge-testimonios .ge-carousel .ge-arrow--next { right: 0; }
	.ge-testimonial { padding: 0 44px; }
}

/* ---------- Banners ---------- */
.ge-banner picture, .ge-banner img { display: block; width: 100%; }
.ge-banner img { height: auto; }

/* ---------- Testimonios ---------- */
.ge-testimonial { padding: 0 50px; line-height: 1.5; text-align: center; }
.ge-testimonial figcaption { line-height: 1.5; }
.ge-testimonial__image { display: block; width: 100px; height: 100px; margin: 0 auto 20px; object-fit: cover; border-radius: 50%; }
.ge-testimonial__content { margin: 0 0 20px; font-size: 1.3em; font-style: italic; line-height: 1.5; }
.ge-testimonial__name { display: block; font-family: Roboto, sans-serif; font-size: 16px; font-weight: 600; font-style: italic; }
.ge-testimonial__title { display: block; font-family: Roboto, sans-serif; font-size: 16px; font-style: italic; }

/* ---------- Filtro ---------- */
.ge-filter { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.ge-filter__item {
	padding: 5px 20px;
	font-size: 14px;
	line-height: 1.5;
	color: #fff;
	white-space: nowrap;
	background: #000;
	border: 2px solid #000;
	border-radius: 50px;
	cursor: pointer;
}
.ge-loop-item.is-filtered-out { display: none; }

/* ---------- Menú ---------- */
.ge-menu { position: relative; display: flex; align-items: center; }
.ge-menu__bar { width: 100%; }
.ge-menu__list { display: flex; flex-wrap: wrap; align-items: center; margin: 0; padding: 0; list-style: none; }
.ge-menu--vertical .ge-menu__list { flex-direction: column; align-items: stretch; }
.ge-menu__item { position: relative; }
.ge-menu__link {
	position: relative;
	display: block;
	padding: 4px 15px;
	font-family: Poppins, sans-serif;
	font-size: 18px;
	font-weight: 600;
	line-height: 27px;
	color: #222;
	transition: color .2s;
}
.ge-menu-pointer-underline .ge-menu__link::after {
	position: absolute;
	right: 15px;
	bottom: -1px;
	left: 15px;
	height: 2px;
	content: "";
	background-color: transparent;
	transition: background-color .2s;
}
.ge-menu__sub {
	position: absolute;
	top: 100%;
	left: 0;
	z-index: 10;
	display: none;
	min-width: 220px;
	margin: 0;
	padding: 8px 0;
	list-style: none;
	background: #fff;
	box-shadow: 0 10px 30px rgba(0, 0, 0, .1);
}
.ge-menu__item.has-children:hover > .ge-menu__sub,
.ge-menu__item.has-children:focus-within > .ge-menu__sub { display: block; }
.ge-menu--vertical .ge-menu__sub { position: static; display: block; box-shadow: none; }

.ge-menu__toggle, .ge-menu__close {
	display: none;
	padding: 4px 8px;
	font-size: 28px;
	line-height: 1;
	color: #000;
	background: transparent;
	border: 0;
	border-radius: 3px;
}
.ge-menu__toggle svg { width: 1em; height: 1em; fill: currentColor; }
.ge-menu__overlay { position: fixed; inset: 0; z-index: 9998; background: rgba(0, 0, 0, .35); }
.ge-menu__panel {
	position: fixed;
	top: 0;
	bottom: 0;
	left: 0;
	z-index: 9999;
	width: 250px;
	max-width: 85vw;
	padding: 20px 0;
	overflow-y: auto;
	background: #fff;
	border-radius: 0 20px 20px 0;
	box-shadow: 0 0 30px rgba(0, 0, 0, .2);
	transform: translateX(-100%);
	transition: transform .3s;
}
.ge-menu.is-open .ge-menu__panel { transform: none; }
.ge-menu__panel:not([hidden]) { display: flex; flex-direction: column; }
.ge-menu__social { display: flex; gap: 12px; margin: auto 0 0; padding: 24px 20px 4px; list-style: none; border-top: 1px solid #eee; }
.ge-menu__social a { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; color: #fff; background: #0b3a82; border-radius: 50%; transition: background-color .2s; }
.ge-menu__social a:hover, .ge-menu__social a:focus-visible { color: #fff; background: #f24998; }
.ge-menu__social svg { width: 20px; height: 20px; fill: currentColor; }
.ge-menu__panel .ge-menu__list { flex-direction: column; align-items: stretch; }
.ge-menu__panel .ge-menu__link { padding: 10px 20px; }
.ge-menu__panel .ge-menu__link::after { display: none; }
.ge-menu__panel .ge-menu__sub { position: static; display: block; padding: 0 0 0 16px; box-shadow: none; }
.ge-menu__close { position: absolute; top: 8px; right: 8px; display: block; font-size: 32px; }
.ge-menu__logo { display: block; margin: 0 10px 30px; }
.ge-menu__logo img { max-width: 120px; }

@media (max-width: 1024px) {
	.ge-menu-breakpoint-tablet .ge-menu__bar { display: none; }
	.ge-menu-breakpoint-tablet .ge-menu__toggle { display: inline-flex; }
}
@media (max-width: 767px) {
	.ge-menu-breakpoint-mobile .ge-menu__bar { display: none; }
	.ge-menu-breakpoint-mobile .ge-menu__toggle { display: inline-flex; }
}
body.ge-menu-open { overflow: hidden; }

/* ---------- Buscador ---------- */
.ge-search { display: flex; align-items: stretch; width: 100%; }
.ge-search__input {
	flex: 1 1 auto;
	min-width: 0;
	padding: 5px 15px 5px 10px;
	font-size: 16px;
	color: #000;
	background: #fff;
	border: 1px solid #cdcdcd;
	border-right: 0;
	border-radius: 8px 0 0 8px;
}
.ge-search__submit {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	padding: 7px 17px;
	font-size: 20px;
	color: #fff;
	background: #222;
	border: 0;
	border-radius: 0 8px 8px 0;
}
.ge-search__submit:hover, .ge-search__submit:focus { color: #fff; background: #000; }
.ge-search__submit svg { width: 1em; height: 1em; fill: currentColor; }

/* Lupa que abre el buscador en un modal. */
.ge-search-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	font-size: 22px;
	color: #222;
	background: transparent;
	border: 0;
	border-radius: 50%;
	cursor: pointer;
}
.ge-search-toggle:hover, .ge-search-toggle:focus-visible { color: #fff; background: #f24998; }
.ge-search-toggle svg { width: 1em; height: 1em; fill: currentColor; }

.ge-search-modal {
	width: min(640px, calc(100% - 32px));
	max-width: none;
	margin: 12vh auto auto;
	padding: 0;
	background: transparent;
	border: 0;
	overflow: visible;
}
.ge-search-modal::backdrop { background: rgba(17, 17, 17, .72); backdrop-filter: blur(3px); }
.ge-search-modal[open] { animation: ge-search-in .2s ease-out; }
@keyframes ge-search-in { from { opacity: 0; transform: translateY(-12px); } }
.ge-search-modal__box { position: relative; padding: 28px 24px 24px; background: #fff; border-radius: 16px; box-shadow: 0 20px 50px rgba(0, 0, 0, .25); }
.ge-search-modal__title { margin: 0 0 16px; font-family: Poppins, sans-serif; font-size: 20px; font-weight: 700; color: #222; }
.ge-search-modal__close {
	position: absolute;
	top: 10px;
	right: 10px;
	width: 40px;
	height: 40px;
	padding: 0;
	font-size: 28px;
	line-height: 1;
	color: #222;
	background: transparent;
	border: 0;
	border-radius: 50%;
	cursor: pointer;
}
.ge-search-modal__close:hover, .ge-search-modal__close:focus-visible { background: #f2f2f2; }
/* El modal tiene su propio aspecto: se impone a los estilos del formulario definidos en Elementor. */
.ge-search-modal .ge-search { gap: 0 !important; }
.ge-search-modal .ge-search__input { padding: 12px 16px !important; font-size: 18px !important; color: #222 !important; background: #fff !important; border-color: #222 !important; border-radius: 10px 0 0 10px !important; }
.ge-search-modal .ge-search__submit { padding: 0 22px !important; font-size: 20px !important; color: #fff !important; background: #f24998 !important; border-radius: 0 10px 10px 0 !important; }
.ge-search-modal .ge-search__submit:hover, .ge-search-modal .ge-search__submit:focus { background: #222 !important; }
body.ge-search-open { overflow: hidden; }
.ge-search-modal__results { margin-top: 12px; font-family: Poppins, sans-serif; transition: opacity .15s; }
.ge-search-modal__results:empty { display: none; }
.ge-search-modal__results.is-loading { opacity: .5; }
.ge-search-preview { max-height: min(50vh, 400px); margin: 0; padding: 0; overflow-y: auto; list-style: none; }
.ge-search-preview__item { display: flex; align-items: center; gap: 12px; padding: 8px; color: #222; border-radius: 10px; }
.ge-search-preview__item:hover, .ge-search-preview__item:focus-visible { color: #222; background: #fdeef5; }
.ge-search-preview__thumb { flex: 0 0 48px; width: 48px; height: 48px; object-fit: cover; background: linear-gradient(160deg, #6fb5e6, #2f7fc1); border-radius: 8px; }
.ge-search-preview__text { display: flex; flex-direction: column; min-width: 0; }
.ge-search-preview__title { display: -webkit-box; overflow: hidden; font-size: 15px; font-weight: 600; line-height: 1.3; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.ge-search-preview__type { font-size: 12px; color: #f24998; text-transform: uppercase; letter-spacing: .04em; }
.ge-search-preview__all { display: block; margin-top: 6px; padding: 10px 8px 2px; font-size: 14px; font-weight: 600; color: #0b3a82; border-top: 1px solid #eee; }
.ge-search-preview__all:hover { color: #f24998; }
.ge-search-preview__empty { margin: 4px 8px; font-size: 14px; color: #666; }
@media (max-width: 767px) {
	.ge-search-modal { margin-top: 16px; }
	.ge-search-modal__title { font-size: 18px; }
}

/* ---------- Tabla de precio (aspecto por defecto de Pro) ---------- */
.ge-price { position: relative; overflow: hidden; text-align: center; background-color: #f9fafa; }
.ge-price__header { padding: 20px 0; background-color: var(--e-global-color-secondary, #000); }
.ge-price__heading { margin: 0; font-size: 24px; font-weight: 600; line-height: 1.2; color: #fff; }
.ge-price__subheading { display: block; font-size: 13px; font-weight: 400; color: #fff; }
.ge-price__amount { padding: 40px 0; }
.ge-price__value { display: flex; align-items: flex-start; justify-content: center; font-size: 58px; font-weight: 800; line-height: .8; color: #555; }
.ge-price__currency { margin-top: .1em; font-size: .3em; font-weight: 400; line-height: 1; }
.ge-price__int { line-height: .8; }
.ge-price__fraction { font-size: .3em; line-height: 1; }
.ge-price__period { display: block; width: 100%; margin-top: 4px; font-size: 16px; color: #000; }
.ge-price__features { margin: 0; padding: 0 15%; font-size: 14px; list-style: none; color: #000; }
.ge-price__features li { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 15px 0; line-height: 1.3; }
.ge-price__features li + li { border-top: 2px solid #ddd; }
.ge-price__icon { display: inline-flex; font-size: 1.1em; }
.ge-price__icon svg { width: 1em; height: 1em; fill: currentColor; }
.ge-price__footer { padding: 30px 30px; }
.ge-price__button {
	display: inline-block;
	padding: 15px 30px;
	font-size: 16px;
	line-height: 1;
	color: #fff;
	background-color: var(--e-global-color-accent, #555);
	border-radius: 4px;
	transition: opacity .2s;
}
.ge-price__button:hover, .ge-price__button:focus { color: #fff; opacity: .9; }
.ge-price__info { margin: 15px auto 0; font-family: Roboto, sans-serif; font-size: 13px; line-height: 1.4; color: #000; }
.ge-price__ribbon { position: absolute; top: 0; right: 0; width: 150px; height: 150px; overflow: hidden; pointer-events: none; transform: rotate(90deg); }
.ge-price__ribbon span {
	position: absolute;
	left: 0;
	width: 200%;
	margin-top: 35px;
	padding: 5px 0;
	font-family: Roboto, sans-serif;
	font-size: 13px;
	font-weight: 500;
	line-height: 2;
	color: #fff;
	text-align: center;
	text-transform: uppercase;
	background-color: var(--e-global-color-accent, #000);
	transform: translateY(-50%) translateX(-50%) translateX(35px) rotate(-45deg);
}

/* ---------- Galería ---------- */
.ge-gallery { display: grid; grid-template-columns: repeat(var(--ge-columns, 4), minmax(0, 1fr)); gap: var(--ge-gap, 10px); }
.ge-gallery__item { display: block; overflow: hidden; }
.ge-gallery__img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.ge-gallery__item:hover .ge-gallery__img { transform: scale(1.04); }
.ge-gallery--grid .ge-gallery__item { aspect-ratio: var(--ge-ratio, 3 / 2); }
.ge-gallery--masonry .ge-gallery { display: block; columns: var(--ge-columns, 4); column-gap: var(--ge-gap, 10px); }
.ge-gallery--masonry .ge-gallery__item { margin-bottom: var(--ge-gap, 10px); break-inside: avoid; }
.ge-gallery--masonry .ge-gallery__img { height: auto; }

/* ---------- Formulario ---------- */
.ge-form { display: flex; flex-wrap: wrap; gap: var(--ge-form-gap, 10px); }
.ge-form__field { display: flex; flex: 1 1 100%; flex-direction: column; max-width: 100%; }
.ge-form__label { margin-bottom: 4px; font-size: 14px; }
.ge-form__input { width: 100%; padding: 8px 16px; color: #000; background: #fff; border: 1px solid #69727d; border-radius: 3px; }
.ge-form__input[aria-invalid=true] { outline: 2px solid #d63638; }
.ge-form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ge-form__submit { padding: 10px 24px; color: #fff; background: #000; border: 0; border-radius: 3px; }
.ge-form__submit:hover, .ge-form__submit:focus { color: #fff; opacity: .9; }
.ge-form__submit[disabled] { opacity: .6; cursor: wait; }
.ge-form__message { flex: 1 1 100%; font-size: 14px; }
.ge-form__message:empty { display: none; }
.ge-form__message.is-success { color: #1e7e34; }
.ge-form__message.is-error { color: #d63638; }

.ge-comments-placeholder, .ge-menu__empty { padding: 20px; text-align: center; background: #f3f3f3; border: 1px dashed #ccc; }

@media (prefers-reduced-motion: reduce) {
	.ge-menu__panel, .ge-gallery__img, .ge-arrow { transition: none; }
}
