/* GS Tours - header y footer (HFE + Elementor). Lo que Elementor no expresa. */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ---------- Header ---------- */
.hfe-header, #masthead.hfe-header, header.hfe-header { position: relative; z-index: 50; }
.gs-header { background: #fff; }

/* Páginas con hero (home, Nosotros): header fijo y transparente (el hero ya trae su degradado).
   Al pasar ~100px, header-scroll.js añade .gs-scrolled: fondo blanco y versión compacta. */
body.gs-header-float .hfe-header,
body.gs-header-float header#masthead { position: fixed; top: 0; left: 0; right: 0; width: 100%; }
body.gs-header-float .gs-header { background-color: transparent; transition: background-color .3s ease, box-shadow .3s ease, padding .3s ease; }
body.gs-header-float.gs-scrolled .gs-header { background-color: #fff; box-shadow: 0 2px 14px rgba(0,0,0,.08); }
body.admin-bar.gs-header-float .hfe-header, body.admin-bar.gs-header-float header#masthead { top: 32px; }
@media (max-width: 782px) { body.admin-bar.gs-header-float .hfe-header, body.admin-bar.gs-header-float header#masthead { top: 46px; } }

/* Versión compacta al hacer scroll: se quita el lema y se reducen márgenes y rellenos; el logo no cambia de tamaño. */
body.gs-header-float .gs-header-tagline { transition: opacity .2s ease, max-height .3s ease, margin .3s ease; }
body.gs-header-float.gs-scrolled .gs-header { padding-top: 0; padding-bottom: 0; }
body.gs-header-float.gs-scrolled .gs-header-tagline { opacity: 0; max-height: 0; overflow: hidden; margin: 0; pointer-events: none; }
body.gs-header-float .gs-header-top { transition: opacity .2s ease, max-height .3s ease; }
body.gs-header-float.gs-scrolled .gs-header-top { opacity: 0; max-height: 0; overflow: hidden; padding: 0; margin: 0; pointer-events: none; }
body.gs-header-float.gs-scrolled .gs-header .gs-header-main { padding-top: 0; padding-bottom: 0; align-items: center; }
body.gs-header-float.gs-scrolled .gs-header-brand { gap: 0; padding-top: 0; padding-bottom: 0; }
body.gs-header-float.gs-scrolled .gs-nav-split-left,
body.gs-header-float.gs-scrolled .gs-nav-split-right { min-height: 0 !important; }
@media (prefers-reduced-motion: reduce) { body.gs-header-float *, body.gs-header-float .gs-header { transition: none !important; } }

/* Single de tour: el header flota transparente sobre el hero y se va con el scroll
   (la nav interna del tour es la sticky, así que aquí no es fijo). */
body.single-gs_tour .hfe-header,
body.single-gs_tour header#masthead { position: absolute; top: 0; left: 0; right: 0; width: 100%; }
body.single-gs_tour .gs-header { background: transparent; }
body.admin-bar.single-gs_tour .hfe-header, body.admin-bar.single-gs_tour header#masthead { top: 32px; }
@media (max-width: 782px) { body.admin-bar.single-gs_tour .hfe-header, body.admin-bar.single-gs_tour header#masthead { top: 46px; } }
@media (prefers-reduced-motion: reduce) { body.home .gs-header { transition: none; } }

.gs-contacto-top { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.gs-contacto-top__item { display: inline-flex; align-items: center; gap: 6px; color: #858585; font-size: 11px; text-decoration: none; letter-spacing: .02em; }
.gs-contacto-top__item:hover { color: var(--color-blue); }
.gs-contacto-top svg { width: 13px; height: auto; }

.gs-redes { display: flex; align-items: center; gap: 18px; }
.gs-redes a { display: inline-flex; line-height: 0; }
.gs-redes--header svg { width: 16px; height: 16px; }
.gs-redes--header a:hover svg path { fill: var(--color-blue); }
.gs-redes--footer { gap: 22px; }
.gs-redes--footer svg { width: 18px; height: 18px; }
.gs-redes--footer a:hover { opacity: .75; }

.gs-logo { display: block; line-height: 0; }
.gs-logo svg { width: 160px; height: auto; display: block; }
/* Escritorio: el logo sube para quedar centrado verticalmente con el menú (columnas de 80px).
   Alto del logo = 160px * 737.59 / 801.18. Con scroll vuelve a su sitio. */
@media (min-width: 1025px) {
	.gs-header .gs-header-brand { margin-top: calc(30px - 160px * 737.59 / 801.18 / 2) !important; margin-block-start: calc(30px - 160px * 737.59 / 801.18 / 2) !important; transition: margin .3s ease; }
	body.gs-header-float.gs-scrolled .gs-header .gs-header-brand { margin-top: 0 !important; margin-block-start: 0 !important; }
}
.gs-header-tagline, .gs-header-tagline p { font-size: 12px; margin: 0; text-align: center; color: #1b1b1b; }

.gs-header .hfe-nav-menu a.hfe-menu-item { white-space: nowrap; }
.gs-nav-split-left .hfe-nav-menu__layout-horizontal { justify-content: flex-end; }

@media (max-width: 1024px) {
	.gs-logo svg { width: 64px; }
	.gs-header .gs-header-main { padding-top: 8px; padding-bottom: 8px; }
	/* El desplegable móvil baja bajo el logo y el botón tiene área táctil >= 44px. */
	.gs-header nav.hfe-nav-menu__layout-horizontal { margin-top: 22px; box-shadow: 0 10px 24px rgba(0,0,0,.18); }
	.gs-header .hfe-nav-menu__toggle, .gs-header .hfe-nav-menu-icon { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
}

/* ---------- Footer ---------- */
.gs-footer-contacto { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.gs-footer-contacto li { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; font-weight: 400; line-height: 1.6; color: var(--color-text); }
.gs-footer-contacto li svg { flex: 0 0 14px; width: 14px; height: auto; margin-top: 4px; }
.gs-footer-contacto a { color: inherit; text-decoration: none; }
.gs-footer-contacto a:hover { color: var(--color-blue); }

.gs-footer .hfe-nav-menu a.hfe-menu-item { font-size: 13px; color: var(--color-text); font-weight: 400; padding: 2px 0; }
.gs-footer .hfe-nav-menu a.hfe-menu-item:hover { color: var(--color-blue); }
.gs-footer .hfe-nav-menu .menu-item a.hfe-menu-item { padding-left: 0; padding-right: 0; }

.gs-scroll-top { display: inline-block; line-height: 0; margin-top: 16px; transition: transform .2s; }
.gs-scroll-top svg { width: 32px; height: 56px; }
.gs-scroll-top:hover { transform: translateY(-3px); }

.gs-footer-bottom a { color: inherit; text-decoration: none; }
.gs-footer-bottom a:hover { text-decoration: underline; }
@media (max-width: 767px) {
	.gs-footer-bottom { text-align: center; }
}
