/* ============================================================
   JOURNEY — Base limpia para Elementor
   Diseño puro: tokens neutros que no compiten con el builder.
   Cambia los tokens :root y todo el tema se actualiza.
   ============================================================ */

:root {
	/* Color — Fisiolarioja: azules neutros, limpio y sanitario */
	--j-bg: #ffffff;
	--j-surface: #eef3f9;     /* fondo de secciones alternas */
	--j-ink: #14273d;         /* azul tinta — titulares y texto */
	--j-ink-soft: #5b6b7e;    /* gris azulado — texto secundario */
	--j-line: #dfe7f0;        /* bordes y divisores */
	--j-accent: #2b6cb0;      /* azul acero — acción / conversión */
	--j-accent-dark: #1e4e79; /* hover y énfasis */
	--j-accent-ink: #ffffff;

	/* Tipografía — Inter Tight en titulares y cuerpo */
	--j-font-body: "Inter Tight", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
	--j-font-display: "Inter Tight", var(--j-font-body);

	/* Escala y ritmo */
	--j-max: 1200px;
	--j-max-narrow: 760px;
	--j-gutter: clamp(1.25rem, 4vw, 2.5rem);
	--j-section: clamp(3rem, 8vw, 6rem);
	--j-radius: 10px;
}

/* ---------- Reset ligero ---------- */
*, *::before, *::after { box-sizing: border-box; }
body {
	margin: 0;
	background: var(--j-bg);
	color: var(--j-ink);
	font-family: var(--j-font-body);
	font-size: 1.0625rem;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--j-accent); text-decoration-thickness: 1px; text-underline-offset: 2px; }
h1, h2, h3, h4 {
	font-family: var(--j-font-display);
	line-height: 1.15;
	letter-spacing: -0.015em;
	margin: 0 0 0.6em;
	color: var(--j-ink);
}
h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.125rem); }
h3 { font-size: 1.375rem; }

/* Accesibilidad */
.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	clip-path: inset(50%);
	overflow: hidden;
}
.skip-link:focus {
	clip-path: none;
	width: auto; height: auto;
	position: fixed; top: 8px; left: 8px;
	background: var(--j-ink); color: #fff;
	padding: 0.6em 1em; border-radius: var(--j-radius);
	z-index: 9999;
}
:focus-visible { outline: 2px solid var(--j-accent); outline-offset: 2px; }

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

/* ---------- Contenedores ---------- */
.container {
	max-width: var(--j-max);
	margin-inline: auto;
	padding-inline: var(--j-gutter);
	padding-block: var(--j-section);
}
.container--narrow { max-width: var(--j-max-narrow); }
.container--page { padding-block: 0; }

/* ---------- Cabecera ---------- */
.site-header {
	border-bottom: 1px solid var(--j-line);
	background: var(--j-bg);
}
.site-header__inner {
	max-width: var(--j-max);
	margin-inline: auto;
	padding: 0.9rem var(--j-gutter);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
}
.site-branding__title {
	font-weight: 700;
	font-size: 1.2rem;
	color: var(--j-ink);
	text-decoration: none;
}
.custom-logo { max-height: 56px; width: auto; }

.site-nav ul {
	display: flex;
	gap: 1.75rem;
	list-style: none;
	margin: 0; padding: 0;
}
.site-nav a {
	color: var(--j-ink);
	text-decoration: none;
	font-size: 0.975rem;
}
.site-nav a:hover { color: var(--j-accent); }

/* Menú móvil */
.menu-toggle {
	display: none;
	background: none; border: 0; padding: 0.5rem;
	cursor: pointer;
}
.menu-toggle__bar {
	display: block; width: 22px; height: 2px;
	background: var(--j-ink); margin: 5px 0;
}
@media (max-width: 820px) {
	.menu-toggle { display: block; }
	.site-nav { display: none; width: 100%; }
	.site-nav.is-open { display: block; }
	.site-header__inner { flex-wrap: wrap; }
	.site-nav ul { flex-direction: column; gap: 0.75rem; padding-block: 0.75rem; }
}

/* ---------- Botones ---------- */
.button,
.wp-block-button__link {
	display: inline-block;
	background: var(--j-accent);
	color: var(--j-accent-ink);
	border: 0;
	border-radius: var(--j-radius);
	padding: 0.75em 1.5em;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
}
.button:hover { background: var(--j-accent-dark); }

/* ---------- Listados / tarjetas ---------- */
.post-list {
	display: grid;
	gap: 2.5rem;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}
.post-card__thumb img { border-radius: var(--j-radius); }
.post-card__title { font-size: 1.25rem; margin: 0.9rem 0 0.25rem; }
.post-card__title a { color: var(--j-ink); text-decoration: none; }
.post-card__title a:hover { color: var(--j-accent); }
.post-card__meta,
.entry-meta { color: var(--j-ink-soft); font-size: 0.9rem; margin: 0 0 0.5rem; }

/* ---------- Entradas ---------- */
.entry-thumbnail img { border-radius: var(--j-radius); margin-bottom: 2rem; }
.entry-content > * + * { margin-top: 1.1em; }

/* ---------- Pie ---------- */
.site-footer {
	border-top: 1px solid var(--j-line);
	margin-top: var(--j-section);
}
.site-footer__inner {
	max-width: var(--j-max);
	margin-inline: auto;
	padding: 2.5rem var(--j-gutter);
}
.site-footer__widgets {
	display: grid;
	gap: 2rem;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	margin-bottom: 2rem;
}
.site-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
	color: var(--j-ink-soft);
	font-size: 0.9rem;
}
.footer-menu {
	display: flex; gap: 1.25rem;
	list-style: none; margin: 0; padding: 0;
}
.footer-menu a { color: var(--j-ink-soft); text-decoration: none; }
.footer-menu a:hover { color: var(--j-accent); }

/* ---------- Elementor: no interferir ---------- */
/* En páginas construidas con Elementor, el tema no impone anchos. */
.elementor-fullwidth .elementor { width: 100%; }
.elementor-page .container--page {
	max-width: none;
	padding-inline: 0;
}
