/*
Theme Name: Despacho CJF
Theme URI: https://carlosjavierfernandezabogado.es/
Author: Daniel Montes
Description: Tema propio del despacho de Carlos Javier Fernández Pérez. Sistema gráfico de "código anotado": cada sección se numera como un artículo y lleva su nota al margen; las citas a la ley se marcan en el texto. Lee el contenido existente de cada página sin modificarlo.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 7.4
License: Propietario
Text Domain: cjf
*/

/* ------------------------------------------------------------------
   0. Fuentes (alojadas en el tema: sin llamadas a terceros)
------------------------------------------------------------------ */
@font-face {
	font-family: "Newsreader";
	src: url("assets/fonts/newsreader-latin-opsz-normal.woff2") format("woff2-variations");
	font-weight: 200 800; font-style: normal; font-display: swap;
}
@font-face {
	font-family: "Newsreader";
	src: url("assets/fonts/newsreader-latin-opsz-italic.woff2") format("woff2-variations");
	font-weight: 200 800; font-style: italic; font-display: swap;
}
@font-face {
	font-family: "Instrument Sans";
	src: url("assets/fonts/instrument-sans-latin-wght-normal.woff2") format("woff2-variations");
	font-weight: 400 700; font-style: normal; font-display: swap;
}

/* Numeración de los pasos al modo de un escrito: PRIMERO, SEGUNDO… */
@counter-style cjf-ordinal {
	system: fixed;
	symbols: "Primero" "Segundo" "Tercero" "Cuarto" "Quinto" "Sexto" "Séptimo" "Octavo" "Noveno" "Décimo" "Undécimo" "Duodécimo";
	suffix: "";
	fallback: decimal;
}

/* ------------------------------------------------------------------
   1. Tokens
------------------------------------------------------------------ */
:root {
	--papel: #f4f1ea;
	--papel-2: #ebe6da;
	--papel-3: #e3ddcf;
	--blanco: #fbfaf6;
	--tinta: #1b2420;
	--tinta-2: #38423d;
	--gris: #646b66;
	--linea: rgba(27, 36, 32, .14);
	--linea-2: rgba(27, 36, 32, .28);
	--lacre: #8e2e22;
	--lacre-2: #a63a2b;
	--lacre-velo: #f2e3dc;
	--serif: "Newsreader", "Iowan Old Style", Georgia, "Times New Roman", serif;
	--sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--ancho: 1240px;
	--margen: 196px;      /* columna de notas al margen */
	--hueco: clamp(20px, 3vw, 40px);
	--gutter: 16px;
	--sec: clamp(64px, 9vw, 136px);
	--r: 2px;
}
@media (min-width: 720px) { :root { --gutter: 32px; } }

/* ------------------------------------------------------------------
   2. Base
------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
	margin: 0;
	background: var(--papel);
	color: var(--tinta);
	font-family: var(--serif);
	font-size: 19px;
	line-height: 1.6;
	font-optical-sizing: auto;
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
html.cjf-menu-abierto, html.cjf-menu-abierto body { overflow: hidden; }
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--lacre); }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; line-height: 1.12; letter-spacing: -.01em; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(42px, 6.4vw, 88px); line-height: 1.02; letter-spacing: -.025em; }
h2 { font-size: clamp(32px, 4.2vw, 54px); letter-spacing: -.02em; }
h3 { font-size: clamp(23px, 2.2vw, 29px); }
h4 { font-family: var(--sans); font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; line-height: 1.4; }
strong, b { font-weight: 600; }
em { font-style: italic; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
hr { border: 0; border-top: 1px solid var(--linea); margin: 2em 0; }
::selection { background: var(--lacre); color: var(--blanco); }
:focus-visible { outline: 2px solid var(--lacre); outline-offset: 3px; }

.cjf-wrap { width: 100%; max-width: var(--ancho); margin: 0 auto; padding: 0 var(--gutter); }
.cjf-wrap .cjf-wrap { max-width: none; padding: 0; }
.cjf-saltar { position: absolute; left: -9999px; top: 0; background: var(--tinta); color: var(--papel); padding: 12px 16px; z-index: 100; font-family: var(--sans); }
.cjf-saltar:focus { left: 16px; top: 16px; }
.cjf-ico { width: 18px; height: 18px; flex: none; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }

/* ------------------------------------------------------------------
   3. Membrete y cabecera
------------------------------------------------------------------ */
.cjf-membrete {
	background: var(--tinta);
	color: rgba(244, 241, 234, .78);
	font-family: var(--sans);
	font-size: 12.5px;
	letter-spacing: .04em;
}
.cjf-membrete .cjf-wrap { display: flex; align-items: center; justify-content: center; gap: 14px; min-height: 34px; flex-wrap: wrap; text-align: center; }
.cjf-membrete-sep { width: 1px; height: 12px; background: rgba(244, 241, 234, .3); }
@media (max-width: 719px) { .cjf-membrete span:nth-child(n+3) { display: none; } }

.cjf-cab {
	position: sticky; top: 0; z-index: 50;
	background: rgba(244, 241, 234, .94);
	-webkit-backdrop-filter: saturate(1.4) blur(10px);
	backdrop-filter: saturate(1.4) blur(10px);
	border-bottom: 1px solid transparent;
	transition: border-color .3s ease, box-shadow .3s ease;
}
.cjf-cab.is-baja { border-bottom-color: var(--linea); }
.cjf-cab-in { display: flex; align-items: center; gap: 28px; min-height: 76px; transition: min-height .3s ease; }
.cjf-cab.is-baja .cjf-cab-in { min-height: 62px; }

.cjf-firma { display: flex; flex-direction: column; text-decoration: none; line-height: 1.05; margin-right: auto; }
.cjf-firma-nombre { font-family: var(--serif); font-size: 21px; letter-spacing: -.01em; }
.cjf-firma-oficio { font-family: var(--sans); font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--lacre); margin-top: 5px; display: flex; align-items: center; gap: 10px; }
.cjf-firma-oficio::after { content: ""; height: 1px; width: 38px; background: currentColor; opacity: .6; }
.cjf-firma:hover { color: var(--tinta); }

.cjf-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 26px; }
.cjf-nav a { font-family: var(--sans); font-size: 15px; text-decoration: none; padding: 6px 0; position: relative; color: var(--tinta-2); }
.cjf-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--lacre); transform: scaleX(0); transform-origin: left; transition: transform .35s ease; }
.cjf-nav a:hover, .cjf-nav a[aria-current] { color: var(--tinta); }
.cjf-nav a:hover::after, .cjf-nav a[aria-current]::after { transform: scaleX(1); }

.cjf-cab-tel { display: inline-flex; align-items: center; gap: 9px; font-family: var(--sans); font-size: 15px; font-weight: 600; text-decoration: none; padding: 10px 16px; border: 1px solid var(--tinta); border-radius: var(--r); font-variant-numeric: tabular-nums; transition: background .25s, color .25s; }
.cjf-cab-tel:hover { background: var(--tinta); color: var(--papel); }

.cjf-menu { display: none; }
@media (max-width: 1023px) {
	.cjf-nav { display: none; }
	.cjf-cab-tel { padding: 9px 12px; }
	.cjf-menu { display: block; }
}
@media (max-width: 519px) { .cjf-cab-tel span { display: none; } .cjf-cab-tel { padding: 10px; } .cjf-cab-in { gap: 10px; } .cjf-firma-nombre { font-size: 19px; } }

.cjf-menu summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; font-family: var(--sans); font-size: 14px; padding: 10px 2px; }
.cjf-menu summary::-webkit-details-marker { display: none; }
.cjf-menu-ico { width: 22px; height: 10px; border-top: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transition: transform .3s; }
.cjf-menu[open] .cjf-menu-ico { transform: scaleY(.15); }
@media (max-width: 519px) { .cjf-menu-txt { display: none; } }
.cjf-menu-panel {
	position: fixed; left: 0; right: 0; top: var(--cab-alto, 110px); bottom: 0;
	background: var(--papel); border-top: 1px solid var(--linea);
	padding: 28px var(--gutter) 40px; overflow-y: auto;
	display: flex; flex-direction: column; gap: 32px;
}
.cjf-menu-panel ul { list-style: none; margin: 0; padding: 0; counter-reset: m; }
.cjf-menu-panel li { border-bottom: 1px solid var(--linea); counter-increment: m; }
.cjf-menu-panel li a { display: flex; align-items: baseline; gap: 16px; padding: 16px 0; font-size: 30px; text-decoration: none; letter-spacing: -.015em; }
.cjf-menu-panel li a::before { content: "§ " counter(m); font-family: var(--sans); font-size: 12px; letter-spacing: .12em; color: var(--lacre); min-width: 34px; }
.cjf-menu-panel a[aria-current] { color: var(--lacre); }
.cjf-menu-pie { display: grid; gap: 10px; }

/* ------------------------------------------------------------------
   4. Botones y piezas comunes
------------------------------------------------------------------ */
.cjf-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.cjf-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 12px;
	font-family: var(--sans); font-size: 15.5px; font-weight: 600; letter-spacing: .01em;
	padding: 16px 24px; border-radius: var(--r); text-decoration: none; line-height: 1.2;
	border: 1px solid transparent; transition: background .25s, color .25s, border-color .25s;
	text-align: center;
}
.cjf-btn--primary, .cjf-btn--brass { background: var(--lacre); color: var(--blanco); }
.cjf-btn--primary:hover, .cjf-btn--brass:hover { background: var(--tinta); color: var(--blanco); }
.cjf-btn--ghost { border-color: var(--linea-2); color: var(--tinta); background: transparent; }
.cjf-btn--ghost:hover { border-color: var(--tinta); color: var(--tinta); }
.cjf-arrow { display: inline-block; transition: transform .3s ease; }
.cjf-btn:hover .cjf-arrow, .cjf-card-link:hover .cjf-arrow, .cjf-rel:hover span::after { transform: translateX(4px); }

.cjf-eyebrow, .cjf-kicker {
	display: inline-flex; align-items: center; gap: 12px;
	font-family: var(--sans); font-size: 12.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
	color: var(--lacre); margin-bottom: 20px;
}
.cjf-lead { font-size: clamp(19px, 1.6vw, 22px); line-height: 1.55; color: var(--tinta-2); max-width: 62ch; }
.cjf-disclaimer { font-size: 15px; font-style: italic; color: var(--gris); max-width: 70ch; margin-top: 2em; }
.cjf-num { font-family: var(--serif); font-style: italic; color: var(--lacre); font-size: 1.15em; }
.cjf-fill { background: var(--lacre-velo); color: var(--lacre); padding: 0 .3em; font-family: var(--sans); font-size: .85em; }
.cjf-icon { width: 40px; height: 40px; color: var(--lacre); margin-bottom: 22px; }
.cjf-icon svg { width: 100%; height: 100%; }

/* La cita a la ley: el dispositivo en el texto corrido */
.cjf-cita {
	font-family: var(--sans); font-size: .82em; font-weight: 600; letter-spacing: .02em;
	color: var(--lacre); white-space: nowrap;
	border-bottom: 1px dotted currentColor; padding-bottom: .05em;
}
.cjf-sec--ink .cjf-cita, .cjf-cta .cjf-cita { color: #e9b8a8; }

/* ------------------------------------------------------------------
   5. EL DISPOSITIVO: secciones numeradas como artículos, nota al margen
------------------------------------------------------------------ */
.cjf-doc { counter-reset: art; }
.cjf-sec { counter-increment: art; position: relative; padding: var(--sec) 0; border-top: 1px solid var(--linea); }
.cjf-cred + .cjf-sec, .cjf-breadcrumb + .cjf-sec, .cjf-hero + .cjf-sec { border-top: 0; }

/* La nota al margen: número de artículo + rótulo */
.cjf-sec .cjf-head > .cjf-eyebrow,
.cjf-sec .cjf-narrow > .cjf-eyebrow,
.cjf-sec .cjf-prose > .cjf-eyebrow,
.cjf-cta .cjf-eyebrow {
	position: relative;
}
.cjf-sec .cjf-head > .cjf-eyebrow::before,
.cjf-sec .cjf-narrow > .cjf-eyebrow::before {
	content: "§ " counter(art, decimal-leading-zero);
	font-family: var(--serif); font-style: italic; font-weight: 400;
	font-size: 15px; letter-spacing: 0; text-transform: none;
	color: var(--tinta); padding-right: 12px; border-right: 1px solid var(--linea-2);
}
.cjf-sec--ink .cjf-head > .cjf-eyebrow::before,
.cjf-sec--ink .cjf-narrow > .cjf-eyebrow::before { color: var(--papel); border-color: rgba(244, 241, 234, .3); }

.cjf-head { margin-bottom: clamp(40px, 5vw, 72px); max-width: 920px; }
.cjf-head h2 { margin-bottom: .45em; }
.cjf-head--center { text-align: left; }

@media (min-width: 1024px) {
	/* En escritorio el rótulo se va al margen y la regla vertical lo separa del texto */
	.cjf-head, .cjf-narrow {
		display: grid; grid-template-columns: var(--margen) minmax(0, 1fr); column-gap: var(--hueco); max-width: none;
	}
	.cjf-head > *, .cjf-narrow > * { grid-column: 2; }
	.cjf-head > .cjf-eyebrow, .cjf-narrow > .cjf-eyebrow {
		grid-column: 1; grid-row: 1 / span 4; align-self: start;
		flex-direction: column; align-items: flex-start; gap: 10px;
		padding-top: 14px; margin: 0;
		line-height: 1.35;
	}
	.cjf-head > .cjf-eyebrow::before, .cjf-narrow > .cjf-eyebrow::before {
		font-size: 34px; line-height: 1; border: 0; padding: 0; letter-spacing: -.02em;
	}
	.cjf-head > .cjf-eyebrow::after, .cjf-narrow > .cjf-eyebrow::after {
		content: ""; width: 1px; height: 64px; background: var(--linea-2); margin-top: 8px;
	}
	.cjf-head h2, .cjf-head .cjf-lead { max-width: 820px; }
	/* el cuerpo de la sección se alinea con el texto, no con el margen */
	.cjf-sec > .cjf-wrap > .cjf-head ~ *:not(.cjf-head) { margin-left: calc(var(--margen) + var(--hueco)); }
	.cjf-sec > .cjf-wrap > .cjf-head ~ .cjf-grid,
	.cjf-sec > .cjf-wrap > .cjf-head ~ .cjf-modes,
	.cjf-sec > .cjf-wrap > .cjf-head ~ .cjf-relgrid,
	.cjf-sec > .cjf-wrap > .cjf-head ~ .cjf-tablewrap { margin-left: calc(var(--margen) + var(--hueco)); }
}

/* ------------------------------------------------------------------
   6. Héroes
------------------------------------------------------------------ */
.cjf-hero { padding: clamp(48px, 8vw, 112px) 0 clamp(56px, 8vw, 104px); position: relative; }
.cjf-hero h1 { max-width: 15ch; }
.cjf-hero .cjf-lead { margin-top: 28px; }
.cjf-hero .cjf-eyebrow { color: var(--lacre); }

/* Portada: título a la izquierda, retrato a la derecha con su pie de firma */
.cjf-hero--split .cjf-wrap { display: grid; gap: clamp(40px, 6vw, 88px); align-items: end; }
@media (min-width: 960px) { .cjf-hero--split .cjf-wrap { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); } }
.cjf-hero--split h1 { font-size: clamp(46px, 7vw, 100px); }
.cjf-hero-media { margin: 0; position: relative; }
.cjf-hero-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; filter: saturate(.86) contrast(1.02); border-radius: var(--r); }
.cjf-hero-badge, .cjf-portrait-cap {
	display: grid; gap: 4px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--tinta);
	font-family: var(--sans); font-size: 13px; color: var(--gris); letter-spacing: .02em;
}
.cjf-hero-badge b, .cjf-portrait-cap b { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 22px; color: var(--tinta); letter-spacing: -.01em; }
/* la línea de firma del escrito: regla corta en lacre sobre el nombre */
.cjf-hero-badge::before, .cjf-portrait-cap::before {
	content: ""; width: 56px; height: 2px; background: var(--lacre); margin: -19px 0 12px;
}

/* Páginas interiores y artículos */
.cjf-hero--page { padding-bottom: clamp(48px, 6vw, 80px); border-bottom: 1px solid var(--tinta); }
.cjf-hero--page::after { content: ""; position: absolute; left: 0; right: 0; bottom: 3px; height: 1px; background: var(--tinta); opacity: .5; }
.cjf-hero--page h1 { max-width: 18ch; }
@media (min-width: 1024px) {
	.cjf-hero--page > .cjf-wrap { padding-left: calc(var(--gutter) + var(--margen) + var(--hueco)); position: relative; }
	.cjf-hero--page > .cjf-wrap > .cjf-eyebrow { position: absolute; left: var(--gutter); top: 14px; width: var(--margen); flex-direction: column; align-items: flex-start; gap: 10px; }
	.cjf-hero--page > .cjf-wrap > .cjf-eyebrow::after { content: ""; width: 1px; height: 64px; background: var(--linea-2); }
	.cjf-hero--page .cjf-breadcrumb { position: absolute; left: var(--gutter); bottom: 0; width: var(--margen); }
}

/* Migas */
.cjf-breadcrumb { font-family: var(--sans); font-size: 13px; color: var(--gris); }
.cjf-breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 8px; }
.cjf-breadcrumb li + li::before { content: "/"; margin-right: 8px; color: var(--linea-2); }
.cjf-breadcrumb a { text-decoration: none; }
.cjf-breadcrumb [aria-current] { color: var(--tinta); }
nav.cjf-breadcrumb.cjf { padding: 18px 0; border-bottom: 1px solid var(--linea); }
.cjf-hero--page .cjf-breadcrumb { margin-bottom: 28px; }
@media (min-width: 1024px) { .cjf-hero--page .cjf-breadcrumb { margin: 0; } .cjf-hero--page .cjf-breadcrumb ol { flex-direction: column; gap: 4px; } .cjf-hero--page .cjf-breadcrumb li + li::before { content: "↳"; } }

/* Franja de credenciales: el membrete del escrito */
.cjf-cred { border-top: 1px solid var(--tinta); border-bottom: 1px solid var(--linea); background: var(--papel); }
.cjf-cred .cjf-wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.cjf-cred-item { display: flex; align-items: center; gap: 14px; padding: 22px 0; font-family: var(--sans); font-size: 14.5px; color: var(--tinta-2); line-height: 1.4; }
.cjf-cred-item + .cjf-cred-item { border-top: 1px solid var(--linea); }
@media (min-width: 720px) {
	.cjf-cred-item + .cjf-cred-item { border-top: 0; border-left: 1px solid var(--linea); padding-left: 24px; }
}
.cjf-cred-item svg { width: 22px; height: 22px; color: var(--lacre); flex: none; }
.cjf-cred-item b { color: var(--tinta); }
.cjf-cred-item a { font-weight: 600; text-decoration: none; font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------------
   7. Variantes de sección
------------------------------------------------------------------ */
.cjf-sec--paper { background: var(--papel-2); }
.cjf-sec--paper2 { background: var(--papel-3); }
.cjf-sec--tight { padding: clamp(48px, 6vw, 80px) 0; }
.cjf-sec--ink { background: var(--tinta); color: var(--papel); border-top: 0; }
.cjf-sec--ink .cjf-eyebrow { color: #e9b8a8; }
.cjf-sec--ink .cjf-lead, .cjf-sec--ink p { color: rgba(244, 241, 234, .82); }
.cjf-sec--ink h2 { font-style: italic; }
.cjf-sec--ink a:hover { color: #e9b8a8; }
.cjf-sec--ink .cjf-btn--ghost { color: var(--papel); border-color: rgba(244, 241, 234, .35); }
.cjf-sec--ink .cjf-btn--ghost:hover { border-color: var(--papel); }
.cjf-narrow h2 { max-width: 22ch; }

/* ------------------------------------------------------------------
   8. Fichas y rejillas
------------------------------------------------------------------ */
.cjf-grid { display: grid; gap: clamp(32px, 4vw, 56px); }
@media (min-width: 820px) { .cjf-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cjf-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.cjf-card { position: relative; padding-top: 28px; border-top: 2px solid var(--tinta); }
.cjf-card h3 { margin-bottom: .55em; }
.cjf-card p { color: var(--tinta-2); }
.cjf-card--feature h3 { font-size: clamp(27px, 2.8vw, 36px); }
.cjf-card--flat { border: 1px solid var(--linea); border-top: 2px solid var(--lacre); background: var(--blanco); padding: 28px; }
.cjf-sec--paper .cjf-card--flat, .cjf-sec--paper2 .cjf-card--flat { background: var(--papel); }
.cjf-card--flat img { margin: -28px -28px 24px; width: calc(100% + 56px); max-width: none; aspect-ratio: 3 / 2; object-fit: cover; }
.cjf-card-link {
	display: inline-flex; align-items: center; gap: 10px; margin-top: 18px;
	font-family: var(--sans); font-size: 15px; font-weight: 600; text-decoration: none; color: var(--lacre);
	padding-bottom: 4px; border-bottom: 1px solid currentColor;
}
.cjf-card-link:hover { color: var(--tinta); }

.cjf-list { list-style: none; padding: 0; margin: 0 0 1em; }
.cjf-list li { position: relative; padding: 11px 0 11px 28px; border-bottom: 1px solid var(--linea); line-height: 1.45; }
.cjf-list li:first-child { border-top: 1px solid var(--linea); }
.cjf-list li::before { content: "—"; position: absolute; left: 0; top: 11px; color: var(--lacre); }
.cjf-list li strong, .cjf-list li b { display: block; font-weight: 600; }
.cjf-sec--ink .cjf-list li { border-color: rgba(244, 241, 234, .16); }

.cjf-modes { display: grid; gap: 28px; }
@media (min-width: 820px) { .cjf-modes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.cjf-compare { display: grid; gap: 0; border-top: 2px solid var(--tinta); }
@media (min-width: 820px) { .cjf-compare { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cjf-compare > div + div { border-left: 1px solid var(--linea); padding-left: var(--hueco); } .cjf-compare > div:first-child { padding-right: var(--hueco); } }
.cjf-compare > div { padding-top: 28px; }

/* Notas: comentario al margen dentro del texto */
.cjf-note { border-left: 2px solid var(--lacre); background: var(--lacre-velo); padding: 22px 26px; margin: 32px 0; border-radius: 0 var(--r) var(--r) 0; }
.cjf-note h4 { color: var(--lacre); margin-bottom: .6em; }
.cjf-note p:last-child { margin-bottom: 0; }
.cjf-note--warn { border-left-color: var(--tinta); background: var(--papel-2); }
.cjf-note--warn h4 { color: var(--tinta); }
.cjf-sec--paper .cjf-note--warn { background: var(--papel); }

/* ------------------------------------------------------------------
   9. Procedimientos: pasos y plazos
------------------------------------------------------------------ */
.cjf-steps { list-style: none; padding: 0; margin: 0; counter-reset: paso; border-top: 2px solid var(--tinta); }
.cjf-steps > li { counter-increment: paso; display: grid; gap: 6px 32px; padding: 26px 0; border-bottom: 1px solid var(--linea); }
.cjf-steps > li::before {
	content: counter(paso, cjf-ordinal) ".—";
	font-family: var(--sans); font-size: 12.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--lacre);
	padding-top: 6px;
}
@media (min-width: 720px) { .cjf-steps > li { grid-template-columns: 150px minmax(0, 1fr); } }
.cjf-steps h3 { margin-bottom: .35em; }
.cjf-steps p { margin: 0; color: var(--tinta-2); }

.cjf-time { list-style: none; padding: 0; margin: 0; position: relative; }
.cjf-time > li { display: grid; gap: 4px 32px; padding: 0 0 36px 28px; position: relative; }
.cjf-time > li::before { content: ""; position: absolute; left: 4px; top: 10px; bottom: -10px; width: 1px; background: var(--linea-2); }
.cjf-time > li:last-child::before { display: none; }
.cjf-time > li::after { content: ""; position: absolute; left: 0; top: 7px; width: 9px; height: 9px; border: 1.5px solid var(--lacre); background: var(--papel); transform: rotate(45deg); }
.cjf-time > li > span { font-family: var(--sans); font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--lacre); padding-top: 2px; }
.cjf-time h3 { margin-bottom: .3em; }
.cjf-time p { margin: 0; color: var(--tinta-2); }
@media (min-width: 720px) { .cjf-time > li { grid-template-columns: 170px minmax(0, 1fr); padding-left: 36px; } }

/* ------------------------------------------------------------------
   10. Tablas
------------------------------------------------------------------ */
.cjf-tablewrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-top: 2px solid var(--tinta); }
.cjf-table { width: 100%; border-collapse: collapse; font-size: 17px; min-width: 560px; }
.cjf-table th { font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--gris); text-align: left; padding: 16px 16px 12px 0; border-bottom: 1px solid var(--linea-2); }
.cjf-table td { padding: 16px 16px 16px 0; border-bottom: 1px solid var(--linea); vertical-align: top; line-height: 1.45; }
.cjf-tag { display: inline-block; font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: .04em; padding: 4px 10px; border-radius: 99px; white-space: nowrap; border: 1px solid currentColor; }
.cjf-tag--yes { color: #2d5a3c; background: #e1ebe2; border-color: #c4d8c8; }
.cjf-tag--part { color: #7a5a12; background: #f3ead2; border-color: #e3d4a8; }
.cjf-tag--no { color: var(--lacre); background: var(--lacre-velo); border-color: #e4c3b8; }

/* ------------------------------------------------------------------
   11. Preguntas
------------------------------------------------------------------ */
.cjf-faq { border-top: 2px solid var(--tinta); max-width: 900px; }
.cjf-faq details { border-bottom: 1px solid var(--linea); }
.cjf-faq summary {
	list-style: none; cursor: pointer; display: grid; grid-template-columns: minmax(0, 1fr) 28px; gap: 20px; align-items: start;
	padding: 24px 0; font-size: clamp(20px, 1.9vw, 24px); line-height: 1.3; letter-spacing: -.005em;
}
.cjf-faq summary::-webkit-details-marker { display: none; }
.cjf-faq summary::after { content: ""; width: 14px; height: 14px; margin: 8px auto 0; border-right: 1.5px solid var(--lacre); border-bottom: 1.5px solid var(--lacre); transform: rotate(45deg); transition: transform .3s ease; }
.cjf-faq details[open] summary::after { transform: rotate(-135deg); margin-top: 14px; }
.cjf-faq summary:hover { color: var(--lacre); }
.cjf-faq details > div { padding: 0 48px 26px 0; color: var(--tinta-2); }
.cjf-faq details > div p:last-child { margin-bottom: 0; }
.cjf-faq strong { color: var(--tinta); }

/* ------------------------------------------------------------------
   12. Llamada final
------------------------------------------------------------------ */
.cjf-cta { background: var(--tinta); color: var(--papel); border-top: 0; }
.cjf-cta-inner { display: grid; gap: 32px; align-items: end; }
@media (min-width: 960px) { .cjf-cta-inner { grid-template-columns: minmax(0, 1.4fr) auto; gap: 64px; } .cjf-cta-inner .cjf-btns { margin: 0; justify-content: flex-end; } }
.cjf-cta h2 { font-style: italic; max-width: 20ch; }
.cjf-cta .cjf-lead, .cjf-cta p { color: rgba(244, 241, 234, .8); }
.cjf-cta .cjf-eyebrow { color: #e9b8a8; }
.cjf-cta .cjf-btn--ghost { color: var(--papel); border-color: rgba(244, 241, 234, .35); }
.cjf-cta .cjf-btn--ghost:hover { border-color: var(--papel); }
.cjf-cta .cjf-btn--primary:hover, .cjf-cta .cjf-btn--brass:hover { background: var(--papel); color: var(--tinta); }
.cjf-cta a:not(.cjf-btn):hover { color: #e9b8a8; }

/* ------------------------------------------------------------------
   13. Texto corrido, figuras, retrato, zonas
------------------------------------------------------------------ */
.cjf-prose { max-width: 70ch; }
.cjf-prose h2 { font-size: clamp(28px, 3vw, 38px); margin-top: 1.6em; }
.cjf-prose h2:first-child { margin-top: 0; }
.cjf-prose h3 { margin-top: 1.4em; }
.cjf-prose ul, .cjf-prose ol { padding-left: 0; list-style: none; }
.cjf-prose ul li { position: relative; padding: 9px 0 9px 28px; border-bottom: 1px solid var(--linea); }
.cjf-prose ul li::before { content: "—"; position: absolute; left: 0; top: 9px; color: var(--lacre); }
.cjf-prose ol { counter-reset: p; }
.cjf-prose ol li { counter-increment: p; position: relative; padding: 9px 0 9px 36px; }
.cjf-prose ol li::before { content: counter(p) "."; position: absolute; left: 0; font-family: var(--sans); font-weight: 600; font-size: 14px; color: var(--lacre); top: 13px; }
.cjf-prose a { color: var(--lacre); }

.cjf-figure { margin: 0; }
.cjf-figure img { width: 100%; border-radius: var(--r); filter: saturate(.86); }
.cjf-figure figcaption { font-family: var(--sans); font-size: 13px; color: var(--gris); padding-top: 12px; border-top: 1px solid var(--linea); margin-top: 14px; }

.cjf-portrait { max-width: 420px; }
.cjf-portrait img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r); filter: saturate(.86); }

.cjf-zonas { display: flex; flex-wrap: wrap; gap: 0; font-family: var(--sans); font-size: 15px; color: var(--tinta-2); margin: 8px 0 36px; border-top: 1px solid var(--linea); border-bottom: 1px solid var(--linea); padding: 14px 0; }
.cjf-zonas span { padding: 4px 14px 4px 0; margin-right: 14px; border-right: 1px solid var(--linea); line-height: 1.4; }
.cjf-zonas span:last-child { border-right: 0; }
.cjf-zonas .is-main { color: var(--lacre); font-weight: 600; }

/* Contacto */
.cjf-contact-list { display: grid; gap: 0; border-top: 2px solid var(--tinta); }
.cjf-contact-item { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--linea); align-items: start; }
.cjf-contact-item svg { width: 20px; height: 20px; color: var(--lacre); margin-top: 3px; }
.cjf-contact-item span { display: block; font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--gris); margin-bottom: 4px; }
.cjf-contact-item p, .cjf-contact-item a { margin: 0; font-size: 19px; }
.cjf-contact-item a { text-decoration: none; font-variant-numeric: tabular-nums; }
.cjf-contact-item a:hover { color: var(--lacre); }

/* Enlaces relacionados */
.cjf-relgrid { display: grid; gap: 0; border-top: 2px solid var(--tinta); }
@media (min-width: 820px) { .cjf-relgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .cjf-rel + .cjf-rel { border-left: 1px solid var(--linea); } .cjf-rel { padding: 26px 26px 30px; } .cjf-rel:first-child { padding-left: 0; } }
.cjf-rel { display: flex; flex-direction: column; text-decoration: none; padding: 24px 0; border-bottom: 1px solid var(--linea); transition: background .25s; }
@media (min-width: 820px) { .cjf-rel { border-bottom: 0; } }
.cjf-rel h3 { font-size: 22px; line-height: 1.25; margin-bottom: .5em; }
.cjf-rel p { font-size: 16.5px; color: var(--gris); margin-bottom: 18px; }
.cjf-rel span { margin-top: auto; font-family: var(--sans); font-size: 14px; font-weight: 600; color: var(--lacre); display: inline-flex; gap: 8px; }
.cjf-rel span::after { content: "→"; transition: transform .3s; display: inline-block; }
.cjf-rel:hover { color: var(--tinta); }
.cjf-rel:hover h3 { color: var(--lacre); }

/* ------------------------------------------------------------------
   14. Formulario (Contact Form 7)
------------------------------------------------------------------ */
.cjf-sc { margin-top: 8px; }
.wpcf7 form { display: grid; gap: 18px; }
.wpcf7 form p { margin: 0; }
.wpcf7 label { display: grid; gap: 8px; font-family: var(--sans); font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--tinta-2); }
.wpcf7 input[type="text"], .wpcf7 input[type="email"], .wpcf7 input[type="tel"], .wpcf7 select, .wpcf7 textarea {
	width: 100%; font: 400 18px/1.4 var(--serif); color: var(--tinta); text-transform: none; letter-spacing: 0;
	background: var(--blanco); border: 1px solid var(--linea-2); border-radius: var(--r);
	padding: 14px 16px; transition: border-color .2s, box-shadow .2s; -webkit-appearance: none; appearance: none;
}
.wpcf7 select { background-image: linear-gradient(45deg, transparent 50%, var(--lacre) 50%), linear-gradient(135deg, var(--lacre) 50%, transparent 50%); background-position: calc(100% - 22px) 52%, calc(100% - 16px) 52%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 44px; }
.wpcf7 textarea { min-height: 150px; resize: vertical; }
.wpcf7 input:focus, .wpcf7 select:focus, .wpcf7 textarea:focus { outline: none; border-color: var(--tinta); box-shadow: 0 2px 0 0 var(--lacre); }
.wpcf7 .wpcf7-acceptance, .wpcf7 .wpcf7-list-item { font-family: var(--sans); font-size: 14.5px; text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--tinta-2); margin: 0; }
.wpcf7 .wpcf7-list-item label { display: flex; gap: 12px; align-items: flex-start; text-transform: none; font-weight: 400; letter-spacing: 0; font-size: 14.5px; }
.wpcf7 input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--lacre); margin-top: 2px; flex: none; }
.wpcf7 input[type="submit"], .wpcf7 button[type="submit"] {
	font: 600 16px/1 var(--sans); color: var(--blanco); background: var(--lacre); border: 0; border-radius: var(--r);
	padding: 18px 28px; cursor: pointer; justify-self: start; transition: background .25s;
}
.wpcf7 input[type="submit"]:hover { background: var(--tinta); }
.wpcf7-not-valid-tip { font-family: var(--sans); font-size: 13px; color: var(--lacre); text-transform: none; letter-spacing: 0; font-weight: 500; margin-top: 4px; }
.wpcf7 form .wpcf7-response-output { margin: 0; padding: 14px 18px; border: 1px solid var(--linea-2); font-family: var(--sans); font-size: 15px; border-radius: var(--r); }
.wpcf7 form.sent .wpcf7-response-output { border-color: #9fc1a8; background: #e6efe7; }
.wpcf7 form.invalid .wpcf7-response-output, .wpcf7 form.failed .wpcf7-response-output { border-color: #e4c3b8; background: var(--lacre-velo); }
.wpcf7-spinner { margin: 0 0 0 12px; }

/* ------------------------------------------------------------------
   15. Artículos del blog
------------------------------------------------------------------ */
.cjf-art { counter-reset: art; }
.cjf-hero--art h1 { font-size: clamp(36px, 5vw, 66px); max-width: 22ch; }
.cjf-art-cat { display: inline-block; font-family: var(--sans); font-size: 12.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--lacre); text-decoration: none; margin-bottom: 18px; }
.cjf-art-dek { font-size: clamp(20px, 1.8vw, 24px); font-style: italic; color: var(--tinta-2); max-width: 46ch; line-height: 1.45; }
.cjf-art-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; font-family: var(--sans); font-size: 13.5px; color: var(--gris); margin-top: 26px; }
.cjf-art-meta span + span::before { content: ""; display: inline-block; width: 4px; height: 4px; border-radius: 50%; background: var(--linea-2); margin-right: 18px; vertical-align: middle; }

.cjf-art-body { max-width: var(--ancho); margin: 0 auto; padding: clamp(48px, 6vw, 88px) var(--gutter) clamp(56px, 7vw, 104px); }
.cjf-art-body > * { max-width: 68ch; }
.cjf-art-body h2 { font-size: clamp(27px, 2.8vw, 36px); margin-top: 1.8em; }
.cjf-art-body h3 { margin-top: 1.5em; }
.cjf-art-body p, .cjf-art-body li { font-size: 19.5px; }
.cjf-art-body a { color: var(--lacre); }
.cjf-art-body ul, .cjf-art-body ol { padding-left: 1.2em; }
.cjf-art-body li { margin-bottom: .45em; }
.cjf-art-body li::marker { color: var(--lacre); }
.cjf-art-lead { font-size: clamp(21px, 2vw, 25px) !important; line-height: 1.5; color: var(--tinta); }
.cjf-art-lead::first-letter { font-size: 3.4em; float: left; line-height: .82; margin: .06em .1em 0 0; color: var(--lacre); font-weight: 400; }

/* Las claves del artículo: nota al margen */
.cjf-keys { border-top: 2px solid var(--tinta); padding-top: 18px; margin: 0 0 40px; font-family: var(--sans); }
.cjf-keys h4 { color: var(--lacre); }
.cjf-keys ul { list-style: none; padding: 0; margin: 0; }
.cjf-keys li { font-size: 15px !important; line-height: 1.45; padding: 10px 0 10px 18px; border-bottom: 1px solid var(--linea); position: relative; margin: 0; }
.cjf-keys li::before { content: "§"; position: absolute; left: 0; color: var(--lacre); font-family: var(--serif); font-style: italic; }
@media (min-width: 1100px) {
	.cjf-art-body { display: grid; grid-template-columns: var(--margen) minmax(0, 68ch); column-gap: calc(var(--hueco) + 24px); align-items: start; }
	.cjf-art-body > * { grid-column: 2; }
	.cjf-art-body > .cjf-keys { grid-column: 1; grid-row: 1 / span 40; position: sticky; top: 100px; margin: 6px 0 0; }
	.cjf-hero--art > .cjf-wrap { padding-left: calc(var(--gutter) + var(--margen) + var(--hueco) + 24px); }
}

.cjf-pull { font-size: clamp(24px, 2.6vw, 32px) !important; font-style: italic; line-height: 1.3; color: var(--tinta); border-left: 2px solid var(--lacre); padding: 4px 0 4px 26px; margin: 1.4em 0; }
.cjf-legal { font-family: var(--sans); font-size: 15.5px; line-height: 1.55; background: var(--papel-2); border-left: 2px solid var(--tinta); padding: 20px 24px; margin: 1.5em 0; color: var(--tinta-2); }
.cjf-legal p { font-size: 15.5px !important; }
.cjf-legal p:last-child { margin-bottom: 0; }

.cjf-artcta { padding: clamp(56px, 7vw, 96px) 0; }
.cjf-artcta h2 { max-width: 24ch; }
.cjf-artcta p { max-width: 60ch; }

.cjf-author { border-top: 1px solid var(--linea); background: var(--papel-2); }
.cjf-author-in { max-width: var(--ancho); margin: 0 auto; padding: 40px var(--gutter); display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 22px; align-items: start; }
@media (min-width: 1100px) { .cjf-author-in { padding-left: calc(var(--gutter) + var(--margen) + var(--hueco) + 24px); } }
.cjf-author-in img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; filter: saturate(.86); }
.cjf-author-in h4 { font-family: var(--serif); font-size: 22px; text-transform: none; letter-spacing: -.01em; font-weight: 400; margin-bottom: 2px; }
.cjf-author-in .role { font-family: var(--sans); font-size: 13px; color: var(--lacre); margin-bottom: 10px; }
.cjf-author-in p { font-size: 16.5px; color: var(--tinta-2); max-width: 64ch; }

/* ------------------------------------------------------------------
   16. Índice del blog: asientos
------------------------------------------------------------------ */
.cjf-indice { border-top: 0; padding-top: clamp(40px, 5vw, 64px); }
.cjf-materias { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: clamp(32px, 4vw, 48px); }
.cjf-materias a { font-family: var(--sans); font-size: 14px; text-decoration: none; padding: 9px 14px; border: 1px solid var(--linea-2); border-radius: 99px; color: var(--tinta-2); display: inline-flex; gap: 8px; align-items: baseline; transition: border-color .2s, background .2s, color .2s; }
.cjf-materias a span { font-size: 12px; color: var(--gris); }
.cjf-materias a:hover { border-color: var(--tinta); color: var(--tinta); }
.cjf-materias a[aria-current] { background: var(--tinta); border-color: var(--tinta); color: var(--papel); }
.cjf-materias a[aria-current] span { color: rgba(244, 241, 234, .65); }

.cjf-asientos { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--tinta); }
.cjf-asiento { display: grid; gap: 10px var(--hueco); padding: 28px 0; border-bottom: 1px solid var(--linea); }
@media (min-width: 820px) { .cjf-asiento { grid-template-columns: var(--margen) minmax(0, 1fr); } }
.cjf-asiento-margen { display: flex; flex-wrap: wrap; gap: 4px 14px; font-family: var(--sans); font-size: 13px; color: var(--gris); }
@media (min-width: 820px) { .cjf-asiento-margen { flex-direction: column; padding-top: 6px; } }
.cjf-asiento-cat { color: var(--lacre); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; font-size: 12px; }
.cjf-asiento h2 { font-size: clamp(23px, 2.4vw, 31px); line-height: 1.2; margin-bottom: .4em; max-width: 34ch; }
.cjf-asiento h2 a { text-decoration: none; }
.cjf-asiento h2 a:hover { color: var(--lacre); }
.cjf-asiento p { color: var(--tinta-2); margin: 0; max-width: 70ch; font-size: 17.5px; }

.navigation.pagination { margin-top: 40px; font-family: var(--sans); }
.nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.nav-links .page-numbers { display: inline-flex; min-width: 44px; height: 44px; align-items: center; justify-content: center; padding: 0 14px; border: 1px solid var(--linea-2); border-radius: var(--r); text-decoration: none; font-size: 15px; }
.nav-links .page-numbers.current { background: var(--tinta); color: var(--papel); border-color: var(--tinta); }
.nav-links a.page-numbers:hover { border-color: var(--tinta); color: var(--tinta); }

/* ------------------------------------------------------------------
   17. Pie
------------------------------------------------------------------ */
.cjf-pie { background: var(--tinta); color: rgba(244, 241, 234, .78); padding: clamp(56px, 8vw, 112px) 0 32px; font-family: var(--sans); font-size: 15px; line-height: 1.6; }
.cjf-pie a { text-decoration: none; color: var(--papel); }
.cjf-pie a:hover { color: #e9b8a8; }
.cjf-pie-lema { font-family: var(--serif); color: var(--papel); font-size: clamp(40px, 6vw, 84px); line-height: 1; letter-spacing: -.025em; margin: 0 0 clamp(40px, 6vw, 80px); padding-bottom: clamp(32px, 4vw, 56px); border-bottom: 1px solid rgba(244, 241, 234, .18); }
.cjf-pie-lema em { color: #e9b8a8; }
.cjf-pie-grid { display: grid; gap: 36px; }
@media (min-width: 720px) { .cjf-pie-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .cjf-pie-grid { grid-template-columns: 1.4fr 1fr 1.3fr 1fr; } }
.cjf-pie-nombre { font-family: var(--serif); font-size: 23px; color: var(--papel); margin-bottom: 8px; letter-spacing: -.01em; }
.cjf-pie-materias { margin-top: 14px; color: #e9b8a8; }
.cjf-pie-tit { font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: rgba(244, 241, 234, .5); margin-bottom: 14px; }
.cjf-pie ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.cjf-pie-datos li { display: flex; gap: 12px; align-items: flex-start; }
.cjf-pie-datos .cjf-ico { margin-top: 3px; color: #e9b8a8; width: 16px; height: 16px; }
.cjf-pie-datos a { word-break: break-word; }
.cjf-pie-horario { margin-top: 14px; color: rgba(244, 241, 234, .6); }
.cjf-pie-base { margin-top: clamp(40px, 6vw, 72px); padding-top: 24px; border-top: 1px solid rgba(244, 241, 234, .18); display: grid; gap: 6px; font-size: 13px; color: rgba(244, 241, 234, .55); }
@media (min-width: 900px) { .cjf-pie-base { grid-template-columns: auto 1fr; gap: 32px; } .cjf-pie-base p:last-child { text-align: right; } }
.cjf-pie-base p { margin: 0; }

/* Botón de llamada fijo, solo en móvil */
.cjf-flotante { display: none; }
@media (max-width: 719px) {
	.cjf-flotante {
		display: inline-flex; align-items: center; gap: 8px; position: fixed; right: 16px; bottom: 16px; z-index: 40;
		background: var(--lacre); color: var(--blanco); text-decoration: none; font-family: var(--sans); font-size: 15px; font-weight: 600;
		padding: 14px 18px; border-radius: 99px; box-shadow: 0 8px 24px rgba(27, 36, 32, .25);
	}
	.cjf-flotante:hover { color: var(--blanco); }
	.cjf-menu-abierto .cjf-flotante { display: none; }
	.cjf-pie { padding-bottom: 96px; }
}

/* 404 */
.cjf-404 { border-bottom: 0; min-height: 50vh; }
.cjf-404::after { display: none; }

/* Impresión: un despacho imprime */
@media print {
	.cjf-membrete, .cjf-cab, .cjf-flotante, .cjf-cta, .cjf-artcta, .cjf-pie-grid, .cjf-pie-lema, .cjf-materias, .navigation { display: none !important; }
	body { background: #fff; font-size: 12pt; }
	.cjf-sec, .cjf-hero { padding: 16pt 0; }
	a { text-decoration: none; }
}

/* ------------------------------------------------------------------
   18. Ajustes tras revisión en vista previa
------------------------------------------------------------------ */
@media (min-width: 783px) { .admin-bar .cjf-cab { top: 32px; } }

/* § también cuando el rótulo abre la primera columna de la sección */
.cjf-sec > .cjf-wrap > .cjf-grid > :first-child > .cjf-eyebrow:first-child::before,
.cjf-contact-grid > :first-child > .cjf-eyebrow:first-child::before {
	content: "§ " counter(art, decimal-leading-zero);
	font-family: var(--serif); font-style: italic; font-weight: 400;
	font-size: 15px; letter-spacing: 0; text-transform: none;
	color: var(--tinta); padding-right: 12px; border-right: 1px solid var(--linea-2);
}
.cjf-sec--ink > .cjf-wrap > .cjf-grid > :first-child > .cjf-eyebrow:first-child::before { color: var(--papel); border-color: rgba(244, 241, 234, .3); }

@media (min-width: 1024px) {
	.cjf-sec .cjf-head > .cjf-eyebrow::before,
	.cjf-sec .cjf-narrow > .cjf-eyebrow::before {
		font-size: 34px; line-height: 1; border: 0; padding: 0; letter-spacing: -.02em;
	}
}

/* Fichas: el enlace siempre al pie, alineado entre columnas */
.cjf-card { display: flex; flex-direction: column; }
.cjf-card > .cjf-card-link { margin-top: auto; align-self: flex-start; }
.cjf-card > .cjf-list { margin-bottom: 28px; }

/* Contacto: datos a la izquierda, formulario a la derecha */
.cjf-contact-grid {
	counter-increment: art;
	max-width: var(--ancho); margin: 0 auto; padding: var(--sec) var(--gutter);
	display: grid; gap: clamp(40px, 5vw, 72px); align-items: start;
}
@media (min-width: 960px) { .cjf-contact-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); } }
.cjf-contact-grid h2 { font-size: clamp(30px, 3.4vw, 44px); }
.cjf-contact-grid .cjf-figure { margin-top: 36px; }
.cjf-formwidget { background: var(--blanco); border: 1px solid var(--linea); border-top: 2px solid var(--lacre); padding: clamp(24px, 3vw, 40px); border-radius: var(--r); }
@media (min-width: 960px) { .cjf-formwidget { position: sticky; top: 120px; } }
.cjf-formwidget .cjf-sc { margin: 0; }

/* Formulario del despacho: rejilla de dos columnas, etiqueta con su asterisco en línea */
.cjf-form-grid { display: grid; gap: 22px 18px; }
@media (min-width: 600px) { .cjf-form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cjf-form-grid .ff-full { grid-column: 1 / -1; } }
.cjf-form-grid > p { display: flex; flex-direction: column; gap: 8px; margin: 0; }
.cjf-form-grid > p > br { display: none; }
.wpcf7 .cjf-form-grid label { display: block; }
.ff-req { color: var(--lacre); margin-left: 3px; }
.cjf-form-grid .wpcf7-form-control-wrap { display: block; }

/* Cabecera con fondo sólido: el desenfoque de fondo es caro de pintar en páginas largas */
.cjf-cab { background: var(--papel); -webkit-backdrop-filter: none; backdrop-filter: none; }

/* Notas dentro de una sección oscura */
.cjf-sec--ink .cjf-note, .cjf-sec--ink .cjf-note--warn { background: rgba(244, 241, 234, .07); border-left-color: #e9b8a8; }
.cjf-sec--ink .cjf-note h4 { color: #e9b8a8; }
.cjf-sec--ink .cjf-note p { color: rgba(244, 241, 234, .86); }
.cjf-sec--ink h3 { color: var(--papel); }

/* Membrete en móvil: solo el colegiado, sin separadores sueltos */
@media (max-width: 719px) { .cjf-membrete .cjf-wrap > :nth-child(n+2) { display: none; } }
.cjf-asiento h2 { max-width: 42ch; }

/* ------------------------------------------------------------------
   19. Láminas: las fotos del despacho como documentos adjuntos
------------------------------------------------------------------ */
.cjf-doc { counter-reset: art doc; }
.cjf-lamina { background: var(--tinta); padding: 0; }
.cjf-lamina-in { display: grid; gap: 2px; }
.cjf-lamina--doble .cjf-lamina-in { grid-template-columns: 1fr; }
@media (min-width: 820px) { .cjf-lamina--doble .cjf-lamina-in { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.cjf-lamina-fig { margin: 0; position: relative; overflow: hidden; counter-increment: doc; }
.cjf-lamina-img { width: 100%; height: clamp(300px, 46vw, 620px); object-fit: cover; object-position: 50% 32%; filter: saturate(.86) contrast(1.02); }
.cjf-lamina--doble .cjf-lamina-img { height: clamp(380px, 52vw, 760px); object-position: 50% 22%; }
.cjf-lamina-fig figcaption {
	position: absolute; left: 0; right: 0; bottom: 0;
	display: flex; gap: 16px; align-items: baseline;
	padding: 56px var(--gutter) 20px;
	background: linear-gradient(to top, rgba(27, 36, 32, .82), rgba(27, 36, 32, 0));
	color: rgba(244, 241, 234, .9); font-family: var(--serif); font-style: italic; font-size: 16px; line-height: 1.4;
}
@media (min-width: 1240px) { .cjf-lamina--simple .cjf-lamina-fig figcaption { padding-left: calc((100vw - var(--ancho)) / 2 + var(--gutter)); padding-right: calc((100vw - var(--ancho)) / 2 + var(--gutter)); } }
.cjf-lamina-fig figcaption::before, .cjf-figure figcaption::before {
	content: "Doc. " counter(doc); flex: none;
	font-family: var(--sans); font-style: normal; font-size: 11.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: #e9b8a8;
}
.cjf-figure { counter-increment: doc; }
.cjf-figure figcaption { display: flex; gap: 14px; align-items: baseline; }
.cjf-figure figcaption::before { color: var(--lacre); }
.cjf-lamina + .cjf-cred, .cjf-lamina + .cjf-sec { border-top: 0; }

/* ------------------------------------------------------------------
   20. Movimiento: un expediente que se lee
   Solo transform, opacity, filter y background-size. Sin rebotes ni parallax.
------------------------------------------------------------------ */
:root { --e-sale: cubic-bezier(.2, .7, .2, 1); --e-sello: cubic-bezier(.2, 1.3, .4, 1); }

/* Texto que se asienta: entra con un leve desenfoque, como tinta que seca */
html.cjf-anim :is(.cjf-hero .cjf-eyebrow, .cjf-hero h1, .cjf-hero .cjf-lead, .cjf-hero .cjf-btns, .cjf-hero .cjf-breadcrumb, .cjf-art-cat, .cjf-art-dek, .cjf-art-meta,
	.cjf-head > h2, .cjf-head > .cjf-lead, .cjf-narrow > h2, .cjf-narrow > .cjf-lead, .cjf-narrow > p,
	.cjf-card, .cjf-note, .cjf-cred-item, .cjf-zonas, .cjf-rel, .cjf-asiento, .cjf-contact-item, .cjf-cta-inner > *, .cjf-pie-lema,
	.cjf-formwidget, .cjf-compare > div, .cjf-time > li, .cjf-faq details, .cjf-keys, .cjf-steps > li, .cjf-materias, .cjf-hero-badge, .cjf-portrait-cap, .cjf-prose > *, .cjf-art-body > :not(.cjf-keys)):not(.is-in) {
	opacity: 0; transform: translateY(14px);
}
html.cjf-anim :is(.cjf-hero h1, .cjf-head > h2, .cjf-narrow > h2, .cjf-pie-lema, .cjf-cta-inner h2):not(.is-in) { filter: blur(8px); transform: translateY(8px); }
html.cjf-anim .is-in {
	transition: opacity .8s var(--e-sale), transform .9s var(--e-sale), filter 1s var(--e-sale), background-size 1.1s var(--e-sale);
	transition-delay: var(--d, 0s);
}
html.cjf-anim .cjf-hero h1.is-in { transition-duration: 1.1s, 1.2s, 1.3s; }

/* La nota al margen: el número aparece y la regla se traza hacia abajo */
html.cjf-anim :is(.cjf-head, .cjf-narrow) > .cjf-eyebrow::after,
html.cjf-anim .cjf-hero--page > .cjf-wrap > .cjf-eyebrow::after { transform: scaleY(0); transform-origin: top; transition: transform 1s var(--e-sale) .35s; }
html.cjf-anim :is(.cjf-head, .cjf-narrow) > .cjf-eyebrow.is-in::after,
html.cjf-anim .cjf-hero--page > .cjf-wrap > .cjf-eyebrow.is-in::after { transform: scaleY(1); }
html.cjf-anim :is(.cjf-head, .cjf-narrow, .cjf-hero--page > .cjf-wrap) > .cjf-eyebrow:not(.is-in) { opacity: 0; transform: translateX(-10px); }
html.cjf-anim :is(.cjf-head, .cjf-narrow) > .cjf-eyebrow::before { transition: opacity .6s var(--e-sale) .1s; }
html.cjf-anim :is(.cjf-head, .cjf-narrow) > .cjf-eyebrow:not(.is-in)::before { opacity: 0; }

/* Reglas superiores que se trazan de izquierda a derecha */
html.cjf-anim :is(.cjf-steps, .cjf-faq, .cjf-tablewrap, .cjf-asientos, .cjf-relgrid, .cjf-contact-list, .cjf-compare, .cjf-keys, .cjf-card:not(.cjf-card--flat)) {
	border-top-color: transparent;
	background-image: linear-gradient(var(--tinta), var(--tinta));
	background-repeat: no-repeat; background-origin: border-box; background-position: 0 0;
	background-size: 0 2px;
}
html.cjf-anim .cjf-sec--ink :is(.cjf-card, .cjf-steps, .cjf-faq) { background-image: linear-gradient(var(--papel), var(--papel)); }
html.cjf-anim :is(.cjf-steps, .cjf-faq, .cjf-tablewrap, .cjf-asientos, .cjf-relgrid, .cjf-contact-list, .cjf-compare, .cjf-keys, .cjf-card).is-trazo { background-size: 100% 2px; transition: background-size 1.2s var(--e-sale) var(--d, 0s); }

/* La cita se subraya al leerla */
html.cjf-anim .cjf-cita {
	border-bottom: 0; padding-bottom: .1em;
	background-image: linear-gradient(currentColor, currentColor); background-repeat: no-repeat; background-position: 0 100%; background-size: 0 1px;
}
html.cjf-anim .cjf-cita.is-in { background-size: 100% 1px; transition: background-size .9s var(--e-sale) .2s; }

/* PRIMERO.—, SEGUNDO.—: el ordinal cae como un sello */
html.cjf-anim .cjf-steps > li::before { display: inline-block; transition: transform .55s var(--e-sello) calc(var(--d, 0s) + .15s), opacity .4s ease calc(var(--d, 0s) + .15s); }
html.cjf-anim .cjf-steps > li:not(.is-in)::before { opacity: 0; transform: scale(1.5) rotate(-4deg); }

/* Etiquetas de la tabla: sellos */
html.cjf-anim .cjf-tag { transition: transform .55s var(--e-sello) var(--d, 0s), opacity .35s ease var(--d, 0s); }
html.cjf-anim .cjf-tag:not(.is-in) { opacity: 0; transform: scale(1.4) rotate(-6deg); }

/* Fotografías que se revelan: de gris lavado al color */
html.cjf-anim :is(.cjf-lamina-img, .cjf-hero-media img, .cjf-figure img, .cjf-portrait img, .cjf-card--flat img) {
	transition: filter 1.6s var(--e-sale), opacity 1.2s var(--e-sale), transform 2.2s var(--e-sale);
}
html.cjf-anim :is(.cjf-lamina-img, .cjf-hero-media img, .cjf-figure img, .cjf-portrait img, .cjf-card--flat img):not(.is-in) {
	filter: grayscale(1) contrast(.82) brightness(1.12); opacity: .35; transform: scale(1.04);
}
html.cjf-anim .cjf-lamina-fig figcaption { transition: opacity .9s var(--e-sale) .6s, transform .9s var(--e-sale) .6s; }
html.cjf-anim .cjf-lamina-fig:not(.is-in) figcaption { opacity: 0; transform: translateY(10px); }

/* Firma: la regla en lacre se traza bajo el retrato */
html.cjf-anim :is(.cjf-hero-badge, .cjf-portrait-cap)::before { transform-origin: left; transition: transform .9s var(--e-sale) .5s; }
html.cjf-anim :is(.cjf-hero-badge, .cjf-portrait-cap):not(.is-in)::before { transform: scaleX(0); }

/* Respuestas que se despliegan */
.cjf-faq details > div { overflow: hidden; }

/* Barra de lectura en los artículos: cuánto expediente queda */
.cjf-progreso { position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%; background: var(--lacre); transform-origin: left; transform: scaleX(0); pointer-events: none; }

/* Microinteracciones */
.cjf-materias a, .cjf-asiento h2 a, .cjf-rel h3 { transition: color .25s, border-color .25s, background .25s; }
.cjf-lamina-fig:hover .cjf-lamina-img.is-in { transform: scale(1.015); transition: transform 1.2s var(--e-sale); }
.cjf-cab-tel .cjf-ico { transition: transform .4s var(--e-sello); }
.cjf-cab-tel:hover .cjf-ico { transform: rotate(-12deg); }
