/* =========================================================
   GRAZIE — detalles náuticos: travesía, olas, coordenadas, itinerario
   ========================================================= */
:root {
	--wave-front: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60' preserveAspectRatio='none'%3E%3Cpath fill='%23fbf9f5' d='M0 30C240 10 480 10 720 30S1200 50 1440 30V60H0Z'/%3E%3C/svg%3E");
	--wave-back: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60' preserveAspectRatio='none'%3E%3Cpath fill='%23fbf9f5' fill-opacity='.45' d='M0 22C180 40 540 40 720 22S1260 4 1440 22V60H0Z'/%3E%3C/svg%3E");
	--wave-front-navy: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60' preserveAspectRatio='none'%3E%3Cpath fill='%2313233a' d='M0 30C240 10 480 10 720 30S1200 50 1440 30V60H0Z'/%3E%3C/svg%3E");
	--wave-back-navy: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60' preserveAspectRatio='none'%3E%3Cpath fill='%2313233a' fill-opacity='.5' d='M0 22C180 40 540 40 720 22S1260 4 1440 22V60H0Z'/%3E%3C/svg%3E");
}

/* ---------- 2. Olas en movimiento al pie de las portadas ---------- */
.g-hero::after, .g-pagehero::after, .g-cta::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 46px; z-index: 2; pointer-events: none;
	background-image: var(--wave-front), var(--wave-back); background-repeat: repeat-x; background-size: 1440px 100%, 1440px 100%;
	animation: g-waves 34s linear infinite;
}
.g-cta::after { background-image: var(--wave-front-navy), var(--wave-back-navy); }
@keyframes g-waves { from { background-position: 0 100%, 0 100%; } to { background-position: 1440px 100%, -1440px 100%; } }
.g-hero .wp-block-cover__inner-container, .g-pagehero .wp-block-cover__inner-container, .g-cta .wp-block-cover__inner-container { z-index: 3; }
.g-cta .wp-block-cover__inner-container { padding-bottom: 96px !important; }

/* ---------- 3. Coordenadas náuticas ---------- */
.g-coords { font: 500 11.5px/1.4 var(--caps) !important; letter-spacing: .2em; color: var(--muted); margin: -8px 0 18px !important; display: flex; align-items: center; gap: 10px; }
.g-coords::before { content: ""; width: 14px; height: 14px; flex: none; background: currentColor; opacity: .8;
	-webkit-mask: 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.4'%3E%3Ccircle cx='12' cy='12' r='9.5'/%3E%3Cpath d='M12 4.5l2 7.5-2 7.5-2-7.5z' fill='%23000'/%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 24 24' fill='none' stroke='%23000' stroke-width='1.4'%3E%3Ccircle cx='12' cy='12' r='9.5'/%3E%3Cpath d='M12 4.5l2 7.5-2 7.5-2-7.5z' fill='%23000'/%3E%3C/svg%3E") center / contain no-repeat; }
.g-hero .g-coords { color: rgba(255, 255, 255, .82); margin: -22px 0 34px !important; }
.g-footer__coords { display: flex; align-items: center; gap: 10px; font: 500 11.5px/1 var(--caps); letter-spacing: .2em; color: var(--gold-2); margin: -10px 0 26px; }
.g-compass { width: 22px; height: 22px; background: currentColor;
	-webkit-mask: 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.2'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 2.5l1.8 8.2L22 12l-8.2 1.3L12 21.5l-1.8-8.2L2 12l8.2-1.3z' fill='%23000' fill-opacity='.35'/%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 24 24' fill='none' stroke='%23000' stroke-width='1.2'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 2.5l1.8 8.2L22 12l-8.2 1.3L12 21.5l-1.8-8.2L2 12l8.2-1.3z' fill='%23000' fill-opacity='.35'/%3E%3C/svg%3E") center / contain no-repeat;
	animation: g-compass 9s ease-in-out infinite; }
@keyframes g-compass { 0%, 100% { transform: rotate(-8deg); } 50% { transform: rotate(8deg); } }

/* ---------- 5. Sonar en el marcador de Grazie ---------- */
.g-pin--home::after { content: ""; position: absolute; left: 50%; bottom: -3px; width: 16px; height: 7px; margin-left: -8px; border-radius: 50%; border: 2px solid var(--gold); animation: g-sonar 2.4s ease-out infinite; }
@keyframes g-sonar { from { transform: scale(1); opacity: .9; } to { transform: scale(3.4); opacity: 0; } }

@media (max-width: 820px) {
	.g-hero::after, .g-pagehero::after, .g-cta::after { height: 26px; background-size: 900px 100%, 900px 100%; }
	@keyframes g-waves { from { background-position: 0 100%, 0 100%; } to { background-position: 900px 100%, -900px 100%; } }
	.g-cta .wp-block-cover__inner-container { padding-bottom: 76px !important; }
}
@media (prefers-reduced-motion: reduce) {
	.g-hero::after, .g-pagehero::after, .g-cta::after, .g-compass, .g-pin--home::after { animation: none !important; }
}

/* ---------- Historia de la bahía ---------- */
.g-bay-intro { text-align: center; font: italic 400 clamp(22px, 2.2vw, 28px)/1.45 var(--serif) !important; color: var(--navy); margin: 0 !important; }
.g-timeline { max-width: 940px !important; margin: 0 auto !important; }
.wp-block-columns.g-tl { display: grid !important; grid-template-columns: 190px 1fr; gap: 34px; align-items: baseline; padding: 26px 0; border-top: 1px solid var(--line); margin: 0 !important; }
.wp-block-columns.g-tl:last-child { border-bottom: 1px solid var(--line); }
.g-tl .wp-block-column { min-width: 0; }
.g-tl-year { font: italic 400 clamp(44px, 5vw, 64px)/.9 var(--serif) !important; color: var(--gold); margin: 0 !important; text-align: right; }
.g-tl .g-tag { margin: 0 0 6px !important; font: 500 11.5px/1.3 var(--caps); letter-spacing: .2em; text-transform: uppercase; }
.g-tl p:not(.g-tag):not(.g-tl-year) { margin: 0; font-size: 17px; color: var(--ink); }
.g-legends h3 { margin-top: 26px; }
.g-bay-close .g-lead { max-width: 40em; margin-left: auto; margin-right: auto; }
.g-bay-close .wp-block-buttons { justify-content: center; }
@media (max-width: 700px) {
	.wp-block-columns.g-tl { grid-template-columns: 1fr; gap: 6px; padding: 22px 0; }
	.g-tl-year { text-align: left; font-size: 42px !important; }
}

/* Menú con 7 entradas: un poco más compacto en pantallas medianas */
@media (max-width: 1440px) { .g-nav ul { gap: clamp(14px, 1.6vw, 30px); } }
@media (max-width: 1320px) { .g-nav a { font-size: 16.5px; } .g-header__in { gap: 20px; } .g-lang { padding-left: 18px; } }

/* =========================================================
   Descubrimiento (2026-11-21)
   ========================================================= */

/* 1. Fotos que se descubren como una marea (de abajo hacia arriba) */
.g-js .g-tide { clip-path: inset(100% 0 0 0); transition: clip-path 1.25s cubic-bezier(.65, 0, .25, 1); }
.g-js .g-tide.is-shown { clip-path: inset(0 0 0 0); }

/* 2. Profundidad de horizonte en las portadas */
.g-hero .wp-block-cover__image-background, .g-pagehero .wp-block-cover__image-background, .g-cta .wp-block-cover__image-background {
	scale: 1.12; translate: 0 var(--py, 0px); will-change: translate;
}

/* 3. Galería: lugar y coordenadas, como en un cuaderno de viaje */
.wp-block-gallery.g-gallery .wp-block-image { position: relative; }
.wp-block-gallery.g-gallery .wp-block-image figcaption.wp-element-caption {
	position: absolute; left: 0; right: 0; bottom: 0; margin: 0; padding: 40px 18px 14px; display: grid; gap: 4px; text-align: left;
	background: linear-gradient(to top, rgba(10, 22, 40, .78), rgba(10, 22, 40, 0)); color: #fff; pointer-events: none;
	opacity: 0; transform: translateY(8px); transition: opacity .45s var(--ease), transform .45s var(--ease);
}
.wp-block-gallery.g-gallery .wp-block-image:hover figcaption.wp-element-caption, .wp-block-gallery.g-gallery .wp-block-image:focus-within figcaption.wp-element-caption { opacity: 1; transform: none; }
.g-cap-place { font: italic 400 clamp(17px, 1.5vw, 21px)/1.2 var(--serif); }
.g-cap-coords { font: 500 10.5px/1.3 var(--caps); letter-spacing: .2em; color: var(--gold-2); }
@media (hover: none) {
	.wp-block-gallery.g-gallery .wp-block-image figcaption.wp-element-caption { opacity: 1; transform: none; padding: 28px 12px 10px; }
	.g-cap-place { font-size: 15px; }
}

/* 4. Letra capital de cuaderno de bitácora */
.g-dropcap::first-letter {
	float: left; font: italic 400 4.1em/.78 var(--serif); color: var(--gold); padding: .07em .1em 0 0; margin-top: .04em;
}
.g-bay-intro.g-dropcap { text-align: left !important; }

/* 5. Rosa de los vientos como separador sobre los títulos de sección */
.g-center.g-section-head::before {
	content: ""; display: block; width: 28px; height: 28px; margin: 0 auto 16px; background: var(--gold); opacity: .85;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' fill='none' stroke='%23000' stroke-width='1'%3E%3Ccircle cx='16' cy='16' r='9'/%3E%3Cpath d='M16 1l2.2 12.8L31 16l-12.8 2.2L16 31l-2.2-12.8L1 16l12.8-2.2z' fill='%23000' fill-opacity='.9' stroke='none'/%3E%3Cpath d='M16 7.5l1 7.5 7.5 1-7.5 1-1 7.5-1-7.5-7.5-1 7.5-1z' fill='%23fff' stroke='none'/%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 32 32' fill='none' stroke='%23000' stroke-width='1'%3E%3Ccircle cx='16' cy='16' r='9'/%3E%3Cpath d='M16 1l2.2 12.8L31 16l-12.8 2.2L16 31l-2.2-12.8L1 16l12.8-2.2z' fill='%23000' fill-opacity='.9' stroke='none'/%3E%3C/svg%3E") center / contain no-repeat;
}
.g-navy .g-center.g-section-head::before { background: var(--gold-2); }

@media (prefers-reduced-motion: reduce) {
	.g-js .g-tide { clip-path: none !important; transition: none !important; }
	.g-hero .wp-block-cover__image-background, .g-pagehero .wp-block-cover__image-background, .g-cta .wp-block-cover__image-background { translate: none !important; }
}

/* ---- Nuestra historia: confianza y compromiso ---- */
.wp-block-columns.g-trust { display: grid !important; grid-template-columns: repeat(4, 1fr); gap: 0; max-width: 1180px; margin: 0 auto; }
.g-trust > .wp-block-column { padding: 0 26px; position: relative; min-width: 0; }
.g-trust > .wp-block-column + .wp-block-column::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 1px; background: var(--line); }
.g-trust .g-step-n { font-size: 40px !important; margin-bottom: 16px !important; }
.g-trust h3 { font: 500 22px/1.22 var(--serif); color: var(--navy); margin: 0 0 12px; }
.g-trust p:not(.g-step-n) { font-size: 15.5px; line-height: 1.65; color: var(--muted); margin: 0; }
.g-story-close .g-narrow { text-align: center; }
.g-promise-box { text-align: center; }
ul.g-promise { list-style: none; padding: 0; margin: 34px auto 38px; max-width: 620px; text-align: left; }
ul.g-promise li { position: relative; padding: 15px 0 15px 40px; border-bottom: 1px solid var(--line); font-size: 17px; line-height: 1.55; color: var(--ink, var(--navy)); }
ul.g-promise li:first-child { border-top: 1px solid var(--line); }
ul.g-promise li::before { content: ""; position: absolute; left: 4px; top: 19px; width: 16px; height: 16px; border: 1px solid var(--gold); border-radius: 50%;
  background: radial-gradient(circle, var(--gold) 0 3px, transparent 3.5px); }
.g-founder { font: italic 400 34px/1.1 var(--serif) !important; color: var(--navy); margin: 0 0 6px !important; }
.g-founder-role { font: 500 11.5px/1.4 var(--caps) !important; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-ink); margin: 0 !important; }
@media (max-width: 1080px) { .wp-block-columns.g-trust { grid-template-columns: repeat(2, 1fr); row-gap: 44px; } .g-trust > .wp-block-column:nth-child(3)::before { display: none; } }
@media (max-width: 600px) { .wp-block-columns.g-trust { grid-template-columns: 1fr; row-gap: 34px; } .g-trust > .wp-block-column::before { display: none; } .g-trust > .wp-block-column { padding: 0; } ul.g-promise li { font-size: 16px; } }
.g-services p:not(.g-svc-link) { margin-bottom: 0; }
.g-services .g-svc-link { margin: auto 28px 28px !important; padding-top: 18px; }
.g-services .g-svc-link a { font: 500 12px/1.4 var(--caps); letter-spacing: .18em; text-transform: uppercase; text-decoration: none; }

/* ---- Nuestra historia: tenor empresarial ---- */
.g-about { text-align: left; }
.g-founder-name { margin-bottom: 10px !important; }
.g-story .g-founder-role { margin: 0 0 26px !important; }
.g-founder-quote { font: italic 400 clamp(22px, 2vw, 27px)/1.4 var(--serif) !important; color: var(--navy); border-left: 2px solid var(--gold); padding: 4px 0 4px 24px; margin: 30px 0 0 !important; }
.g-mv-sec .g-eyebrow { color: var(--gold-2) !important; }
.wp-block-columns.g-mv { display: grid !important; grid-template-columns: 1fr 1fr; gap: 0; max-width: 1080px; margin: 34px auto 0; }
.g-mv > .wp-block-column { padding: 6px clamp(24px, 4vw, 60px); text-align: center; min-width: 0; }
.g-mv > .wp-block-column + .wp-block-column { border-left: 1px solid rgba(210, 176, 122, .35); }
.g-mv h3 { font: italic 400 clamp(30px, 3vw, 40px)/1.1 var(--serif); color: var(--gold-2); margin: 0 0 18px; }
.g-mv p { font-size: 18px; line-height: 1.7; color: rgba(255, 255, 255, .86); margin: 0; }
.wp-block-columns.g-trust.g-values { grid-template-columns: repeat(5, 1fr); max-width: 1240px; }
.g-values > .wp-block-column { padding: 0 22px; }
.wp-block-columns.g-exp { grid-template-columns: repeat(4, 1fr); }
.g-exp h3 { font-size: 26px; }
@media (max-width: 1080px) {
  .wp-block-columns.g-trust.g-values { grid-template-columns: repeat(3, 1fr); }
  .g-values > .wp-block-column:nth-child(4)::before { display: none; }
  .wp-block-columns.g-exp { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .wp-block-columns.g-mv { grid-template-columns: 1fr; row-gap: 40px; }
  .g-mv > .wp-block-column + .wp-block-column { border-left: 0; border-top: 1px solid rgba(210, 176, 122, .35); padding-top: 40px; }
}
@media (max-width: 600px) {
  .wp-block-columns.g-trust.g-values, .wp-block-columns.g-exp { grid-template-columns: 1fr; }
  .g-values > .wp-block-column { padding: 0; }
}
