/* ==========================================================================
   FJD Pacífico 2.0
   Lectura de diseño: fundación deportiva y social para familias y aliados,
   lenguaje limpio y editorial con energía de playa, un solo acento (sol).
   Dials: variance 7, motion 6, density 3.
   Forma: botones en píldora, superficies e imágenes a 20px, campos a 12px.
   ========================================================================== */

@font-face {
	font-family: "Bricolage Grotesque";
	src: url("../fonts/bricolage-grotesque-latin-wght-normal.woff2") format("woff2");
	font-weight: 200 800;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Geist";
	src: url("../fonts/geist-latin-wght-normal.woff2") format("woff2");
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
}

:root {
	--bg: #f7faf4;
	--paper: #ffffff;
	--tint: #e8f1e3;
	--ink: #0b2216;
	--text: #30463a;
	--muted: #4c6455;
	--line: #d6e3d4;
	--field: #7e9a85;
	--link: #00693a;
	--sea: #007236;
	--sea-deep: #035c2f;
	--sun: #e87300;
	--sun-hover: #f08a24;
	--danger: #a52a22;

	--font-display: "Bricolage Grotesque", ui-rounded, "Segoe UI", system-ui, sans-serif;
	--font-body: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

	--r-surface: 20px;
	--r-field: 12px;
	--header-h: 68px;
	--wrap: 1240px;
	--ease: cubic-bezier(0.16, 1, 0.3, 1);
}

@media (prefers-color-scheme: dark) {
	:root {
		--bg: #08170d;
		--paper: #0e2416;
		--tint: #0c1f13;
		--ink: #eef5ec;
		--text: #c2d2c1;
		--muted: #9bb39b;
		--line: #24402b;
		--field: #5f8466;
		--link: #7fd99c;
		--sea: #4fcf80;
	}
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--font-body);
	font-size: 1.0625rem;
	line-height: 1.65;
	overflow-x: clip;
	-webkit-font-smoothing: antialiased;
}
img, video, svg { max-width: 100%; display: block; }
img { height: auto; }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--sea); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--sun); color: #1b1204; }

h1, h2, h3, h4 {
	font-family: var(--font-display);
	color: var(--ink);
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.1;
	margin: 0 0 0.6em;
	text-wrap: balance;
}
h1 { font-size: clamp(2.2rem, 4.6vw, 3.9rem); line-height: 1.04; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); }
p { margin: 0 0 1em; }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); white-space: nowrap;
}
.skip-link:focus {
	position: fixed; left: 1rem; top: 1rem; z-index: 100; width: auto; height: auto; clip: auto; clip-path: none;
	background: var(--ink); color: var(--bg); padding: 0.8rem 1.2rem; border-radius: 999px;
}

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.wrap--read { max-width: 760px; }
.wrap--wide { max-width: 1040px; }

.icon { width: 1.25em; height: 1.25em; flex: none; display: inline-block; vertical-align: -0.2em; }
.icon--lg { width: 2.4rem; height: 2.4rem; }

/* ---------- Botones ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
	min-height: 48px; padding: 0.7rem 1.6rem; border-radius: 999px; border: 2px solid transparent;
	font: 600 1rem/1 var(--font-body); text-decoration: none; cursor: pointer; white-space: nowrap;
	transition: transform 0.25s var(--ease), background-color 0.2s, border-color 0.2s, color 0.2s;
}
.btn:hover { transform: translateY(-2px); text-decoration: none; }
.btn:active { transform: translateY(0) scale(0.98); }
.btn--sm { min-height: 42px; padding: 0.55rem 1.2rem; font-size: 0.95rem; }
.btn--primary { background: var(--sea-deep); color: #fff; }
.btn--primary:hover { background: #04773b; color: #fff; }
.btn--sun { background: var(--sun); color: #1b1204; }
.btn--sun:hover { background: var(--sun-hover); color: #1b1204; }
.btn--glass { background: rgba(4, 48, 27, 0.55); border-color: rgba(255, 255, 255, 0.6); color: #fff; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.btn--glass:hover { background: rgba(4, 48, 27, 0.75); color: #fff; }
.btn--line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--line:hover { background: var(--ink); color: var(--bg); }

.text-link { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 600; color: inherit; text-decoration: none; border-bottom: 2px solid currentColor; padding-bottom: 2px; }
.text-link .icon { transition: transform 0.25s var(--ease); }
.text-link:hover .icon { transform: translateX(4px); }
.link-button { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Cabecera ---------- */
.site-header {
	position: sticky; top: 0; z-index: 50; height: var(--header-h);
	background: color-mix(in srgb, var(--bg) 88%, transparent);
	backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
	border-bottom: 1px solid var(--line);
}
.site-header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: inline-flex; align-items: center; gap: 0.7rem; text-decoration: none; color: var(--ink); }
.brand__mark { display: grid; place-items: center; width: 46px; height: 44px; flex: none; }
.brand__mark img { width: 100%; height: 100%; object-fit: contain; }
.brand__mark .icon { width: 24px; height: 24px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__small { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.04em; color: var(--muted); }
.brand__name { font: 700 1.18rem/1.1 var(--font-display); letter-spacing: -0.02em; }
.custom-logo { max-height: 44px; width: auto; }

.primary-nav { display: flex; align-items: center; gap: 1.6rem; }
.primary-nav .menu { display: flex; gap: 1.6rem; list-style: none; margin: 0; padding: 0; }
.primary-nav .menu a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 0.97rem; padding-block: 0.4rem; background: linear-gradient(var(--sun), var(--sun)) 0 100% / 0 3px no-repeat; transition: background-size 0.3s var(--ease); }
.primary-nav .menu a:hover, .primary-nav .current-menu-item a { background-size: 100% 3px; }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; color: var(--ink); cursor: pointer; border-radius: 12px; }
.nav-toggle .icon { width: 28px; height: 28px; }
.nav-toggle__close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__close { display: inline; }

@media (max-width: 899px) {
	.nav-toggle { display: grid; place-items: center; }
	.primary-nav {
		position: absolute; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 1rem;
		padding: 1.2rem 1.25rem 1.6rem; background: var(--bg); border-bottom: 1px solid var(--line);
		display: none;
	}
	.primary-nav.is-open { display: flex; }
	.primary-nav .menu { flex-direction: column; gap: 0.2rem; }
	.primary-nav .menu a { display: block; font-size: 1.25rem; font-family: var(--font-display); font-weight: 600; padding-block: 0.6rem; }
	.primary-nav .btn { align-self: flex-start; }
}

/* ---------- Hero con scroll ---------- */
.hero__track { position: relative; height: 380svh; }
.hero__stage {
	position: sticky; top: var(--header-h); height: calc(100vh - var(--header-h)); height: calc(100lvh - var(--header-h));
	overflow: hidden; color: #fff; background: #04301b url("../hero/poster-land.jpg") center / cover no-repeat;
}
@media (max-aspect-ratio: 1/1) { .hero__stage { background-image: url("../hero/poster-port.jpg"); } }
.hero__media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; opacity: 0; transition: opacity 0.35s; }
.hero__stage.is-media-ready.surface-video .hero__video,
.hero__stage.is-media-ready.surface-frames .hero__frame,
.hero--photo .hero__media { opacity: 1; }
.hero__scrim {
	position: absolute; inset: 0; pointer-events: none;
	background: linear-gradient(180deg, rgba(4, 48, 27, 0.5) 0%, rgba(4, 48, 27, 0.22) 30%, rgba(4, 48, 27, 0) 52%),
		linear-gradient(90deg, rgba(4, 48, 27, 0.3) 0%, rgba(4, 48, 27, 0) 55%);
}
.hero__copy, .hero__chapters { position: absolute; left: 0; right: 0; top: clamp(2rem, 9vh, 5.5rem); margin-inline: auto; }
.hero__copy h1 { color: #fff; max-width: 22ch; font-size: clamp(2.1rem, 4.2vw, 3.6rem); margin-bottom: 0.45em; text-shadow: 0 2px 24px rgba(4, 48, 27, 0.35); }
.hero__copy p { max-width: 40ch; font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: rgba(255, 255, 255, 0.94); margin-bottom: 1.6rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.hero__copy { transition: opacity 0.4s var(--ease), transform 0.4s var(--ease), visibility 0.4s; }
.hero__stage.is-past .hero__copy { opacity: 0; transform: translateY(-14px); visibility: hidden; }

.hero__chapters { pointer-events: none; }
.chapter {
	position: absolute; left: 0; top: 0; max-width: 28rem;
	--p: var(--progress, 0);
	opacity: calc(clamp(0, (var(--p) - var(--in)) * 14, 1) * clamp(0, (var(--out) - var(--p)) * 14, 1));
	transform: translateY(calc((1 - clamp(0, (var(--p) - var(--in)) * 14, 1)) * 18px));
}
.chapter strong { display: block; font: 700 clamp(2.6rem, 6vw, 5rem)/1 var(--font-display); letter-spacing: -0.035em; color: #fff; margin-bottom: 0.4rem; text-shadow: 0 2px 24px rgba(4, 48, 27, 0.4); }
.chapter span { display: block; font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: rgba(255, 255, 255, 0.95); max-width: 24ch; }

.hero__status { position: absolute; right: 1.25rem; bottom: 1.1rem; margin: 0; padding: 0.4rem 0.9rem; font-size: 0.85rem; border-radius: 999px; background: rgba(4, 48, 27, 0.7); color: #fff; transition: opacity 0.4s; }
.hero__stage.is-ready .hero__status { opacity: 0; pointer-events: none; }
.hero__bar { position: absolute; left: 0; bottom: 0; height: 4px; width: calc(var(--progress, 0) * 100%); background: var(--sun); }

.hero__stage--static { position: relative; top: 0; height: calc(100svh - var(--header-h)); min-height: 520px; }
.hero--photo .hero__bar, .hero--photo .hero__status { display: none; }

/* Sin JavaScript o con movimiento reducido: una sola pantalla */
html:not(.js) .hero__track, html.scrub-static .hero__track { height: auto; }
html:not(.js) .hero__stage, html.scrub-static .hero__stage { position: relative; top: 0; }
html:not(.js) .hero__chapters, html.scrub-static .hero__chapters,
html:not(.js) .hero__status, html.scrub-static .hero__status,
html:not(.js) .hero__bar, html.scrub-static .hero__bar { display: none; }
html.scrub-static .hero__frame { opacity: 1; }
html:not(.js) .hero__stage { background-image: url("../hero/poster-land.jpg"); }

/* ---------- Secciones ---------- */
.section { padding-block: clamp(4.5rem, 9vw, 8rem); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4.5rem); }
.section--flush { padding-top: 0; }
.section--tint { background: var(--tint); }
.section__head { max-width: 38rem; margin-bottom: clamp(2rem, 4vw, 3.2rem); }
.section__head p { font-size: 1.15rem; color: var(--muted); margin: 0; }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.9rem; font-size: 0.88rem; color: var(--muted); margin-bottom: 0.7rem; }
.chip { display: inline-block; padding: 0.2rem 0.8rem; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); color: var(--ink); font-weight: 600; font-size: 0.82rem; text-decoration: none; }
.section--tint .chip { background: var(--bg); }

/* Bento: tres bloques, tamaños distintos y fondos distintos */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: minmax(250px, auto); gap: 16px; }
.bento__cell { position: relative; overflow: hidden; border-radius: var(--r-surface); display: flex; }
.bento__body { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 0.6rem; padding: clamp(1.5rem, 3vw, 2.3rem); width: 100%; }
.bento__body h3 { margin: 0; font-size: clamp(1.7rem, 3vw, 2.6rem); }
.bento__body p { margin: 0 0 0.6rem; max-width: 34ch; }
.bento__cell--deporte { grid-column: 1 / span 7; grid-row: span 2; min-height: 540px; color: #fff; align-items: flex-end; }
.bento__cell--deporte img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.bento__cell--deporte:hover img { transform: scale(1.04); }
.bento__cell--deporte::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(4, 48, 27, 0.9) 0%, rgba(4, 48, 27, 0.45) 45%, rgba(4, 48, 27, 0) 75%); }
.bento__cell--deporte .bento__body { z-index: 1; }
.bento__cell--deporte h3 { color: #fff; }
.bento__cell--cultura { grid-column: 8 / span 5; background: linear-gradient(150deg, #035c2f 0%, #0a9150 100%); color: #fff; }
.bento__cell--cultura h3 { color: #fff; }
.bento__cell--educacion { grid-column: 8 / span 5; background: var(--sun); color: #1b1204; }
.bento__cell--educacion h3 { color: #1b1204; }
.bento__cell--cultura .bento__body, .bento__cell--educacion .bento__body { justify-content: space-between; }
.bento .text-link { color: inherit; }

/* Artículos: uno grande y dos en lista */
.featured { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; margin-top: clamp(1.5rem, 3vw, 2.5rem); }
.featured__media, .mini__media, .card__media { display: block; overflow: hidden; border-radius: var(--r-surface); background: var(--line); }
.featured__media img, .mini__media img, .card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.featured__main:hover img, .mini:hover img, .card:hover .card__media img { transform: scale(1.04); }
.featured__media { aspect-ratio: 16 / 10; margin-bottom: 1.2rem; }
.featured__main h3 { font-size: clamp(1.7rem, 3vw, 2.5rem); }
.featured__main h3 a, .mini h3 a, .card__title a { color: inherit; text-decoration: none; }
.featured__main h3 a:hover, .mini h3 a:hover, .card__title a:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.featured__side { display: grid; gap: 2rem; }
.mini { display: grid; grid-template-columns: 132px 1fr; gap: 1.1rem; align-items: center; }
.mini__media { aspect-ratio: 1; }
.mini h3 { font-size: 1.25rem; margin: 0; }
.more { margin: clamp(2rem, 4vw, 3rem) 0 0; }

/* Valores */
.values__grid { display: grid; grid-template-columns: 4fr 8fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.values h2 { position: sticky; top: calc(var(--header-h) + 2rem); }
.values__list { list-style: none; margin: 0; padding: 0; }
.values__list li { margin-bottom: 2.2rem; }
.values__list li:nth-child(even) { padding-left: clamp(0px, 7vw, 6rem); }
.values__list strong { display: block; font: 700 clamp(2rem, 4.6vw, 3.8rem)/1.02 var(--font-display); letter-spacing: -0.035em; color: var(--ink); }
.values__list span { display: block; margin-top: 0.4rem; color: var(--muted); font-size: 1.05rem; }

/* Suscripción */
.panel { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 4rem); align-items: center; background: var(--sea-deep); color: #fff; border-radius: calc(var(--r-surface) + 8px); padding: clamp(1.8rem, 5vw, 4rem); }
.panel h2 { color: #fff; margin-bottom: 0.4em; }
.panel p { color: rgba(255, 255, 255, 0.92); }
.panel a { color: #fff; }
.panel .fjd-form label, .panel .fjd-check label { color: #fff; }
.panel .fjd-legal { color: rgba(255, 255, 255, 0.92); }
.panel .btn--primary { background: var(--sun); color: #1b1204; }
.panel .btn--primary:hover { background: var(--sun-hover); }
.panel :focus-visible { outline-color: #fff; }
.panel--inline { margin-top: 3rem; grid-template-columns: 1fr; padding: clamp(1.5rem, 4vw, 2.5rem); }

/* Súmate */
.join { padding-block: clamp(3.5rem, 7vw, 6rem); }
.join h2 { font-size: clamp(2.2rem, 5vw, 4rem); max-width: 16ch; }
.join p { font-size: 1.2rem; color: var(--muted); max-width: 36ch; }
.join__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.2rem; }

.social { display: flex; gap: 0.6rem; list-style: none; margin: 0; padding: 0; }
.social a { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 999px; border: 1.5px solid var(--line); color: var(--ink); transition: background-color 0.2s, color 0.2s, transform 0.25s var(--ease); }
.social a:hover { background: var(--ink); color: var(--bg); transform: translateY(-2px); }
.social .icon { width: 22px; height: 22px; }

/* ---------- Páginas interiores ---------- */
.page-head { position: relative; padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(2rem, 5vw, 3.5rem); color: #fff; background: linear-gradient(180deg, rgba(4, 48, 27, 0.74), rgba(4, 48, 27, 0.6)), var(--band) center / cover no-repeat, var(--sea-deep); }
.page-head h1 { color: #fff; margin: 0; max-width: 20ch; }
.page-head p { margin: 0.8rem 0 0; max-width: 44ch; font-size: 1.15rem; color: rgba(255, 255, 255, 0.94); }
.page-head h1 span { opacity: 0.85; }

.single__head { padding: clamp(2.5rem, 6vw, 4.5rem) 0 1.8rem; }
.single__head h1 { max-width: 22ch; margin-bottom: 0; }
.single__figure { margin: 0; border-radius: var(--r-surface); overflow: hidden; aspect-ratio: 16 / 8; background: var(--line); }
.single__figure img { width: 100%; height: 100%; object-fit: cover; }

.prose { font-size: 1.1rem; }
.prose > * + * { margin-top: 1.1rem; }
.prose h2 { margin-top: 2.6rem; font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.prose h3 { margin-top: 2rem; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin-bottom: 0.45rem; padding-left: 0.2rem; }
.prose li::marker { color: var(--sea); font-weight: 700; }
.prose strong { color: var(--ink); }
.prose blockquote { margin: 1.8rem 0; padding: 0.4rem 0 0.4rem 1.4rem; border-left: 4px solid var(--sun); font-size: 1.2rem; color: var(--ink); }
.prose figure.wp-block-table { overflow-x: auto; margin-inline: 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.95rem; min-width: 560px; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 0.8rem 0.9rem; border-bottom: 1px solid var(--line); }
.prose th { background: var(--tint); color: var(--ink); font-weight: 700; }
.prose .fjd-form { padding: clamp(1.2rem, 3vw, 2rem); border-radius: var(--r-surface); background: var(--paper); border: 1px solid var(--line); }

.notice { display: flex; gap: 1rem; align-items: flex-start; margin-top: 2.4rem; padding: 1.2rem 1.4rem; border-radius: var(--r-surface); background: var(--tint); color: var(--text); }
.notice p { margin: 0; font-size: 0.97rem; }
.notice .icon { color: var(--sea); margin-top: 2px; }

.post-nav { display: flex; justify-content: space-between; gap: 1.5rem; margin-top: 2.5rem; font-weight: 600; }
.post-nav a { color: var(--ink); text-decoration: none; }
.post-nav a:hover { text-decoration: underline; }
.post-nav__next { text-align: right; }

/* Tarjetas */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1.8rem, 4vw, 3rem) clamp(1.2rem, 3vw, 2.4rem); }
.cards--3 { grid-template-columns: repeat(3, 1fr); }
.card__media { aspect-ratio: 16 / 10; margin-bottom: 1.1rem; }
.card__title { font-size: 1.5rem; }
.card__excerpt { color: var(--muted); }
.card--wide { grid-column: 1 / -1; display: grid; grid-template-columns: 7fr 5fr; gap: clamp(1.2rem, 3vw, 2.5rem); align-items: center; }
.card--wide .card__media { margin: 0; }
.card--wide .card__title { font-size: clamp(1.8rem, 3.2vw, 2.7rem); }
.empty { padding: 2rem 0; }
.search-bar { margin-bottom: 2rem; max-width: 560px; }

.pagination { margin-top: 3rem; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.pagination .page-numbers { display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 1rem; border-radius: 999px; border: 1.5px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 600; }
.pagination .page-numbers.current, .pagination .page-numbers:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* ---------- Formularios del plugin ---------- */
.fjd-form { display: grid; gap: 1rem; }
.fjd-form label { display: block; margin-bottom: 0.35rem; font: 600 0.95rem/1.3 var(--font-body); color: var(--ink); }
.fjd-form input[type="email"], .fjd-form input[type="text"], .fjd-form select, .fjd-form textarea, .searchform__input {
	width: 100%; min-height: 50px; padding: 0.7rem 1rem; border-radius: var(--r-field); border: 1.5px solid var(--field);
	background: #fff; color: #0b2216; font: inherit; transition: border-color 0.2s, box-shadow 0.2s;
}
.fjd-form textarea { min-height: 140px; resize: vertical; }
.fjd-form input::placeholder, .fjd-form textarea::placeholder { color: #566e70; }
.fjd-form input:focus, .fjd-form select:focus, .fjd-form textarea:focus, .searchform__input:focus { border-color: var(--sea); outline: 3px solid color-mix(in srgb, var(--sea) 35%, transparent); outline-offset: 0; }
.fjd-row { display: flex; flex-wrap: wrap; gap: 0.7rem; }
.fjd-row input[type="email"] { flex: 1 1 240px; }
.fjd-check { display: flex; gap: 0.7rem; align-items: flex-start; }
.fjd-check input { margin-top: 0.3rem; width: 1.15rem; height: 1.15rem; flex: none; accent-color: var(--sea-deep); }
.fjd-check label { margin: 0; font-weight: 400; font-size: 0.92rem; line-height: 1.5; color: inherit; }
.fjd-legal { margin: 0; font-size: 0.85rem; color: var(--muted); }
.fjd-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.fjd-notice { padding: 1rem 1.2rem; border-radius: var(--r-field); border-left: 5px solid var(--sea); background: var(--tint); color: var(--ink); font-weight: 600; margin-bottom: 1rem; }
.fjd-notice--info { border-color: var(--sea); }
.fjd-notice--ok { border-color: #1f8a4c; }
.fjd-notice--error { border-color: var(--danger); background: #fdeceb; color: #3b0d0a; }
.panel .fjd-notice { color: var(--ink); background: #fff; }
.searchform__label { display: block; font-weight: 600; margin-bottom: 0.4rem; color: var(--ink); }
.searchform__row { display: flex; gap: 0.7rem; flex-wrap: wrap; }
.searchform__input { flex: 1 1 220px; }

/* ---------- Pie ---------- */
.site-footer { background: var(--paper); border-top: 1px solid var(--line); padding-top: clamp(3rem, 6vw, 5rem); font-size: 0.97rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.2fr 1.1fr; gap: clamp(1.5rem, 4vw, 3rem); }
.footer-brand { display: flex; align-items: center; gap: 0.7rem; font: 700 1.2rem/1.1 var(--font-display); color: var(--ink); margin-bottom: 0.8rem; }
.footer-text { max-width: 30ch; color: var(--muted); }
.footer-title { font: 700 0.95rem/1 var(--font-body); color: var(--ink); margin-bottom: 1rem; letter-spacing: 0; }
.footer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.footer-list a, .footer-list .link-button { color: var(--text); text-decoration: none; }
.footer-list a:hover, .footer-list .link-button:hover { color: var(--ink); text-decoration: underline; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem; margin-top: 3rem; padding-block: 1.5rem 2rem; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.9rem; }
.footer-bottom p { margin: 0; }

/* ---------- Movimiento: entradas al hacer scroll (solo si el navegador lo soporta) ---------- */
@media (prefers-reduced-motion: no-preference) {
	@supports (animation-timeline: view()) {
		.bento__cell, .mini, .card, .featured__main, .values__list li, .panel, .join .wrap > * {
			animation: fjd-rise linear both;
			animation-timeline: view();
			animation-range: entry 0% entry 38%;
		}
	}
}
@keyframes fjd-rise { from { opacity: 0; transform: translateY(32px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ---------- Adaptación móvil ---------- */
@media (max-width: 899px) {
	.hero__track { height: 340svh; }
	.bento { grid-template-columns: 1fr; grid-auto-rows: auto; }
	.bento__cell--deporte, .bento__cell--cultura, .bento__cell--educacion { grid-column: 1; grid-row: auto; }
	.bento__cell--deporte { min-height: 420px; }
	.bento__cell--cultura, .bento__cell--educacion { min-height: 240px; }
	.featured, .values__grid, .panel, .card--wide { grid-template-columns: 1fr; }
	.values h2 { position: static; }
	.values__list li:nth-child(even) { padding-left: 0; }
	.cards, .cards--3 { grid-template-columns: 1fr; }
	.footer-grid { grid-template-columns: 1fr 1fr; }
	.footer-col--brand { grid-column: 1 / -1; }
	.mini { grid-template-columns: 104px 1fr; }
}
@media (max-width: 520px) {
	.footer-grid { grid-template-columns: 1fr; }
	.hero__copy h1 { max-width: 14ch; }
	.hero__status { left: 1.25rem; right: auto; }
}

@media print {
	.site-header, .site-footer, .panel, .fjd-cookies, .hero { display: none !important; }
	body { background: #fff; color: #000; }
}


/* Kids (siluetas), cancha, galería y mapa */
.kid { display: block; width: clamp(76px, 10vw, 140px); aspect-ratio: 112 / 148; height: auto; overflow: visible; }
.pitch { position: relative; margin-top: clamp(2.5rem, 6vw, 5rem); height: clamp(170px, 22vw, 290px); overflow: hidden; background: repeating-linear-gradient(90deg, #007236 0 90px, #0a8a47 90px 180px); }
.pitch__field::before, .pitch__field::after { content: ""; position: absolute; border: 4px solid rgba(255, 255, 255, 0.6); }
.pitch__field::before { left: 0; right: 0; top: 14%; border-width: 4px 0 0; }
.pitch__field::after { left: 50%; top: 22%; width: clamp(110px, 16vw, 220px); aspect-ratio: 2.6 / 1; translate: -50% 0; border-radius: 50%; }
.pitch__kids { position: absolute; inset: auto 0 5% 0; display: flex; justify-content: space-around; align-items: flex-end; padding-inline: 4%; }
.pitch .kid:nth-child(even) { margin-bottom: 1.2rem; }
.mapsec { padding: clamp(3.5rem, 8vw, 7rem) 0; background: var(--tint); }
.mapsec__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.mapsec__copy p { max-width: 38ch; margin-bottom: 1.6rem; }
.mapfig { position: relative; margin: 0 auto; width: min(100%, 400px); }
.mapfig__svg { display: block; width: 100%; height: auto; overflow: visible; }
.mapfig__shadow { fill: var(--sun); }
.mapfig__outline { stroke: #fff; stroke-width: 5; stroke-linejoin: round; }
.mapfig__lines { stroke: rgba(255, 255, 255, 0.55); stroke-width: 3; }
.pin__dot { fill: var(--sun); stroke: #fff; stroke-width: 5; }
.pin__ring { fill: none; stroke: var(--sun); stroke-width: 4; transform-box: fill-box; transform-origin: center; }
.mapfig__tag { position: absolute; translate: 22px -50%; display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.35rem 0.8rem; border-radius: 999px; background: var(--paper); color: var(--ink); font: 600 0.85rem/1.2 var(--font-body); box-shadow: 0 6px 20px rgba(4, 48, 27, 0.25); white-space: nowrap; }
.mapfig__tag .icon { width: 16px; height: 16px; color: var(--sun); }
.mapfig .kid { position: absolute; width: 27%; }
.mapfig .kid--m1 { left: -17%; bottom: 8%; }
.mapfig .kid--m2 { right: -15%; bottom: 0; }
.gallery { padding: clamp(3rem, 7vw, 6rem) 0; }
.chips { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: clamp(1.5rem, 4vw, 2.5rem); }
.chip { font: 600 0.95rem/1 var(--font-body); padding: 0.7rem 1.2rem; border-radius: 999px; border: 2px solid var(--sea-deep); background: transparent; color: var(--ink); cursor: pointer; transition: background 0.2s, color 0.2s, transform 0.2s var(--ease); }
.chip:hover { transform: translateY(-2px); }
.chip[aria-pressed="true"] { background: var(--sea-deep); color: #fff; }
.gallery__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: clamp(1.6rem, 3.5vw, 2.8rem); align-items: center; }
.shot { position: relative; margin: 0; isolation: isolate; transition: transform 0.5s var(--ease); }
.shot[hidden] { display: none; }
.shot__frame { position: relative; isolation: isolate; }
.shot__frame::before { content: ""; position: absolute; z-index: -1; inset: 6% -5% -4% 7%; background: var(--sun); transition: inset 0.4s var(--ease); }
.shot:nth-child(3n+2) .shot__frame::before { background: var(--sea); }
.shot:nth-child(3n) .shot__frame::before { background: var(--sea-deep); }
.shot:hover { transform: rotate(-1.2deg) translateY(-4px); }
.shot:hover .shot__frame::before { inset: 3% -3% -2% 4%; }
.shot__btn { display: block; width: 100%; padding: 0; border: 0; background: var(--line); cursor: zoom-in; overflow: hidden; }
.shot__btn img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.shot:hover .shot__btn img { transform: scale(1.06); }
.shot__btn:focus-visible { outline-offset: 5px; }
.shot figcaption { margin-top: 1.3rem; font: 600 0.95rem/1.3 var(--font-body); color: var(--muted); }
.shot[data-shape="arch"] .shot__btn, .shot[data-shape="arch"] .shot__frame::before { border-radius: 999px 999px 24px 24px; }
.shot[data-shape="arch"] .shot__btn { aspect-ratio: 3 / 4; }
.shot[data-shape="circle"] .shot__btn { aspect-ratio: 1; border-radius: 50%; }
.shot[data-shape="circle"] .shot__frame::before { border-radius: 50%; }
.shot[data-shape="round"] .shot__btn { aspect-ratio: 4 / 3; border-radius: 28px; }
.shot[data-shape="round"] .shot__frame::before { border-radius: 28px; }
.shot[data-shape="leaf"] .shot__btn { aspect-ratio: 1; border-radius: 0 70% 0 70%; }
.shot[data-shape="leaf"] .shot__frame::before { border-radius: 0 70% 0 70%; }
.shot[data-shape="shield"] .shot__btn { aspect-ratio: 4 / 5; clip-path: url(#fjd-shield); }
.shot[data-shape="shield"] .shot__frame::before { clip-path: url(#fjd-shield); }
.lightbox { width: min(96vw, 1100px); max-width: none; max-height: 96vh; padding: 0; border: 0; background: transparent; color: #fff; overflow: visible; }
.lightbox form { display: contents; }
.lightbox[open] { position: fixed; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 0.8rem; }
.lightbox::backdrop { background: rgba(4, 48, 27, 0.9); }
.lightbox__fig { margin: 0; text-align: center; }
.lightbox__fig img { max-width: 100%; max-height: 78vh; border-radius: 20px; background: var(--line); }
.lightbox__fig figcaption { margin-top: 0.8rem; font-size: 1rem; color: #fff; }
.lightbox__close, .lightbox__nav { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 2px solid #fff; background: var(--sun); color: #1b1204; cursor: pointer; transition: transform 0.2s var(--ease); }
.lightbox__close:hover, .lightbox__nav:hover { transform: scale(1.08); }
.lightbox__close { position: absolute; top: -3.4rem; right: 0; }
.lightbox__nav--prev .icon { rotate: 180deg; }
@media (prefers-reduced-motion: no-preference) {
	.kid { animation: kid-hop 1.8s ease-in-out infinite; transform-origin: 50% 100%; }
	.kid:nth-child(2n) { animation-delay: -0.6s; }
	.kid:nth-child(3n) { animation-delay: -1.1s; }
	@keyframes kid-hop { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
	.pin__ring { animation: pin-pulse 2s ease-out infinite; }
	@keyframes pin-pulse { from { scale: 1; opacity: 0.9; } to { scale: 2.8; opacity: 0; } }
	.mapfig:hover .kid { animation-duration: 0.7s; }
	@supports (animation-timeline: view()) {
		.pitch__kids { animation: kids-run linear both; animation-timeline: view(); animation-range: entry 0% exit 100%; }
		@keyframes kids-run { from { translate: -7% 0; } to { translate: 7% 0; } }
	}
}
@media (max-width: 899px) { .mapsec__grid { grid-template-columns: 1fr; } .mapfig { width: min(78%, 340px); } .pitch .kid:nth-child(n+5) { display: none; } }
@media (max-width: 560px) {
	.lightbox[open] { grid-template-columns: 1fr 1fr; grid-template-areas: "fig fig" "prev next"; justify-items: center; }
	.lightbox__fig { grid-area: fig; } .lightbox__nav--prev { grid-area: prev; } .lightbox__nav--next { grid-area: next; }
	.lightbox__close { top: -3.2rem; }
}

@media (prefers-color-scheme: dark) {
	.brand__mark { background: #fff; border-radius: 12px; padding: 3px 4px; }
}
