/*
Theme Name: Prospek
Theme URI: https://prospek.ec/
Author: Prospek
Description: Tema a medida para Prospek — consultoría en gestión tecnológica y transformación digital. Incluye portada con autodiagnóstico de madurez digital, formulario de diagnóstico, suscripción a artículos y registro de contactos en el panel.
Version: 1.1.0
Requires at least: 6.4
Tested up to: 7.2
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: prospek
*/

/* ---------- Tokens ---------- */
:root {
	--ink: #06142B;
	--ink-2: #091A35;
	--ink-3: #0E2546;
	--navy: #0C284D;
	--royal: #1B4C8E;
	--blue: #2457C5;
	--cyan: #12D6D6;
	--teal: #0F7F9A;
	--text: #0C284D;
	--muted: #4B5563;
	--muted-dark: #B8C6DB;
	--line: #DDE4EE;
	--line-dark: #24497B;
	--soft: #F4F7FB;
	--mint: #E3F8F8;
	--white: #FFFFFF;
	--grad: linear-gradient(90deg, #2457C5 0%, #12D6D6 100%);
	--radius: 22px;
	--font: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
	--display: Montserrat, Inter, system-ui, sans-serif;
	--mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
	margin: 0;
	font-family: var(--font);
	font-size: 17px;
	line-height: 1.6;
	color: var(--text);
	background: var(--white);
	-webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--royal); }
a:hover { color: var(--navy); }
h1, h2, h3, h4 { margin: 0; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; border-radius: 4px; }
[id] { scroll-margin-top: 24px; }

.screen-reader-text {
	position: absolute !important;
	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: 16px; top: -60px; z-index: 100;
	padding: 10px 16px; border-radius: 8px;
	background: var(--white); color: var(--navy); font-weight: 600;
}
.skip-link:focus { top: 12px; }

.wrap { width: 100%; max-width: 1248px; margin: 0 auto; padding: 0 24px; }
.wrap--narrow { max-width: 868px; }
.wrap--text { max-width: 768px; }

/* ---------- Decoración ---------- */
.dots { background-image: radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px); background-size: 24px 24px; }
.dots-light { background-image: radial-gradient(rgba(12, 40, 77, .08) 1px, transparent 1px); background-size: 24px 24px; }
.glow { position: absolute; border-radius: 50%; pointer-events: none; }
.glow--hero { width: 640px; height: 640px; right: -120px; top: -180px; background: radial-gradient(circle, rgba(18, 214, 214, .26) 0%, rgba(36, 87, 197, .18) 40%, rgba(6, 20, 43, 0) 70%); }
.glow--quiz { width: 560px; height: 560px; left: -180px; bottom: -220px; background: radial-gradient(circle, rgba(36, 87, 197, .30) 0%, rgba(6, 20, 43, 0) 70%); }
.glow--contact { width: 480px; height: 480px; right: -160px; top: -200px; background: radial-gradient(circle, rgba(18, 214, 214, .22) 0%, rgba(6, 20, 43, 0) 70%); }
.glow--page { width: 560px; height: 560px; right: -140px; top: -200px; background: radial-gradient(circle, rgba(18, 214, 214, .22) 0%, rgba(36, 87, 197, .14) 40%, rgba(6, 20, 43, 0) 70%); }
.glow--card { width: 360px; height: 360px; right: -60px; top: -120px; background: radial-gradient(circle, rgba(18, 214, 214, .30) 0%, rgba(6, 20, 43, 0) 70%); }
.grad-text { background: linear-gradient(90deg, #4C8DFF 0%, #12D6D6 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Tipografía ---------- */
.eyebrow { font-family: var(--mono); font-size: 14px; color: var(--royal); margin-bottom: 12px; }
.eyebrow--cyan { color: var(--cyan); }
.h-sec { font-family: var(--display); font-weight: 800; font-size: clamp(30px, 3.6vw, 44px); line-height: 1.12; letter-spacing: -.02em; }
.lead { font-size: 18px; color: var(--muted); margin-top: 14px; max-width: 640px; }
.lead-dark { font-size: 19px; color: var(--muted-dark); max-width: 500px; }
.muted { color: var(--muted); }
.muted-dark { color: var(--muted-dark); }
.small { font-size: 15px; }
.mono { font-family: var(--mono); font-size: 13px; color: var(--royal); }
.mono--cyan { color: var(--cyan); }
.mono--light { color: #CFF6F6; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.stack--lg { gap: 18px; }
.link-arrow { font-weight: 600; text-decoration: none; }
.link-arrow:hover { text-decoration: underline; }

/* ---------- Botones ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	min-height: 50px; padding: 0 26px;
	border-radius: 999px; border: 1px solid transparent;
	font: inherit; font-weight: 700; font-size: 16px;
	text-decoration: none; cursor: pointer;
	transition: transform .15s ease, box-shadow .2s ease, background-color .2s ease, border-color .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--sm { min-height: 44px; padding: 0 20px; font-size: 15px; }
.btn--lg { min-height: 56px; padding: 0 30px; }
.btn--block { width: 100%; }
.btn--grad { background: var(--grad); color: var(--white); }
.btn--grad:hover { color: var(--white); box-shadow: 0 10px 26px rgba(18, 214, 214, .28); }
.btn--ghost { border-color: #3A5A88; color: var(--white); font-weight: 500; }
.btn--ghost:hover { border-color: var(--cyan); color: var(--white); }
.btn--outline-cyan { border-color: var(--cyan); color: var(--cyan); }
.btn--outline-cyan:hover { background: var(--cyan); color: var(--ink); }
.btn--blue { background: var(--royal); color: var(--white); }
.btn--blue:hover { background: var(--navy); color: var(--white); }
.btn--line { border-color: #C3CEDD; color: var(--navy); background: var(--white); font-weight: 600; }
.btn--line:hover { border-color: var(--royal); color: var(--royal); }
.btn--white { background: var(--white); color: var(--navy); }
.btn--white:hover { color: var(--royal); }
.btn--ghost-light { border-color: rgba(255, 255, 255, .6); color: var(--white); font-weight: 600; }
.btn--ghost-light:hover { border-color: var(--white); color: var(--white); }
.btn--wa { align-self: flex-start; background: #1E7A4C; color: var(--white); font-weight: 600; }
.btn--wa:hover { background: #17633D; color: var(--white); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Chips y etiquetas ---------- */
.chip { display: inline-flex; align-items: center; padding: 4px 12px; border-radius: 999px; background: var(--mint); color: #0C4F5E; font-family: var(--mono); font-size: 13px; }
.chip--cyan { background: rgba(18, 214, 214, .12); color: var(--cyan); }
.chip--lg { padding: 6px 14px; font-family: var(--font); font-size: 15px; font-weight: 700; }
.pill { display: inline-flex; align-self: flex-start; align-items: center; gap: 10px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line-dark); background: rgba(18, 214, 214, .08); font-family: var(--mono); font-size: 13px; color: var(--cyan); }
.pill__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); }
.tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { padding: 8px 14px; border-radius: 999px; background: var(--mint); color: #0C4F5E; font-size: 14px; font-weight: 600; }
.tags--white li { background: var(--white); border: 1px solid var(--line); color: var(--navy); }
.post-meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font-family: var(--mono); font-size: 13px; color: var(--muted); }
.post-meta--dark { color: #A9BBD6; }
.post-meta span:not(.chip) + span::before { content: "·"; margin-right: 10px; }

/* ---------- Encabezado ---------- */
.site-header { position: relative; z-index: 20; background: var(--ink); color: var(--white); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 84px; }
.brand { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; color: var(--white); text-decoration: none; }
.brand:hover { color: var(--white); }
.brand__icon { width: 42px; height: 42px; border-radius: 50%; background: var(--white); }
.brand__name { font-family: var(--display); font-size: 22px; font-weight: 800; letter-spacing: .06em; }
.brand--custom img { max-height: 46px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 26px; }
.site-nav__list a { color: #C9D6EA; text-decoration: none; font-size: 15px; font-weight: 500; }
.site-nav__list a:hover, .site-nav__list .current-menu-item > a { color: var(--white); }
.nav-toggle { display: none; align-items: center; justify-content: center; width: 48px; height: 48px; border: 1px solid #3A5A88; border-radius: 12px; background: transparent; color: var(--white); cursor: pointer; }

@media (max-width: 920px) {
	.nav-toggle { display: inline-flex; }
	.site-nav {
		display: none;
		position: absolute; left: 0; right: 0; top: 100%;
		flex-direction: column; align-items: stretch; gap: 16px;
		padding: 16px 24px 24px;
		background: var(--ink); border-top: 1px solid #1B355C;
		box-shadow: 0 20px 40px rgba(0, 0, 0, .35);
	}
	.site-nav.is-open { display: flex; }
	.site-nav__list { flex-direction: column; gap: 0; }
	.site-nav__list a { display: flex; align-items: center; min-height: 48px; font-size: 17px; }
}

/* ---------- Portada ---------- */
.hero { position: relative; overflow: hidden; background-color: var(--ink); color: var(--white); }
.hero__grid { position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 48px; align-items: center; padding-top: 48px; padding-bottom: 40px; }
.hero__text { display: flex; flex-direction: column; gap: 24px; }
.hero__title { font-family: var(--display); font-weight: 800; font-size: clamp(38px, 5.4vw, 68px); line-height: 1.05; letter-spacing: -.03em; }
.hero__lead { font-size: 20px; color: var(--muted-dark); max-width: 540px; }
.hero__art { display: flex; justify-content: center; }
.hero__art svg { width: 100%; max-width: 560px; }

.stats-wrap { position: relative; padding-bottom: 64px; }
.stats { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1px; background: #1B355C; border: 1px solid #1B355C; border-radius: 18px; overflow: hidden; }
.stats__item { display: flex; flex-direction: column; gap: 4px; padding: 24px 28px; background: var(--ink-2); }
.stats__num { order: -1; margin: 0; font-family: var(--display); font-size: 40px; font-weight: 800; line-height: 1; }
.stats__label { color: #A9BBD6; font-size: 15px; }

/* Animaciones */
@keyframes pk-flow { to { stroke-dashoffset: -48; } }
@keyframes pk-grow { from { transform: scaleY(.12); } to { transform: scaleY(1); } }
@keyframes pk-pulse { 0%, 100% { transform: scale(1); opacity: .85; } 50% { transform: scale(1.1); opacity: 1; } }
@keyframes pk-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.flow { stroke-dasharray: 4 8; animation: pk-flow 1.8s linear infinite; }
.bar { transform-box: fill-box; transform-origin: bottom; animation: pk-grow 1.4s cubic-bezier(.2, .8, .2, 1) both; }
.hub { transform-box: fill-box; transform-origin: center; animation: pk-pulse 2.8s ease-in-out infinite; }
.rise { animation: pk-rise .9s ease-out both; }
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
	.flow, .bar, .hub, .rise { animation: none; }
	.js .reveal { opacity: 1; transform: none; transition: none; }
	.btn:hover, .card:hover { transform: none; }
}

/* ---------- Secciones ---------- */
.section { position: relative; padding: 96px 0; }
.section--tight { padding: 56px 0 72px; }
.section--soft { background-color: var(--soft); }
.section--line { border-top: 1px solid var(--line); }
.section--dark { overflow: hidden; background-color: var(--ink); color: var(--white); }
.section-head { margin-bottom: 40px; max-width: 720px; }
.section-head--split { max-width: none; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px; }
.section-head--split > div { max-width: 700px; }
.split { position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 48px; align-items: center; }
.split--start { align-items: start; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 16px; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 20px; margin-top: 16px; }

/* ---------- Tarjetas ---------- */
.card {
	position: relative;
	display: flex; flex-direction: column; gap: 12px;
	padding: 32px;
	background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
	color: var(--text); text-decoration: none;
	transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.card:hover { border-color: var(--cyan); transform: translateY(-3px); box-shadow: 0 16px 32px rgba(6, 20, 43, .10); color: var(--text); }
.card--sm { padding: 24px; gap: 8px; border-radius: 18px; }
.card--sm h3 { font-size: 18px; font-weight: 700; }
.card--soft { background: var(--soft); }
.card--dark { background: var(--ink); border-color: var(--ink); color: var(--white); }
.card--dark:hover { color: var(--white); }
.card--grad { background: linear-gradient(135deg, #1B4C8E 0%, #0F7F9A 100%); border-color: var(--royal); color: var(--white); }
.card--grad p:not(.mono) { color: #E3EDF8; }
.card--grad:hover { color: var(--white); }
.card--row { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding: 28px 32px; }
.card--row .stack { max-width: 640px; gap: 8px; }
.card__title { font-family: var(--display); font-size: 22px; font-weight: 700; line-height: 1.25; }
.card__title--lg { font-size: 26px; font-weight: 800; }
.icon--blue { color: var(--royal); }

.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px; }
.bento__s2 { grid-column: span 2; }
.bento__s4 { grid-column: span 4; }
.bento__s6 { grid-column: span 6; }
.bento__feature { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 28px; align-items: center; }
@media (max-width: 900px) {
	.bento { grid-template-columns: minmax(0, 1fr); }
	.bento__s2, .bento__s4, .bento__s6 { grid-column: auto; }
}

.roadmap { padding: 18px; border-radius: 16px; background: var(--ink-3); border: 1px solid var(--line-dark); display: flex; flex-direction: column; gap: 12px; }
.roadmap__head { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 12px; color: #A9BBD6; }
.roadmap__bars { display: flex; flex-direction: column; gap: 8px; }
.roadmap__bars span { display: block; height: 10px; border-radius: 5px; background: var(--blue); }
.roadmap__bars span:nth-child(2) { background: #2F7ACF; }
.roadmap__bars .is-grad { background: linear-gradient(90deg, #2F7ACF, #12D6D6); }
.roadmap__bars .is-cyan { background: var(--cyan); }

/* ---------- Autodiagnóstico ---------- */
.inline-facts { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 20px; color: #A9BBD6; font-size: 15px; }
.inline-facts li { display: inline-flex; align-items: center; gap: 8px; }
.inline-facts .icon { color: var(--cyan); }
.quiz { position: relative; min-height: 430px; padding: 32px; border-radius: 24px; background: var(--white); color: var(--text); box-shadow: 0 30px 60px rgba(0, 0, 0, .35); }
.quiz__pane { display: flex; flex-direction: column; gap: 18px; }
.quiz__pane[hidden] { display: none; }
.quiz__top { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 13px; color: var(--muted); }
.meter { height: 6px; border-radius: 3px; background: #E6ECF4; overflow: hidden; }
.meter--lg { height: 10px; border-radius: 5px; }
.meter__fill { display: block; height: 100%; border-radius: inherit; background: var(--grad); transition: width .4s ease; }
.quiz__q { font-family: var(--display); font-size: 23px; font-weight: 700; line-height: 1.3; outline: none; }
.quiz__options { display: flex; flex-direction: column; gap: 10px; }
.quiz__opt {
	display: flex; align-items: center; gap: 14px; width: 100%; min-height: 56px; padding: 12px 16px;
	border: 1px solid var(--line); border-radius: 14px; background: var(--white);
	font: inherit; font-size: 16px; color: var(--text); text-align: left; cursor: pointer;
	transition: border-color .15s ease, background-color .15s ease;
}
.quiz__opt:hover { border-color: var(--cyan); background: #EEFBFB; }
.quiz__letter { flex-shrink: 0; width: 30px; height: 30px; border-radius: 8px; background: #EEF3FA; color: var(--royal); font-family: var(--mono); font-size: 14px; display: flex; align-items: center; justify-content: center; }
.quiz__back { align-self: flex-start; min-height: 44px; padding: 0 4px; border: 0; background: none; font: inherit; font-size: 15px; color: var(--royal); cursor: pointer; }
.quiz__back[hidden] { display: none; }
.quiz__score-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 14px; }
.quiz__score { font-family: var(--display); font-size: 64px; font-weight: 800; line-height: 1; color: var(--royal); }
.quiz__score small { font-size: 28px; color: var(--muted); }
.quiz__text { font-size: 17px; color: #334155; }

/* ---------- Método ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 28px; }
.steps__item { display: flex; flex-direction: column; gap: 14px; }
.steps__item h3 { font-size: 20px; font-weight: 700; }
.steps__head { display: flex; align-items: center; gap: 12px; }
.steps__num { flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: var(--cyan); font-family: var(--display); font-weight: 800; display: flex; align-items: center; justify-content: center; }
.steps__num--grad { background: linear-gradient(135deg, #2457C5, #12D6D6); color: var(--white); }
.steps__line { flex-grow: 1; height: 3px; border-radius: 2px; background: var(--grad); }

/* ---------- Artículos ---------- */
.post-card { padding: 28px; gap: 10px; }
.post-card--feature, .post-card--grid { padding: 0; overflow: hidden; }
.post-card__media { position: relative; height: 240px; overflow: hidden; background: var(--ink); }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-card__media--art { display: flex; align-items: center; justify-content: center; background-color: var(--ink); }
.post-card__media--art svg { position: relative; }
.post-card--grid .post-card__media { height: 200px; }
.post-card__body { display: flex; flex-direction: column; gap: 10px; padding: 28px 32px 32px; }
.post-card--grid .post-card__body { padding: 24px 26px 28px; }
.post-card__title { font-family: var(--display); font-size: 20px; font-weight: 700; line-height: 1.3; }
.post-card__title--lg { font-size: 26px; font-weight: 800; line-height: 1.25; }
.post-stack { display: flex; flex-direction: column; gap: 20px; }
.post-stack .post-card { flex-grow: 1; }
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 24px; }

.newsletter { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 24px 28px; border-radius: 20px; background: var(--soft); border: 1px solid var(--line); }
.section--soft .newsletter { background: var(--white); }
.newsletter__title { font-weight: 700; font-size: 18px; }
.newsletter__sub { color: var(--muted); font-size: 15px; }
.newsletter__form { display: flex; flex-wrap: wrap; gap: 10px; flex-grow: 1; justify-content: flex-end; }
.newsletter__form input { min-height: 48px; min-width: 0; flex: 1 1 220px; max-width: 340px; padding: 0 18px; border: 1px solid #C3CEDD; border-radius: 999px; font: inherit; background: var(--white); color: var(--text); }
.newsletter .form-notice { flex-basis: 100%; }

.cat-filter { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.cat-filter a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid #3A5A88; color: #C9D6EA; text-decoration: none; font-size: 15px; }
.cat-filter a:hover { border-color: var(--cyan); color: var(--white); }
.cat-filter a[aria-current="page"] { background: var(--cyan); border-color: var(--cyan); color: var(--ink); font-weight: 600; }

.pagination { margin-top: 32px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; color: var(--navy); }
.pagination .page-numbers.current { background: var(--royal); border-color: var(--royal); color: var(--white); }

/* ---------- Encabezados de página / artículo ---------- */
.page-hero { position: relative; overflow: hidden; background-color: var(--ink); color: var(--white); }
.page-hero__inner { position: relative; display: flex; flex-direction: column; gap: 18px; padding-top: 40px; padding-bottom: 64px; }
.page-hero--compact .page-hero__inner { padding-bottom: 48px; }
.page-hero--full .page-hero__inner { padding-top: 96px; padding-bottom: 120px; }
.page-hero__title { font-family: var(--display); font-weight: 800; font-size: clamp(32px, 4.4vw, 52px); line-height: 1.1; letter-spacing: -.02em; }
.page-hero__lead { font-size: 20px; color: var(--muted-dark); max-width: 680px; }
.back-link { display: inline-flex; align-self: flex-start; align-items: center; gap: 8px; min-height: 44px; color: #C9D6EA; text-decoration: none; font-size: 15px; font-weight: 500; }
.back-link:hover { color: var(--white); }
.article__cover { margin-top: 40px; margin-bottom: 0; }
.article__cover img { width: 100%; border-radius: 20px; display: block; }

/* Contenido editable (entradas y páginas) */
.entry-content { padding-top: 56px; padding-bottom: 32px; font-size: 18px; line-height: 1.75; }
.entry-content--page { padding-bottom: 80px; }
.entry-content > * + * { margin-top: 22px; }
.entry-content h2 { font-family: var(--display); font-weight: 800; font-size: 28px; line-height: 1.25; letter-spacing: -.01em; margin-top: 48px; }
.entry-content h3 { font-size: 21px; font-weight: 700; margin-top: 32px; }
.entry-content h2 + *, .entry-content h3 + * { margin-top: 12px; }
.entry-content ul, .entry-content ol { padding-left: 24px; }
.entry-content li + li { margin-top: 10px; }
.entry-content img { border-radius: 16px; }
.entry-content figcaption { font-size: 14px; color: var(--muted); margin-top: 8px; }
.entry-content blockquote, .entry-content .wp-block-quote, .entry-content .wp-block-pullquote {
	margin: 36px 0; padding: 28px 32px; border: 0; border-radius: 20px; background: var(--ink); color: var(--white);
}
.entry-content blockquote p, .entry-content .wp-block-pullquote p { font-family: var(--display); font-size: 23px; font-weight: 700; line-height: 1.4; }
.entry-content blockquote cite { display: block; margin-top: 12px; font-size: 14px; color: var(--muted-dark); font-style: normal; }
.entry-content a { text-underline-offset: 3px; }
.entry-content table { width: 100%; border-collapse: collapse; font-size: 16px; }
.entry-content th, .entry-content td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.entry-content .wp-block-table { overflow-x: auto; }

.cta-box { margin: 24px 0 72px; padding: 36px; border-radius: 24px; background: linear-gradient(135deg, #1B4C8E 0%, #0F7F9A 100%); color: var(--white); display: flex; flex-direction: column; gap: 14px; }
.cta-box p { color: #E3EDF8; }
.cta-box .cta-box__title { font-family: var(--display); font-size: 26px; font-weight: 800; line-height: 1.25; color: var(--white); }
.cta-box .btn-row { margin-top: 6px; }

/* ---------- Contacto ---------- */
.contact-box { position: relative; overflow: hidden; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 48px; align-items: start; padding: clamp(28px, 5vw, 56px); border-radius: 28px; background: var(--ink); color: var(--white); }
.contact-box__info { position: relative; }
.contact-list { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 14px; color: #DCE5F2; }
.contact-list li { display: flex; gap: 12px; align-items: flex-start; }
.contact-list .icon { flex-shrink: 0; color: var(--cyan); margin-top: 2px; }
.contact-list a { color: #DCE5F2; }
.contact-list a:hover { color: var(--white); }

.form { position: relative; display: flex; flex-direction: column; gap: 16px; padding: 28px; border-radius: 20px; background: var(--white); color: var(--text); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 15px; font-weight: 500; }
.field input, .field textarea { width: 100%; min-height: 48px; padding: 0 14px; border: 1px solid #C3CEDD; border-radius: 12px; font: inherit; background: var(--white); color: var(--text); }
.field textarea { padding: 12px 14px; resize: vertical; }
.field input:focus, .field textarea:focus, .newsletter__form input:focus { border-color: var(--royal); outline: 3px solid rgba(18, 214, 214, .35); outline-offset: 0; }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); gap: 16px; }
.form__legal { font-size: 13px; color: var(--muted); }
.form__diag { padding: 12px 14px; border-radius: 12px; background: var(--mint); color: #0C4F5E; font-size: 15px; font-weight: 500; }
.form__diag[hidden] { display: none; }
.form-notice { padding: 12px 16px; border-radius: 12px; font-size: 15px; font-weight: 500; }
.form-notice--ok { background: #E3F6EC; color: #11613A; }
.form-notice--error { background: #FDECEC; color: #9B1C1C; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Pie ---------- */
.site-footer { background: var(--ink); color: #A9BBD6; font-size: 15px; }
.site-footer a { color: #A9BBD6; }
.site-footer a:hover { color: var(--white); }
.site-footer__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px; padding-top: 48px; padding-bottom: 28px; }
.site-footer__brand { display: flex; flex-direction: column; gap: 12px; max-width: 380px; }
.site-footer__brand .brand__icon { width: 40px; height: 40px; }
.site-footer__brand .brand__name { font-size: 20px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: flex-start; }
.footer-nav__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px 28px; }
.site-footer__bottom { padding-top: 16px; padding-bottom: 32px; border-top: 1px solid #1B355C; font-size: 14px; color: #8EA1BD; }

.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 50; display: flex; align-items: center; justify-content: center; width: 58px; height: 58px; border-radius: 50%; background: #1E7A4C; color: var(--white); box-shadow: 0 10px 26px rgba(0, 0, 0, .25); transition: transform .15s ease; }
.wa-float:hover { color: var(--white); transform: scale(1.06); }

/* ---------- Proyectos propios ---------- */
.section--flush { padding-top: 24px; }
.chip--outline { background: transparent; border: 1px solid #3A5A88; color: #C9D6EA; }
.project-list { position: relative; display: flex; flex-direction: column; gap: 28px; }
.project-feature {
	display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 40px; align-items: center;
	padding: clamp(24px, 4vw, 44px); border-radius: 28px;
	background: rgba(14, 37, 70, .72); border: 1px solid var(--line-dark);
}
.project-feature__text { display: flex; flex-direction: column; gap: 16px; }
.project-feature__name { font-family: var(--display); font-size: clamp(34px, 4vw, 48px); font-weight: 800; letter-spacing: -.02em; line-height: 1.05; }
.project-feature__name a { color: var(--white); text-decoration: none; }
.project-feature__name a:hover { color: var(--cyan); }
.project-feature__lema { font-size: 20px; font-weight: 600; color: var(--white); }
.project-feature__visual { display: block; }
.feature-chips { list-style: none; margin: 4px 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.feature-chips li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: rgba(18, 214, 214, .08); border: 1px solid #24497B; color: #DCE5F2; font-size: 14px; font-weight: 500; }
.feature-chips .icon { color: var(--cyan); }
.project-visual { border-radius: 22px; overflow: hidden; box-shadow: 0 30px 60px rgba(0, 0, 0, .35); }
.project-visual svg { display: block; width: 100%; height: auto; }
.project-visual--img img { display: block; width: 100%; height: auto; }

.page-hero--project .project-hero { position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 48px; align-items: center; padding-top: 32px; padding-bottom: 80px; }
.project-hero__text { display: flex; flex-direction: column; gap: 18px; }
.project-hero__name { font-family: var(--display); font-weight: 800; font-size: clamp(44px, 6vw, 76px); line-height: 1; letter-spacing: -.03em; }
.project-hero__lema { font-family: var(--display); font-size: clamp(22px, 2.4vw, 28px); font-weight: 700; line-height: 1.25; background: linear-gradient(90deg, #4C8DFF 0%, #12D6D6 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.project-hero__for { color: #DCE5F2; }
.project-hero__for span { font-family: var(--mono); font-size: 13px; color: #A9BBD6; margin-right: 6px; }

.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 20px; }
.feature-card { gap: 10px; }
.feature-card__icon { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 14px; background: var(--mint); color: var(--royal); }
.feature-card__title { font-family: var(--display); font-size: 20px; font-weight: 700; }
.cta-box--wide { margin: 0; }
.pagination--dark .page-numbers { border-color: var(--line-dark); color: #DCE5F2; }

/* ---------- Clases de WordPress ---------- */
.alignwide { max-width: 1000px; margin-left: auto; margin-right: auto; }
.alignfull { width: 100vw; max-width: none; margin-left: calc(50% - 50vw); }
.aligncenter { margin-left: auto; margin-right: auto; display: block; }
.alignleft { float: left; margin: 0 24px 16px 0; }
.alignright { float: right; margin: 0 0 16px 24px; }
.wp-caption-text { font-size: 14px; color: var(--muted); }
.sticky .post-card__title::after { content: " ★"; color: var(--cyan); }

.section-head .lead-dark { margin-top: 14px; }
