/* =============================================================
 * Campamento La Fuente: main stylesheet
 * Tokens from context/DESIGN.md (2026-11-04). Yellow only where there is
 * something to tap or a label; green bands order the page; one bold move:
 * the farm-sign H1 on the home page.
 * ============================================================= */

/* ---------- Fonts (self-hosted, subset latin; OFL in assets/fonts) ---------- */
@font-face {
	font-family: 'Archivo Expanded';
	src: url('../fonts/archivo-expanded-700.woff2') format('woff2');
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: 'Barlow';
	src: url('../fonts/barlow-500.woff2') format('woff2');
	font-weight: 500;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: 'Barlow';
	src: url('../fonts/barlow-600.woff2') format('woff2');
	font-weight: 600;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: 'Barlow Semi Condensed';
	src: url('../fonts/barlow-semicondensed-600.woff2') format('woff2');
	font-weight: 600;
	font-style: normal;
	font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
	--verde: #0B381D;
	--noche: #0E2216;
	--amarillo: #F9BF07;
	--crema: #F6F1E4;
	--musgo: #5B6B60;
	--blanco: #FFFFFF;
	--verde-50: #F0FAF4;
	--verde-100: #DDF3E6;
	--verde-200: #BBE8CD;
	--verde-700: #22633C;
	--verde-800: #174429;
	--amarillo-100: #FEF5D7;

	--f-head: 'Archivo Expanded', system-ui, sans-serif;
	--f-body: 'Barlow', system-ui, sans-serif;
	--f-cond: 'Barlow Semi Condensed', 'Barlow', system-ui, sans-serif;

	--gutter: clamp(20px, 4vw, 40px);
	--content: 1200px;
	--gap: 24px;
	--radius: 16px;
	--radius-btn: 10px;
	--header-h: 96px;
	--h2: clamp(1.75rem, 4.5vw, 3.75rem);
	--borde-h: clamp(44px, 6.5vw, 96px); /* height of the hero's torn-paper edge */
	--topo-tam: 720px; /* contour-line tile */
	/* borde:start (tools/make-vectors.py) */
	--borde-papel: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1600' height='100' viewBox='0 0 1600 100' preserveAspectRatio='none'%3E%3Cpath d='M0 100L0 28.2L5 25.2L10 23.5L15 21.1L20 18.0L25 16.5L30 15.6L35 14.4L40 14.6L45 14.0L50 11.3L55 13.0L60 13.9L65 13.1L70 15.1L75 14.8L80 16.0L85 16.8L90 16.2L95 18.4L100 18.0L105 18.5L110 21.3L115 22.0L120 21.8L125 21.0L130 21.5L135 23.1L140 23.0L145 23.0L150 23.5L155 23.6L160 25.3L165 26.9L170 27.2L175 27.1L180 27.9L185 28.5L190 28.5L195 30.2L200 31.5L205 32.5L210 32.6L215 32.8L220 34.3L225 32.3L230 32.9L235 33.7L240 31.0L245 31.3L250 31.1L255 28.9L260 27.1L265 26.1L270 24.6L275 22.8L280 22.3L285 20.4L290 17.9L295 16.7L300 15.8L305 14.7L310 15.6L315 14.6L320 12.1L325 14.1L330 13.9L335 14.0L340 15.7L345 15.3L350 17.2L355 17.2L360 17.3L365 19.2L370 17.9L375 18.5L380 20.7L385 21.4L390 21.1L395 19.6L400 19.4L405 19.9L410 18.7L415 17.9L420 16.7L425 15.3L430 15.6L435 16.0L440 15.4L445 14.5L450 14.6L455 14.0L460 13.4L465 14.6L470 15.7L475 17.5L480 17.9L485 20.0L490 22.6L495 22.3L500 25.8L505 28.1L510 28.4L515 31.8L520 34.3L525 35.5L530 36.9L535 39.1L540 40.3L545 41.6L550 44.1L555 44.8L560 44.9L565 45.7L570 46.0L575 46.4L580 49.1L585 48.3L590 47.1L595 49.3L600 48.5L605 49.3L610 50.1L615 49.7L620 51.5L625 50.5L630 50.8L635 51.6L640 49.3L645 49.3L650 50.1L655 50.5L660 49.7L665 47.4L670 46.5L675 45.8L680 43.8L685 42.1L690 39.3L695 36.4L700 35.0L705 33.9L710 31.7L715 29.4L720 28.1L725 25.4L730 23.1L735 21.9L740 21.2L745 21.1L750 19.6L755 20.9L760 21.3L765 20.0L770 22.8L775 23.3L780 23.3L785 25.9L790 27.8L795 28.8L800 29.8L805 31.7L810 32.2L815 33.5L820 35.6L825 36.0L830 35.8L835 36.0L840 34.9L845 34.5L850 36.3L855 33.7L860 32.0L865 32.0L870 29.2L875 28.8L880 26.9L885 25.4L890 25.4L895 22.6L900 22.5L905 21.6L910 18.3L915 17.3L920 17.1L925 17.6L930 16.9L935 15.1L940 15.1L945 15.0L950 14.4L955 14.3L960 12.7L965 11.2L970 11.0L975 11.3L980 10.7L985 10.4L990 10.8L995 9.4L1000 8.6L1005 8.1L1010 8.5L1015 8.8L1020 8.0L1025 10.6L1030 10.8L1035 10.7L1040 14.2L1045 14.7L1050 15.7L1055 18.8L1060 21.6L1065 23.5L1070 25.9L1075 28.8L1080 30.3L1085 33.2L1090 36.8L1095 39.1L1100 41.2L1105 43.5L1110 43.7L1115 45.9L1120 49.6L1125 48.8L1130 50.2L1135 51.4L1140 50.9L1145 52.6L1150 51.9L1155 53.1L1160 54.3L1165 53.7L1170 56.1L1175 56.8L1180 55.9L1185 56.4L1190 57.8L1195 60.6L1200 61.9L1205 62.6L1210 64.9L1215 66.8L1220 69.1L1225 71.6L1230 72.2L1235 72.8L1240 74.5L1245 76.3L1250 77.1L1255 78.6L1260 80.0L1265 79.6L1270 79.3L1275 78.2L1280 78.5L1285 77.0L1290 75.1L1295 75.9L1300 73.0L1305 71.1L1310 71.3L1315 68.3L1320 66.0L1325 65.1L1330 64.1L1335 62.1L1340 61.0L1345 59.7L1350 57.3L1355 56.6L1360 56.4L1365 55.5L1370 55.1L1375 54.5L1380 51.6L1385 52.0L1390 52.9L1395 50.3L1400 50.7L1405 49.4L1410 48.1L1415 47.9L1420 45.5L1425 45.9L1430 44.8L1435 43.3L1440 44.8L1445 44.1L1450 42.3L1455 41.1L1460 41.0L1465 42.4L1470 42.2L1475 41.9L1480 42.9L1485 43.5L1490 45.2L1495 47.1L1500 47.3L1505 47.3L1510 48.3L1515 49.3L1520 49.5L1525 51.0L1530 52.1L1535 52.0L1540 51.5L1545 50.3L1550 50.6L1555 48.1L1560 46.4L1565 46.5L1570 42.4L1575 40.6L1580 39.5L1585 35.6L1590 32.5L1595 30.4L1600 28.2L1600 100Z'/%3E%3C/svg%3E");
	/* borde:end */
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
	margin: 0;
	background: var(--crema);
	color: var(--noche);
	font-family: var(--f-body);
	font-weight: 500;
	font-size: 1.125rem;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--verde); }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
h1, h2, h3 {
	font-family: var(--f-head);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.01em;
	color: var(--verde);
	margin: 0;
	text-wrap: balance;
}
h2 { font-size: var(--h2); line-height: 1; }
h3 { font-size: clamp(1.2rem, 1.9vw, 1.5rem); line-height: 1.1; }
address { font-style: normal; }

:focus-visible { outline: 3px solid var(--noche); outline-offset: 3px; border-radius: 4px; }
.site-header :focus-visible,
.franja :focus-visible,
.cierre-y-pie :focus-visible,
.drawer :focus-visible { outline-color: var(--amarillo); }

.wrap {
	width: 100%;
	max-width: calc(var(--content) + 2 * var(--gutter));
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.skip-link {
	position: absolute;
	left: 16px;
	top: -100px;
	z-index: 200;
	background: var(--amarillo);
	color: var(--noche);
	padding: 12px 18px;
	border-radius: var(--radius-btn);
	font-weight: 600;
	text-decoration: none;
}
.skip-link:focus { top: 12px; }

.visually-hidden {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

/* WP block wrappers: no stray gaps */
.wp-site-blocks > * + *,
.is-layout-flow > * + * { margin-block-start: 0; }
.wp-site-blocks { padding: 0; }

/* ---------- Buttons and links ---------- */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 52px;
	padding: 14px 28px;
	border-radius: var(--radius-btn);
	font-family: var(--f-body);
	font-weight: 600;
	font-size: 1.0625rem;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	border: 2px solid transparent;
	cursor: pointer;
	transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .15s ease;
}
.btn:active { transform: scale(.98); }
.btn--primary { background: var(--amarillo); color: var(--noche); }
.btn--primary:hover { background: var(--verde); color: var(--blanco); }
.franja .btn--primary:hover,
.cierre .btn--primary:hover,
.drawer .btn--primary:hover,
.site-header .btn--primary:hover { background: var(--blanco); color: var(--verde); }
.btn--secondary { background: transparent; color: var(--verde); border-color: var(--verde); }
.btn--secondary:hover { background: var(--verde); color: var(--blanco); }
.btn--grande { min-height: 60px; font-size: 1.1875rem; padding-inline: 32px; }

.text-link {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	color: var(--verde);
	font-weight: 600;
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 6px;
	text-decoration-color: var(--amarillo);
	transition: text-decoration-color .2s ease;
}
.text-link:hover { text-decoration-color: var(--verde); }
p .text-link { display: inline; min-height: 0; }

/* ---------- Labels ---------- */
.tag {
	display: inline-block;
	background: var(--amarillo);
	color: var(--noche);
	font-family: var(--f-body);
	font-weight: 600;
	font-size: .875rem;
	line-height: 1.2;
	letter-spacing: .08em;
	text-transform: uppercase;
	padding: 7px 12px;
	border-radius: 16px; /* a capsule on one line, still clean on two */
}
.place-tag {
	position: absolute;
	left: 16px;
	bottom: 16px;
	background: rgba(14, 34, 22, .86);
	color: var(--blanco);
	font-family: var(--f-cond);
	font-weight: 600;
	font-size: .875rem;
	line-height: 1.2;
	letter-spacing: .06em;
	text-transform: uppercase;
	padding: 7px 12px;
	border-radius: 999px;
	pointer-events: none;
}

/* ---------- Photos ---------- */
.photo-frame { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--verde-100); }
.photo-frame img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Header ---------- */
.site-header-wrap { position: sticky; top: 0; z-index: 50; }
.site-header { background: var(--verde); color: var(--blanco); }
.site-header__inner {
	display: flex;
	align-items: center;
	gap: 32px;
	max-width: calc(var(--content) + 2 * var(--gutter));
	margin-inline: auto;
	padding: 8px var(--gutter);
	min-height: var(--header-h);
}
.site-header__logo { flex: none; margin: 0; }
.site-header__logo a,
.site-footer__logo a { display: block; }
.site-header__logo img,
.site-footer__logo img { height: 80px; width: auto; }
.primary-nav { margin-left: auto; }
.primary-nav__list { display: flex; gap: 4px; }
.primary-nav a {
	display: inline-flex;
	align-items: center;
	min-height: 48px;
	padding: 0 12px;
	color: var(--blanco);
	font-weight: 600;
	font-size: 1rem;
	text-decoration: none;
	text-decoration-color: var(--amarillo);
	text-decoration-thickness: 2px;
	text-underline-offset: 8px;
}
.primary-nav a:hover { text-decoration-line: underline; }
.site-header__actions { display: flex; align-items: center; gap: 12px; flex: none; }
.site-header__wa { min-height: 48px; padding: 12px 20px; font-size: 1rem; }
.menu-toggle {
	display: none;
	align-items: center;
	gap: 8px;
	min-height: 48px;
	padding: 0 16px;
	border: 2px solid rgba(255, 255, 255, .45);
	border-radius: var(--radius-btn);
	background: transparent;
	color: var(--blanco);
	font: 600 1rem/1 var(--f-body);
	text-decoration: none;
	cursor: pointer;
}

@media (max-width: 1080px) {
	.primary-nav, .site-header__wa { display: none; }
	.site-header__actions { margin-left: auto; }
	.menu-toggle { display: inline-flex; }
}

/* ---------- Mobile drawer (built by theme.js, appended to <body>) ---------- */
.drawer {
	position: fixed;
	inset: 0;
	z-index: 100;
	background: var(--verde);
	color: var(--crema);
	display: flex;
	flex-direction: column;
	padding: 16px var(--gutter) 32px;
	overflow-y: auto;
	visibility: hidden;
	transform: translateX(100%);
	transition: transform .3s ease, visibility 0s linear .3s;
}
.drawer.is-open { visibility: visible; transform: none; transition: transform .3s ease; }
.drawer__top { display: flex; justify-content: flex-end; margin-bottom: 16px; }
.drawer__close {
	width: 48px; height: 48px;
	display: inline-flex; align-items: center; justify-content: center;
	background: transparent;
	color: var(--blanco);
	border: 2px solid rgba(255, 255, 255, .45);
	border-radius: var(--radius-btn);
	cursor: pointer;
}
.drawer__nav a {
	display: flex;
	align-items: center;
	min-height: 60px;
	border-bottom: 1px solid var(--verde-700);
	color: var(--blanco);
	font-family: var(--f-head);
	font-size: clamp(1.25rem, 5.6vw, 1.75rem);
	text-transform: uppercase;
	text-decoration: none;
}
.drawer__cta { margin-top: 28px; display: grid; gap: 14px; }
.drawer__cta .btn { width: 100%; }
.drawer__cta p { color: var(--crema); font-size: 1rem; }
.drawer__cta a:not(.btn) { color: var(--blanco); }
body.has-drawer { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .drawer, .drawer.is-open { transition: none; } }

/* ---------- Sections ---------- */
.section { padding-block: clamp(64px, 9vw, 120px); }
.section--blanco { background: var(--blanco); }
.franja { background: var(--verde); color: var(--crema); padding-block: clamp(64px, 8vw, 104px); }
.franja h2, .franja h3 { color: var(--blanco); }
.section-head { max-width: 760px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head h2 { margin-bottom: 16px; }
.section-head p { color: var(--musgo); font-size: 1.1875rem; max-width: 38em; }
.section-head--split {
	max-width: none;
	display: grid;
	grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
	gap: var(--gap) 48px;
	align-items: end;
}
.section-head--split p { color: var(--noche); margin-bottom: 8px; }

/* ---------- Eyebrow, light button, pill ---------- */
.eyebrow {
	font-family: var(--f-cond);
	font-weight: 600;
	font-size: .9375rem;
	line-height: 1.2;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--verde-700);
	margin-bottom: 14px;
}
.eyebrow--claro { color: var(--verde-200); }
.btn--claro { background: transparent; color: var(--blanco); border-color: rgba(255, 255, 255, .7); }
.btn--claro:hover { background: var(--blanco); color: var(--verde); border-color: var(--blanco); }
.btn--pill { border-radius: 999px; padding-inline: 30px; }
.panel--verde .btn--primary:hover { background: var(--blanco); color: var(--verde); }

/* ---------- Photo-top pages: the header floats over the photo ----------
 * Without JS it scrolls away with the photo (absolute); with JS it stays fixed
 * and turns solid green after the first 40 px of scroll (theme.js). */
.wp-site-blocks:has(.photo-top) .site-header-wrap { position: absolute; top: 0; left: 0; right: 0; }
.js-loaded .wp-site-blocks:has(.photo-top) .site-header-wrap { position: fixed; }
.wp-site-blocks:has(.photo-top) .site-header {
	background: linear-gradient(to bottom, rgba(14, 34, 22, .78), rgba(14, 34, 22, 0));
	transition: background-color .35s ease, box-shadow .35s ease;
}
.wp-site-blocks:has(.photo-top) .site-header-wrap.is-solid .site-header {
	background-color: var(--verde);
	background-image: none;
	box-shadow: 0 6px 20px rgba(14, 34, 22, .28);
}

/* ---------- Hero component (v0.3, Max 2026-11-16, after Camp Fire Minnesota) ----------
 * One generated photo, full-bleed under the transparent header; a giant H1 that
 * may cross the subject but never the face; a torn-paper bottom edge in the
 * colour of the next section (cream + contour lines, see .topo). Built for the
 * inner pages too: each page sets its own variables on the <section>:
 *   --foco-x / --hero-pos-alto    focal x on landscape screens (fraction) /
 *                                 object-position on portrait screens
 *   --hero-lineas                 width of the widest H1 line, in em
 *   --hero-n                      number of H1 lines
 *   --hero-libre                  share of the photo's height under the face
 *   --hero-libre-ancho            the same when the photo is cropped top and
 *                                 bottom: (libre - .5) / photo aspect * 100vw
 *   --foto-ar, --cara-x, --foco-x  photo aspect, the face's left edge (fraction
 *                                 of the photo) and the landscape focal x
 *   --hero-l1                     width of the first H1 line, in em
 * The font size is the smallest of: the widest line fitting the wrap (with the
 * stagger), the H1 + foot fitting under the face, and 8.25rem. On wide
 * landscape screens the first line may sit beside the face instead (below).
 * The face box of each photo is in data-cara (fractions of the photo); qa.js
 * checks that no H1 line, lema or button touches it. */
.hero {
	--hero-h: clamp(600px, 100svh, 980px);
	--hero-pos: calc(var(--foco-x) * 100%) 50%;
	--hero-pos-alto: 50% 50%;
	--hero-lineas: 9.7;
	--hero-n: 3;
	--hero-escalon: 0;
	--hero-libre: .5;
	--hero-libre-ancho: 0vw;
	--foto-ar: 1.5;
	--cara-x: 1;
	--foco-x: .5;
	--hero-l1: 9.7;
	--hero-pie: calc(var(--borde-h) + 132px);
	--hero-fs: min(
		calc((min(100vw, var(--content) + 2 * var(--gutter)) - 2 * var(--gutter) - 8px) / (var(--hero-lineas) + var(--hero-escalon))),
		calc((min(var(--hero-libre) * var(--hero-h), .5 * var(--hero-h) + var(--hero-libre-ancho)) - var(--hero-pie)) / (var(--hero-n) * .97)),
		8.25rem
	);
	position: relative;
	isolation: isolate;
	display: flex;
	align-items: flex-end;
	min-height: var(--hero-h);
	padding: calc(var(--header-h) + 32px) 0 calc(var(--borde-h) + 20px);
	background: var(--noche);
	color: var(--blanco);
	overflow: hidden;
}
.hero__media { position: absolute; inset: 0; z-index: -1; margin: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: var(--hero-pos); }
@media (orientation: portrait) { .hero__media img { object-position: var(--hero-pos-alto); } }
/* Dark green scrim, only where the type sits (bottom and left); the photo stays bright. */
.hero__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background:
		linear-gradient(to top, rgba(14, 34, 22, .66) 0%, rgba(14, 34, 22, .5) 26%, rgba(14, 34, 22, .32) 48%, rgba(14, 34, 22, .1) 62%, rgba(14, 34, 22, 0) 72%),
		linear-gradient(to right, rgba(14, 34, 22, .4) 0%, rgba(14, 34, 22, .14) 46%, rgba(14, 34, 22, 0) 66%);
}
.hero__content { position: relative; z-index: 2; }
.hero__title {
	color: var(--blanco);
	font-size: var(--hero-fs);
	line-height: .92;
	letter-spacing: .01em;
	text-wrap: initial;
	text-shadow: 0 2px 28px rgba(14, 34, 22, .35);
}
.hero__line { display: block; overflow: clip; padding-top: .14em; margin-top: -.14em; }
.hero__line > span { display: inline-block; }
.hero__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: clamp(20px, 2.4vw, 28px); }
.hero__lema {
	margin: 0;
	font-weight: 600;
	font-size: clamp(1.375rem, 2.2vw, 1.875rem);
	line-height: 1.15;
	color: var(--blanco);
	text-shadow: 0 1px 16px rgba(14, 34, 22, .45);
}
.place-tag--inline { position: static; display: inline-block; margin-bottom: 18px; border: 1px solid rgba(255, 255, 255, .35); }
/* Torn-paper edge: cream with the contour lines, cut by an irregular mask that
 * repeats along x without stretching (tools/make-vectors.py). */
.hero__borde {
	position: absolute;
	left: 0;
	right: 0;
	bottom: -1px;
	height: calc(var(--borde-h) + 1px);
	z-index: 1;
	background: var(--crema) url("../images/curvas-de-nivel.svg") 0 0 / var(--topo-tam) repeat;
	-webkit-mask: var(--borde-papel) center top / auto var(--borde-h) repeat-x;
	mask: var(--borde-papel) center top / auto var(--borde-h) repeat-x;
	pointer-events: none;
}

@media (min-width: 900px) {
	/* farm-sign stagger: each line steps in, like boards on a post */
	.hero { --hero-escalon: 1.8; }
}
/* Wide screens: the first line may sit beside the face as long as it ends
 * before it; only the lines under it must clear the chin. Face's left edge on
 * screen: max((cara-x - foco-x) * photo aspect * hero height + foco-x * 100vw,
 * cara-x * 100vw) for a cover image at object-position foco-x. */
@media (min-width: 900px) and (orientation: landscape) {
	.hero {
		--hero-fs: min(
			calc((min(100vw, var(--content) + 2 * var(--gutter)) - 2 * var(--gutter) - 8px) / (var(--hero-lineas) + var(--hero-escalon))),
			calc((max((var(--cara-x) - var(--foco-x)) * var(--foto-ar) * var(--hero-h) + var(--foco-x) * 100vw, var(--cara-x) * 100vw) - 16px - max(var(--gutter), (100vw - var(--content)) / 2)) / var(--hero-l1)),
			calc((min(var(--hero-libre) * var(--hero-h), .5 * var(--hero-h) + var(--hero-libre-ancho)) - var(--hero-pie)) / ((var(--hero-n) - 1) * .97)),
			8.25rem
		);
	}
}
@media (min-width: 900px) {
	.hero__line:nth-child(2) { padding-left: calc(var(--hero-escalon) * .5em); }
	.hero__line:nth-child(3) { padding-left: calc(var(--hero-escalon) * 1em); }
	.hero__foot { padding-left: calc(var(--hero-escalon) * var(--hero-fs)); }
}

/* H1 lines rise once on load. .js-loaded is set before paint; without JS nothing hides. */
@keyframes clf-rise { from { transform: translateY(105%); } to { transform: none; } }
@media (prefers-reduced-motion: no-preference) {
	.js-loaded .hero__line > span { animation: clf-rise .5s cubic-bezier(.2, .7, .2, 1) both; }
	.js-loaded .hero__line:nth-child(2) > span { animation-delay: .09s; }
	.js-loaded .hero__line:nth-child(3) > span { animation-delay: .18s; }
}

/* ---------- Contour lines: the section after a hero ----------
 * Same tile as the hero edge, offset by the edge height so the lines run on
 * from the torn paper without a seam. flow-root keeps the booking bar's
 * negative margin inside this box. */
.topo {
	position: relative;
	display: flow-root;
	background: var(--crema) url("../images/curvas-de-nivel.svg") 0 calc(-1 * var(--borde-h)) / var(--topo-tam) repeat;
}
.topo > .intro { background: transparent; }
/* Cream strip with the contour lines between an inner hero and a green band:
 * two dark bands never touch (design-direction.md, section 4). */
.topo--tira { height: clamp(36px, 4.5vw, 64px); }
.topo--blanco { background-color: var(--blanco); }
.hero--borde-blanco .hero__borde { background-color: var(--blanco); }

/* ---------- Hero on the inner pages (v0.3.1, Max 2026-11-16) ----------
 * The home's component with a group photo, where faces sit in a band across
 * the frame. Landscape (900 px and up): the photo full-bleed; the font size is
 * the smallest of these, each set per page on the <section>:
 *   wrap   the widest line plus the stagger fits the wrap
 *   X      lines of width --hero-l1 (em) end 16 px before the face column
 *          --cara-x (fraction of the photo), mapped through object-fit: cover
 *   VA/VB  --na lines (plus the foot) fit under the chin --ca; --nb under --cb
 *   T      (.hero--cielo) the H1 at the top ends 12 px above the faces' top --cara-t
 *   8.25rem
 * Phones, portrait tablets and anything under 900 px: the photo is a band under
 * the header (--banda-k: zoom over the full width; --hero-pos-alto: the crop),
 * so the whole group survives, and the text starts under the lowest chin
 * (--banda-texto, fraction of the band) on the photo's calm bottom, which fades
 * into the dark green. data-cara lists every face box (x1 y1 x2 y2; ...);
 * qa.js checks that no line, breadcrumb, lead or button touches one. */
.hero--interior {
	--foco-y: .5;
	--ca: 0; --na: 1; --cb: 0; --nb: 1;
	--cara-t: 1;
	--hero-pos: calc(var(--foco-x) * 100%) calc(var(--foco-y) * 100%);
	--pie-foot: 158px;
	--hero-pie: calc(var(--borde-h) + 44px + var(--pie-foot));
	--foto-h: max(var(--hero-h), 100vw / var(--foto-ar));
}
/* H1 in the sky: the photo anchored at the top, so the faces sit as low as they
 * can; very wide screens show a little more of the bottom, so the foot clears them */
.hero--cielo { --foco-y: 0; }
@media (min-width: 2000px) { .hero--cielo { --foco-y: .35; } }
.hero--interior .breadcrumbs { margin-bottom: clamp(4px, 1vw, 12px); }
.hero--interior .breadcrumbs--claro { color: var(--verde-200); text-shadow: 0 1px 12px rgba(14, 34, 22, .5); }
.hero__lema--texto {
	max-width: 30em;
	font-weight: 500;
	font-size: clamp(1.125rem, 1.45vw, 1.3125rem);
	line-height: 1.35;
}
.hero :focus-visible { outline-color: var(--amarillo); }
@media (min-width: 1200px) { .hero--interior { --pie-foot: 84px; } }

@media (min-width: 900px) and (orientation: landscape) {
	.hero--interior {
		--hero-fs: min(
			calc((min(100vw, var(--content) + 2 * var(--gutter)) - 2 * var(--gutter) - 8px) / (var(--hero-lineas) + var(--hero-escalon))),
			calc((var(--foco-x) * 100vw + (var(--cara-x) - var(--foco-x)) * max(var(--foto-ar) * var(--hero-h), 100vw) - 16px - max(var(--gutter), (100vw - var(--content)) / 2)) / var(--hero-l1)),
			calc(((1 - var(--foco-y)) * var(--hero-h) - (var(--ca) - var(--foco-y)) * var(--foto-h) - var(--hero-pie)) / (var(--na) * .97)),
			calc(((1 - var(--foco-y)) * var(--hero-h) - (var(--cb) - var(--foco-y)) * var(--foto-h) - var(--hero-pie)) / (var(--nb) * .97)),
			calc((var(--foco-y) * var(--hero-h) + (var(--cara-t) - var(--foco-y)) * var(--foto-h) - 12px - var(--header-h) - 32px) / 2.91),
			8.25rem
		);
	}
	/* H1 up in the sky, breadcrumbs, lead and button at the bottom */
	.hero--cielo { align-items: stretch; }
	.hero--cielo .hero__content { display: flex; flex-direction: column; }
	.hero--cielo .hero__title { order: 1; }
	.hero--cielo .breadcrumbs { order: 2; margin-top: auto; padding-top: 24px; }
	.hero--cielo .hero__foot { order: 3; margin-top: 4px; padding-left: 0; }
	.hero--cielo .hero__lema--texto { max-width: 24em; }
	.hero--cielo .hero__media::after {
		background:
			linear-gradient(to bottom, rgba(14, 34, 22, .5) 0%, rgba(14, 34, 22, .3) 26%, rgba(14, 34, 22, 0) 48%),
			linear-gradient(to top, rgba(14, 34, 22, .66) 0%, rgba(14, 34, 22, .38) 24%, rgba(14, 34, 22, 0) 42%),
			linear-gradient(to right, rgba(14, 34, 22, .35) 0%, rgba(14, 34, 22, .1) 40%, rgba(14, 34, 22, 0) 60%);
	}
}

@media (max-width: 899px), (orientation: portrait) {
	.hero--interior {
		--banda-h: calc(100vw * var(--banda-k) / var(--foto-ar));
		--hero-fs: min(calc((min(100vw, var(--content) + 2 * var(--gutter)) - 2 * var(--gutter) - 8px) / (var(--hero-lineas) + var(--hero-escalon))), 8.25rem);
		min-height: 0;
		padding-top: calc(var(--header-h) + var(--banda-h) * var(--banda-texto));
	}
	.hero--interior .hero__media { inset: var(--header-h) 0 auto; height: var(--banda-h); }
	.hero--interior .hero__media img { object-position: var(--hero-pos-alto); }
	.hero--interior .hero__media::after {
		background: linear-gradient(to bottom, rgba(14, 34, 22, 0) 0%, rgba(14, 34, 22, 0) calc(var(--banda-texto) * 100% - 26%), rgba(14, 34, 22, .62) calc(var(--banda-texto) * 100%), var(--noche) 100%);
	}
}

/* ---------- Booking bar (overlaps the hero's bottom edge) ---------- */
/* the bar's top edge sits halfway into the torn paper (desktop, tablet) */
/* three classes: WordPress' flow layout zeroes the first child's margin with two */
.reserva { position: relative; z-index: 2; }
.site-main > .topo > .reserva { margin-top: calc(-.5 * var(--borde-h)); }
.reserva__bar {
	display: grid;
	grid-template-columns: minmax(0, 2fr) minmax(0, 1.25fr) minmax(0, 1fr) auto;
	gap: 18px 16px;
	align-items: end;
	background: var(--verde);
	color: var(--crema);
	border-radius: var(--radius);
	padding: 24px 28px 28px;
	box-shadow: 0 22px 48px rgba(14, 34, 22, .3);
}
.reserva__head { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 20px; }
.reserva__title { color: var(--blanco); font-size: clamp(1.2rem, 1.9vw, 1.5rem); }
.reserva__sub { margin: 0; color: var(--verde-200); font-size: 1rem; }
.reserva__campos { display: contents; }
.campo { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.campo__label {
	font-family: var(--f-cond);
	font-weight: 600;
	font-size: .875rem;
	line-height: 1.2;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--verde-200);
}
.campo__input {
	width: 100%;
	min-height: 56px;
	padding: 0 14px;
	border: 2px solid transparent;
	border-radius: var(--radius-btn);
	background: var(--blanco);
	color: var(--noche);
	font: 500 1.0625rem/1.2 var(--f-body);
}
select.campo__input {
	appearance: none;
	-webkit-appearance: none;
	padding-right: 40px;
	text-overflow: ellipsis;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='20' height='20' fill='none' stroke='%230B381D' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
}
.campo__input:focus-visible { outline: 3px solid var(--amarillo); outline-offset: 2px; }
.reserva__btn { min-height: 56px; }
.reserva .btn--primary:hover { background: var(--blanco); color: var(--verde); }
/* Without JS the fields would do nothing: only the WhatsApp link shows */
html:not(.js-loaded) .reserva__campos { display: none; }
html:not(.js-loaded) .reserva__bar { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
html:not(.js-loaded) .reserva__head { grid-column: 1; }

/* ---------- Notice strip (pattern aviso.php, off by default) ---------- */
.aviso { background: var(--amarillo-100); color: var(--noche); border-block: 1px solid var(--amarillo); }
.aviso__text {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	margin: 0;
	padding-block: 12px;
	font-family: var(--f-cond);
	font-weight: 600;
	font-size: 1rem;
	letter-spacing: .04em;
	text-transform: uppercase;
	text-align: center;
}
.aviso__icon { flex: none; }
.reserva + .aviso { margin-top: clamp(32px, 4vw, 48px); }

/* ---------- Intro: copy + overlapped photos + icons ---------- */
.intro { background: var(--crema); padding-top: clamp(64px, 8vw, 112px); }
.intro__grid {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
	gap: 48px 72px;
	align-items: center;
}
.intro__copy h2 { margin-bottom: 24px; }
.intro__copy p { max-width: 34em; }
.intro__copy .text-link { margin-top: 8px; }
.intro__photos { position: relative; aspect-ratio: 1 / .93; }
.intro__photo { position: absolute; box-shadow: 0 22px 44px rgba(14, 34, 22, .2); border: 6px solid var(--crema); border-radius: 20px; }
.intro__photo--a { left: 0; top: 0; width: 56%; aspect-ratio: 3 / 4; z-index: 1; }
.intro__photo--b { right: 0; top: 8%; width: 46%; aspect-ratio: 508 / 900; z-index: 2; }

.finca-iconos { margin-top: clamp(56px, 8vw, 104px); }
.finca-iconos__head {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: flex-end;
	gap: 8px 32px;
	margin-bottom: 20px;
}
.finca-iconos__head h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
.finca-iconos__list { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.finca-iconos__list li,
.incluye-iconos li {
	display: flex;
	flex-direction: column;
	gap: 14px;
	min-height: 132px;
	padding: 22px 18px 20px;
	background: var(--blanco);
	border-radius: 14px;
	color: var(--verde);
	font-weight: 600;
	font-size: 1rem;
	line-height: 1.25;
}
.icono { flex: none; width: 40px; height: 40px; color: var(--verde-700); }
.finca-iconos__list--compacta { grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 24px 0 8px; }
.finca-iconos__list--compacta li { min-height: 0; padding: 16px; flex-direction: row; align-items: center; gap: 12px; }
.finca-iconos__list--compacta .icono { width: 32px; height: 32px; }

/* ---------- Paquetes: photo cards on the deep green ---------- */
.paquetes { background: var(--verde); color: var(--crema); }
.paquetes h2 { color: var(--blanco); }
.paquetes .section-head--split p { color: var(--verde-200); }
.paquetes__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--gap);
	align-items: start;
}
.paquetes__grid .pcard:nth-child(2) { margin-top: 56px; }
.pcard {
	display: flex;
	flex-direction: column;
	background: var(--verde-800);
	border: 1px solid var(--verde-700);
	border-radius: var(--radius);
	overflow: hidden;
}
.pcard__media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--noche); }
.pcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2, .7, .2, 1); }
.pcard__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(14, 34, 22, .95) 0%, rgba(14, 34, 22, .55) 32%, rgba(14, 34, 22, 0) 58%);
}
.pcard__over { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 24px 24px 22px; }
.pcard__title { color: var(--blanco); font-size: clamp(1.2rem, 1.8vw, 1.5rem); line-height: 1.1; margin-top: 12px; }
.pcard__body { flex: 1 1 auto; display: flex; flex-direction: column; padding: 22px 24px 26px; }
.pcard__note { color: var(--verde-200); font-size: 1rem; margin: 4px 0 0; }
.pcard__actions { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin-top: 22px; }
.pcard .text-link { color: var(--blanco); }
.pcard .btn--primary:hover { background: var(--blanco); color: var(--verde); }
.incluye__title {
	font-family: var(--f-cond);
	font-weight: 600;
	font-size: .9375rem;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--amarillo);
	margin-bottom: 12px;
}
.incluye__list li,
.incluye-franja__list li { position: relative; padding-left: 30px; margin-bottom: 8px; }
.incluye__list li::before,
.incluye-franja__list li::before {
	content: "";
	position: absolute;
	left: 2px;
	top: .38em;
	width: 14px;
	height: 8px;
	border-left: 3px solid var(--amarillo);
	border-bottom: 3px solid var(--amarillo);
	transform: rotate(-45deg);
}

/* ---------- A la medida: the way out when no package fits (four pages) ---------- */
.medida {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 20px 40px;
	margin-top: clamp(28px, 4vw, 48px);
	padding: clamp(24px, 3vw, 36px) clamp(24px, 3.4vw, 44px);
	background: var(--verde-700);
	color: var(--crema);
	border-radius: var(--radius);
}
.medida__text { flex: 1 1 420px; max-width: 42em; }
.medida__title { color: var(--blanco); font-size: clamp(1.2rem, 2vw, 1.6rem); line-height: 1.1; margin-bottom: 10px; }
.medida .btn--primary:hover { background: var(--blanco); color: var(--verde); }
.incluye-franja__grid .medida { grid-column: 1 / -1; margin-top: 8px; }

/* ---------- Cascada: the photo band that falls into the page ---------- */
.cascada {
	--cascada-h: clamp(620px, 66vw, 960px);
	display: grid;
	/* green above, cream below; the switch sits where the photo is fully opaque */
	background: linear-gradient(to bottom, var(--verde) calc(100% - var(--cascada-h) * .3), var(--crema) calc(100% - var(--cascada-h) * .3));
	color: var(--crema);
}
.cascada > * { grid-area: 1 / 1; }
.cascada__otra { font-weight: 600; }
.cascada__content { position: relative; z-index: 1; align-self: start; padding-top: clamp(48px, 6vw, 88px); }
.cascada__content h2 { color: var(--blanco); font-size: clamp(2rem, 5vw, 4.25rem); max-width: 16em; text-wrap: initial; text-shadow: 0 2px 24px rgba(14, 34, 22, .5); }
.cascada__text { max-width: 30em; margin: 18px 0 26px; font-size: 1.1875rem; color: var(--blanco); text-shadow: 0 1px 12px rgba(14, 34, 22, .7); }
.cascada__media {
	position: relative;
	width: 100%;
	max-width: 1520px;
	margin: clamp(150px, 15vw, 230px) auto 0;
	height: var(--cascada-h);
	-webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 34%, #000 74%, transparent 100%);
	mask-image: linear-gradient(to bottom, transparent 0%, #000 34%, #000 74%, transparent 100%);
}
.cascada__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.cascada__media .place-tag { left: auto; right: var(--gutter); bottom: 30%; }
@media (min-width: 1521px) {
	.cascada__media {
		-webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 34%, #000 74%, transparent 100%), linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
		-webkit-mask-composite: source-in;
		mask-image: linear-gradient(to bottom, transparent 0%, #000 34%, #000 74%, transparent 100%), linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
		mask-composite: intersect;
	}
}

/* ---------- Grupos: four photo cards, wide and narrow crossed (7/5, 5/7) ---------- */
.grupos { background: var(--crema); padding-top: clamp(24px, 4vw, 48px); }
.grupos__grid {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	gap: var(--gap);
}
.grupo {
	grid-column: span 5;
	position: relative;
	isolation: isolate;
	overflow: hidden;
	border-radius: var(--radius);
	background: var(--verde);
	height: clamp(460px, 42vw, 560px);
	color: var(--crema);
}
.grupo--ancha { grid-column: span 7; }
.grupo__img { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2, .7, .2, 1); }
.grupo__img--arriba { object-position: 50% 0; } /* the label stays above the faces */
.grupo__img--alta { object-position: 50% 40%; }
.grupo::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(to top, rgba(14, 34, 22, .96) 0%, rgba(14, 34, 22, .6) 38%, rgba(14, 34, 22, 0) 64%);
}
.grupo__tag { position: absolute; top: 16px; left: 16px; }
.grupo__body { position: absolute; left: 0; right: 0; bottom: 0; padding: 24px; }
.grupo__body h3 { margin-bottom: 8px; color: var(--blanco); }
.grupo__body h3 { font-size: clamp(1.2rem, 1.7vw, 1.45rem); line-height: 1.3; }
.grupo__body p { max-width: 46ch; text-wrap: pretty; }
.grupo__body p { font-size: 1rem; line-height: 1.45; }
.grupo__body .grupo__canal { margin-top: 10px; font-weight: 600; color: var(--amarillo); }
.grupo:focus-within { outline: 3px solid var(--noche); outline-offset: 3px; }
.grupo .stretched:focus-visible { outline: none; }
.stretched {
	color: var(--blanco);
	text-decoration: underline;
	text-decoration-color: var(--amarillo);
	text-decoration-thickness: 3px;
	text-underline-offset: 6px;
}
.stretched::after { content: ""; position: absolute; inset: 0; }

/* Hover zoom on photos (pointer devices, motion allowed) */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
	.pcard:hover .pcard__media img,
	.grupo:hover .grupo__img,
	.galeria__item:hover img,
	.panel--foto:hover img { transform: scale(1.05); }
}

/* ---------- Galería (A Lagoa grid) + lightbox ---------- */
.galeria { background: var(--verde-50); }
.galeria__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.galeria__item {
	position: relative;
	display: block;
	aspect-ratio: 1;
	overflow: hidden;
	border-radius: 10px;
	background: var(--verde-100);
}
.galeria__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.galeria__item:focus-visible { outline-offset: 2px; }

.lightbox {
	width: 100%;
	height: 100%;
	max-width: none;
	max-height: none;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--crema);
}
.lightbox::backdrop { background: rgba(14, 34, 22, .94); }
.lightbox__fig { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; margin: 0; padding: 72px clamp(16px, 7vw, 88px) 24px; }
.lightbox__img { max-width: 100%; max-height: calc(100svh - 160px); width: auto; height: auto; border-radius: 8px; }
.lightbox__btn {
	position: fixed;
	width: 48px;
	height: 48px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 999px;
	border: 2px solid rgba(255, 255, 255, .6);
	background: rgba(255, 255, 255, .1);
	color: var(--blanco);
	cursor: pointer;
}
.lightbox__btn:focus-visible { outline-color: var(--amarillo); }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 16px; top: 50%; transform: translateY(-50%); }
body.has-lightbox { overflow: hidden; }

/* ---------- Paneles (A Lagoa checkerboard) ---------- */
.paneles { position: relative; isolation: isolate; padding: clamp(56px, 7vw, 96px) 0 clamp(64px, 9vw, 120px); }
.paneles::before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	z-index: -1;
	height: clamp(240px, 26vw, 380px);
	background: var(--verde);
}
.paneles__head { color: var(--blanco); margin-bottom: clamp(28px, 4vw, 44px); }
.paneles__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}
.paneles__grid { overflow: hidden; border-radius: var(--radius); box-shadow: 0 24px 54px rgba(14, 34, 22, .16); }
/* the grid carries .wrap: drop its side padding so the board's edge is the panels' edge */
.wrap.paneles__grid { padding-inline: 0; width: calc(100% - 2 * var(--gutter)); max-width: var(--content); }
.panel { min-height: clamp(300px, 32vw, 440px); }
.panel--foto { border-radius: 0; }
.panel--foto img { position: absolute; inset: 0; transition: transform .7s cubic-bezier(.2, .7, .2, 1); }
.panel--claro,
.panel--verde {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: flex-start;
	gap: 16px;
	padding: clamp(32px, 5vw, 64px);
}
.panel--claro { background: var(--blanco); }
.panel--verde { background: var(--verde-700); color: var(--crema); }
.panel__title { font-size: clamp(1.4rem, 2.5vw, 2.125rem); line-height: 1.05; }
.panel--verde .panel__title { color: var(--blanco); }
.panel p { margin: 0; max-width: 30em; }
.panel .btn { margin-top: 8px; }

/* ---------- Opiniones ---------- */
.opiniones { background: var(--crema); }
.opiniones__grid {
	display: grid;
	grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
	gap: 32px 64px;
	align-items: center;
}
.opiniones__head h2 { margin-bottom: 20px; }
.opiniones__head p:last-child { color: var(--musgo); max-width: 30em; }
.nota {
	display: grid;
	justify-items: start;
	gap: 12px;
	padding: clamp(28px, 4vw, 40px);
	background: var(--blanco);
	border: 1px solid var(--verde-100);
	border-radius: var(--radius);
}
.nota__num { display: flex; align-items: baseline; gap: 12px; margin: 0; font-family: var(--f-head); font-size: clamp(3.5rem, 7vw, 5.5rem); line-height: 1; color: var(--verde); }
.nota__de { font-family: var(--f-body); font-weight: 600; font-size: 1.125rem; color: var(--musgo); }
.estrellas { position: relative; width: 126px; height: 24px; }
.estrellas svg { display: block; width: 126px; height: 24px; max-width: none; }
.estrellas__base { fill: var(--verde-200); }
.estrellas__llenas { position: absolute; top: 0; left: 0; bottom: 0; overflow: hidden; }
.estrellas__svg { fill: var(--verde-700); }
.nota__base { margin: 0 0 8px; color: var(--musgo); font-weight: 600; }
/* Ready for three real reviews (opiniones-tarjetas.php, not in use yet) */
.opiniones__tarjetas { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.opinion { background: var(--blanco); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; justify-content: space-between; gap: 18px; }
.opinion__texto { margin: 0; font-size: 1.0625rem; }
.opinion__quien { margin: 0; color: var(--musgo); font-size: .9375rem; font-weight: 600; }

/* ---------- Datos (green band) ---------- */
.datos__grid {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	gap: 40px 64px;
	align-items: start;
}
.datos__title { font-size: clamp(1.25rem, 2vw, 1.5rem); line-height: 1.2; color: var(--verde-200) !important; }
.datos__big { display: block; font-size: clamp(2.5rem, 5vw, 3.75rem); line-height: .95; color: var(--blanco); margin-bottom: 12px; }
.datos__list { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px 40px; }
.datos__list li { border-top: 1px solid var(--verde-700); padding-top: 18px; color: var(--crema); }
.datos__num,
.datos__word {
	display: block;
	font-family: var(--f-head);
	font-weight: 700;
	text-transform: uppercase;
	color: var(--blanco);
	line-height: 1;
	margin-bottom: 8px;
}
.datos__num { font-size: clamp(2.5rem, 5vw, 3.75rem); }
.datos__word { font-size: clamp(1.15rem, 1.8vw, 1.4rem); line-height: 1.15; padding-top: .55em; }

/* ---------- Cómo llegar (home) ---------- */
.llegar { background: var(--verde-100); }
.llegar__grid {
	display: grid;
	grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
	gap: 24px 48px;
	align-items: start;
}
.llegar__address { font-weight: 600; font-size: clamp(1.35rem, 2.6vw, 2rem); line-height: 1.3; color: var(--verde); max-width: 24em; }
.llegar__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 8px; }

/* ---------- Cierre + footer (one green block) ---------- */
.cierre-y-pie { background: var(--verde); color: var(--crema); }
.cierre { padding: clamp(72px, 10vw, 128px) 0 clamp(56px, 7vw, 88px); }
.cierre__grid {
	display: grid;
	grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
	gap: 32px 56px;
	align-items: end;
}
.cierre__title { color: var(--blanco); font-size: clamp(1.6rem, 3.4vw, 2.75rem); line-height: 1.05; max-width: 16em; }
.cierre__donde { margin: 20px 0 4px; max-width: 34em; font-size: 1.0625rem; }
.cierre__llegar { color: var(--blanco); }
.cierre__llegar:hover { text-decoration-color: var(--blanco); }
.cierre__text { font-size: 1.1875rem; margin-bottom: 20px; }
.cierre__alt { margin-top: 16px; font-size: 1.0625rem; }
.cierre__alt a { color: var(--blanco); font-weight: 600; text-decoration-color: var(--amarillo); text-decoration-thickness: 2px; text-underline-offset: 4px; }

.site-footer { padding-bottom: 32px; }
.site-footer__grid {
	display: grid;
	grid-template-columns: auto minmax(0, 4fr) minmax(0, 3fr) minmax(0, 3fr);
	gap: 32px 48px;
	padding-top: 48px;
	border-top: 1px solid var(--verde-700);
}
.site-footer__name { font-family: var(--f-head); text-transform: uppercase; color: var(--blanco); font-size: 1rem; margin-bottom: 8px; }
.site-footer__label {
	font-family: var(--f-cond);
	font-weight: 600;
	font-size: .9375rem;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--verde-200);
	margin-bottom: 4px;
}
.site-footer a { color: var(--blanco); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; text-decoration-color: var(--amarillo); text-underline-offset: 4px; }
.site-footer__contact a,
.site-footer__nav a { display: inline-flex; align-items: center; min-height: 44px; }
.site-footer address { font-size: 1rem; }
.site-footer__legal {
	grid-column: 1 / -1;
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 8px 24px;
	padding-top: 24px;
	border-top: 1px solid var(--verde-700);
	font-size: .9375rem;
}
.site-footer__legal a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: underline; text-underline-offset: 4px; }
.site-credit { font-size: .7rem; opacity: .55; margin: 0; }
.site-credit a { min-height: 0 !important; display: inline !important; }

/* ---------- Floating buttons ---------- */
.wa-float,
.to-top {
	position: fixed;
	right: 16px;
	z-index: 60;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 999px;
	background: var(--amarillo);
	color: var(--noche);
	border: 2px solid var(--noche);
	box-shadow: 0 6px 18px rgba(14, 34, 22, .25);
	cursor: pointer;
}
.wa-float { bottom: 16px; width: 60px; height: 60px; transition: opacity .3s ease, transform .3s ease; }
.wa-float.is-oculto { opacity: 0; transform: scale(.8); pointer-events: none; }
.to-top { bottom: 88px; width: 48px; height: 48px; right: 22px; }
.to-top[hidden] { display: none; }
@media (min-width: 1081px) {
	.wa-float { display: none; }
	.to-top { bottom: 24px; right: 24px; }
}

/* ---------- Breadcrumbs (inner page heroes) ---------- */
.breadcrumbs { font-family: var(--f-cond); font-weight: 600; font-size: .9375rem; color: var(--musgo); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; align-items: center; }
.breadcrumbs li { display: inline-flex; align-items: center; min-height: 44px; }
.breadcrumbs li + li::before { content: "/"; margin: 0 10px; }
.breadcrumbs a { color: var(--verde); display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; }
.breadcrumbs--claro { color: var(--verde-200); }
.breadcrumbs--claro a { color: var(--blanco); }
.page-hero__title { font-size: clamp(1.9rem, calc((100vw - 2 * var(--gutter)) / 10.9), 4.5rem); line-height: .98; max-width: 15em; }

/* Incluye band (pase del día) */
.incluye-franja__grid {
	display: grid;
	grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
	gap: 28px 48px;
}
.incluye-iconos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.incluye-iconos li { background: var(--verde-800); border: 1px solid var(--verde-700); color: var(--blanco); font-size: 1.0625rem; }
.incluye-iconos .icono { color: var(--verde-200); }
.incluye-franja__note { grid-column: 2; color: var(--crema); margin-top: 8px; }
/* Two ways to come (pase del día): with transport or without it (Juan, 2026-11-16) */
.incluye-franja .incluye-franja__opciones { grid-column: 2; gap: 12px; }
.incluye-franja__opciones .opcion { padding: 22px 24px; }
.incluye-franja__opciones .opcion h3 { margin-bottom: 8px; }
.incluye-franja__opciones .opcion p { margin: 0; color: var(--crema); }

/* Para quién */
.para-quien__grid {
	display: grid;
	grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
	gap: 40px 72px;
	align-items: center;
}
.para-quien h2 { margin-bottom: 24px; }
.filas .fila { border-top: 1px solid var(--verde-200); padding: 22px 0; }
.filas .fila:last-child { border-bottom: 1px solid var(--verde-200); }
.fila .tag { margin-bottom: 12px; }
.para-quien__photo { aspect-ratio: 3 / 4; }

/* Gallery strip on inner pages */
.galeria--tira { background: var(--blanco); }

/* Single photo panel row on inner pages */
.paneles--uno::before { height: 50%; }

/* Reservar + preguntas */
.reservar__grid {
	display: grid;
	grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
	gap: 40px 72px;
	align-items: start;
}
.reservar__main h2 { margin-bottom: 20px; }
.reservar__main p { max-width: 32em; margin-bottom: 28px; }
.preguntas details { border-bottom: 1px solid var(--verde-200); }
.preguntas summary {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	min-height: 56px;
	padding: 10px 0;
	font-weight: 600;
	color: var(--verde);
	cursor: pointer;
	list-style: none;
}
.preguntas summary::-webkit-details-marker { display: none; }
.preguntas summary::after {
	content: "";
	flex: none;
	width: 12px; height: 12px;
	border-right: 3px solid var(--verde);
	border-bottom: 3px solid var(--verde);
	transform: rotate(45deg) translateY(-3px);
	transition: transform .2s ease;
}
.preguntas details[open] summary::after { transform: rotate(-135deg); }
.preguntas details p { padding-bottom: 18px; }

/* Opciones (campamento) */
.opciones h2 { margin-bottom: clamp(28px, 4vw, 44px); }
.opciones__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--gap); }
.opcion { border: 1px solid var(--verde-700); background: var(--verde-800); border-radius: var(--radius); padding: 28px; }
.opcion h3 { margin-bottom: 18px; font-size: clamp(1.15rem, 1.8vw, 1.4rem); }
.opcion__note { color: var(--verde-200); margin-top: 12px; }
.opciones .incluye-franja__note { margin-top: 24px; }

/* Hospedaje */
.hospedaje__grid {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	gap: 32px 64px;
	align-items: start;
}
.hospedaje__grid .icono { width: 48px; height: 48px; margin-bottom: 16px; }
.hospedaje__nums { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; margin-bottom: 20px; }
.hospedaje__nums p { border-top: 1px solid var(--verde-200); padding-top: 16px; }
.num-grande {
	display: block;
	font-family: var(--f-head);
	font-size: clamp(3rem, 6vw, 5rem);
	line-height: 1;
	color: var(--verde);
	margin-bottom: 10px;
}

/* Noches (campamento) */
.noches__grid {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
	gap: 40px 72px;
	align-items: center;
}
.noches__photo { aspect-ratio: 4 / 5; }
.noches__body h2 { margin-bottom: 20px; }
.noches__body .preguntas { margin-top: 24px; }

/* Necesita (iglesias) */
.necesita__grid {
	display: grid;
	grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
	gap: 32px 64px;
}
.necesita__list > div {
	display: grid;
	grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
	gap: 8px 32px;
	border-top: 1px solid var(--verde-200);
	padding: 22px 0;
}
.necesita__list > div:last-child { border-bottom: 1px solid var(--verde-200); }
.necesita__list dt { display: flex; align-items: center; gap: 12px; font-family: var(--f-head); text-transform: uppercase; color: var(--verde); font-size: 1rem; line-height: 1.3; }
.necesita__list dt .icono { width: 32px; height: 32px; }
.necesita__list dd { margin: 0; }

/* Años (iglesias) */
.anos__grid {
	display: grid;
	grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
	gap: 40px 64px;
	align-items: center;
}
.anos__photo { aspect-ratio: 3 / 2; }
.anos__body h2 { margin-bottom: 20px; }
.anos__body .preguntas { margin: 24px 0 28px; }

/* H2 that sits in a narrow column of a split layout: one step smaller so the
 * widest words (RECIBIENDO, ORGANIZA) stay inside their column */
.necesita h2, .anos h2, .hospedaje h2, .llegar h2, .incluye-franja h2, .reservar h2, .noches h2, .intro h2, .opiniones h2 {
	font-size: clamp(1.75rem, 3.6vw, 3rem);
}

/* Generic pages (privacy, 404) */
.prosa__wrap { padding-block: clamp(48px, 7vw, 96px); max-width: calc(760px + 2 * var(--gutter)); }
.prosa__wrap h1 { margin-bottom: 32px; }
.prosa__wrap ul { margin: 0 0 1em; padding-left: 1.25em; list-style: disc; }
.prosa__wrap li { margin-bottom: .4em; }
.prosa__wrap li::marker { color: var(--verde-700); }
.prosa__fecha { color: var(--musgo); font-size: 1rem; }
.prosa__wrap .breadcrumbs { margin-bottom: 20px; }
.prosa__wrap h2 { font-size: clamp(1.4rem, 2.6vw, 2rem); margin: 40px 0 16px; }

/* ---------- Scroll reveals (theme.js adds .is-visible; nothing hides without JS) ---------- */
@media (prefers-reduced-motion: no-preference) {
	.js-loaded [data-animate] {
		opacity: 0;
		transform: translateY(28px);
		transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1);
		transition-delay: var(--delay, 0s);
	}
	.js-loaded [data-animate].is-visible { opacity: 1; transform: none; }
}

/* ---------- Breakpoints ---------- */
@media (max-width: 1080px) {
	.grupo__tag { letter-spacing: .02em; } /* the longest label stays on one line from 360 px */
	.reserva__bar { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr); }
	.reserva__btn { grid-column: 1 / -1; }
}

@media (max-width: 899px) {
	.intro__grid,
	.section-head--split,
	.datos__grid,
	.llegar__grid,
	.cierre__grid,
	.incluye-franja__grid,
	.para-quien__grid,
	.reservar__grid,
	.hospedaje__grid,
	.noches__grid,
	.necesita__grid,
	.anos__grid,
	.opiniones__grid { grid-template-columns: minmax(0, 1fr); }
	.intro__photos { max-width: 560px; }
	.finca-iconos__list li { padding-inline: 14px; }
	.paquetes__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
	.paquetes__grid .pcard:nth-child(2) { margin-top: 0; }
	.grupos__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
	.grupo, .grupo--ancha { grid-column: auto; height: auto; aspect-ratio: 3 / 4; }
	.galeria__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
	.galeria--tira .galeria__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.incluye-franja__note,
	.incluye-franja .incluye-franja__opciones { grid-column: 1; }
	.incluye-iconos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.para-quien__photo { max-width: 440px; }
	.noches__photo { max-width: 520px; }
	.site-footer__grid { grid-template-columns: auto minmax(0, 1fr); }
	.site-footer__contact, .site-footer__nav { grid-column: span 1; }
	.opiniones__tarjetas { grid-template-columns: minmax(0, 1fr); }
}

@media (min-width: 641px) and (max-width: 899px) {
	/* third package card across both columns: photo left, list right */
	.paquetes__grid .pcard:nth-child(3) { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
	.paquetes__grid .pcard:nth-child(3) .pcard__media { aspect-ratio: auto; min-height: 100%; }
}

@media (max-width: 768px) {
	:root { --header-h: 88px; }
	.site-header__inner { gap: 16px; min-height: 0; padding-block: 4px; }
	.site-header__logo img, .site-footer__logo img { height: 80px; }
	.reserva__bar { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding: 22px 20px 24px; }
	.campo:first-child { grid-column: 1 / -1; }
	.cascada { --cascada-h: clamp(420px, 100vw, 640px); display: block; }
	.cascada__content { padding-bottom: 8px; }
	.cascada__media { margin-top: -40px; }
	.cascada__media img { object-position: 46% 40%; }
	.cascada__media .place-tag { bottom: 24%; }
	.paneles__grid { grid-template-columns: minmax(0, 1fr); }
	.panel--foto { min-height: 0; aspect-ratio: 4 / 3; }
	.panel--claro, .panel--verde { min-height: 0; }
	/* checkerboard on one column: photo, text, photo, text */
	.paneles__grid > .panel--verde:nth-child(3) { order: 4; }
	.paneles--invertido .paneles__grid > .panel--claro { order: 2; }
}

@media (max-width: 640px) {
	.site-main > .topo > .reserva { margin-top: 0; } /* phones: the bar sits just under the torn edge, which stays whole */
	.reserva__bar { grid-template-columns: minmax(0, 1fr); }
	.campo:first-child { grid-column: auto; }
	.reserva__head { flex-direction: column; }
	:root { --topo-tam: 560px; }
	.hero { --hero-pie: calc(var(--borde-h) + 152px); }
	.hero__foot .btn { width: 100%; }
	.finca-iconos__list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
	.finca-iconos__list li { min-height: 0; flex-direction: row; align-items: center; gap: 12px; padding: 14px; }
	.finca-iconos__list .icono { width: 32px; height: 32px; }
	.finca-iconos__list--compacta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.paquetes__grid,
	.grupos__grid,
	.datos__list,
	.opciones__grid,
	.hospedaje__nums { grid-template-columns: minmax(0, 1fr); }
	.pcard__media { aspect-ratio: 5 / 4; }
	.grupo, .grupo--ancha { aspect-ratio: 4 / 5; }
	.grupo::after { background: linear-gradient(to top, rgba(14, 34, 22, .96) 0%, rgba(14, 34, 22, .74) 44%, rgba(14, 34, 22, .42) 58%, rgba(14, 34, 22, 0) 76%); } /* taller text on narrow cards */
	.galeria__grid { gap: 6px; }
	.galeria__item { border-radius: 6px; }
	.necesita__list > div { grid-template-columns: minmax(0, 1fr); }
	.pcard__actions .btn,
	.llegar__actions .btn,
	.cierre__actions .btn,
	.reservar__main .btn,
	.anos__body .btn,
	.medida .btn,
	.panel .btn { width: 100%; }
	.medida__text { flex-basis: 100%; }
	.site-footer__grid { grid-template-columns: minmax(0, 1fr); }
	.site-footer__legal { flex-direction: column; align-items: flex-start; }
	.menu-toggle__label { font-size: 1rem; }
	.place-tag { left: 12px; bottom: 12px; }
	.lightbox__prev, .lightbox__next { top: auto; bottom: 16px; transform: none; }
	.lightbox__fig { padding: 72px 12px 80px; }
}
