/* ==========================================================================
   Prosperar — sistema visual
   ========================================================================== */
@font-face {
	font-family: 'Plus Jakarta Sans';
	font-style: normal;
	font-display: swap;
	font-weight: 200 800;
	src: url(../fonts/plus-jakarta-sans-latin-wght-normal.woff2) format('woff2-variations');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: 'Plus Jakarta Sans';
	font-style: normal;
	font-display: swap;
	font-weight: 200 800;
	src: url(../fonts/plus-jakarta-sans-latin-ext-wght-normal.woff2) format('woff2-variations');
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
	/* Paleta oficial CORSOPRO (60 % blanco · 30 % azul · 10 % verde y naranja) */
	--blue: #11436D;          /* Azul institucional: títulos e iconos */
	--blue-dark: #0B2E4B;     /* Footer y fondos oscuros */
	--blue-light: #3E7FB3;    /* Apoyo: infografías */
	--green: #419C3E;         /* Verde institucional: acentos e iconos */
	--green-light: #7BC96F;   /* Verde claro: sobre fondos oscuros */
	--orange: #E38519;        /* Naranja institucional: detalles */
	--orange-light: #F5B35C;
	--green-700: #26652A;     /* Hover de botones */
	--green-600: #2F7A2D;     /* Botones y enlaces (verde oficial oscurecido para contraste AA) */
	--green-400: var(--green-light);
	--green-50: #EDF6EC;
	--navy-900: var(--blue);
	--ink: #1F2937;
	--muted: #4B5563;         /* Gris oscuro oficial */
	--line: #E5E7EB;          /* Gris claro oficial */
	--surface: #F3F6F9;
	--font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--radius-s: 8px;
	--radius-m: 12px;
	--radius-l: 18px;
	--shadow: 0 1px 2px rgba(16, 48, 74, .06), 0 8px 24px rgba(16, 48, 74, .07);
	--shadow-lift: 0 2px 4px rgba(16, 48, 74, .08), 0 18px 40px rgba(16, 48, 74, .12);
	--container: 1320px;
	--gutter: clamp(1.25rem, 4vw, 2.5rem);
	--header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; font-family: var(--font); font-size: 1.0625rem; line-height: 1.6; color: var(--ink); background: #fff; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.02em; margin: 0; font-weight: 800; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
:focus-visible { outline: 3px solid var(--green-400); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 100; background: var(--blue); color: #fff; padding: .75rem 1rem; border-radius: var(--radius-s); }
.skip-link:focus { top: 1rem; }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }

/* Botones y enlaces */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; min-height: 48px; padding: .75rem 1.5rem; border-radius: 999px; font: 700 .95rem/1.2 var(--font); text-decoration: none; cursor: pointer; border: 2px solid transparent; transition: background-color .2s, border-color .2s, color .2s; }
.btn svg { width: 18px; height: 18px; transition: transform .2s; }
.btn:hover svg.arrow { transform: translateX(3px); }
.btn-primary { background: var(--green-600); color: #fff; }
.btn-primary:hover { background: var(--green-700); color: #fff; }
.btn-ghost-light { border-color: rgba(255,255,255,.75); color: #fff; }
.btn-ghost-light:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.btn-sm { min-height: 42px; padding: .55rem 1.15rem; font-size: .875rem; }
.link-more { display: inline-flex; align-items: center; gap: .45rem; color: var(--green-600); font-weight: 700; font-size: .95rem; text-decoration: none; }
.link-more svg { width: 18px; height: 18px; transition: transform .2s; }
.link-more:hover { text-decoration: underline; text-underline-offset: 4px; }
.link-more:hover svg { transform: translateX(3px); }
.ctas { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }

/* Secciones */
.section { padding-block: clamp(3.5rem, 7vw, 5.5rem); }
.section-tight { padding-block: clamp(2rem, 4vw, 3.5rem) clamp(3rem, 6vw, 5rem); }
.section-alt { background: var(--surface); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.75rem; }
.section-title { display: flex; align-items: flex-end; gap: 1rem; flex-wrap: wrap; }
.heading { display: grid; gap: .9rem; }
.heading-mark { display: flex; gap: 5px; align-items: center; }
.heading-mark span:first-child { width: 28px; height: 3px; border-radius: 2px; background: var(--green-600); }
.heading-mark span:last-child { width: 8px; height: 3px; border-radius: 2px; background: var(--orange); }
.heading h2, .heading h3 { font-size: clamp(1.75rem, 3vw, 2.25rem); color: var(--navy-900); }
.heading-light h2 { color: #fff; }

/* Pendiente (solo usuarios con sesión) */
.pendiente { display: inline-block; vertical-align: middle; font: 700 .7rem/1 var(--font); letter-spacing: .02em; color: #7A4B00; background: #FFF1CC; border: 1px dashed #D9A300; padding: .3rem .5rem; border-radius: 6px; width: fit-content; }

/* Logo */
.logo { --s: 50px; display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; }
.logo-mark { flex: none; display: grid; place-items: center; }
.logo-mark img { height: var(--s); width: auto; }
.logo { --s: 54px; }
.logo-word { display: grid; line-height: 1; }
.logo-small { font-size: calc(var(--s) * .17); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--green); }
.logo-big { font-size: calc(var(--s) * .3); font-weight: 800; letter-spacing: -.01em; text-transform: uppercase; color: var(--navy-900); margin-top: .2em; line-height: 1.02; }
.logo-light { --s: 56px; }
.logo-light .logo-mark { background: #fff; border-radius: 14px; padding: 7px 9px; }
.logo-light .logo-mark img { height: calc(var(--s) - 12px); }
.logo-light .logo-small { color: var(--green-400); }
.logo-light .logo-big { color: #fff; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid transparent; transition: box-shadow .2s, border-color .2s; }
.site-header.scrolled { border-color: var(--line); box-shadow: 0 4px 18px rgba(16, 48, 74, .07); }
.bar { display: flex; align-items: center; gap: 1.5rem; height: var(--header-h); max-width: 1360px; }
.brand { flex: none; display: block; text-decoration: none; }
.nav { margin-inline: auto; }
.menu { display: flex; align-items: center; gap: .15rem; }
.menu .item { position: relative; display: flex; align-items: center; }
.menu .top { display: block; padding: .65rem .55rem; font-size: .875rem; font-weight: 600; color: var(--ink); text-decoration: none; white-space: nowrap; position: relative; }
.menu .top:hover, .menu .top.active { color: var(--green-600); }
.menu .top.active::after { content: ''; position: absolute; left: .55rem; right: .55rem; bottom: -12px; height: 3px; border-radius: 3px 3px 0 0; background: var(--green-600); }
.menu .has-sub .top { padding-right: .1rem; }
.sub-toggle { display: grid; place-items: center; width: 22px; height: 28px; padding: 0; background: none; border: 0; color: var(--muted); cursor: pointer; border-radius: 4px; }
.sub-toggle[aria-expanded='true'] svg { transform: rotate(180deg); }
.sub { position: absolute; top: calc(100% + 10px); left: 0; min-width: 240px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-m); box-shadow: var(--shadow-lift); padding: .5rem; display: none; z-index: 5; }
.sub::before { content: ''; position: absolute; inset: -12px 0 auto; height: 12px; }
.sub a { display: block; padding: .6rem .8rem; border-radius: var(--radius-s); font-size: .9rem; font-weight: 500; text-decoration: none; color: var(--ink); }
.sub a:hover, .sub a:focus-visible { background: var(--green-50); color: var(--green-700); }
.sub-toggle[aria-expanded='true'] + .sub { display: block; }
@media (hover: hover) and (min-width: 1181px) { .has-sub:hover .sub { display: block; } }
.actions { display: flex; align-items: center; gap: .5rem; flex: none; }
.icon-btn { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 999px; background: none; border: 0; color: var(--ink); cursor: pointer; text-decoration: none; }
.icon-btn:hover { background: var(--surface); }
.menu-btn { display: none; }
.menu-btn .i-close { display: none; }
.menu-btn[aria-expanded='true'] .i-open { display: none; }
.menu-btn[aria-expanded='true'] .i-close { display: block; }
.nav-cta { display: none; }
.search-panel { border-top: 1px solid var(--line); background: #fff; padding-block: 1rem; }
.search-form { display: flex; gap: .5rem; max-width: 640px; }
.search-form input[type=search] { flex: 1; min-height: 46px; padding: .6rem 1rem; border: 1.5px solid var(--line); border-radius: 999px; font: inherit; }
.search-form input[type=search]:focus { border-color: var(--green-600); outline: none; box-shadow: 0 0 0 3px var(--green-50); }
@media (max-width: 1180px) {
	:root { --header-h: 68px; }
	.brand { transform: scale(.9); transform-origin: left center; }
	.menu-btn { display: grid; }
	.actions .cta { display: none; }
	.nav { position: fixed; inset: var(--header-h) 0 0 0; background: #fff; padding: 1rem var(--gutter) 2rem; overflow-y: auto; display: none; border-top: 1px solid var(--line); }
	.nav.open { display: block; }
	.menu { flex-direction: column; align-items: stretch; gap: 0; }
	.menu .item { flex-wrap: wrap; border-bottom: 1px solid var(--line); }
	.menu .top { flex: 1; font-size: 1.05rem; padding: 1rem 0; }
	.menu .top.active::after { display: none; }
	.sub-toggle { width: 48px; height: 48px; }
	.sub { position: static; flex-basis: 100%; box-shadow: none; border: 0; padding: 0 0 .75rem .5rem; min-width: 0; }
	.sub a { font-size: 1rem; padding: .7rem .8rem; }
	.nav-cta { display: flex; margin-top: 1.5rem; width: 100%; min-height: 52px; font-size: 1rem; }
	body.menu-open { overflow: hidden; }
}

/* Hero */
.hero { position: relative; isolation: isolate; overflow: hidden; color: #fff; min-height: clamp(560px, 50vw, 720px); display: flex; align-items: center; background: var(--blue-dark); }
.hero-bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 72% center; }
.hero-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(8,30,50,.88) 0%, rgba(8,30,50,.64) 38%, rgba(8,30,50,.14) 70%, rgba(8,30,50,0) 100%), linear-gradient(0deg, rgba(8,30,50,.45) 0%, rgba(8,30,50,0) 35%); }
.hero-inner { max-width: 1360px; padding-block: 4rem 6.5rem; }
.hero-kicker { color: var(--orange-light); font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 1.25rem; opacity: .95; }
.hero h1 { font-size: clamp(2.4rem, 5.2vw, 4.25rem); line-height: 1.04; letter-spacing: -0.035em; max-width: 12ch; }
.hero .hl { color: var(--green-400); }
.hero-lead { font-size: clamp(1.05rem, 1.4vw, 1.2rem); max-width: 46ch; margin-top: 1.4rem; color: rgba(255,255,255,.92); }
.hero .ctas { margin-top: 2.25rem; }
.hero-tagline { position: absolute; right: var(--gutter); bottom: 5.5rem; font-size: .95rem; font-weight: 500; line-height: 1.4; text-shadow: 0 1px 8px rgba(0,0,0,.45); }
@media (min-width: 1440px) { .hero-tagline { right: calc((100vw - 1360px) / 2 + var(--gutter)); } }
@media (max-width: 860px) {
	.hero-tagline { display: none; }
	.hero-shade { background: linear-gradient(0deg, rgba(8,30,50,.9) 0%, rgba(8,30,50,.62) 55%, rgba(8,30,50,.35) 100%); }
	.hero { align-items: flex-end; }
	.hero-bg { object-position: 76% top; }
	.hero-inner { padding-block: 7rem 5.5rem; }
}
@media (max-width: 420px) { .hero .ctas .btn { width: 100%; } }

/* Indicadores */
.stats-wrap { position: relative; z-index: 2; margin-top: -3.5rem; }
.stats-empty { margin-top: 0; }
.stats { display: grid; grid-template-columns: repeat(var(--cols, 4), 1fr); background: #fff; border-radius: var(--radius-l); box-shadow: var(--shadow-lift); padding: 2rem 1rem; }
.stat { display: flex; gap: 1.1rem; align-items: flex-start; padding: .25rem 1.75rem; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat-ic { color: var(--green); flex: none; margin-top: .35rem; }
.stat-num { font-size: 2rem; font-weight: 800; line-height: 1; color: var(--navy-900); letter-spacing: -0.02em; display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.stat-t { font-weight: 600; margin-top: .4rem; font-size: .95rem; }
.stat-d { font-size: .8rem; color: var(--muted); line-height: 1.4; margin-top: .2rem; max-width: 24ch; }
@media (max-width: 1024px) { .stats { grid-template-columns: repeat(2, 1fr); row-gap: 1.75rem; } .stat:nth-child(3) { border-left: 0; } }
@media (max-width: 560px) { .stats { padding: 1.5rem .5rem; } .stat { flex-direction: column; gap: .6rem; padding: .25rem 1rem; } .stat-num { font-size: 1.65rem; } }

/* Quiénes somos */
.about { padding-top: calc(clamp(3.5rem, 7vw, 5.5rem) + 1rem); }
.stats-empty + .about { padding-top: clamp(3.5rem, 7vw, 5.5rem); }
.about-grid { display: grid; grid-template-columns: 1.05fr 1.15fr .95fr; gap: 2rem; align-items: center; }
.about-intro { display: grid; gap: 1.25rem; justify-items: start; }
.about-intro p { color: var(--muted); max-width: 46ch; }
.pilares { display: grid; grid-template-columns: repeat(3, 1fr); background: #fff; border-radius: var(--radius-l); box-shadow: var(--shadow); padding: 1.5rem .5rem; }
.pilares li + li { border-left: 1px solid var(--line); }
.pilar { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .55rem; padding: .75rem 1rem; text-decoration: none; color: inherit; height: 100%; border-radius: var(--radius-m); }
.pilar-ic { color: var(--green); }
.pilar h3 { font-size: 1.1rem; color: var(--navy-900); }
.pilar p { font-size: .82rem; color: var(--muted); line-height: 1.45; flex: 1; }
.go { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 999px; border: 1.5px solid var(--green-600); color: var(--green-600); margin-top: .5rem; transition: background-color .2s, color .2s; flex: none; }
.pilar:hover .go, .pilar:focus-visible .go { background: var(--green-600); color: #fff; }
.pilar:hover h3 { color: var(--green-700); }
.about-photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-l); }
@media (max-width: 1100px) { .about-grid { grid-template-columns: 1fr 1fr; } .about-intro { grid-column: 1 / -1; } }
@media (max-width: 720px) {
	.about-grid { grid-template-columns: 1fr; }
	.pilares { grid-template-columns: 1fr; padding: .25rem 1.25rem; }
	.pilares li + li { border-left: 0; border-top: 1px solid var(--line); }
	.pilar { display: grid; grid-template-columns: 40px 1fr 30px; grid-template-areas: 'ic t go' 'ic p go'; text-align: left; align-items: center; column-gap: 1rem; row-gap: .1rem; padding: 1rem 0; }
	.pilar-ic { grid-area: ic; } .pilar h3 { grid-area: t; } .pilar p { grid-area: p; } .pilar .go { grid-area: go; margin: 0; }
}

/* Líneas de acción */
.track { display: grid; grid-template-columns: repeat(var(--n, 5), 1fr); gap: 1rem; }
.track-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.25rem; }
.linea-card { display: flex; flex-direction: column; height: 100%; overflow: hidden; text-decoration: none; border-radius: var(--radius-m); background: var(--accent); color: #fff; box-shadow: var(--shadow); transition: transform .25s ease, box-shadow .25s ease; }
.linea-card .band { display: flex; align-items: center; gap: .65rem; padding: .9rem .85rem; min-height: 72px; }
.linea-card .band svg { flex: none; }
.linea-card .name { font-weight: 700; font-size: .92rem; line-height: 1.2; }
.linea-img { width: 100%; aspect-ratio: 4 / 3.3; object-fit: cover; transition: transform .4s ease; display: block; }
.linea-img-empty { background: rgba(255,255,255,.15); }
.linea-card:hover, .linea-card:focus-visible { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.linea-card:hover .linea-img { transform: scale(1.04); }
@media (max-width: 1200px) {
	.track:not(.track-grid) { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(200px, 30%); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 1rem; scrollbar-width: thin; }
	.track:not(.track-grid) li { scroll-snap-align: start; }
}
@media (max-width: 640px) { .track:not(.track-grid) { grid-auto-columns: 72%; } }

/* Territorio y aliados */
.territorio { padding-top: 1rem; }
.terr-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 1.5rem; }
.terr-grid.solo { grid-template-columns: 1fr; }
.panel { border-radius: var(--radius-l); padding: clamp(1.5rem, 3vw, 2.25rem); }
.exp { background: var(--surface); display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; align-items: center; }
.exp .heading h2 { font-size: clamp(1.6rem, 2.4vw, 2rem); }
.exp-copy { display: grid; gap: 1.1rem; justify-items: start; }
.exp-copy p { color: var(--muted); font-size: .95rem; }
.exp-map, .mapa { display: grid; justify-items: center; gap: .5rem; margin: 0; }
.mapa svg { width: 100%; height: auto; max-height: 460px; }
.mpios path { fill: #DCE7F0; stroke: #fff; stroke-width: 1.2; stroke-linejoin: round; }
.mpios path.on { fill: #B7DDB3; }
.pins circle { fill: var(--orange); stroke: #fff; stroke-width: 2; }
.pins text { font: 700 13px var(--font); fill: var(--navy-900); paint-order: stroke; stroke: rgba(255,255,255,.9); stroke-width: 4px; stroke-linejoin: round; }
.aliados { background: #fff; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 1.25rem; }
.aliados-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.aliados-head h2 { display: flex; align-items: center; gap: .75rem; font-size: clamp(1.4rem, 2.2vw, 1.75rem); color: var(--navy-900); }
.ali-ic { color: var(--green); }
.logos { display: grid; grid-template-columns: repeat(4, 1fr); gap: .75rem; }
.logos li { display: grid; place-items: center; min-height: 92px; padding: .75rem; border: 1px solid var(--line); border-radius: var(--radius-m); text-align: center; }
.logo-ali { max-height: 64px; width: auto; filter: grayscale(1); opacity: .8; transition: filter .2s, opacity .2s; }
.logos li:hover .logo-ali { filter: none; opacity: 1; }
.ali-name { font-size: .8rem; font-weight: 600; color: var(--muted); line-height: 1.3; }
@media (max-width: 1100px) { .terr-grid { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .exp { grid-template-columns: 1fr; } .logos { grid-template-columns: repeat(2, 1fr); } }

/* Noticias */
.actualidad { padding-top: 1.5rem; }
.news-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.news-card { position: relative; display: grid; grid-template-columns: 150px 1fr; gap: 1.1rem; height: 100%; background: #fff; border-radius: var(--radius-m); box-shadow: var(--shadow); padding: .75rem; transition: box-shadow .25s; }
.news-card:hover { box-shadow: var(--shadow-lift); }
.news-img { width: 100%; height: 100%; min-height: 120px; object-fit: cover; border-radius: var(--radius-s); }
.news-img-empty { display: grid; place-items: center; background: var(--surface); color: #A8B4BF; }
.news-body { display: flex; flex-direction: column; gap: .4rem; padding-block: .25rem; }
.news-body time, .news-body .kind { font-size: .8rem; color: var(--muted); }
.news-body h3 { font-size: 1rem; line-height: 1.3; color: var(--navy-900); letter-spacing: -0.01em; }
.news-body h3 a { text-decoration: none; color: inherit; }
.stretched::after { content: ''; position: absolute; inset: 0; border-radius: var(--radius-m); }
.news-card:hover h3 a { color: var(--green-700); }
.news-foot { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; margin-top: auto; }
.tag { font-size: .75rem; font-weight: 700; padding: .3rem .75rem; border-radius: 999px; border: 1px solid; }
.tag-green { color: var(--green-700); background: var(--green-50); border-color: #BFE0C8; }
.tag-blue { color: #1F4F86; background: #EAF1FA; border-color: #C6D8EE; }
.tag-orange { color: #8A4A07; background: #FFF4E5; border-color: #F2D3A5; }
.news-foot .go { margin: 0 0 0 auto; border-color: var(--line); color: var(--navy-900); }
.news-card:hover .go { background: var(--green-600); border-color: var(--green-600); color: #fff; }
.empty-state { background: var(--surface); border-radius: var(--radius-l); padding: 2rem; display: grid; gap: .75rem; justify-items: start; }
.empty-state p { color: var(--muted); }
@media (max-width: 1100px) { .news-list { grid-template-columns: 1fr; } .news-card { grid-template-columns: 180px 1fr; } }
@media (max-width: 520px) { .news-card { grid-template-columns: 1fr; } .news-img { aspect-ratio: 16 / 9; height: auto; } }
.news-grid { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
@media (max-width: 1100px) { .news-grid { grid-template-columns: 1fr; } }

/* Banda final */
.cta-band { position: relative; isolation: isolate; overflow: hidden; color: #fff; background: var(--blue-dark); margin-top: 1rem; }
.cta-bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: center 60%; }
.cta-band::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(11,46,75,.92) 0%, rgba(11,46,75,.74) 50%, rgba(11,46,75,.45) 100%); }
.cta-inner { display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap; padding-block: 3rem; }
.cta-kicker { color: var(--orange-light); font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-bottom: .5rem; }
.cta-band h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); max-width: 24ch; letter-spacing: -0.02em; }
@media (max-width: 520px) { .cta-band .ctas .btn { width: 100%; } }

/* Footer */
.site-footer { background: var(--blue-dark); color: rgba(255,255,255,.78); font-size: .9rem; }
.footer-grid { display: grid; gap: 2.5rem; padding-block: 3.5rem 2.5rem; grid-template-columns: 1.3fr 1.1fr 1.4fr .9fr; }
.footer-logo { display: inline-block; margin-bottom: 1rem; text-decoration: none; }
.footer-about p { max-width: 34ch; }
.site-footer h2 { font-size: .95rem; color: #fff; margin-bottom: 1rem; letter-spacing: 0; display: flex; gap: .5rem; align-items: center; }
.site-footer ul { display: grid; gap: .55rem; }
.footer-cols { grid-template-columns: repeat(2, max-content); column-gap: 2.5rem; }
.site-footer a { color: rgba(255,255,255,.78); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.contact-list li { display: grid; grid-template-columns: 20px 1fr; gap: .75rem; align-items: start; }
.site-footer .contact-list svg { color: var(--green-400); margin-top: 2px; }
.social { display: flex !important; gap: .5rem; margin-top: 1.25rem; }
.social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 999px; border: 1px solid rgba(255,255,255,.25); }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-block: 1.25rem 1.5rem; border-top: 1px solid rgba(255,255,255,.12); font-size: .8rem; }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* Páginas internas */
.page-head { background: var(--surface); padding-block: clamp(2rem, 4vw, 3rem); }
.page-head h1 { font-size: clamp(2rem, 4vw, 2.75rem); color: var(--navy-900); display: flex; align-items: center; gap: .75rem; }
.page-head-accent { background: var(--accent); }
.page-head-accent h1, .page-head-accent .crumbs, .page-head-accent .crumbs a { color: #fff; }
.page-intro { color: var(--muted); max-width: 60ch; margin-top: .75rem; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; margin: 0 0 .75rem; list-style: none; font-size: .85rem; color: var(--muted); }
.crumbs li + li::before { content: '/'; margin-right: .5rem; }
.crumbs a { color: var(--muted); }
.entry { display: grid; gap: 1.5rem; }
.entry-narrow { max-width: 800px; }
.entry h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); color: var(--navy-900); }
.entry .meta { font-size: .85rem; color: var(--muted); }
.entry .meta a { color: var(--green-700); }
.entry-cover { width: 100%; border-radius: var(--radius-l); max-height: 520px; object-fit: cover; }
.prose { max-width: 72ch; font-size: 1.075rem; }
.prose > * + * { margin-top: 1em; }
.prose h2 { font-size: 1.6rem; margin-top: 1.6em; color: var(--navy-900); }
.prose h3 { font-size: 1.25rem; margin-top: 1.4em; color: var(--navy-900); }
.prose a { color: var(--green-700); }
.prose ul { list-style: disc; padding-left: 1.4em; }
.prose ol { padding-left: 1.4em; }
.prose img { border-radius: var(--radius-m); }
.en-prep { display: grid; gap: 1.25rem; max-width: 680px; }
.en-prep p { color: var(--muted); }
.sub-title { font-size: 1.5rem; color: var(--navy-900); margin-top: 1rem; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: .75rem; margin: 0; }
.facts div { background: var(--surface); border-radius: var(--radius-m); padding: .9rem 1rem; }
.facts dt { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.facts dd { margin: .2rem 0 0; font-weight: 600; }
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.75rem; }
.chip { padding: .45rem 1rem; border: 1.5px solid var(--line); border-radius: 999px; font-size: .875rem; font-weight: 600; text-decoration: none; color: var(--ink); }
.chip:hover { border-color: var(--green-600); color: var(--green-700); }
.chip.on { background: var(--green-600); border-color: var(--green-600); color: #fff; }
.search-again { margin-bottom: 1.75rem; }
.pager { margin-top: 2rem; }
.pager .nav-links { display: flex; gap: .4rem; flex-wrap: wrap; }
.pager .page-numbers { display: grid; place-items: center; min-width: 42px; height: 42px; padding: 0 .75rem; border-radius: 999px; border: 1.5px solid var(--line); text-decoration: none; font-weight: 600; }
.pager .current { background: var(--green-600); border-color: var(--green-600); color: #fff; }
.err-page { display: grid; gap: 1.25rem; }
.err-code { color: var(--green-600); font-weight: 700; }
.err-page h1 { font-size: clamp(2rem, 4vw, 2.75rem); color: var(--navy-900); }
.err-page p { color: var(--muted); }

/* Contacto */
.contact-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 2.5rem; align-items: start; }
.contact-card { background: var(--surface); border-radius: var(--radius-l); padding: 1.75rem; display: grid; gap: 1.25rem; position: sticky; top: calc(var(--header-h) + 1rem); }
.contact-card h2 { font-size: 1.25rem; color: var(--navy-900); display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.contact-card .contact-list { display: grid; gap: .9rem; }
.contact-card .contact-list svg { color: var(--green-600); margin-top: 2px; }
.contact-card a { color: var(--ink); }
.contact-form { display: grid; gap: 1rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-l); padding: clamp(1.25rem, 3vw, 2rem); }
.contact-form .grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.contact-form label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .35rem; }
.contact-form input:not([type=checkbox]), .contact-form select, .contact-form textarea { width: 100%; min-height: 48px; padding: .7rem .9rem; border: 1.5px solid #CBD3DA; border-radius: var(--radius-s); font: inherit; font-size: 1rem; background: #fff; color: var(--ink); }
.contact-form textarea { resize: vertical; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { border-color: var(--green-600); outline: none; box-shadow: 0 0 0 3px var(--green-50); }
.contact-form .check label { display: flex; gap: .6rem; align-items: flex-start; font-weight: 500; }
.contact-form .check input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--green-600); }
.contact-form .check a { color: var(--green-700); }
.contact-form .btn { justify-self: start; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { padding: 1rem 1.25rem; border-radius: var(--radius-m); margin-bottom: 1rem; font-weight: 600; }
.form-msg.ok { background: var(--green-50); color: var(--green-700); border: 1px solid #BFE0C8; }
.form-msg.err { background: #FDECEA; color: #A2281A; border: 1px solid #F3C2BC; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } .contact-card { position: static; } }
@media (max-width: 560px) { .contact-form .grid2 { grid-template-columns: 1fr; } .contact-form .btn { width: 100%; } }

/* Contenido de bloques de WordPress */
.alignwide { max-width: 1100px; }
.alignfull { width: 100vw; margin-left: calc(50% - 50vw); }
.wp-caption-text, figcaption { font-size: .85rem; color: var(--muted); margin-top: .4rem; }

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

/* Por qué elegirnos */
.porque-grid { display: grid; grid-template-columns: .9fr 1.4fr; gap: 3rem; align-items: center; background: var(--surface); border-radius: var(--radius-l); padding: clamp(1.75rem, 4vw, 3rem); }
.porque-intro { display: grid; gap: 1.1rem; justify-items: start; }
.porque-intro p { color: var(--muted); }
.porque-list { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem 1.5rem; }
.porque-list li { display: flex; gap: .7rem; align-items: flex-start; font-weight: 600; line-height: 1.4; }
.pq-ic { color: var(--green); flex: none; margin-top: 1px; }
@media (max-width: 960px) { .porque-grid { grid-template-columns: 1fr; gap: 1.75rem; } }
@media (max-width: 600px) { .porque-list { grid-template-columns: 1fr; } }

/* Proyectos / casos */
.casos { padding-top: 1.5rem; }
.proj-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.25rem; list-style: none; padding: 0; margin: 0; }
.prose .proj-grid { list-style: none; padding: 0; margin-block: 1.25rem 2rem; max-width: none; }
.prose:has(.proj-grid) { max-width: none; }
.prose:has(.proj-grid) > :not(.proj-grid) { max-width: 72ch; }
.proj-card { position: relative; display: flex; flex-direction: column; height: 100%; background: #fff; border-radius: var(--radius-m); box-shadow: var(--shadow); overflow: hidden; transition: box-shadow .25s, transform .25s; }
.proj-card:hover { box-shadow: var(--shadow-lift); transform: translateY(-3px); }
.proj-img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; display: block; margin: 0 !important; border-radius: 0 !important; }
.proj-img-empty { background: var(--surface); }
.proj-body { display: flex; flex-direction: column; gap: .5rem; padding: 1.1rem 1.2rem 1.3rem; }
.proj-meta { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; font-size: .78rem; color: var(--muted); font-weight: 600; margin: 0 !important; }
.proj-year { background: var(--blue); color: #fff; padding: .2rem .6rem; border-radius: 999px; }
.proj-card h3 { font-size: 1.05rem; line-height: 1.3; color: var(--blue); margin: 0 !important; }
.proj-card h3 a { color: inherit; text-decoration: none; }
.proj-card:hover h3 a { color: var(--green-700); }
.proj-terr { display: flex; gap: .4rem; align-items: flex-start; font-size: .85rem; color: var(--muted); margin: 0 !important; }
.proj-terr svg { color: var(--orange); flex: none; margin-top: 2px; }

/* Servicios (archivo) */
.serv-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.5rem; }
.serv-card { position: relative; display: flex; flex-direction: column; height: 100%; background: #fff; border-radius: var(--radius-l); box-shadow: var(--shadow); overflow: hidden; border-top: 5px solid var(--accent); transition: box-shadow .25s, transform .25s; }
.serv-card:hover { box-shadow: var(--shadow-lift); transform: translateY(-3px); }
.serv-img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.serv-body { display: flex; flex-direction: column; gap: .75rem; padding: 1.4rem 1.5rem 1.6rem; flex: 1; }
.serv-ic { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--accent); color: #fff; margin-top: -2.9rem; box-shadow: var(--shadow); }
.serv-card h2 { font-size: 1.3rem; color: var(--blue); }
.serv-card h2 a { color: inherit; text-decoration: none; }
.serv-card p { color: var(--muted); flex: 1; }
.serv-card .link-more { margin-top: .25rem; }

/* Etiqueta de marca en página interna */
.page-head { border-bottom: 3px solid transparent; border-image: linear-gradient(90deg, var(--blue) 60%, var(--green) 60% 85%, var(--orange) 85%) 1; }
