/**
 * Gombao Extra Services - estilos del grid de servicios.
 * Inspirado en la maqueta "Tours and experiences designed for you".
 */

.ges-services-wrap {
	--ges-columns: 4;
	--ges-accent: #c79a4b;          /* dorado de la marca */
	--ges-accent-dark: #b3873a;
	--ges-dark: #2e2e28;
	--ges-text: #1f2024;
	--ges-muted: #6b7177;
	--ges-card-bg: #ffffff;
	--ges-gap: 26px;
	--ges-maxw: 1200px;

	box-sizing: border-box;
}

.ges-services-wrap *,
.ges-services-wrap *::before,
.ges-services-wrap *::after {
	box-sizing: border-box;
}

.ges-services {
	max-width: var(--ges-maxw);
	margin: 0 auto;
	padding: 0 16px 44px;
}

/* ===================================================================== */
/* Barra superior (enlace a home + selector de idioma)                   */
/* ===================================================================== */
.ges-topbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	flex-wrap: wrap;
	max-width: var(--ges-maxw);
	margin: 0 auto;
	padding: 16px;
}

.ges-home-link {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	color: var(--ges-dark);
	font-weight: 700;
	font-size: 0.95rem;
	text-decoration: none !important;
	box-shadow: none !important;
}

.ges-home-link:hover {
	color: var(--ges-accent-dark);
}

.ges-home-icon {
	font-size: 1.1em;
	line-height: 1;
}

/* Fallback mínimo del dropdown SOLO dentro de la barra (por si el CSS global
   del sitio no se carga en esta página). Tu CSS del tema tiene prioridad. */
.ges-topbar .dropdown {
	position: relative;
	display: inline-block;
}

.ges-topbar .dropdown-content {
	display: none;
	position: absolute;
	right: 0;
	z-index: 50;
	min-width: 120px;
	background: #fff;
	box-shadow: 0 8px 22px rgba(20, 22, 30, 0.15);
	border-radius: 8px;
	overflow: hidden;
}

.ges-topbar .dropdown:hover .dropdown-content {
	display: block;
}

.ges-topbar .dropdown-content a {
	display: block;
	padding: 9px 14px;
	color: #2e2e28;
	text-decoration: none;
}

.ges-topbar .dropdown-content a:hover {
	background: #faf9f0;
}

@media (max-width: 600px) {
	.ges-topbar {
		justify-content: center;
		margin: 0 20px;
	}
}

/* ===================================================================== */
/* Cabecera tipo HERO (banner de marca)                                  */
/* ===================================================================== */
.ges-hero {
	background-color: var(--ges-dark);
	background-image: linear-gradient(120deg, #2e2e28 0%, #6f6f1e 60%, #b9b81f 100%);
	background-size: cover;
	background-position: center;
	color: #fff;
	text-align: center;
	padding: 64px 20px;
	margin-bottom: 44px;
}

.ges-hero__inner {
	max-width: 760px;
	margin: 0 auto;
}

.ges-hero__eyebrow {
	color: #f3f2cf;
	text-transform: uppercase;
	letter-spacing: 0.16em;
	font-size: 0.82rem;
	font-weight: 700;
	margin: 0 0 14px;
}

.ges-hero__title {
	color: #fff;
	font-size: clamp(2rem, 4vw, 3rem);
	font-weight: 800;
	line-height: 1.12;
	margin: 0;
}

.ges-hero__desc {
	color: rgba(255, 255, 255, 0.9);
	font-size: 1.05rem;
	line-height: 1.6;
	margin: 16px auto 0;
	max-width: 620px;
}

/* Cabecera simple (hero="no") ----------------------------------------- */
.ges-services__head {
	text-align: center;
	max-width: var(--ges-maxw);
	margin: 0 auto 38px;
	padding: 10px 16px 0;
}

.ges-services__eyebrow {
	color: var(--ges-accent);
	text-transform: uppercase;
	letter-spacing: 0.14em;
	font-size: 0.78rem;
	font-weight: 700;
	margin: 0 0 10px;
}

.ges-services__title {
	color: var(--ges-text);
	font-size: clamp(1.6rem, 3vw, 2.2rem);
	font-weight: 700;
	line-height: 1.2;
	margin: 0;
}

.ges-services__desc {
	color: var(--ges-muted);
	font-size: 1.02rem;
	line-height: 1.6;
	margin: 14px auto 0;
	max-width: 620px;
}

/* ===================================================================== */
/* Grid                                                                  */
/* ===================================================================== */
.ges-grid {
	display: grid;
	grid-template-columns: repeat(var(--ges-columns), minmax(0, 1fr));
	gap: var(--ges-gap);
	align-items: stretch;
}

/* Tarjeta -------------------------------------------------------------- */
.ges-card {
	background: var(--ges-card-bg);
	border-radius: 10px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	box-shadow: 0 6px 22px rgba(20, 22, 30, 0.06);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.ges-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 14px 32px rgba(20, 22, 30, 0.12);
}

/* Imagen + icono circular ---------------------------------------------- */
.ges-card__media {
	position: relative;
	aspect-ratio: 16 / 10;
	background: #e9ecef;
}

.ges-card__media-link {
	display: block;
	width: 100%;
	height: 100%;
}

.ges-card__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.ges-card__img--placeholder {
	background: linear-gradient(135deg, #d7dbe0, #eef1f4);
}

.ges-card__icon {
	position: absolute;
	left: 50%;
	bottom: 0;
	transform: translate(-50%, 50%);
	width: 54px;
	height: 54px;
	border-radius: 50%;
	background: var(--ges-card-bg);
	color: var(--ges-accent);
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 4px 14px rgba(20, 22, 30, 0.12);
	z-index: 2;
	font-size: 24px;
}

.ges-card__icon .dashicons {
	font-size: 26px;
	width: 26px;
	height: 26px;
	line-height: 26px;
}

.ges-card__icon .ges-icon-emoji {
	font-size: 26px;
	line-height: 1;
}

/* Cuerpo --------------------------------------------------------------- */
.ges-card__body {
	padding: 34px 22px 24px;
	text-align: left;
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
}

.ges-card__title {
	font-size: 1.12rem;
	font-weight: 700;
	margin: 0 0 10px;
	line-height: 1.3;
}

.ges-card__title a {
	color: var(--ges-text);
	text-decoration: none !important;
	box-shadow: none !important;
}

.ges-card__title a:hover {
	color: var(--ges-accent);
}

.ges-card__desc {
	color: var(--ges-muted);
	font-size: 0.92rem;
	line-height: 1.55;
	margin: 0 0 18px;
}

.ges-card__actions {
	margin-top: auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
}

.ges-card__link {
	color: var(--ges-accent);
	text-transform: uppercase;
	letter-spacing: 0.08em;
	font-size: 0.78rem;
	font-weight: 700;
	text-decoration: none !important;
	box-shadow: none !important;
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.ges-card__book {
	border: 0;
	cursor: pointer;
	background: var(--ges-accent);
	color: #fff;
	font-weight: 700;
	font-size: 0.82rem;
	letter-spacing: 0.04em;
	padding: 9px 18px;
	border-radius: 6px;
	transition: background 0.2s ease, transform 0.15s ease;
}

.ges-card__book:hover {
	background: var(--ges-accent-dark);
	transform: translateY(-1px);
}

.ges-card__link:hover {
	color: var(--ges-accent-dark);
}

.ges-card__arrow {
	transition: transform 0.2s ease;
}

.ges-card__link:hover .ges-card__arrow {
	transform: translateX(4px);
}

/* Responsive ----------------------------------------------------------- */
@media (max-width: 1024px) {
	.ges-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 560px) {
	.ges-grid {
		grid-template-columns: 1fr;
	}
}

/* ===================================================================== */
/* Modal de reserva                                                      */
/* ===================================================================== */
body.ges-modal-open {
	overflow: hidden;
}

.ges-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.ges-modal[hidden] {
	display: none;
}

.ges-modal__overlay {
	position: absolute;
	inset: 0;
	background: rgba(15, 17, 21, 0.6);
}

.ges-modal__dialog {
	position: relative;
	z-index: 1;
	background: #fff;
	border-radius: 12px;
	width: 100%;
	max-width: 560px;
	max-height: calc(100vh - 40px);
	overflow-y: auto;
	padding: 30px 30px 28px;
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
	animation: ges-pop 0.2s ease;
}

@keyframes ges-pop {
	from { transform: translateY(12px); opacity: 0; }
	to   { transform: translateY(0); opacity: 1; }
}

.ges-modal__close {
	position: absolute;
	top: 12px;
	right: 14px;
	border: 0;
	background: transparent;
	font-size: 28px;
	line-height: 1;
	color: #8a8f96;
	cursor: pointer;
	padding: 4px 8px;
}

.ges-modal__close:hover {
	color: #1f2024;
}

.ges-modal__title {
	margin: 0 0 4px;
	font-size: 1.5rem;
	color: #1f2024;
}

.ges-modal__service {
	margin: 0 0 18px;
	color: #c79a4b;
	font-weight: 700;
}

.ges-modal__service:empty {
	display: none;
}

/* Formulario ----------------------------------------------------------- */
.ges-form__row {
	margin-bottom: 14px;
	display: flex;
	flex-direction: column;
}

.ges-form__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
}

.ges-form__grid .ges-form__row {
	margin-bottom: 14px;
}

.ges-form label {
	font-size: 0.85rem;
	font-weight: 600;
	color: #3a3f45;
	margin-bottom: 6px;
}

.ges-form input,
.ges-form textarea {
	width: 100%;
	border: 1px solid #d7dbe0;
	border-radius: 6px;
	padding: 10px 12px;
	font-size: 0.95rem;
	font-family: inherit;
	color: #1f2024;
	background: #fff;
}

.ges-form input:focus,
.ges-form textarea:focus {
	outline: none;
	border-color: #c79a4b;
	box-shadow: 0 0 0 3px rgba(199, 154, 75, 0.18);
}

.ges-form textarea {
	resize: vertical;
}

/* Honeypot oculto */
.ges-hp {
	position: absolute !important;
	left: -9999px;
	top: -9999px;
	height: 0;
	width: 0;
	overflow: hidden;
}

.ges-form__feedback {
	margin: 4px 0 12px;
	font-size: 0.9rem;
	min-height: 1.2em;
}

.ges-form__feedback--error {
	color: #c0392b;
}

.ges-form__feedback--success {
	color: #1e8a4c;
}

.ges-form__submit {
	width: 100%;
	border: 0;
	cursor: pointer;
	background: #c79a4b;
	color: #fff;
	font-weight: 700;
	font-size: 1rem;
	letter-spacing: 0.03em;
	padding: 13px 20px;
	border-radius: 7px;
	transition: background 0.2s ease;
}

.ges-form__submit:hover {
	background: #b3873a;
}

.ges-form__submit:disabled {
	opacity: 0.7;
	cursor: default;
}

@media (max-width: 480px) {
	.ges-form__grid {
		grid-template-columns: 1fr;
	}

	.ges-modal__dialog {
		padding: 26px 18px 22px;
	}
}
