/* ---------- Formulario de reserva ---------- */
.g-booking-card { background: #fff; border: 1px solid var(--line); padding: clamp(22px, 3vw, 40px); box-shadow: 0 1px 2px rgba(19, 35, 58, .04), 0 30px 60px -40px rgba(19, 35, 58, .45); scroll-margin-top: 100px; }
.g-booking-card .g-eyebrow { margin-bottom: 10px !important; }
.g-booking-card h2 { font: italic 400 clamp(30px, 3vw, 40px)/1.1 var(--serif); color: var(--navy); margin: 0 0 24px; }
.g-form { display: grid; gap: 18px; }
.g-form label { display: grid; gap: 7px; font: 500 12px/1.3 var(--caps); letter-spacing: .14em; text-transform: uppercase; color: var(--navy); }
.g-form label small { font: 400 12px var(--sans); letter-spacing: 0; text-transform: none; color: var(--muted); }
.g-form input:not([type=radio]):not([type=checkbox]), .g-form select, .g-form textarea {
	width: 100%; min-height: 52px; padding: 13px 15px; border: 1px solid #d8ccb8; border-radius: 0; background: var(--paper);
	font: 400 16px/1.4 var(--sans); color: var(--ink); letter-spacing: 0; text-transform: none; -webkit-appearance: none; appearance: none;
	transition: border-color .2s, box-shadow .2s, background .2s;
}
.g-form select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m7 10 5 5 5-5' stroke='%23b38d55' stroke-width='1.6' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 20px; padding-right: 42px; }
.g-form textarea { min-height: 96px; resize: vertical; }
.g-form input:focus, .g-form select:focus, .g-form textarea:focus { outline: none; border-color: var(--gold); background: #fff; box-shadow: 0 0 0 3px rgba(179, 141, 85, .18); }
.g-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.g-form[data-type="apartment"] .g-only-tour, .g-form[data-type="tour"] .g-only-stay { display: none; }
.g-seg { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; min-width: 0; }
.g-seg legend { font: 500 12px/1.3 var(--caps); letter-spacing: .14em; text-transform: uppercase; color: var(--navy); margin-bottom: 9px; padding: 0; }
.g-seg label { display: block; position: relative; letter-spacing: 0; text-transform: none; }
.g-seg input { position: absolute; opacity: 0; inset: 0; margin: 0; }
.g-seg span { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 52px; padding: 8px 10px; border: 1px solid #d8ccb8; background: var(--paper); font: 500 17px/1.15 var(--serif); color: var(--navy); cursor: pointer; transition: .2s; }
.g-seg input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; }
.g-seg input:focus-visible + span { outline: 2px solid var(--gold-2); outline-offset: 2px; }
.g-form .g-check { display: flex; align-items: flex-start; gap: 12px; font: 400 14.5px/1.5 var(--sans); letter-spacing: 0; text-transform: none; color: var(--muted); }
.g-check input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--navy); flex: none; }
.g-submit { width: 100%; min-height: 56px; cursor: pointer; font-size: 13.5px; }
.g-form-note { font-size: 14px; color: var(--muted); text-align: center; margin: -4px 0 0; }
.g-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.g-form-ok { background: #eef5ee; border: 1px solid #b9d4b9; padding: 22px; margin-bottom: 22px; display: grid; gap: 14px; justify-items: start; }
.g-form-ok p { margin: 0; font: 500 20px/1.35 var(--serif); color: #24502c; }
.g-form-err { background: #fbeeee; border: 1px solid #e3b5b5; color: #7a2525; padding: 14px 18px; }
.g-contact-side .g-contact-cards { margin-bottom: 28px; }
.g-contact-side .g-map, .g-contact-side .g-map iframe { min-height: 320px; height: 320px; }

/* ---------- Preguntas frecuentes ---------- */
.g-section > .g-faq { max-width: 860px; }
.g-faq .wp-block-details { border-bottom: 1px solid var(--line); padding: 0; margin: 0; }
.g-faq .wp-block-details:first-of-type { border-top: 1px solid var(--line); }
.g-faq summary { list-style: none; cursor: pointer; padding: 22px 48px 22px 0; position: relative; font: 500 clamp(19px, 1.6vw, 22px)/1.3 var(--serif); color: var(--navy); }
.g-faq summary::-webkit-details-marker { display: none; }
.g-faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px; margin-top: -9px; border-right: 1.5px solid var(--gold); border-bottom: 1.5px solid var(--gold); transform: rotate(45deg); transition: transform .3s var(--ease); }
.g-faq details[open] summary::after { transform: rotate(-135deg); margin-top: -3px; }
.g-faq .wp-block-details > p { margin: 0 0 22px; color: var(--muted); padding-right: 40px; }

/* ---------- Cómo llegar / Stay + Sail / Seguridad ---------- */
.wp-block-columns.g-getting { display: grid !important; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.g-getting > .wp-block-column { padding: 30px 28px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; min-width: 0; }
.g-getting .g-tag { margin: 0 0 8px !important; font: 500 11.5px/1.3 var(--caps); letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.g-getting h3 { font: 500 23px/1.2 var(--serif); color: var(--navy); margin: 0 0 6px; }
.g-getting p { margin: 0; color: var(--muted); font-size: 16px; }
.g-section > .g-getting-note { text-align: center; margin-top: 26px; color: var(--muted); }
.g-package .g-list li { border-color: rgba(255, 255, 255, .16); color: #fff; }
.g-plus { font: italic 300 clamp(90px, 12vw, 170px)/.9 var(--serif) !important; color: var(--gold-2); text-align: center; margin: 0 !important; }
.g-plus-sub { text-align: center; font: 500 12.5px/1.5 var(--caps); letter-spacing: .24em; text-transform: uppercase; color: rgba(255, 255, 255, .8); margin: 14px 0 0 !important; }
.g-safety { border-left: 1px solid var(--gold); padding-left: clamp(20px, 3vw, 36px); }
.wp-block-button.g-btn-ghost .wp-block-button__link { display: inline-flex; align-items: center; gap: 10px; padding: 15px 22px; border-radius: 0; background: transparent; color: var(--navy); border: 1px solid var(--navy); font: 500 12px/1 var(--caps); letter-spacing: .18em; text-transform: uppercase; text-decoration: none; transition: .3s var(--ease); }
.wp-block-button.g-btn-ghost .wp-block-button__link:hover { background: var(--navy); color: #fff; }
.g-navy .wp-block-button.g-btn-ghost .wp-block-button__link, .g-cta .wp-block-button.g-btn-ghost .wp-block-button__link { color: #fff; border-color: rgba(255, 255, 255, .8); }
.g-navy .wp-block-button.g-btn-ghost .wp-block-button__link:hover, .g-cta .wp-block-button.g-btn-ghost .wp-block-button__link:hover { background: #fff; color: var(--navy); }
.wp-block-button.g-btn-book .wp-block-button__link { display: inline-flex; align-items: center; justify-content: center; gap: 12px; padding: 17px 34px; border-radius: 999px; background: #fff; color: var(--navy); font: 500 13px/1 var(--caps); letter-spacing: .16em; text-transform: uppercase; text-decoration: none; transition: .3s var(--ease); }
.wp-block-button.g-btn-book .wp-block-button__link:hover { background: var(--gold-2); color: var(--navy); }

/* ---------- Móvil: barra de acciones fija ---------- */
.g-mbar { display: none; }
@media (max-width: 820px) {
	.g-mbar {
		position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; gap: 8px;
		padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(251, 249, 245, .96);
		backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 -1px 0 rgba(19, 35, 58, .08), 0 -10px 30px -12px rgba(19, 35, 58, .25);
		transition: transform .3s var(--ease);
	}
	.g-mbar.is-hidden { transform: translateY(110%); }
	.g-mbar a { flex: 1; display: flex; align-items: center; justify-content: center; gap: 9px; min-height: 50px; text-decoration: none; font: 500 12.5px/1 var(--caps); letter-spacing: .16em; text-transform: uppercase; }
	.g-mbar svg { width: 20px; height: 20px; flex: none; }
	.g-mbar__book { background: var(--navy); color: #fff; }
	.g-mbar__wa { background: linear-gradient(180deg, #c9a46b, #a9824a); color: #fff; }
	body { padding-bottom: calc(70px + env(safe-area-inset-bottom)); }
	.g-row { grid-template-columns: 1fr; }
	.g-row.g-row--small { grid-template-columns: 1fr 1fr; }
	.g-seg span { font-size: 15px; padding: 6px; }
	.wp-block-columns.g-getting { grid-template-columns: 1fr; }
	.g-section { padding-top: 64px; padding-bottom: 64px; }
	.g-pagehero { min-height: 380px; }
	.g-routes h3 { font-size: 27px; }
	.g-cta .wp-block-buttons, .g-package .wp-block-buttons { flex-direction: column; align-items: stretch; }
	.g-cta .wp-block-button .wp-block-button__link, .g-package .wp-block-button .wp-block-button__link { width: 100%; justify-content: center; }
	.g-tour .wp-block-buttons .wp-block-button, .g-tour .wp-block-buttons .wp-block-button__link { width: 100%; justify-content: center; }
}
/* Idioma visible en la cabecera del móvil, sin abrir el menú */
@media (max-width: 1080px) {
	.g-lang { display: block; margin-left: auto; padding-left: 0; border-left: 0; }
	.g-lang__btn { padding: 12px 6px; }
	.g-burger { margin-left: 4px; padding: 10px; }
	.g-lang__list { right: -8px; }
}
.g-seg span { -webkit-hyphens: auto; hyphens: auto; overflow-wrap: anywhere; }
@media (max-width: 420px) { .g-seg span { font-size: 14px; } }
/* Tarjetas de contacto sin dato configurado: no se muestran */
.g-contact-cards > .wp-block-column:has(.g-empty) { display: none; }
.g-package .g-plus { font-size: clamp(150px, 18vw, 260px) !important; line-height: .8 !important; }
.g-maplink { margin: 14px 0 0 !important; font: 500 12.5px/1.4 var(--caps); letter-spacing: .16em; text-transform: uppercase; } .g-maplink a { color: var(--gold); text-decoration: none; } .g-ig { white-space: nowrap; }

/* =========================================================
   Páginas interiores: portada 30 % más baja, encuadre al hacer scroll
   ========================================================= */
.g-inner .g-pagehero { min-height: clamp(310px, 45vh, 450px); }
.g-inner .g-pagehero .wp-block-cover__inner-container { padding: 120px var(--gut) clamp(36px, 5vw, 60px); }
.g-inner .g-pagehero h1 { font-size: clamp(44px, 6vw, 80px); margin-bottom: 12px; }
.g-inner .g-pagehero .wp-block-cover__image-background { animation: g-zoom 14s var(--ease) both; }
.g-inner .g-pagehero .wp-block-cover__inner-container > * { animation: g-rise 1s var(--ease) both; }
.g-inner .g-pagehero .wp-block-cover__inner-container > *:nth-child(2) { animation-delay: .12s; }
.g-inner .g-pagehero .wp-block-cover__inner-container > *:nth-child(3) { animation-delay: .24s; }
@keyframes g-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* Encuadre: cada bloque se acomoda bajo la cabecera fija */
html:has(body.g-inner) { scroll-snap-type: y proximity; scroll-padding-top: 76px; }
.g-inner .g-content > .wp-block-cover, .g-inner .g-content > .wp-block-group, .g-inner .g-tour, .g-inner .g-footer { scroll-snap-align: start; }
.g-inner .g-content > .wp-block-cover.g-pagehero { scroll-snap-align: start; scroll-margin-top: 0; }

/* Secciones compactas: que quepan en una pantalla */
.g-inner .g-section { padding-top: clamp(52px, 6.5vw, 92px); padding-bottom: clamp(52px, 6.5vw, 92px); }
.g-inner .g-section-head { margin-bottom: clamp(28px, 3.5vw, 44px) !important; }
.g-inner .g-tour + .g-tour { margin-top: clamp(56px, 7vw, 96px) !important; padding-top: 8px; }
.g-inner .g-frame img { max-height: calc(100vh - 230px); min-height: 280px; }
.g-inner .g-frame.g-wide img { max-height: calc(100vh - 260px); }
.g-inner .g-cta { min-height: clamp(340px, 44vh, 460px); }
@media (max-width: 820px) {
	.g-inner .g-pagehero { min-height: 300px; }
	.g-inner .g-pagehero .wp-block-cover__inner-container { padding-top: 104px; }
	html:has(body.g-inner) { scroll-padding-top: 72px; }
	.g-inner .g-frame img { max-height: 62vh; }
}
@media (prefers-reduced-motion: reduce) { html:has(body.g-inner) { scroll-snap-type: none; } }

/* ---------- Pie: contacto con íconos ---------- */
.g-footer__contact li { display: flex; gap: 12px; align-items: flex-start; }
.g-footer__contact svg { width: 18px; height: 18px; flex: none; margin-top: 4px; color: var(--gold-2); }
.g-footer__contact span { min-width: 0; overflow-wrap: anywhere; }
.g-check a { color: var(--navy); text-decoration: underline; }
/* ---------- Página legal ---------- */
.g-legal-hero { min-height: clamp(260px, 34vh, 340px) !important; }
.g-legal .g-legal-h { font: 500 clamp(24px, 2.2vw, 30px)/1.2 var(--serif); color: var(--navy); margin: 40px 0 12px; scroll-margin-top: 96px; }
.g-legal .g-legal-h:first-child { margin-top: 0; }
.g-legal p { font-size: 17px; color: var(--ink); }
.g-legal-upd { margin-top: 40px !important; font-size: 14px !important; color: var(--muted) !important; border-top: 1px solid var(--line); padding-top: 18px; }
.g-narrow, .g-faq { margin-left: auto !important; margin-right: auto !important; }

/* Galería: filas de altura fija para una cuadrícula pareja */
.wp-block-gallery.g-gallery { grid-auto-rows: clamp(170px, 17vw, 250px); grid-auto-flow: dense; }
.wp-block-gallery.g-gallery .wp-block-image { height: 100%; }
.wp-block-gallery.g-gallery .wp-block-image img, .wp-block-gallery.g-gallery .wp-block-image:nth-child(6n+1) img { width: 100%; height: 100% !important; aspect-ratio: auto !important; object-fit: cover; }
@media (max-width: 820px) { .wp-block-gallery.g-gallery { grid-auto-rows: clamp(140px, 34vw, 220px); } }
/* ---------- 404 ---------- */
.g-404 { min-height: 72vh; display: grid; place-content: center; text-align: center; padding: 150px var(--gut) 90px; background: radial-gradient(ellipse at 50% 0%, var(--cream), var(--paper) 70%); }
.g-404 h1 { font: italic 400 clamp(46px, 6vw, 76px)/1.05 var(--serif); color: var(--navy); margin: 0 0 16px; }
.g-404 .g-lead { margin: 0 auto 34px; }
.g-404-btns { display: flex; gap: 22px; align-items: center; justify-content: center; flex-wrap: wrap; }
.g-404-link { font: 500 12.5px/1 var(--caps); letter-spacing: .16em; text-transform: uppercase; color: var(--gold); text-decoration: none; }

/* ---------- Contraste: dorado de texto pequeño sobre fondo claro (AA) ---------- */
:root { --gold-ink: #896632; }
.g-eyebrow, .g-contact-cards h3, .g-maplink a, .g-tag, .g-routes .g-tag, .g-getting .g-tag, .g-404-link, .g-lang__list b, .g-step-n { color: var(--gold-ink) !important; }
.g-navy .g-eyebrow, .g-cta .g-eyebrow, .g-pagehero .g-eyebrow, .g-hero .g-eyebrow, .g-package .g-eyebrow, .g-quote .g-eyebrow { color: var(--gold-2) !important; }

/* ---------- Mapa con carga a demanda ---------- */
.g-map-lazy { display: grid; min-height: 320px; background: linear-gradient(160deg, #1c3250, #13233a); }
.g-map-btn { all: unset; cursor: pointer; display: grid; place-content: center; justify-items: center; gap: 10px; text-align: center; color: #fff; padding: 30px; }
.g-map-btn:focus-visible { outline: 2px solid var(--gold-2); outline-offset: -6px; }
.g-map-pin { width: 38px; height: 38px; background: var(--gold-2); -webkit-mask: var(--ico-pin) center / contain no-repeat; mask: var(--ico-pin) center / contain no-repeat; }
.g-map-place { font: italic 400 26px/1.2 var(--serif); }
.g-map-cta { font: 500 12px/1 var(--caps); letter-spacing: .2em; text-transform: uppercase; color: var(--gold-2); border-bottom: 1px solid currentColor; padding-bottom: 4px; }
.g-map-btn:hover .g-map-cta { color: #fff; }
.g-contact-side .g-map iframe { width: 100%; height: 320px; border: 0; display: block; }

/* ---------- Portada: título con palabras clave + lema ---------- */
.g-hero h1.g-kicker { font: 500 clamp(12px, 1.1vw, 14px)/1.5 var(--caps) !important; letter-spacing: .24em; text-transform: uppercase; color: var(--gold-2); margin: 0 0 18px !important; text-shadow: none; display: flex; align-items: center; gap: 14px; }
.g-hero h1.g-kicker::before { content: ""; width: 38px; height: 1px; background: currentColor; flex: none; }
.g-hero .g-hero-title { font: italic 400 clamp(52px, 8vw, 112px)/.98 var(--serif) !important; letter-spacing: -.012em; margin: 0 0 26px !important; text-shadow: 0 2px 30px rgba(0, 0, 0, .25); }
@media (max-width: 560px) { .g-hero h1.g-kicker { font-size: 11px !important; letter-spacing: .16em; } .g-hero h1.g-kicker::before { width: 22px; } }

/* ---------- Guía de viaje ---------- */
.g-guides .g-more-link { margin: auto 28px 26px !important; padding-top: 4px; font: 500 12px/1 var(--caps) !important; letter-spacing: .16em; text-transform: uppercase; }
.g-guides .g-more-link a { color: var(--gold-ink); text-decoration: none; }
.g-guides .g-more-link a::after { content: ""; position: absolute; inset: 0; }
.g-guides > .wp-block-column { position: relative; }
.g-guide-hero { min-height: clamp(300px, 42vh, 420px) !important; }
.g-guide-hero h1 { font-size: clamp(36px, 4.6vw, 62px) !important; max-width: 18em; margin-left: auto !important; margin-right: auto !important; }
.g-article .g-lead { font: italic 400 clamp(22px, 2.2vw, 27px)/1.4 var(--serif); color: var(--navy); margin-bottom: 10px; }
.g-article .wp-block-buttons { margin-top: 36px; }
.g-back { margin-top: 26px !important; font-size: 15px; }
.g-back a { color: var(--muted); }
.g-section-intro { padding-bottom: 0 !important; }
.g-guide-intro { text-align: center; margin: 0 auto !important; max-width: 46em; }

/* ---------- Mapa de la bahía (galería) ---------- */
.g-baymap { max-width: var(--wrap); margin: 0 auto; }
.g-baymap__stage { position: relative; border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(19, 35, 58, .05), 0 30px 60px -40px rgba(19, 35, 58, .45); background: #cfdde3; }
.g-baymap__img { display: block; width: 100%; height: auto; }
.g-pin { position: absolute; z-index: 2; transform: translate(-50%, -100%); width: 34px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer; filter: drop-shadow(0 3px 5px rgba(19, 35, 58, .35)); transition: transform .25s var(--ease); }
.g-pin::before { content: ""; position: absolute; inset: 0; background: var(--navy); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 34 44'%3E%3Cpath d='M17 43S2 26.6 2 16a15 15 0 0 1 30 0c0 10.6-15 27-15 27z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 34 44'%3E%3Cpath d='M17 43S2 26.6 2 16a15 15 0 0 1 30 0c0 10.6-15 27-15 27z'/%3E%3C/svg%3E") center / contain no-repeat; }
.g-pin span { position: relative; display: block; margin-top: 7px; font: 600 13px/18px var(--sans); color: var(--gold-2); text-align: center; }
.g-pin--home::before { background: linear-gradient(180deg, #c9a46b, #a9824a); }
.g-pin--home span { color: #fff; }
.g-pin:hover, .g-pin[aria-expanded="true"] { transform: translate(-50%, -100%) scale(1.15); z-index: 4; }
.g-pin:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.g-pop { position: absolute; z-index: 5; width: 260px; background: #fff; border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(19, 35, 58, .06), 0 24px 44px -18px rgba(19, 35, 58, .5); transform: translate(-50%, calc(-100% - 54px)); }
.g-pop--below { transform: translate(-50%, 14px); }
.g-pop--left { transform: translate(calc(-100% + 40px), calc(-100% - 54px)); }
.g-pop--left.g-pop--below { transform: translate(calc(-100% + 40px), 14px); }
.g-pop img { display: block; width: 100%; height: 130px; object-fit: cover; }
.g-pop__b { padding: 14px 16px 16px; }
.g-pop strong { display: block; font: 500 20px/1.2 var(--serif); color: var(--navy); margin-bottom: 4px; }
.g-pop p { font-size: 14.5px; line-height: 1.5; color: var(--muted); margin: 0 0 8px; }
.g-pop a { font: 500 11.5px/1 var(--caps); letter-spacing: .16em; text-transform: uppercase; color: var(--gold-ink); text-decoration: none; }
.g-baymap__list { list-style: none; margin: 22px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 6px 18px; }
.g-baymap__list button { all: unset; cursor: pointer; display: flex; gap: 10px; align-items: baseline; font: 400 17px/1.35 var(--serif); color: var(--navy); padding: 6px 0; }
.g-baymap__list b { font: 600 12px var(--sans); color: var(--gold-ink); min-width: 18px; }
.g-baymap__list button:hover, .g-baymap__list button[aria-current] { color: var(--gold-ink); }
.g-baymap__list button:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.g-baymap__credit { margin: 12px 0 0 !important; font-size: 12.5px; color: var(--muted); text-align: right; }
.g-baymap__credit a { color: var(--muted); }
@media (max-width: 700px) {
	.g-pin { width: 26px; height: 34px; }
	.g-pin span { margin-top: 4px; font-size: 11px; }
	.g-pop, .g-pop--below, .g-pop--left, .g-pop--left.g-pop--below { position: fixed; left: 12px !important; right: 12px; top: auto !important; bottom: calc(80px + env(safe-area-inset-bottom)); width: auto; transform: none; display: grid; grid-template-columns: 110px 1fr; z-index: 60; }
	.g-pop img { height: 100%; min-height: 110px; }
	.g-pop[hidden] { display: none; }
}



