/* Guía E — estilos base del tema (equivalentes a los de Hello Elementor) */

:root {
	--guiae-container: 1240px;
	--guiae-gutter: 16px;
	--guiae-text: #333;
	--guiae-accent: #F24182;
	--guiae-radius: 20px;
}

/* Reset mínimo */
*, *::before, *::after { box-sizing: border-box; }
html { line-height: 1.15; -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	font-family: Poppins, -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
	font-size: 1rem;
	font-weight: 400;
	line-height: 1.5;
	color: var(--guiae-text);
	background-color: #fff;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4, h5, h6 { margin-block: .5rem 1rem; font-family: inherit; font-weight: 500; line-height: 1.2; color: inherit; }
h1 { font-size: 2.5rem; } h2 { font-size: 2rem; } h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; } h5 { font-size: 1.25rem; } h6 { font-size: 1rem; }
p { margin-block: 0 .9rem; }
a { color: #c36; background-color: transparent; text-decoration: none; }
a:hover, a:active { color: #336; }
a:not([href]):not([tabindex]), a:not([href]):not([tabindex]):focus { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; border-style: none; }
figure { margin: 0; }
hr { box-sizing: content-box; height: 0; overflow: visible; }
b, strong { font-weight: bolder; }
small { font-size: 80%; }
sub, sup { position: relative; font-size: 75%; line-height: 0; vertical-align: baseline; }
sub { bottom: -.25em; } sup { top: -.5em; }
table { width: 100%; margin-block-end: 15px; font-size: .9em; border-spacing: 0; border-collapse: collapse; }
table td, table th { padding: 15px; line-height: 1.5; vertical-align: top; border: 1px solid hsla(0, 0%, 50%, .5); }
dl, dt, dd, li, ol, ul { margin-block: 0; border: 0; outline: 0; font-size: 100%; vertical-align: baseline; background: transparent; }

/* Formularios */
button, input, optgroup, select, textarea { margin: 0; font-family: inherit; font-size: 1rem; line-height: 1.5; }
input[type=date], input[type=email], input[type=number], input[type=password], input[type=search],
input[type=tel], input[type=text], input[type=url], select, textarea {
	width: 100%;
	padding: .5rem 1rem;
	border: 1px solid #666;
	border-radius: 3px;
	transition: all .3s;
}
input:focus, textarea:focus, select:focus { border-color: #333; }
textarea { overflow: auto; resize: vertical; }
button, input { overflow: visible; }
button, select { text-transform: none; }
[type=button], [type=reset], [type=submit], button {
	display: inline-block;
	width: auto;
	padding: .5rem 1rem;
	font-size: 1rem;
	font-weight: 400;
	color: #c36;
	text-align: center;
	white-space: nowrap;
	user-select: none;
	background-color: transparent;
	border: 1px solid #c36;
	border-radius: 3px;
	transition: all .3s;
	cursor: pointer;
	-webkit-appearance: button;
}
[type=button]:focus:not(:focus-visible), [type=submit]:focus:not(:focus-visible), button:focus:not(:focus-visible) { outline: none; }
[type=button]:hover, [type=submit]:hover, button:hover, [type=button]:focus, [type=submit]:focus, button:focus { color: #fff; background-color: #c36; text-decoration: none; }
[type=search] { outline-offset: -2px; -webkit-appearance: textfield; }
[type=search]::-webkit-search-decoration { -webkit-appearance: none; }
::-webkit-file-upload-button { font: inherit; -webkit-appearance: button; }
[hidden], template { display: none; }

/* Accesibilidad */
.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	margin: -1px; padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	word-wrap: normal !important;
	border: 0;
}
.skip-link:focus {
	z-index: 100000;
	top: 5px; left: 5px;
	width: auto; height: auto;
	clip: auto;
	padding: 12px 24px;
	font-size: 14px; font-weight: 700;
	color: #333;
	background: #f1f1f1;
	border-radius: 3px;
	box-shadow: 0 0 2px 2px rgba(0, 0, 0, .6);
}

/* Header fijo (equivalente a "Sticky" de Elementor Pro) */
.guiae-sticky-header .site-header { position: sticky; top: 0; z-index: 99; background: #fff; transition: box-shadow .25s; }
.guiae-sticky-header .site-header.is-scrolled { box-shadow: 0 6px 24px rgba(9, 30, 66, .1); }
.admin-bar.guiae-sticky-header .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar.guiae-sticky-header .site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar.guiae-sticky-header .site-header { top: 0; } }

/* Contenedor para vistas que no son de Elementor */
.guiae-container { width: 100%; max-width: calc(var(--guiae-container) + 2 * var(--guiae-gutter)); margin-inline: auto; padding-inline: var(--guiae-gutter); }
.site-header__fallback { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 12px; }
.site-header__fallback ul { display: flex; flex-wrap: wrap; gap: 16px; margin: 0; padding: 0; list-style: none; }
.site-header__fallback .custom-logo { max-height: 60px; width: auto; }
.site-footer__fallback { padding-block: 24px; font-size: 14px; }

.guiae-entry { padding-block: 40px; }
.guiae-entry__title { font-family: Poppins, sans-serif; font-weight: 700; }

/* Archivos y búsqueda */
.guiae-archive { padding-block: 40px 60px; }
.guiae-archive__title { margin-block-end: 30px; font-family: Poppins, sans-serif; font-size: clamp(2rem, 4vw, 3.6rem); font-weight: 600; color: #000; text-align: center; }
.guiae-archive__description { max-width: 760px; margin: -10px auto 30px; text-align: center; }
.guiae-archive__empty { text-align: center; }
.guiae-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 1024px) { .guiae-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px) { .guiae-grid { grid-template-columns: minmax(0, 1fr); } }
.guiae-grid .ge-loop-item > .elementor, .guiae-grid .ge-loop-item > .elementor > .e-con { height: 100%; }

.navigation.pagination { margin-block-start: 30px; }
.nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; font-family: Poppins, sans-serif; }
.nav-links .page-numbers { padding: 4px 12px; color: #000; border-radius: 50px; }
.nav-links .page-numbers.current { color: #fff; background: #000; }

/* Tarjeta básica (sin plantilla de Elementor) */
.guiae-card { position: relative; height: 100%; overflow: hidden; background: #0a4ea3 linear-gradient(160deg, #6fb5e6, #2f7fc1); border-radius: var(--guiae-radius); }
.guiae-card__link { display: flex; flex-direction: column; justify-content: flex-end; min-height: 340px; height: 100%; color: #fff; }
.guiae-card__link:hover { color: #fff; }
.guiae-card__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.guiae-card__link:hover .guiae-card__img { transform: scale(1.04); }
.guiae-card__body { position: relative; display: block; padding: 60px 20px 20px; background: linear-gradient(to top, rgba(0, 0, 0, .75), transparent); }
.guiae-card__title { display: block; font-family: Poppins, sans-serif; font-size: 22px; font-weight: 600; line-height: 1.2; }
.guiae-card__meta { display: block; margin-block-start: 4px; font-family: Poppins, sans-serif; font-size: 14px; opacity: .9; }

/* Comentarios (mismo aspecto que tenía el sitio) */
.guiae-comments { max-width: 1240px; margin-inline: auto; font-family: Poppins, sans-serif; }
.guiae-comments__list { padding: 0; list-style: none; }
.guiae-comments .comment-body { padding: 16px 0; border-bottom: 1px solid #eee; }
.guiae-comments .comment-reply-title { font-family: Roboto, sans-serif; font-size: 1.6rem; font-weight: 400; }
.guiae-comments .comment-notes, .guiae-comments .logged-in-as, .guiae-comments .comment-form-cookies-consent { font-size: 11px; }
.guiae-comments label { display: block; font-size: 12px; }
.guiae-comments textarea { min-height: 130px; border: 2px solid #000; border-radius: 20px; }
.guiae-comments input[type=text], .guiae-comments input[type=email], .guiae-comments input[type=url] { border: 1px solid #ccc; border-radius: 3px; }
.guiae-comments .comment-form-cookies-consent { display: flex; align-items: center; gap: 6px; }
.guiae-comments .comment-form-cookies-consent label { display: inline; }
.guiae-button, .guiae-comments .form-submit .submit {
	display: inline-block;
	padding: 6px 16px;
	font-size: 13px;
	color: #fff;
	background: #000;
	border: 0;
	border-radius: 50px;
}
.guiae-button:hover, .guiae-comments .form-submit .submit:hover { color: #fff; background: #333; }

/* Pulido visual */
html { scroll-padding-top: 90px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
h1, h2, h3, .elementor-heading-title { text-wrap: balance; }
p, .elementor-widget-text-editor { text-wrap: pretty; }
::selection { color: #fff; background: var(--guiae-accent); }
:focus-visible { outline: 2px solid var(--guiae-accent); outline-offset: 3px; }
.elementor-button { transition: transform .2s, box-shadow .2s, background-color .2s, color .2s; }
@media (hover: hover) {
	.elementor-button:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(9, 50, 121, .18); }
}

/* Selector de idioma flotante: en móvil solo la bandera, para no tapar el contenido. */
@media (max-width: 767px) {
	#trp-floater-ls { width: auto !important; min-width: 0 !important; right: 12px !important; border-radius: 10px 10px 0 0; }
	#trp-floater-ls-current-language a, #trp-floater-ls-language-list a { font-size: 0 !important; padding: 10px 14px !important; }
	#trp-floater-ls-current-language img, #trp-floater-ls-language-list img { margin: 0 !important; }
}

/* Ficha de sitio: migas + H1 */
.guiae-place-head { padding-block: 24px 16px; font-family: Poppins, sans-serif; }
.guiae-place-head__crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #f24998; }
.guiae-place-head__crumbs a { color: inherit; }
.guiae-place-head__crumbs a:hover { color: #0d347a; }
.guiae-place-head__title { margin: 6px 0 0; font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 700; line-height: 1.15; color: #0d347a; }

/* Tarjeta de contacto de la ficha */
.ge-contact-card .elementor-heading-title { color: #0d347a !important; }
.ge-contact-card .elementor-icon-list-item { align-items: center !important; }
.ge-contact-card .elementor-icon-list-icon {
	flex: 0 0 44px;
	width: 44px !important;
	height: 44px;
	margin-inline-end: 12px;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	background: #e3ecfa;
	border-radius: 50%;
}
.ge-contact-card .elementor-icon-list-icon svg { width: 20px !important; height: 20px !important; fill: #0d347a !important; }
.ge-contact-card .elementor-icon-list-icon img { width: 20px !important; height: 20px !important; filter: invert(15%) sepia(52%) saturate(2700%) hue-rotate(208deg) brightness(88%); }
.ge-contact-card a .elementor-icon-list-text { color: #0d347a; text-decoration: underline; text-decoration-color: rgba(13, 52, 122, .3); text-underline-offset: 3px; }
.ge-contact-card a:hover .elementor-icon-list-text { color: #f24998; }
.ge-contact-card .elementor-icon-list-text { overflow-wrap: anywhere; }
.ge-contact-card .elementor-social-icon { background-color: transparent !important; transition: transform .2s; }
.ge-contact-card .elementor-social-icon svg { fill: #0d347a !important; transition: fill .2s; }
.ge-contact-card .elementor-social-icon:hover { transform: translateY(-2px); }
.ge-contact-card .elementor-social-icon:hover svg { fill: #f24998 !important; }

/* Botones WhatsApp / Llamar / Cómo llegar */
.ge-actions { display: flex; flex-wrap: wrap; gap: 12px; font-family: Poppins, sans-serif; }
.ge-actions__btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; font-size: 15px; font-weight: 600; color: #0d347a; background: #fff; border: 2px solid #0d347a; border-radius: 50px; transition: background-color .2s, color .2s, transform .2s; }
.ge-actions__btn svg { width: 20px; height: 20px; fill: currentColor; }
.ge-actions__btn:hover { color: #fff; background: #0d347a; transform: translateY(-1px); }
.ge-actions__btn--whatsapp { color: #fff; background: #1faa53; border-color: #1faa53; }
.ge-actions__btn--whatsapp:hover { color: #fff; background: #178a43; border-color: #178a43; }
@media (max-width: 767px) { .ge-actions__btn { flex: 1 1 100%; justify-content: center; } }

/* Mapas con portada (el mapa real carga al tocar) */
.ge-map-facade {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 12px;
	width: 100%;
	max-height: 70vh;
	overflow: hidden;
	background:
		repeating-linear-gradient(32deg, transparent 0 46px, rgba(255, 255, 255, .85) 46px 51px),
		repeating-linear-gradient(-58deg, transparent 0 70px, rgba(255, 255, 255, .85) 70px 77px),
		#e3ecf7;
	border-radius: 20px;
}
.ge-map-facade.is-loaded { background: none; }
.ge-map-facade--street { background: linear-gradient(180deg, #cfe3f7 0 55%, #b9c4cf 55%); }
.ge-map-facade__btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; font-family: Poppins, sans-serif; font-size: 15px; font-weight: 600; color: #fff; background: #0d347a; border: 0; border-radius: 50px; box-shadow: 0 6px 18px rgba(13, 52, 122, .3); cursor: pointer; transition: background-color .2s, transform .2s; }
.ge-map-facade__btn:hover { background: #f24998; transform: translateY(-1px); }
.ge-map-facade__btn svg { width: 20px; height: 20px; fill: currentColor; }
.ge-map-facade__route { font-family: Poppins, sans-serif; font-size: 14px; font-weight: 600; color: #0d347a; text-decoration: underline; }

.guiae-404 { padding-block: 80px; text-align: center; }
.guiae-404 .search-form { display: flex; max-width: 420px; gap: 8px; margin: 20px auto; }
