/* ==========================================================
   Municipio de Balboa — estilos institucionales
   Paleta tomada del escudo distrital
   ========================================================== */
:root {
	--navy: #0f2453;
	--navy-2: #16326f;
	--blue: #1d4fa8;
	--blue-2: #2b67cc;
	--sky: #8fd3ec;
	--sea: #2f9fc4;
	--gold: #e8b931;
	--gold-2: #f6d46a;
	--gold-ink: #7a5a00;
	--red: #c8102e;
	--green: #2e7d32;
	--sand: #f7efd9;
	--ink: #14213d;
	--muted: #5a6479;
	--bg: #f6f8fc;
	--card: #ffffff;
	--line: #e2e8f2;
	--radius: 18px;
	--shadow: 0 18px 40px -18px rgba(15, 36, 83, .35);
	--shadow-sm: 0 6px 18px -8px rgba(15, 36, 83, .25);
	--serif: "Playfair Display", Georgia, "Times New Roman", serif;
	--sans: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	font-family: var(--sans);
	font-size: 17px;
	line-height: 1.65;
	color: var(--ink);
	background: var(--bg);
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--navy); }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; color: var(--navy); }
p { margin: 0 0 1em; }
svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.container { width: min(1200px, 100% - 40px); margin-inline: auto; }
.skip-link { position: absolute; left: -999px; top: 0; z-index: 999; background: var(--gold); color: var(--navy); padding: 10px 16px; font-weight: 700; }
.skip-link:focus { left: 12px; top: 12px; }

/* ---------- Tipografía utilitaria ---------- */
.eyebrow {
	display: inline-flex; align-items: center; gap: 10px;
	font-size: 13px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
	color: var(--blue); margin-bottom: 12px;
}
.eyebrow::before { content: ""; width: 28px; height: 3px; border-radius: 3px; background: currentColor; }
.eyebrow--gold { color: var(--gold); }
.eyebrow--navy { color: var(--navy); }
.section-title { font-family: var(--serif); font-weight: 800; font-size: clamp(28px, 3.4vw, 42px); letter-spacing: -.01em; }

/* ---------- Botones ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	padding: 14px 26px; border-radius: 999px; border: 2px solid transparent;
	font: 700 15px/1.1 var(--sans); letter-spacing: .02em; text-decoration: none; cursor: pointer;
	transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, color .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn--gold { background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: var(--navy); box-shadow: 0 10px 24px -10px rgba(232, 185, 49, .9); }
.btn--gold:hover { color: var(--navy); box-shadow: 0 16px 30px -12px rgba(232, 185, 49, 1); }
.btn--ghost { border-color: rgba(255, 255, 255, .55); color: #fff; background: rgba(255, 255, 255, .06); backdrop-filter: blur(6px); }
.btn--ghost:hover { background: #fff; color: var(--navy); }
.btn--blue { background: var(--blue); color: #fff; box-shadow: var(--shadow-sm); }
.btn--blue:hover { background: var(--navy); color: #fff; }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: #000c2b; color: #fff; }
.btn--outline-navy { border-color: var(--navy); color: var(--navy); }
.btn--outline-navy:hover { background: var(--navy); color: #fff; }

/* ---------- Franja bandera + barra superior ---------- */
.flagbar { display: flex; height: 5px; }
.flagbar span { flex: 1; }
.flagbar span:nth-child(1) { background: var(--navy); }
.flagbar span:nth-child(2) { background: var(--red); }
.flagbar span:nth-child(3) { background: var(--gold); }
.flagbar span:nth-child(4) { background: var(--blue); }

.topbar { background: var(--navy); color: #c9d4ee; font-size: 13.5px; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 40px; }
.topbar__gov { margin: 0; letter-spacing: .02em; }
.topbar__gov strong { color: #fff; }
.topbar__contact { display: flex; gap: 22px; margin: 0; padding: 0; list-style: none; }
.topbar__contact a { color: #fff; text-decoration: none; display: inline-flex; align-items: center; gap: 7px; }
.topbar__contact a:hover { color: var(--gold-2); }
.topbar__contact svg { color: var(--gold); fill: currentColor; stroke: none; }

/* ---------- Cabecera ---------- */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(255, 255, 255, .96); backdrop-filter: saturate(1.4) blur(10px);
	border-bottom: 1px solid var(--line);
	transition: box-shadow .3s;
}
.site-header.is-scrolled { box-shadow: 0 10px 30px -18px rgba(15, 36, 83, .45); }
.site-header__inner { display: flex; align-items: center; gap: 24px; min-height: 92px; transition: min-height .3s; }
.site-header.is-scrolled .site-header__inner { min-height: 74px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; margin-right: auto; }
.brand__shield { width: 62px; height: auto; filter: drop-shadow(0 4px 6px rgba(15, 36, 83, .25)); transition: width .3s; }
.site-header.is-scrolled .brand__shield { width: 48px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__kicker { font-size: 11px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: var(--red); }
.brand__name { font-family: var(--serif); font-weight: 800; font-size: 25px; color: var(--navy); margin: 3px 0; }
.brand__sub { font-size: 12.5px; font-weight: 600; color: var(--muted); letter-spacing: .04em; }

.main-nav ul { display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; }
.main-nav a {
	position: relative; display: block; padding: 12px 16px; border-radius: 10px;
	font-weight: 700; font-size: 15.5px; color: var(--navy); text-decoration: none; transition: color .2s, background .2s;
}
.main-nav a::after {
	content: ""; position: absolute; left: 16px; right: 16px; bottom: 6px; height: 3px; border-radius: 3px;
	background: linear-gradient(90deg, var(--gold), var(--red)); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.main-nav a:hover { color: var(--blue); background: #eef3fc; }
.main-nav a:hover::after, .main-nav a.is-active::after { transform: scaleX(1); }
.main-nav a.is-active { color: var(--blue); }

.nav-toggle { display: none; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line); background: #fff; color: var(--navy); font: 700 14px var(--sans); cursor: pointer; }
.nav-toggle__bars { display: grid; gap: 4px; width: 20px; }
.nav-toggle__bars span { height: 2px; background: currentColor; border-radius: 2px; transition: transform .3s, opacity .3s; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- HERO / Carrusel ---------- */
.hero {
	position: relative; isolation: isolate; overflow: hidden;
	background: var(--navy); color: #fff;
	padding: clamp(48px, 6vw, 84px) 0 clamp(110px, 12vw, 160px);
}
.hero__bgs, .hero__shade { position: absolute; inset: 0; z-index: -2; }
.hero__bg {
	position: absolute; inset: -40px; background-size: cover; background-position: center;
	filter: blur(28px) saturate(1.3) brightness(.75); transform: scale(1.1);
	opacity: 0; transition: opacity 1.4s var(--ease);
}
.hero__bg.is-active { opacity: 1; }
.hero__shade {
	z-index: -1;
	background:
		radial-gradient(1200px 500px at 85% 20%, rgba(43, 103, 204, .35), transparent 60%),
		linear-gradient(100deg, rgba(10, 26, 62, .96) 0%, rgba(15, 36, 83, .86) 42%, rgba(15, 36, 83, .45) 100%);
}
.hero__shade::after {
	content: ""; position: absolute; inset: 0; opacity: .14;
	background-image: radial-gradient(rgba(255, 255, 255, .7) 1px, transparent 1px); background-size: 22px 22px;
	mask-image: linear-gradient(90deg, #000, transparent 55%);
}
.hero__inner > * { min-width: 0; }
.hero__inner { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero__title { font-family: var(--serif); font-weight: 800; color: #fff; font-size: clamp(42px, 6vw, 76px); line-height: 1.02; letter-spacing: -.02em; margin-bottom: 20px; }
.hero__title span { display: block; background: linear-gradient(120deg, var(--gold-2), var(--gold) 55%, #ffe7a1); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__lead { font-size: clamp(17px, 1.5vw, 20px); color: #dbe4f7; max-width: 540px; margin-bottom: 30px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 38px; }
.hero__facts { display: flex; flex-wrap: wrap; gap: 0; margin: 0; padding: 0; list-style: none; border-top: 1px solid rgba(255, 255, 255, .18); padding-top: 22px; }
.hero__facts li { display: flex; flex-direction: column; padding-right: 28px; margin-right: 28px; border-right: 1px solid rgba(255, 255, 255, .18); }
.hero__facts li:last-child { border: 0; margin: 0; padding: 0; }
.hero__facts strong { font-family: var(--serif); font-size: 24px; color: var(--gold-2); }
.hero__facts span { font-size: 13px; color: #b9c6e4; letter-spacing: .05em; text-transform: uppercase; font-weight: 600; }

.hero__stage { position: relative; }
.stage {
	position: relative; aspect-ratio: 4 / 4.4; max-height: 600px; width: 100%;
	border-radius: 26px; overflow: hidden;
	box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .12);
	background: #0a1a3e;
}
.stage::before { /* marco dorado */
	content: ""; position: absolute; inset: 0; z-index: 4; pointer-events: none; border-radius: inherit;
	padding: 3px; background: linear-gradient(140deg, var(--gold-2), rgba(232, 185, 49, .1) 40%, rgba(232, 185, 49, .1) 60%, var(--gold));
	-webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
.stage__slide { position: absolute; inset: 0; margin: 0; opacity: 0; visibility: hidden; transition: opacity 1s var(--ease), visibility 1s; }
.stage__slide.is-active { opacity: 1; visibility: visible; }
.stage__slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); transition: transform 7s linear; }
.stage__slide.is-active img { transform: scale(1); }
.stage__slide figcaption {
	position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
	padding: 70px 26px 30px; display: flex; flex-direction: column; gap: 4px;
	background: linear-gradient(to top, rgba(8, 20, 50, .95), rgba(8, 20, 50, .55) 55%, transparent);
	transform: translateY(16px); opacity: 0; transition: transform .8s .35s var(--ease), opacity .8s .35s;
}
.stage__slide.is-active figcaption { transform: none; opacity: 1; }
.stage__slide figcaption strong { font-family: var(--serif); font-size: clamp(22px, 2.2vw, 30px); color: #fff; line-height: 1.15; }
.stage__slide figcaption span { color: var(--gold-2); font-weight: 600; font-size: 15px; }
.stage__nav {
	position: absolute; top: 50%; z-index: 5; translate: 0 -50%;
	width: 50px; height: 50px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .35);
	background: rgba(15, 36, 83, .45); backdrop-filter: blur(8px); color: #fff; cursor: pointer;
	display: grid; place-items: center; font-size: 22px; transition: background .25s, transform .25s, color .25s;
}
.stage__nav:hover { background: var(--gold); color: var(--navy); transform: scale(1.06); }
.stage__nav--prev { left: 16px; }
.stage__nav--next { right: 16px; }
.stage__progress { position: absolute; left: 0; right: 0; top: 0; height: 4px; z-index: 5; background: rgba(255, 255, 255, .15); }
.stage__progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--gold), var(--red)); }
.stage__progress span.is-running { animation: mbProgress var(--dur, 6s) linear forwards; }
.is-paused .stage__progress span { animation-play-state: paused; }
@keyframes mbProgress { from { width: 0; } to { width: 100%; } }

.stage__bar { display: flex; align-items: center; gap: 16px; margin-top: 18px; }
.stage__count { margin: 0; font-family: var(--serif); font-size: 20px; color: #fff; white-space: nowrap; }
.stage__count .js-current { color: var(--gold-2); font-size: 28px; }
.stage__thumbs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; flex: 1; padding: 4px; }
.stage__thumbs::-webkit-scrollbar { display: none; }
.thumb { flex: 0 0 auto; width: 54px; height: 54px; padding: 0; border-radius: 12px; overflow: hidden; border: 2px solid transparent; background: none; cursor: pointer; opacity: .55; transition: opacity .3s, border-color .3s, transform .3s; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb:hover { opacity: .9; transform: translateY(-2px); }
.thumb.is-active { opacity: 1; border-color: var(--gold); }
.stage__pause { width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .35); background: transparent; color: #fff; cursor: pointer; display: grid; place-items: center; font-size: 18px; }
.stage__pause:hover { border-color: var(--gold); color: var(--gold); }
.stage__pause .i-play { display: none; fill: currentColor; }
.is-paused .stage__pause .i-play { display: block; }
.is-paused .stage__pause .i-pause { display: none; }

.hero__wave, .page-hero__waves, .site-footer__wave, .islands__wave {
	position: absolute; left: 0; right: 0; height: 90px; pointer-events: none;
	background-repeat: no-repeat; background-size: 100% 100%;
}
.hero__wave { bottom: -1px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 90' preserveAspectRatio='none'%3E%3Cpath d='M0 40c180 30 360 45 540 30S900 10 1080 18s270 32 360 40v32H0z' fill='%23e8b931' opacity='.9'/%3E%3Cpath d='M0 58c200 26 380 34 560 18S920 30 1100 36s260 22 340 26v28H0z' fill='%23f6f8fc'/%3E%3C/svg%3E"); }

/* ---------- Accesos rápidos ---------- */
.quick { position: relative; z-index: 5; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: -86px; }
.quick__card {
	position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 6px;
	padding: 26px 24px 22px; border-radius: var(--radius); background: var(--card); text-decoration: none; color: var(--ink);
	box-shadow: var(--shadow); border-top: 5px solid var(--accent);
	transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.quick__card::after { content: ""; position: absolute; right: -40px; bottom: -40px; width: 130px; height: 130px; border-radius: 50%; background: var(--accent); opacity: .07; transition: transform .5s var(--ease); }
.quick__card:hover { transform: translateY(-8px); box-shadow: 0 30px 50px -22px rgba(15, 36, 83, .5); color: var(--ink); }
.quick__card:hover::after { transform: scale(2.4); }
.quick__card--blue { --accent: var(--blue); }
.quick__card--gold { --accent: var(--gold); }
.quick__card--red { --accent: var(--red); }
.quick__card--green { --accent: var(--green); }
.quick__icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-size: 26px; color: #fff; background: var(--accent); margin-bottom: 10px; box-shadow: 0 10px 20px -10px var(--accent); }
.quick__card--gold .quick__icon { color: var(--navy); }
.quick__title { font-family: var(--serif); font-size: 23px; font-weight: 800; color: var(--navy); }
.quick__text { font-size: 15px; color: var(--muted); line-height: 1.5; }
.quick__go { margin-top: auto; padding-top: 8px; font-size: 14px; font-weight: 800; color: var(--blue); letter-spacing: .03em; }

/* ---------- Secciones ---------- */
.section { padding: clamp(64px, 8vw, 104px) 0; position: relative; }
.section--tight { padding: 36px 0 0; }
.section--flush-top { padding-top: 28px; }
.section--tint { background: linear-gradient(180deg, #eaf1fb, #f6f8fc); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 40px; }
.section-head p { color: var(--muted); max-width: 620px; }
.section-head--center { flex-direction: column; align-items: center; text-align: center; }
.section-head--center .section-title { margin-bottom: 8px; }
.section-head__aside { margin: 0; font-size: 15px; }
.section-head--light .section-title { color: #fff; }
.section-head--light p { color: #d3e6f3; }

/* Bienvenida */
.welcome__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 90px); align-items: center; }
.welcome__crest { position: relative; display: grid; place-items: center; padding: 30px; }
.welcome__halo { position: absolute; inset: 6%; border-radius: 50%; background: radial-gradient(circle, rgba(232, 185, 49, .35), rgba(29, 79, 168, .12) 55%, transparent 70%); }
.welcome__halo::before, .welcome__halo::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px dashed rgba(29, 79, 168, .25); animation: mbSpin 60s linear infinite; }
.welcome__halo::after { inset: 12%; border: 2px solid rgba(232, 185, 49, .4); animation-direction: reverse; animation-duration: 90s; }
@keyframes mbSpin { to { transform: rotate(360deg); } }
.welcome__crest img { position: relative; width: min(320px, 80%); filter: drop-shadow(0 24px 30px rgba(15, 36, 83, .35)); animation: mbFloat 6s ease-in-out infinite; }
@keyframes mbFloat { 50% { transform: translateY(-10px); } }
.welcome__copy > p { color: #36405a; font-size: 18px; }
.mayor-quote { margin: 28px 0 30px; padding: 24px 28px; border-radius: var(--radius); background: var(--card); border-left: 5px solid var(--gold); box-shadow: var(--shadow-sm); }
.mayor-quote p { font-family: var(--serif); font-size: 19px; font-style: italic; color: var(--navy); margin-bottom: 12px; }
.mayor-quote footer { display: flex; flex-direction: column; }
.mayor-quote footer strong { color: var(--navy); }
.mayor-quote footer span { font-size: 14px; color: var(--muted); }

/* Corregimientos */
.islands { background: linear-gradient(160deg, var(--blue) 0%, var(--navy) 70%); color: #fff; overflow: hidden; }
.islands::before { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 300px at 10% 90%, rgba(143, 211, 236, .25), transparent 70%), radial-gradient(500px 260px at 95% 10%, rgba(232, 185, 49, .18), transparent 70%); }
.islands .container { position: relative; }
.islands__wave--top { top: -1px; height: 60px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60' preserveAspectRatio='none'%3E%3Cpath d='M0 0h1440v20c-200 30-420 40-720 20S180 10 0 30z' fill='%23f6f8fc'/%3E%3C/svg%3E"); }
.islands__wave--bottom { bottom: -1px; height: 60px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60' preserveAspectRatio='none'%3E%3Cpath d='M0 60h1440V36c-200-26-420-34-720-14S180 44 0 28z' fill='%23f6f8fc'/%3E%3C/svg%3E"); }
.islands__list { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; margin: 0; padding: 0; list-style: none; }
.islands__list li {
	position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px;
	padding: 26px 12px 22px; border-radius: var(--radius);
	background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .16); backdrop-filter: blur(6px);
	transition: transform .35s var(--ease), background .35s;
}
.islands__list li:hover { transform: translateY(-6px); background: rgba(255, 255, 255, .14); }
.islands__pin { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: var(--navy); background: radial-gradient(circle at 35% 30%, #fff8e1, var(--gold-2) 40%, var(--gold)); box-shadow: 0 8px 18px -6px rgba(232, 185, 49, .9); margin-bottom: 6px; }
.islands__list strong { font-family: var(--serif); font-size: 19px; line-height: 1.2; }
.islands__list em { font-style: normal; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-2); }

/* Galería mosaico */
.mosaic { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 210px; gap: 14px; }
.mosaic__item { position: relative; padding: 0; border: 0; border-radius: 16px; overflow: hidden; cursor: zoom-in; background: var(--navy); }
.mosaic__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease), opacity .4s; }
.mosaic__item:hover img { transform: scale(1.08); opacity: .85; }
.mosaic__item--1 { grid-area: 1 / 1 / 3 / 3; }
.mosaic__item--2 { grid-area: 1 / 3 / 2 / 4; }
.mosaic__item--3 { grid-area: 1 / 4 / 2 / 5; }
.mosaic__item--4 { grid-area: 2 / 3 / 4 / 4; }
.mosaic__item--5 { grid-area: 2 / 4 / 4 / 5; }
.mosaic__item--6 { grid-area: 3 / 1 / 4 / 3; }
.mosaic__cap { position: absolute; left: 12px; bottom: 12px; padding: 6px 12px; border-radius: 999px; background: rgba(15, 36, 83, .8); color: #fff; font-size: 13px; font-weight: 700; backdrop-filter: blur(6px); transform: translateY(8px); opacity: 0; transition: .35s var(--ease); }
.mosaic__item:hover .mosaic__cap, .mosaic__item:focus-visible .mosaic__cap { transform: none; opacity: 1; }

/* Banda CTA */
.cta-band { background: linear-gradient(120deg, var(--gold-2), var(--gold) 60%, #dca416); position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; right: -80px; top: -120px; width: 380px; height: 380px; border-radius: 50%; border: 50px solid rgba(255, 255, 255, .18); }
.cta-band__inner { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 54px 0; }
.cta-band h2 { font-family: var(--serif); font-size: clamp(24px, 2.8vw, 34px); color: var(--navy); max-width: 640px; }
.cta-band p { margin: 0; color: #3d3410; font-weight: 500; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 12px; flex-shrink: 0; }

/* Contacto rápido */
.contact-strip { padding: 64px 0; }
.contact-strip__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.contact-tile { display: flex; align-items: center; gap: 16px; padding: 22px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: border-color .3s, transform .3s var(--ease), box-shadow .3s; }
.contact-tile:hover { border-color: var(--blue); transform: translateY(-4px); box-shadow: var(--shadow-sm); color: var(--ink); }
.contact-tile__icon { flex: 0 0 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-size: 22px; color: #fff; background: linear-gradient(135deg, var(--blue-2), var(--navy)); }
.contact-tile__icon svg { fill: none; }
.contact-tile:first-child .contact-tile__icon svg, .contact-tile:last-child .contact-tile__icon svg { fill: currentColor; stroke: none; }
.contact-tile small { display: block; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.contact-tile strong { color: var(--navy); font-size: 17px; word-break: break-word; }

/* ---------- Cabecera de páginas internas ---------- */
.page-hero {
	position: relative; overflow: hidden; isolation: isolate; color: #fff;
	padding: clamp(56px, 7vw, 92px) 0 clamp(90px, 9vw, 120px);
	background:
		radial-gradient(700px 300px at 90% 0%, rgba(232, 185, 49, .28), transparent 70%),
		radial-gradient(600px 300px at 0% 100%, rgba(143, 211, 236, .25), transparent 70%),
		linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
}
.page-hero::before {
	content: ""; position: absolute; right: max(2vw, calc(50% - 640px)); top: 50%; translate: 0 -55%; z-index: -1;
	width: 300px; height: 392px; background: url("../img/escudo.webp") center / contain no-repeat; opacity: .14; filter: grayscale(.2);
}
.page-hero__inner { position: relative; }
.page-hero h1 { font-family: var(--serif); font-weight: 800; color: #fff; font-size: clamp(40px, 5.4vw, 64px); letter-spacing: -.02em; margin-bottom: 12px; }
.page-hero__lead { font-size: 19px; color: #d6e0f5; max-width: 640px; margin: 0; }
.page-hero__waves { bottom: -1px; height: 70px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 70' preserveAspectRatio='none'%3E%3Cpath d='M0 30c180 26 360 36 540 24S900 4 1080 12s270 26 360 32v26H0z' fill='%23e8b931' opacity='.85'/%3E%3Cpath d='M0 46c200 22 380 28 560 14S920 22 1100 28s260 18 340 22v20H0z' fill='%23f6f8fc'/%3E%3C/svg%3E"); }
.crumbs { display: flex; gap: 8px; align-items: center; font-size: 14px; color: #b9c6e4; margin-bottom: 18px; }
.crumbs a { color: #fff; text-decoration: none; font-weight: 600; }
.crumbs a:hover { color: var(--gold-2); }

/* ---------- Nosotros ---------- */
.mv { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.mv__card { position: relative; overflow: hidden; padding: 40px 36px; border-radius: 24px; background: var(--card); box-shadow: var(--shadow); border: 1px solid var(--line); }
.mv__card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--accent); }
.mv__card--mision { --accent: linear-gradient(var(--blue), var(--navy)); }
.mv__card--vision { --accent: linear-gradient(var(--gold-2), var(--gold)); }
.mv__card h2 { font-family: var(--serif); font-size: 38px; }
.mv__card p:last-child { color: #36405a; margin: 0; font-size: 17.5px; }
.mv__icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 18px; font-size: 32px; margin-bottom: 18px; color: #fff; background: linear-gradient(135deg, var(--blue-2), var(--navy)); box-shadow: 0 14px 24px -12px var(--blue); }
.mv__card--vision .mv__icon { color: var(--navy); background: linear-gradient(135deg, var(--gold-2), var(--gold)); box-shadow: 0 14px 24px -12px var(--gold); }

.mayor { display: grid; grid-template-columns: auto 1fr; gap: 48px; align-items: center; max-width: 960px; }
.mayor__badge { width: 220px; height: 220px; border-radius: 50%; display: grid; place-items: center; background: #fff; box-shadow: var(--shadow), inset 0 0 0 8px rgba(232, 185, 49, .35); }
.mayor__badge img { width: 120px; }
.mayor__role { font-weight: 800; color: var(--red); letter-spacing: .06em; text-transform: uppercase; font-size: 14px; }
.mayor__copy p:last-child { color: #36405a; margin: 0; }

.crest-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.crest-item { padding: 26px 22px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); transition: transform .3s var(--ease), box-shadow .3s; }
.crest-item:hover { transform: translateY(-5px); box-shadow: var(--shadow-sm); }
.crest-item h3 { font-family: var(--serif); font-size: 20px; margin: 14px 0 8px; }
.crest-item p { font-size: 15px; color: var(--muted); margin: 0; }
.crest-dot { display: block; width: 40px; height: 40px; border-radius: 12px; }
.crest-dot--red { background: var(--red); }
.crest-dot--sky { background: linear-gradient(135deg, var(--sky), var(--sea)); }
.crest-dot--blue { background: var(--blue); }
.crest-dot--gold { background: var(--gold); }
.crest-dot--green { background: var(--green); }

/* ---------- Avisos ---------- */
.notice { display: flex; gap: 16px; align-items: flex-start; padding: 20px 24px; border-radius: 16px; background: #eaf1fb; border: 1px solid #cddbf3; }
.notice p { margin: 0; color: #2c3a5c; }
.notice__icon { flex: 0 0 auto; font-size: 24px; color: var(--blue); margin-top: 2px; }
.notice--gold { background: var(--sand); border-color: #ecd9a2; }
.notice--gold .notice__icon { color: var(--gold-ink); }

/* ---------- Contenido editable (Elementor / editor) ---------- */
.entry { font-size: 17px; }
.entry img { border-radius: 14px; }
.entry--docs .elementor-section.elementor-section-boxed > .elementor-container,
.entry--docs .e-con-inner { max-width: 100% !important; }
.entry--docs .elementor-widget-heading .elementor-heading-title,
.entry--docs h2, .entry--docs h6 {
	font-family: var(--serif) !important; color: var(--navy) !important; font-weight: 800 !important; line-height: 1.25 !important;
}
.entry--docs h6, .entry--docs h6.elementor-heading-title {
	position: relative; margin: 48px 0 20px !important; padding: 18px 22px 18px 26px;
	font-size: clamp(18px, 1.8vw, 22px) !important; letter-spacing: 0 !important; text-transform: none !important;
	background: #fff; border-radius: 14px; border-left: 6px solid var(--gold); box-shadow: var(--shadow-sm);
}
.entry--docs h2, .entry--docs h2.elementor-heading-title {
	font-size: clamp(19px, 2vw, 24px) !important; margin: 36px 0 16px !important; padding-left: 16px; border-left: 4px solid var(--blue);
}
.entry--docs .elementor-widget-image img,
.entry--docs .wp-block-image img,
.entry--docs > p img {
	width: 100%; max-width: 520px; margin-inline: auto; border-radius: 14px; background: #fff;
	box-shadow: 0 20px 40px -24px rgba(15, 36, 83, .55); border: 1px solid var(--line);
	cursor: zoom-in; transition: transform .4s var(--ease), box-shadow .4s;
}
.entry--docs .elementor-widget-image img:hover { transform: translateY(-4px); box-shadow: 0 30px 50px -24px rgba(15, 36, 83, .7); }
.entry--docs .elementor-widget-image figcaption,
.entry--docs .widget-image-caption { font-size: 14px; color: var(--muted); text-align: center; margin-top: 10px; font-style: italic; }
.entry--docs .elementor-widget-image a[href$=".pdf"]::after { content: "Ver PDF ↗"; display: inline-block; margin-top: 12px; padding: 8px 16px; border-radius: 999px; background: var(--blue); color: #fff; font-weight: 700; font-size: 14px; }
.entry--docs .elementor-widget-image a[href$=".pdf"] { display: flex; flex-direction: column; align-items: center; text-decoration: none; }
.entry--docs .elementor-widget-container { margin: 0; }
.entry--docs .elementor-column-gap-default > .elementor-column > .elementor-element-populated { padding: 12px; }

/* ---------- Transparencia ---------- */
.docs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.doc-card { position: relative; padding: 28px 26px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); transition: transform .3s var(--ease), box-shadow .3s, border-color .3s; }
.doc-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: transparent; }
.doc-card__icon { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 14px; font-size: 26px; color: var(--blue); background: #eaf1fb; margin-bottom: 16px; }
.doc-card:nth-child(3n+2) .doc-card__icon { color: var(--gold-ink); background: var(--sand); }
.doc-card:nth-child(3n) .doc-card__icon { color: var(--red); background: #fbe9ec; }
.doc-card h3 { font-family: var(--serif); font-size: 21px; margin-bottom: 6px; }
.doc-card p { color: var(--muted); font-size: 15px; margin-bottom: 16px; }
.doc-card__status { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; background: #f1f4f9; color: var(--muted); }
.links-row { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.links-row__cards { display: flex; flex-wrap: wrap; gap: 16px; }
.ext-link { position: relative; display: flex; flex-direction: column; min-width: 260px; padding: 20px 52px 20px 22px; border-radius: 16px; background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: .3s var(--ease); }
.ext-link:hover { border-color: var(--blue); box-shadow: var(--shadow-sm); color: var(--ink); transform: translateY(-3px); }
.ext-link strong { color: var(--navy); font-size: 18px; }
.ext-link span { font-size: 14px; color: var(--muted); }
.ext-link em { position: absolute; right: 20px; top: 18px; font-style: normal; color: var(--blue); font-size: 20px; }

/* ---------- Contáctenos ---------- */
.contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: 36px; align-items: start; }
.contact__info { display: grid; gap: 16px; }
.info-card { display: flex; gap: 18px; padding: 24px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.info-card__icon { flex: 0 0 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; font-size: 24px; color: #fff; background: linear-gradient(135deg, var(--blue-2), var(--navy)); }
.info-card:nth-child(2) .info-card__icon { color: var(--navy); background: linear-gradient(135deg, var(--gold-2), var(--gold)); }
.info-card:nth-child(2) .info-card__icon svg, .info-card:nth-child(3) .info-card__icon svg { fill: currentColor; stroke: none; }
.info-card:nth-child(3) .info-card__icon { background: linear-gradient(135deg, #e0364f, var(--red)); }
.info-card h2 { font-family: var(--serif); font-size: 20px; margin-bottom: 4px; }
.info-card p { margin: 0; color: #36405a; }
.info-card a { font-weight: 700; text-decoration: none; }
.contact__form { padding: 36px; border-radius: 24px; background: var(--card); box-shadow: var(--shadow); border-top: 6px solid var(--gold); }
.contact__form .section-title { font-size: 32px; margin-bottom: 22px; }
.contact__form label { display: block; font-weight: 700; font-size: 14px; color: var(--navy); margin-bottom: 16px; }
.contact__form input, .contact__form select, .contact__form textarea {
	display: block; width: 100%; margin-top: 6px; padding: 13px 16px; border-radius: 12px; border: 1.5px solid var(--line);
	font: 400 16px var(--sans); color: var(--ink); background: #fbfcfe; transition: border-color .2s, box-shadow .2s;
}
.contact__form input:focus, .contact__form select:focus, .contact__form textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(29, 79, 168, .14); background: #fff; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact__hint { font-size: 13px; color: var(--muted); margin: 12px 0 0; }
.map-wrap { line-height: 0; border-top: 6px solid var(--gold); }
.map-wrap iframe { width: 100%; height: 420px; border: 0; filter: saturate(1.1); }

/* Entradas genéricas */
.post-item { padding: 24px 0; border-bottom: 1px solid var(--line); }
.post-item h2 { font-family: var(--serif); font-size: 26px; }
.post-item h2 a { color: var(--navy); text-decoration: none; }
.post-item__date { color: var(--muted); font-size: 14px; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 30px; background: rgba(6, 15, 38, .92); backdrop-filter: blur(6px); animation: mbFade .3s; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: min(1100px, 100%); max-height: 100%; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.lightbox img { max-height: calc(100vh - 120px); width: auto; border-radius: 12px; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }
.lightbox figcaption { color: #fff; font-weight: 600; text-align: center; }
.lightbox__close { position: absolute; top: 18px; right: 22px; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .4); background: transparent; color: #fff; font-size: 30px; line-height: 1; cursor: pointer; }
.lightbox__close:hover { background: var(--gold); color: var(--navy); }
@keyframes mbFade { from { opacity: 0; } }

/* ---------- Pie de página ---------- */
.site-footer { position: relative; background: linear-gradient(180deg, var(--navy) 0%, #0a1a3e 100%); color: #c4cfe8; padding-top: 110px; margin-top: 40px; }
.site-footer__wave { top: -1px; height: 70px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 70' preserveAspectRatio='none'%3E%3Cpath d='M0 0h1440v26c-160 20-340 32-560 22S260 18 0 34z' fill='%23f6f8fc'/%3E%3Cpath d='M0 34c260-16 480-6 700 12s440 6 740-20' stroke='%23e8b931' stroke-width='3' fill='none'/%3E%3C/svg%3E"); }
.site-footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr 1.2fr; gap: 40px; padding-bottom: 50px; }
.site-footer__brand { display: flex; gap: 18px; align-items: flex-start; }
.site-footer__brand img { width: 84px; flex-shrink: 0; filter: drop-shadow(0 10px 16px rgba(0, 0, 0, .4)); }
.site-footer__name { font-family: var(--serif); font-size: 26px; font-weight: 800; color: #fff; margin: 0 0 4px; }
.site-footer__tag { font-size: 14px; color: var(--gold-2); font-weight: 600; margin-bottom: 14px; }
.site-footer__motto { font-family: var(--serif); font-style: italic; font-size: 16px; color: #aebbd9; margin: 0; }
.site-footer__title { font-family: var(--sans); font-size: 13px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-bottom: 18px; }
.site-footer__links, .site-footer__contact { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--gold-2); }
.site-footer__links a { display: inline-flex; gap: 8px; align-items: center; }
.site-footer__links a::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.site-footer__contact span { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: #8d9cc0; }
.site-footer__bottom { border-top: 1px solid rgba(255, 255, 255, .1); }
.site-footer__bottom-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 0; font-size: 14px; }
.site-footer__bottom p { margin: 0; }
.to-top { font-weight: 700; }

/* ---------- Animación al hacer scroll ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
	.crest-grid { grid-template-columns: repeat(3, 1fr); }
	.islands__list { grid-template-columns: repeat(3, 1fr); }
	.site-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 980px) {
	.nav-toggle { display: inline-flex; }
	.main-nav { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 4px solid var(--gold); box-shadow: 0 20px 30px -20px rgba(15, 36, 83, .4); max-height: 0; overflow: hidden; transition: max-height .4s var(--ease); }
	.main-nav.is-open { max-height: 420px; }
	.main-nav ul { flex-direction: column; padding: 12px 20px 20px; gap: 2px; }
	.main-nav a { padding: 14px 12px; font-size: 17px; border-bottom: 1px solid var(--line); border-radius: 0; }
	.main-nav a::after { left: 12px; right: auto; width: 40px; bottom: 8px; }
	.hero__inner { grid-template-columns: minmax(0, 1fr); }
	.hero__copy { text-align: left; }
	.stage { aspect-ratio: 4 / 4; }
	.quick { grid-template-columns: 1fr 1fr; }
	.welcome__grid, .mv, .contact { grid-template-columns: 1fr; }
	.welcome__crest { max-width: 360px; margin-inline: auto; }
	.docs-grid { grid-template-columns: 1fr 1fr; }
	.cta-band__inner, .links-row { flex-direction: column; align-items: flex-start; }
	.mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
	.mosaic__item { grid-area: auto !important; }
	.mosaic__item--1, .mosaic__item--6 { grid-column: span 2 !important; }
	.contact-strip__grid { grid-template-columns: 1fr; }
	.mayor { grid-template-columns: 1fr; justify-items: start; gap: 28px; }
}
@media (max-width: 640px) {
	body { font-size: 16px; }
	.container { width: calc(100% - 32px); }
	.topbar__gov { display: none; }
	.topbar__inner { justify-content: center; }
	.topbar__contact { gap: 16px; font-size: 13px; }
	.site-header__inner { min-height: 76px; gap: 12px; }
	.brand__shield { width: 46px; }
	.brand__name { font-size: 20px; }
	.brand__kicker { font-size: 10px; }
	.brand__sub { display: none; }
	.nav-toggle__label { display: none; }
	.hero__facts { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; }
	.hero__facts li { padding-right: 14px; margin-right: 14px; }
	.hero__facts strong { font-size: 17px; }
	.hero__actions .btn { flex: 1 1 100%; }
	.hero__facts span { font-size: 11px; }
	.stage { aspect-ratio: 4 / 4.6; border-radius: 20px; }
	.stage__nav { width: 42px; height: 42px; }
	.stage__count { font-size: 16px; }
	.stage__count .js-current { font-size: 22px; }
	.thumb { width: 44px; height: 44px; }
	.quick { grid-template-columns: 1fr; margin-top: -70px; }
	.islands__list { grid-template-columns: 1fr 1fr; }
	.crest-grid, .docs-grid { grid-template-columns: 1fr; }
	.field-row { grid-template-columns: 1fr; }
	.contact__form { padding: 26px 20px; }
	.mv__card { padding: 30px 24px; }
	.page-hero::before { width: 170px; height: 220px; right: -30px; opacity: .1; }
	.site-footer__grid { grid-template-columns: 1fr; gap: 30px; }
	.site-footer__bottom-inner { flex-direction: column; text-align: center; }
	.ext-link { min-width: 0; width: 100%; }
	.links-row__cards { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
	.reveal { opacity: 1; transform: none; }
}
