/* =========================================================
   GRAZIE — Apartments & Boat Tours · Herceg Novi
   ========================================================= */
:root {
	--navy: #13233a;
	--navy-2: #1c3250;
	--sea: #24527a;
	--gold: #b38d55;
	--gold-2: #d2b07a;
	--cream: #f7f2ea;
	--sand: #efe5d5;
	--paper: #fbf9f5;
	--ink: #1a2230;
	--muted: #5b6474;
	--line: #e3d7c3;
	--serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
	--caps: "Cinzel", "Cormorant Garamond", Georgia, serif;
	--sans: "Jost", "Helvetica Neue", Arial, sans-serif;
	--wrap: 1240px;
	--gut: clamp(20px, 4vw, 48px);
	--ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font: 300 17px/1.75 var(--sans);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 3px; }
::selection { background: var(--gold-2); color: var(--navy); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.08; margin: 0 0 .5em; color: inherit; text-wrap: balance; }
p { margin: 0 0 1.1em; text-wrap: pretty; }
strong, b { font-weight: 500; }

.g-skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--navy); color: #fff; padding: 10px 16px; }
.g-skip:focus { left: 8px; }

/* ---------- Cabecera ---------- */
.g-header {
	position: fixed; inset: 0 0 auto; z-index: 50;
	color: var(--ink); background: rgba(251, 249, 245, .94);
	backdrop-filter: saturate(1.3) blur(10px); -webkit-backdrop-filter: saturate(1.3) blur(10px);
	box-shadow: 0 1px 0 rgba(19, 35, 58, .08);
	transition: background .4s var(--ease), box-shadow .4s var(--ease), color .4s var(--ease);
}
.has-hero .g-header:not(.is-solid) { background: transparent; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; color: #fff; }
.has-hero .g-header:not(.is-solid)::before {
	content: ""; position: absolute; inset: 0 0 -60px; z-index: -1; pointer-events: none;
	background: linear-gradient(to bottom, rgba(8, 18, 32, .55), rgba(8, 18, 32, 0));
}
.g-header__in {
	max-width: calc(var(--wrap) + 2 * var(--gut)); margin: 0 auto; padding: 0 var(--gut);
	height: 96px; display: flex; align-items: center; gap: 28px;
	transition: height .4s var(--ease);
}
.g-header.is-solid .g-header__in { height: 76px; }
.g-logo { position: relative; display: block; width: 206px; flex: none; }
.g-logo img { width: 100%; height: auto; transition: opacity .35s var(--ease); }
.g-header.is-solid .g-logo { width: 176px; }
.g-logo__dark { position: absolute; inset: 0; opacity: 0; }
.has-hero .g-header:not(.is-solid) .g-logo__dark { opacity: 0; }
.g-header.is-solid .g-logo__light, body:not(.has-hero) .g-logo__light { opacity: 0; }
.g-header.is-solid .g-logo__dark, body:not(.has-hero) .g-logo__dark { opacity: 1; }

.g-nav { margin-left: auto; }
.g-nav ul { list-style: none; display: flex; gap: clamp(18px, 2.4vw, 38px); margin: 0; padding: 0; }
.g-nav a {
	position: relative; display: block; padding: 8px 0;
	font: 500 18px/1 var(--serif); letter-spacing: .02em; text-decoration: none;
}
.g-nav a::after {
	content: ""; position: absolute; left: 50%; right: 50%; bottom: 0; height: 1px; background: var(--gold-2);
	transition: left .35s var(--ease), right .35s var(--ease);
}
.g-nav a:hover::after, .g-nav a[aria-current]::after { left: 0; right: 0; }

.g-lang { position: relative; padding-left: 26px; border-left: 1px solid currentColor; border-color: color-mix(in srgb, currentColor 35%, transparent); }
.g-lang__btn {
	display: flex; align-items: center; gap: 7px; padding: 8px 0; background: none; border: 0; color: inherit; cursor: pointer;
	font: 500 13px/1 var(--caps); letter-spacing: .14em;
}
.g-lang__btn svg { width: 17px; height: 17px; }
.g-lang__btn svg:last-child { width: 14px; height: 14px; transition: transform .3s var(--ease); }
.g-lang.is-open .g-lang__btn svg:last-child { transform: rotate(180deg); }
.g-lang__list {
	position: absolute; right: 0; top: calc(100% + 12px); min-width: 210px; margin: 0; padding: 10px 0; list-style: none;
	background: var(--paper); color: var(--ink); border: 1px solid var(--line);
	box-shadow: 0 1px 2px rgba(19, 35, 58, .06), 0 22px 40px -18px rgba(19, 35, 58, .35);
	opacity: 0; visibility: hidden; transform: translateY(-6px); transition: .25s var(--ease);
}
.g-lang.is-open .g-lang__list { opacity: 1; visibility: visible; transform: none; }
.g-lang__list a { display: flex; gap: 14px; align-items: baseline; padding: 9px 20px; text-decoration: none; font: 400 17px/1.2 var(--serif); }
.g-lang__list b { font: 500 11.5px/1 var(--caps); letter-spacing: .14em; color: var(--gold); width: 22px; }
.g-lang__list a:hover, .g-lang__list a[aria-current] { background: var(--cream); }

.g-burger { display: none; margin-left: auto; padding: 8px; background: none; border: 0; color: inherit; cursor: pointer; }
.g-burger svg { width: 28px; height: 28px; display: block; }

.g-drawer {
	position: fixed; inset: 0; z-index: 60; background: var(--navy); color: #fff;
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 30px; padding: 40px 24px;
}
.g-drawer[hidden] { display: none; }
.g-drawer__close { position: absolute; top: 22px; right: 20px; background: none; border: 0; color: #fff; padding: 8px; cursor: pointer; }
.g-drawer__close svg { width: 28px; height: 28px; display: block; }
.g-drawer__logo { width: 190px; }
.g-drawer__nav { list-style: none; margin: 0; padding: 0; text-align: center; }
.g-drawer__nav a { display: block; padding: 8px; font: italic 400 34px/1.15 var(--serif); text-decoration: none; }
.g-drawer__langs { list-style: none; display: flex; gap: 18px; margin: 0; padding: 0; }
.g-drawer__langs a { font: 500 13px/1 var(--caps); letter-spacing: .16em; text-decoration: none; opacity: .7; }
.g-drawer__langs a[aria-current] { opacity: 1; color: var(--gold-2); }

/* ---------- Botones ---------- */
.g-pill, .wp-block-button.g-btn-gold .wp-block-button__link {
	display: inline-flex; align-items: center; justify-content: center; gap: 12px;
	padding: 17px 34px; border-radius: 999px; border: 0; text-decoration: none;
	background: linear-gradient(180deg, #c9a46b, #a9824a); color: #fff;
	font: 500 13px/1 var(--caps); letter-spacing: .16em; text-transform: uppercase;
	box-shadow: 0 1px 0 rgba(255, 255, 255, .25) inset, 0 14px 30px -14px rgba(120, 86, 36, .8);
	transition: transform .3s var(--ease), box-shadow .3s var(--ease), filter .3s;
}
.g-pill:hover, .wp-block-button.g-btn-gold .wp-block-button__link:hover { transform: translateY(-2px); filter: brightness(1.05); }
.g-pill svg { width: 20px; height: 20px; flex: none; }
.g-pill--small { padding: 13px 24px; font-size: 11.5px; }
.wp-block-button.g-btn-gold .wp-block-button__link::before {
	content: ""; width: 20px; height: 20px; flex: none; background: currentColor;
	-webkit-mask: var(--ico-wa) center / contain no-repeat; mask: var(--ico-wa) center / contain no-repeat;
}

.wp-block-buttons { display: flex; flex-wrap: wrap; gap: 16px; }
.wp-block-button__link { cursor: pointer; }
.wp-block-button.g-btn-outline .wp-block-button__link {
	display: inline-flex; align-items: center; gap: 12px; padding: 16px 28px; border-radius: 0;
	background: rgba(10, 20, 34, .12); color: #fff; border: 1px solid rgba(255, 255, 255, .85);
	font: 500 12.5px/1 var(--caps); letter-spacing: .18em; text-transform: uppercase; text-decoration: none;
	backdrop-filter: blur(2px); transition: background .3s var(--ease), color .3s var(--ease);
}
.wp-block-button.g-btn-outline .wp-block-button__link:hover { background: #fff; color: var(--navy); }
.wp-block-button.g-btn-outline .wp-block-button__link::before {
	content: ""; width: 18px; height: 18px; background: currentColor;
	-webkit-mask: var(--ico, none) center / contain no-repeat; mask: var(--ico, none) center / contain no-repeat;
}
.wp-block-button.g-ico-home { --ico: var(--ico-home); }
.wp-block-button.g-ico-boat { --ico: var(--ico-boat); }

.wp-block-button.g-btn-light .wp-block-button__link, .wp-block-button.g-btn-dark .wp-block-button__link {
	display: inline-flex; align-items: center; gap: 12px; padding: 15px 24px; border-radius: 0;
	background: #fff; color: var(--navy); border: 0; text-decoration: none;
	font: 500 12px/1 var(--caps); letter-spacing: .18em; text-transform: uppercase;
	transition: background .3s var(--ease), color .3s var(--ease), gap .3s var(--ease);
}
.wp-block-button.g-btn-dark .wp-block-button__link { background: var(--navy); color: #fff; }
.wp-block-button.g-btn-light .wp-block-button__link::after, .wp-block-button.g-btn-dark .wp-block-button__link::after { content: "→"; font-family: var(--sans); font-size: 15px; letter-spacing: 0; }
.wp-block-button.g-btn-light .wp-block-button__link:hover { background: var(--gold); color: #fff; gap: 18px; }
.wp-block-button.g-btn-dark .wp-block-button__link:hover { background: var(--gold); gap: 18px; }

/* ---------- Textos de apoyo ---------- */
.g-eyebrow {
	font: 500 12.5px/1.4 var(--caps) !important; letter-spacing: .22em; text-transform: uppercase; color: var(--gold);
	display: flex; align-items: center; gap: 14px; margin-bottom: 18px !important;
}
.g-eyebrow::before { content: ""; width: 38px; height: 1px; background: currentColor; flex: none; }
.g-center .g-eyebrow, .g-eyebrow.g-c { justify-content: center; }
.g-center .g-eyebrow::after, .g-eyebrow.g-c::after { content: ""; width: 38px; height: 1px; background: currentColor; flex: none; }
.g-title { font: italic 400 clamp(38px, 4.6vw, 62px)/1.04 var(--serif) !important; letter-spacing: -.005em; color: var(--navy); }
.g-lead { font-size: clamp(18px, 1.4vw, 20px); color: var(--muted); max-width: 62ch; }
.g-center { text-align: center; }
.g-center .g-lead { margin-left: auto; margin-right: auto; }

/* ---------- Contenedores de sección ---------- */
.g-content > * { margin-top: 0; margin-bottom: 0; }
.g-section { padding: clamp(72px, 9vw, 128px) var(--gut); }
.g-section > * { max-width: var(--wrap); margin-left: auto; margin-right: auto; }
.g-section.g-cream { background: var(--cream); }
.g-section.g-navy { background: var(--navy); color: #fff; }
.g-section.g-navy .g-title { color: #fff; }
.g-section.g-navy .g-lead { color: rgba(255, 255, 255, .78); }
.g-section-head { margin-bottom: clamp(40px, 5vw, 64px) !important; }

/* ---------- Portada (cover) ---------- */
.wp-block-cover { position: relative; display: flex; overflow: hidden; }
.wp-block-cover__image-background { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; max-width: none; }
.wp-block-cover__background { position: absolute; inset: 0; z-index: 1; opacity: 1 !important; background: none !important; }
.wp-block-cover__inner-container { position: relative; z-index: 2; width: 100%; }

.g-hero { min-height: max(640px, 100svh); align-items: center; color: #fff; }
.g-hero .wp-block-cover__image-background { animation: g-zoom 18s var(--ease) both; }
.g-hero .wp-block-cover__background {
	background: linear-gradient(100deg, rgba(10, 22, 40, .72) 0%, rgba(10, 22, 40, .38) 46%, rgba(10, 22, 40, .05) 78%), linear-gradient(to top, rgba(10, 22, 40, .45), rgba(10, 22, 40, 0) 40%) !important;
}
.g-hero .wp-block-cover__inner-container { max-width: calc(var(--wrap) + 2 * var(--gut)); margin: 0 auto; padding: 130px var(--gut) 110px; }
.g-hero h1 {
	font: italic 400 clamp(52px, 8vw, 112px)/.98 var(--serif); letter-spacing: -.012em; margin: 0 0 26px;
	text-shadow: 0 2px 30px rgba(0, 0, 0, .25);
}
.g-hero .g-sub {
	font: 400 clamp(13px, 1.25vw, 16px)/1.75 var(--caps); letter-spacing: .2em; text-transform: uppercase;
	max-width: 34em; margin-bottom: 40px; opacity: .95;
}
.g-scroll {
	position: absolute; left: 50%; bottom: 34px; transform: translateX(-50%); width: 26px; height: 42px;
	border: 1px solid rgba(255, 255, 255, .8); border-radius: 14px;
}
.g-scroll::after { content: ""; position: absolute; left: 50%; top: 9px; width: 2px; height: 8px; margin-left: -1px; background: #fff; border-radius: 2px; animation: g-scroll 2.2s var(--ease) infinite; }
@keyframes g-scroll { 0% { opacity: 0; transform: translateY(-4px); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }
@keyframes g-zoom { from { transform: scale(1.08); } to { transform: scale(1); } }

/* Portada de páginas interiores */
.g-pagehero { min-height: clamp(440px, 64vh, 640px); align-items: flex-end; color: #fff; text-align: center; }
.g-pagehero .wp-block-cover__background { background: linear-gradient(to top, rgba(10, 22, 40, .78), rgba(10, 22, 40, .25) 55%, rgba(10, 22, 40, .45)) !important; }
.g-pagehero .wp-block-cover__inner-container { padding: 150px var(--gut) clamp(56px, 7vw, 90px); }
.g-pagehero h1 { font: italic 400 clamp(48px, 7vw, 92px)/1 var(--serif); margin: 0 0 18px; }
.g-pagehero .g-sub { font: 400 clamp(12.5px, 1.1vw, 15px)/1.7 var(--caps); letter-spacing: .22em; text-transform: uppercase; margin: 0 auto; max-width: 40em; opacity: .92; }
.g-pagehero .g-eyebrow { color: var(--gold-2); }

/* ---------- Dos tarjetas (apartamentos / tours) ---------- */
.wp-block-columns.g-split { display: grid !important; grid-template-columns: 1fr 1fr; gap: 6px; margin: 6px 0 0 !important; padding: 0 6px; }
.g-split > .wp-block-column { min-width: 0; }
.g-card { min-height: clamp(460px, 44vw, 640px); height: 100%; align-items: flex-end; color: #fff; }
.g-card .wp-block-cover__image-background { transition: transform 1.4s var(--ease); }
.g-card:hover .wp-block-cover__image-background { transform: scale(1.045); }
.g-card .wp-block-cover__background { background: linear-gradient(to top, rgba(8, 18, 32, .82), rgba(8, 18, 32, .2) 55%, rgba(8, 18, 32, .05)) !important; }
.g-card .wp-block-cover__inner-container { padding: clamp(32px, 4vw, 60px); }
.g-card h2 { font: italic 400 clamp(46px, 5.4vw, 76px)/.95 var(--serif); margin: 0 0 18px; }
.g-card .g-sub { font: 400 12.5px/1.6 var(--caps); letter-spacing: .22em; text-transform: uppercase; margin-bottom: 28px; opacity: .95; }

/* ---------- Franja de atributos ---------- */
.g-features { background: var(--cream); padding: clamp(44px, 5vw, 64px) var(--gut); border-bottom: 1px solid var(--line); }
.wp-block-columns.g-feat-row { max-width: var(--wrap); margin: 0 auto !important; display: grid !important; grid-template-columns: repeat(4, 1fr); gap: 0; }
.g-feat-row > .wp-block-column { text-align: center; padding: 6px 22px; }
.g-feat-row > .wp-block-column + .wp-block-column { border-left: 1px solid var(--line); }
.g-feat {
	font: 500 21px/1.25 var(--serif) !important; color: var(--navy); margin: 0 !important;
}
.g-feat::before {
	content: ""; display: block; width: 46px; height: 46px; margin: 0 auto 16px; background: var(--gold);
	-webkit-mask: var(--ico) center / contain no-repeat; mask: var(--ico) center / contain no-repeat;
}
.g-feat + p { font-size: 15px; color: var(--muted); margin: 8px 0 0; line-height: 1.6; }

/* Iconos (trazo fino) */
:root {
	--ico-diamond: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='none' stroke='%23000' stroke-width='1.3' stroke-linejoin='round'%3E%3Cpath d='M12 8h24l8 11-20 22L4 19z'/%3E%3Cpath d='M4 19h40M18 8l-4 11 10 22 10-22-4-11M14 19l10-11 10 11'/%3E%3C/svg%3E");
	--ico-yacht: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='none' stroke='%23000' stroke-width='1.3' stroke-linejoin='round' stroke-linecap='round'%3E%3Cpath d='M3 30h40l-6 7H9z'/%3E%3Cpath d='M9 30l4-7h16l6 7M15 23l3-5h10l5 5M19 26h3M25 26h3'/%3E%3Cpath d='M3 42c3 0 3-2 6-2s3 2 6 2 3-2 6-2 3 2 6 2 3-2 6-2 3 2 6 2'/%3E%3C/svg%3E");
	--ico-pin: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='none' stroke='%23000' stroke-width='1.3'%3E%3Cpath d='M24 44s14-13.6 14-24a14 14 0 0 0-28 0c0 10.4 14 24 14 24z'/%3E%3Ccircle cx='24' cy='20' r='5'/%3E%3C/svg%3E");
	--ico-heart: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='none' stroke='%23000' stroke-width='1.3' stroke-linejoin='round'%3E%3Cpath d='M24 41S6 30.5 6 17.5A9.5 9.5 0 0 1 24 13a9.5 9.5 0 0 1 18 4.5C42 30.5 24 41 24 41z'/%3E%3C/svg%3E");
	--ico-sun: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='none' stroke='%23000' stroke-width='1.3' stroke-linecap='round'%3E%3Ccircle cx='24' cy='24' r='8'/%3E%3Cpath d='M24 5v6M24 37v6M5 24h6M37 24h6M10.6 10.6l4.2 4.2M33.2 33.2l4.2 4.2M10.6 37.4l4.2-4.2M33.2 14.8l4.2-4.2'/%3E%3C/svg%3E");
	--ico-wave: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='none' stroke='%23000' stroke-width='1.3' stroke-linecap='round'%3E%3Cpath d='M4 18c4 0 4-3 8-3s4 3 8 3 4-3 8-3 4 3 8 3 4-3 8-3M4 26c4 0 4-3 8-3s4 3 8 3 4-3 8-3 4 3 8 3 4-3 8-3M4 34c4 0 4-3 8-3s4 3 8 3 4-3 8-3 4 3 8 3 4-3 8-3'/%3E%3C/svg%3E");
	--ico-key: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='none' stroke='%23000' stroke-width='1.3' stroke-linecap='round'%3E%3Ccircle cx='15' cy='24' r='8'/%3E%3Cpath d='M23 24h20M37 24v6M42 24v5'/%3E%3C/svg%3E");
	--ico-chat: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='none' stroke='%23000' stroke-width='1.3' stroke-linejoin='round'%3E%3Cpath d='M6 9h36v24H20l-9 7v-7H6z'/%3E%3Cpath d='M14 19h20M14 25h13' stroke-linecap='round'/%3E%3C/svg%3E");
	--ico-mail: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='none' stroke='%23000' stroke-width='1.3' stroke-linejoin='round'%3E%3Crect x='5' y='11' width='38' height='26'/%3E%3Cpath d='m5 12 19 14 19-14'/%3E%3C/svg%3E");
	--ico-phone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='none' stroke='%23000' stroke-width='1.3' stroke-linejoin='round'%3E%3Cpath d='M17 6l5 10-4 4c2 5 5 8 10 10l4-4 10 5-2 7c-1 2-3 3-5 3C19 40 8 29 7 13c0-2 1-4 3-5z'/%3E%3C/svg%3E");
	--ico-home: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linejoin='round'%3E%3Cpath d='M3 11 12 4l9 7M5 9.5V20h14V9.5M10 20v-6h4v6'/%3E%3C/svg%3E");
	--ico-boat: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linejoin='round' stroke-linecap='round'%3E%3Cpath d='M2 15h19l-3 4H5zM5 15l2-4h8l3 4M8 11l1.5-3h5L17 11'/%3E%3C/svg%3E");
	--ico-wa: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 0 0-8.6 15.1L2 22l5-1.3A10 10 0 1 0 12 2Zm0 18.2a8.2 8.2 0 0 1-4.2-1.2l-.3-.2-3 .8.8-2.9-.2-.3A8.2 8.2 0 1 1 12 20.2Zm4.5-6.1c-.2-.1-1.5-.7-1.7-.8-.2-.1-.4-.1-.6.1l-.8 1c-.1.2-.3.2-.5.1a6.7 6.7 0 0 1-3.3-2.9c-.3-.4.2-.4.7-1.4.1-.2 0-.3 0-.5l-.8-1.8c-.2-.5-.4-.4-.6-.4h-.5a1 1 0 0 0-.7.3 2.9 2.9 0 0 0-.9 2.2 5 5 0 0 0 1.1 2.7 11.5 11.5 0 0 0 4.4 3.9c1.6.7 2.3.8 3.1.6.5-.1 1.5-.6 1.7-1.2.2-.6.2-1.1.2-1.2-.1-.1-.3-.2-.5-.3Z'/%3E%3C/svg%3E");
}
.g-i-diamond { --ico: var(--ico-diamond); }
.g-i-yacht { --ico: var(--ico-yacht); }
.g-i-pin { --ico: var(--ico-pin); }
.g-i-heart { --ico: var(--ico-heart); }
.g-i-sun { --ico: var(--ico-sun); }
.g-i-wave { --ico: var(--ico-wave); }
.g-i-key { --ico: var(--ico-key); }
.g-i-chat { --ico: var(--ico-chat); }
.g-i-mail { --ico: var(--ico-mail); }
.g-i-phone { --ico: var(--ico-phone); }

/* ---------- Texto + imagen ---------- */
.wp-block-columns.g-duo { display: grid !important; grid-template-columns: 1.05fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.wp-block-columns.g-duo.g-rev > .wp-block-column:first-child { order: 2; }
.g-duo .wp-block-column { min-width: 0; }
.g-frame { position: relative; margin: 0 !important; isolation: isolate; }
.g-frame img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.g-frame.g-wide img { aspect-ratio: 4 / 3; }
.g-frame::after { content: ""; position: absolute; inset: 18px -18px -18px 18px; border: 1px solid var(--gold); z-index: -1; }
.g-rev .g-frame::after { inset: 18px 18px -18px -18px; }
.g-duo .wp-block-buttons { margin-top: 34px; }

/* Lista con raya dorada */
.wp-block-list.g-list { list-style: none; padding: 0; margin: 22px 0 0; }
.g-list li { position: relative; padding: 9px 0 9px 34px; border-bottom: 1px solid var(--line); }
.g-list li::before { content: ""; position: absolute; left: 0; top: 50%; width: 18px; height: 1px; background: var(--gold); }

/* ---------- Rutas / tours (tarjetas) ---------- */
.wp-block-columns.g-routes { display: grid !important; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 2.4vw, 32px); }
.g-routes > .wp-block-column { background: #fff; border: 1px solid var(--line); min-width: 0; display: flex; flex-direction: column; transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.g-routes > .wp-block-column:hover { transform: translateY(-4px); box-shadow: 0 1px 2px rgba(19, 35, 58, .05), 0 30px 50px -28px rgba(19, 35, 58, .45); }
.g-routes .wp-block-image { margin: 0; overflow: hidden; }
.g-routes .wp-block-image img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 1.2s var(--ease); }
.g-routes > .wp-block-column:hover .wp-block-image img { transform: scale(1.05); }
.g-routes h3 { font: italic 400 30px/1.1 var(--serif); color: var(--navy); margin: 26px 28px 10px; }
.g-routes p { margin: 0 28px 28px; font-size: 16px; color: var(--muted); }
.g-routes .g-tag { margin: 0 28px 0 !important; padding-top: 22px; font: 500 11.5px/1 var(--caps); letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.g-routes .g-tag + h3 { margin-top: 10px; }

/* ---------- Tours detallados (página de tours) ---------- */
.g-tour + .g-tour { margin-top: clamp(80px, 10vw, 140px) !important; }

/* ---------- Comodidades ---------- */
.wp-block-columns.g-amen { display: grid !important; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.g-amen > .wp-block-column { padding: 40px 34px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper); min-width: 0; }
.g-amen h3 { font: 500 24px/1.2 var(--serif); color: var(--navy); margin: 0 0 10px; }
.g-amen h3::before { content: ""; display: block; width: 40px; height: 40px; margin-bottom: 20px; background: var(--gold); -webkit-mask: var(--ico) center / contain no-repeat; mask: var(--ico) center / contain no-repeat; }
.g-amen p { font-size: 16px; color: var(--muted); margin: 0; }

/* ---------- Llamada final ---------- */
.g-cta { min-height: clamp(420px, 52vh, 560px); align-items: center; color: #fff; text-align: center; }
.g-cta .wp-block-cover__background { background: linear-gradient(rgba(12, 26, 46, .62), rgba(12, 26, 46, .7)) !important; }
.g-cta .wp-block-cover__inner-container { max-width: 900px; margin: 0 auto; padding: 90px var(--gut) 70px; }
.g-cta h2 { font: italic 400 clamp(38px, 5vw, 64px)/1.05 var(--serif); margin: 0 0 16px; }
.g-cta .g-sub { font: 400 clamp(12px, 1.1vw, 14.5px)/1.7 var(--caps); letter-spacing: .22em; text-transform: uppercase; margin-bottom: 38px; opacity: .92; }
.g-cta .wp-block-buttons { justify-content: center; }
.g-cta .g-sign { margin: 46px 0 0 !important; font: 400 11.5px/1 var(--caps); letter-spacing: .24em; text-transform: uppercase; opacity: .85; display: flex; align-items: center; justify-content: center; gap: 18px; }
.g-cta .g-sign::before, .g-cta .g-sign::after { content: ""; width: min(90px, 12vw); height: 1px; background: currentColor; opacity: .7; }

/* ---------- Galería ---------- */
.wp-block-gallery.g-gallery { display: grid !important; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 0 auto; max-width: var(--wrap); }
.wp-block-gallery.g-gallery .wp-block-image { margin: 0; width: auto !important; overflow: hidden; }
.wp-block-gallery.g-gallery .wp-block-image img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 1.2s var(--ease); }
.wp-block-gallery.g-gallery .wp-block-image:hover img { transform: scale(1.04); }
.wp-block-gallery.g-gallery .wp-block-image:nth-child(6n+1) { grid-column: span 2; grid-row: span 2; }
.wp-block-gallery.g-gallery .wp-block-image:nth-child(6n+1) img { aspect-ratio: auto; }
.g-credits { max-width: var(--wrap); margin: 56px auto 0 !important; font-size: 13.5px; line-height: 1.7; color: var(--muted); border-top: 1px solid var(--line); padding-top: 24px; }
.g-credits a { color: var(--muted); }

/* ---------- Contacto ---------- */
.wp-block-columns.g-contact-cards { display: grid !important; grid-template-columns: repeat(2, 1fr); gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.g-contact-cards > .wp-block-column { padding: 34px 30px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; min-width: 0; }
.g-contact-cards h3 { font: 500 12.5px/1.3 var(--caps); letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin: 0 0 12px; display: flex; gap: 12px; align-items: center; }
.g-contact-cards h3::before { content: ""; width: 26px; height: 26px; background: currentColor; -webkit-mask: var(--ico) center / contain no-repeat; mask: var(--ico) center / contain no-repeat; }
.g-contact-cards p { font: 400 22px/1.35 var(--serif); color: var(--navy); margin: 0; overflow-wrap: anywhere; }
.g-contact-cards p a { text-decoration: none; border-bottom: 1px solid var(--line); }
.g-contact-cards p a:hover { border-color: var(--gold); }
.g-map { margin: 0; height: 100%; min-height: 420px; border: 1px solid var(--line); }
.g-map iframe { width: 100%; height: 100%; min-height: 420px; border: 0; display: block; filter: grayscale(.35) sepia(.12); }

/* ---------- Pie ---------- */
.g-footer { background: var(--navy); color: rgba(255, 255, 255, .78); font-size: 15.5px; }
.g-footer__in { max-width: calc(var(--wrap) + 2 * var(--gut)); margin: 0 auto; padding: clamp(64px, 7vw, 96px) var(--gut) 56px; display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 48px; }
.g-footer__brand img { width: 220px; margin-bottom: 24px; }
.g-footer__brand p { max-width: 30em; margin-bottom: 26px; }
.g-footer h2 { font: 500 12px/1 var(--caps); letter-spacing: .22em; text-transform: uppercase; color: var(--gold-2); margin: 10px 0 22px; }
.g-footer ul { list-style: none; margin: 0; padding: 0; }
.g-footer li { margin: 0 0 10px; }
.g-footer a { text-decoration: none; transition: color .25s; }
.g-footer a:hover, .g-footer a[aria-current] { color: #fff; }
.g-footer__bar { border-top: 1px solid rgba(255, 255, 255, .1); max-width: calc(var(--wrap) + 2 * var(--gut)); margin: 0 auto; padding: 24px var(--gut) 30px; display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; font-size: 13px; color: rgba(255, 255, 255, .55); }

.g-404 { min-height: 70vh; display: grid; place-content: center; text-align: center; padding: 160px var(--gut) 80px; }
.g-404 h1 { font: italic 400 64px/1 var(--serif); color: var(--navy); }
.g-post-head { padding: 160px var(--gut) 20px; max-width: var(--wrap); margin: 0 auto; }

/* ---------- Aparición al hacer scroll ---------- */
.g-js .g-reveal { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.g-js .g-reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; }
	.g-js .g-reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
	.g-nav, .g-lang { display: none; }
	.g-burger { display: block; }
	.g-header__in { height: 80px; }
	.g-logo { width: 170px; }
	.wp-block-columns.g-routes { grid-template-columns: 1fr 1fr; }
	.g-footer__in { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
	body { font-size: 16.5px; }
	.wp-block-columns.g-split, .wp-block-columns.g-duo, .wp-block-columns.g-contact-cards { grid-template-columns: 1fr; }
	.wp-block-columns.g-duo.g-rev > .wp-block-column:first-child { order: 0; }
	.wp-block-columns.g-feat-row { grid-template-columns: 1fr 1fr; row-gap: 34px; }
	.g-feat-row > .wp-block-column:nth-child(3) { border-left: 0; }
	.wp-block-columns.g-amen { grid-template-columns: 1fr 1fr; }
	.g-frame::after { inset: 12px -12px -12px 12px; }
	.g-rev .g-frame::after { inset: 12px -12px -12px 12px; }
	.wp-block-gallery.g-gallery { grid-template-columns: 1fr 1fr; }
	.g-hero .wp-block-cover__inner-container { padding-top: 120px; }
}
@media (max-width: 560px) {
	.wp-block-columns.g-routes, .wp-block-columns.g-amen { grid-template-columns: 1fr; }
	.g-footer__in { grid-template-columns: 1fr; gap: 36px; }
	.g-hero .wp-block-buttons { flex-direction: column; align-items: stretch; }
	.g-hero .wp-block-button .wp-block-button__link { justify-content: center; width: 100%; }
	.g-amen > .wp-block-column { padding: 32px 26px; }
	.g-header__in { height: 72px; }
	.g-logo { width: 150px; }
	.g-header.is-solid .g-logo { width: 140px; }
	.g-header.is-solid .g-header__in { height: 66px; }
}

/* ---------- Ajustes sobre los estilos por defecto de los bloques ---------- */
.wp-block-cover { padding: 0 !important; }
.wp-block-cover .wp-block-cover__inner-container { color: inherit; }
.g-hero .wp-block-cover__inner-container { align-self: stretch; display: flex; flex-direction: column; justify-content: center; }
.g-hero .wp-block-cover__inner-container > * { max-width: 100%; }
.g-hero .wp-block-buttons { justify-content: flex-start; }
.g-card { width: 100%; }
.g-split > .wp-block-column { display: flex; }
.g-more { margin-top: 48px !important; }
.g-content .wp-block-columns { margin-bottom: 0; }
.g-section-head .g-title { margin-bottom: .3em; }
.g-section .wp-block-buttons { margin-top: 28px; }
.g-routes .wp-block-image img { height: auto; }
.wp-block-image.g-frame { overflow: visible; }
.g-feat, .g-amen h3, .g-contact-cards h3, .g-routes h3, .g-card h2 { -webkit-hyphens: auto; hyphens: auto; overflow-wrap: break-word; }
@media (max-width: 560px) {
	.g-feat { font-size: 18px !important; }
	.g-feat-row > .wp-block-column { padding: 6px 12px; }
}

/* ---------- Nuestra historia ---------- */
.wp-block-columns.g-steps { display: grid !important; grid-template-columns: repeat(5, 1fr); gap: 0; position: relative; }
.g-steps > .wp-block-column { padding: 0 22px; text-align: center; position: relative; min-width: 0; }
.g-steps > .wp-block-column + .wp-block-column::before { content: ""; position: absolute; left: 0; top: 30px; bottom: 10px; width: 1px; background: var(--line); }
.g-step-n { font: italic 400 46px/1 var(--serif) !important; color: var(--gold); margin: 0 0 14px !important; }
.g-steps h3 { font: 500 21px/1.2 var(--serif); color: var(--navy); margin: 0 0 10px; -webkit-hyphens: auto; hyphens: auto; }
.g-steps p:not(.g-step-n) { font-size: 15.5px; color: var(--muted); margin: 0; }
.g-narrow { max-width: 760px !important; }
.g-narrow p { font-size: 18px; }
.g-narrow .g-lead { font: italic 400 clamp(24px, 2.4vw, 30px)/1.35 var(--serif); color: var(--navy); }
.g-quote { text-align: center; }
.g-quote-text { font: italic 400 clamp(32px, 4.2vw, 54px)/1.18 var(--serif) !important; max-width: 920px; margin: 0 auto 30px !important; color: #fff; }
.g-quote-text::before { content: "“"; display: block; font-size: 1.8em; line-height: .6; color: var(--gold-2); margin-bottom: 12px; }
.g-quote-sign { font: 500 13px/1 var(--caps) !important; letter-spacing: .3em; text-transform: uppercase; color: var(--gold-2); margin: 0 0 12px !important; }
.g-quote-welcome { color: rgba(255, 255, 255, .75); margin: 0 !important; }
.g-story .g-frame img, .g-duo .g-frame img { object-position: center 30%; }
@media (max-width: 1240px) { .g-nav ul { gap: clamp(14px, 1.7vw, 26px); } .g-nav a { font-size: 17px; } }
@media (max-width: 1080px) { .wp-block-columns.g-steps { grid-template-columns: repeat(3, 1fr); row-gap: 44px; } .g-steps > .wp-block-column:nth-child(4)::before { display: none; } }
@media (max-width: 560px) { .wp-block-columns.g-steps { grid-template-columns: 1fr; } .g-steps > .wp-block-column::before { display: none; } }
.g-section > .g-narrow { margin-left: auto !important; margin-right: auto !important; }
