/* ==========================================================================
   Reforma Directa · Cabecera y pie globales
   Ámbito: .rd-header y .rd-footer. No toca el resto del tema.
   ========================================================================== */

@font-face {
	font-family: 'RenoxAntonio';
	src: url('https://reformadirecta.es/wp-content/plugins/renox-home/assets/fonts/antonio-400.woff2') format('woff2');
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: 'RenoxRoboto';
	src: url('https://reformadirecta.es/wp-content/plugins/renox-home/assets/fonts/roboto-400.woff2') format('woff2');
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: 'RenoxRoboto';
	src: url('https://reformadirecta.es/wp-content/plugins/renox-home/assets/fonts/roboto-500.woff2') format('woff2');
	font-weight: 500;
	font-style: normal;
	font-display: swap;
}

/* El tema ya no pinta su propia cabecera ni su pie. */
body #site-header,
body #site-footer {
	display: none !important;
}

.rd-header,
.rd-footer,
.rd-header *,
.rd-footer * {
	box-sizing: border-box;
}

.rd-wrap {
	width: 100%;
	max-width: 1320px;
	margin: 0 auto;
	padding-inline: clamp(1.25rem, 4vw, 3rem);
}

/* --------------------------------------------------------------------------
   Cabecera
   -------------------------------------------------------------------------- */

.rd-header {
	position: sticky;
	top: 0;
	z-index: 9990;
	background: #EDEDE9;
	border-bottom: 1px solid #D8D3C9;
	color: #160A02;
	font-family: 'RenoxRoboto', Arial, sans-serif;
}

body.admin-bar .rd-header {
	top: 32px;
}

.rd-header-inner {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 2rem;
	min-height: 78px;
}

.rd-brand {
	display: flex;
	flex-direction: column;
	flex-shrink: 0;
	color: inherit;
	text-decoration: none;
	line-height: 1;
}

.rd-brand-name {
	margin: 0;
	font-family: 'RenoxAntonio', 'Arial Narrow', sans-serif;
	font-size: 1.65rem;
	font-weight: 400;
	line-height: 1;
	letter-spacing: 0.01em;
	text-transform: uppercase;
}

.rd-brand-sub {
	margin: 0.35rem 0 0;
	font-size: 0.62rem;
	line-height: 1.3;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: #766153;
	white-space: nowrap;
}

.rd-header .rd-burger {
	display: none;
	list-style: none;
	cursor: pointer;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: inherit;
	box-shadow: none;
}

.rd-header .rd-nav {
	display: flex;
	align-items: center;
	gap: clamp(1rem, 2.2vw, 2rem);
}

.rd-header .rd-nav a {
	position: relative;
	display: block;
	padding: 0.4rem 0;
	color: #160A02;
	font-size: 0.8rem;
	font-weight: 400;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	text-decoration: none;
	white-space: nowrap;
}

.rd-header .rd-nav a:not(.rd-nav-cta)::after {
	content: '';
	position: absolute;
	left: 0;
	right: 100%;
	bottom: 0;
	height: 1px;
	background: #766153;
	transition: right 0.2s ease;
}

.rd-header .rd-nav a:not(.rd-nav-cta):hover::after {
	right: 0;
}

.rd-header .rd-nav a.rd-nav-cta {
	margin-left: 0.25rem;
	padding: 0.85rem 1.25rem;
	background: #766153;
	color: #FFFFFF;
	border-radius: 2px;
}

.rd-header .rd-nav a.rd-nav-cta:hover {
	background: #524237;
}

@media (max-width: 860px) {
	.rd-header-inner {
		min-height: 68px;
	}

	.rd-header .rd-burger {
		display: grid;
		grid-template-columns: 1fr;
		gap: 5px;
		place-content: center;
		width: 46px;
		height: 46px;
		padding: 12px 11px;
		background: #160A02;
		border: 0;
		border-radius: 0;
		box-shadow: none;
	}

	.rd-header .rd-burger span {
		display: block;
		width: 100%;
		height: 2px;
		background: #EDEDE9;
		transition: transform 0.2s ease, opacity 0.2s ease;
	}

	.rd-header.menu-open .rd-burger span:nth-child(1) {
		transform: translateY(7px) rotate(45deg);
	}

	.rd-header.menu-open .rd-burger span:nth-child(2) {
		opacity: 0;
	}

	.rd-header.menu-open .rd-burger span:nth-child(3) {
		transform: translateY(-7px) rotate(-45deg);
	}

	.rd-header .rd-nav {
		position: absolute;
		top: calc(100% + 12px);
		right: 0;
		display: none;
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		min-width: 285px;
		padding: 1rem;
		background: #160A02;
		box-shadow: 0 18px 40px #00000033;
	}

	.rd-header.menu-open .rd-nav {
		display: flex;
	}

	.rd-header .rd-nav a {
		padding: 0.85rem 1rem;
		color: #EDEDE9;
	}

	.rd-header .rd-nav a:hover {
		background: #524237;
	}

	.rd-header .rd-nav a:not(.rd-nav-cta)::after {
		display: none;
	}

	.rd-header .rd-nav a.rd-nav-cta {
		margin: 0.5rem 0 0;
		text-align: center;
	}
}

@media (max-width: 782px) {
	body.admin-bar .rd-header {
		top: 46px;
	}
}

/* --------------------------------------------------------------------------
   Pie
   -------------------------------------------------------------------------- */

.rd-footer {
	padding-top: clamp(3rem, 6vw, 5rem);
	background: #160A02;
	color: #EDEDE9;
	font-family: 'RenoxRoboto', Arial, sans-serif;
}

.rd-footer-grid {
	display: grid;
	grid-template-columns: 1.5fr 1fr 1fr 1fr;
	gap: 2.5rem;
	padding-bottom: 3rem;
}

.rd-footer h2 {
	margin: 0 0 1rem;
	color: #C6B7AC;
	font-family: 'RenoxAntonio', 'Arial Narrow', sans-serif;
	font-size: 0.85rem;
	font-weight: 400;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.rd-footer a {
	display: block;
	padding: 0.3rem 0;
	color: #EDEDE9;
	font-size: 0.92rem;
	text-decoration: none;
}

.rd-footer a:hover {
	color: #C6B7AC;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.rd-footer p {
	margin: 0;
	color: #BDB7B2;
	font-size: 0.92rem;
	line-height: 1.7;
}

.rd-footer .rd-brand-name {
	font-size: 1.85rem;
	color: #EDEDE9;
}

.rd-footer .rd-brand-sub {
	color: #C6B7AC;
}

.rd-footer-note {
	max-width: 290px;
	margin-top: 1rem !important;
}

.rd-footer-bottom {
	border-top: 1px solid #FFFFFF1A;
	padding: 1.2rem 0;
}

.rd-footer-bottom .rd-wrap {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
}

.rd-footer-bottom p,
.rd-footer-bottom a {
	margin: 0;
	font-size: 0.78rem;
	color: #9D938B;
}

.rd-footer-bottom a:hover {
	color: #C6B7AC;
}

@media (max-width: 900px) {
	.rd-footer-grid {
		grid-template-columns: 1fr 1fr;
		gap: 2rem;
	}
}

@media (max-width: 560px) {
	.rd-footer-grid {
		grid-template-columns: 1fr;
	}

	.rd-footer-bottom .rd-wrap {
		flex-direction: column;
		align-items: flex-start;
		gap: 0.5rem;
	}
}


/* ==========================================================================
   Blog y WhatsApp
   ========================================================================== */

.rd-header .rd-nav a.rd-nav-wa {
	padding: 0.85rem 1.25rem;
	background: #25d366;
	color: #071c0e;
	border-radius: 2px;
	font-weight: 500;
	text-transform: none;
	letter-spacing: 0.02em;
}

.rd-header .rd-nav a.rd-nav-wa:hover {
	background: #1fb457;
	color: #071c0e;
}

.rd-footer a.rd-footer-wa {
	color: #25d366;
	font-weight: 500;
}

.rd-wa-float {
	position: fixed;
	right: 1.1rem;
	bottom: 1.1rem;
	z-index: 100001;
	display: grid;
	place-items: center;
	width: 58px;
	height: 58px;
	background: #25d366;
	color: #071c0e;
	border-radius: 50%;
	box-shadow: 0 10px 28px #0003;
	text-decoration: none;
}

.rd-wa-float:hover {
	background: #1fb457;
	color: #071c0e;
	transform: translateY(-2px);
}

/* Artículo */
.rd-blog {
	background: #f7f5f1;
	color: #241c16;
	font-family: 'RenoxRoboto', Arial, sans-serif;
}

.rd-article-wrap {
	width: 100%;
	max-width: 880px;
	margin: 0 auto;
	padding: clamp(2.5rem, 6vw, 5rem) 1.25rem 4rem;
}

.rd-article {
	background: #fff;
	padding: clamp(1.5rem, 4vw, 3.5rem);
	border: 1px solid #e3ddd3;
}

.rd-article-head {
	padding-bottom: 1.8rem;
	border-bottom: 1px solid #e3ddd3;
	margin-bottom: 2rem;
}

.rd-article-meta {
	margin: 0 0 0.9rem;
	color: #766153;
	font-size: 0.78rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.rd-article-head h1 {
	margin: 0 0 1rem;
	font-family: 'RenoxAntonio', 'Arial Narrow', sans-serif;
	font-size: clamp(2.1rem, 5vw, 3.4rem);
	font-weight: 400;
	line-height: 1.08;
	text-transform: uppercase;
	color: #160a02;
}

.rd-article-lead {
	margin: 0 0 1rem;
	color: #4d423a;
	font-size: 1.08rem;
	line-height: 1.65;
}

.rd-article-author {
	margin: 0;
	color: #766153;
	font-size: 0.82rem;
}

.rd-article-body {
	font-size: 1.03rem;
	line-height: 1.8;
	color: #2c2622;
}

.rd-article-body h2 {
	margin: 2.4rem 0 0.9rem;
	font-family: 'RenoxAntonio', 'Arial Narrow', sans-serif;
	font-size: clamp(1.55rem, 3vw, 2.1rem);
	font-weight: 400;
	line-height: 1.2;
	text-transform: uppercase;
	color: #160a02;
}

.rd-article-body h3 {
	margin: 1.7rem 0 0.5rem;
	font-size: 1.16rem;
	font-weight: 500;
	color: #3b2d24;
}

.rd-article-body p {
	margin: 0 0 1.05rem;
}

.rd-article-body ul,
.rd-article-body ol {
	margin: 0 0 1.2rem 1.15rem;
	padding: 0;
}

.rd-article-body li {
	margin-bottom: 0.45rem;
}

.rd-article-body a {
	color: #5f4a3b;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.rd-article-body a:hover {
	color: #160a02;
}

.rd-article-body strong {
	font-weight: 600;
}

.rd-article-body .rd-note {
	margin: 2rem 0;
	padding: 1.3rem 1.5rem;
	background: #f2efe9;
	border-left: 3px solid #766153;
}

.rd-article-body .rd-note p:last-child {
	margin-bottom: 0;
}

.rd-article-cta {
	margin-top: 2.5rem;
	padding: 1.8rem;
	background: #160a02;
	color: #edede9;
}

.rd-article-cta .rd-article-cta-title {
	margin: 0 0 0.6rem;
	font-family: 'RenoxAntonio', 'Arial Narrow', sans-serif;
	font-size: 1.65rem;
	text-transform: uppercase;
	color: #fff;
}

.rd-article-cta p {
	margin: 0 0 1rem;
	color: #d8d0c8;
}

.rd-article-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.7rem;
}

.rd-btn {
	display: inline-block;
	padding: 0.85rem 1.2rem;
	background: #766153;
	color: #fff;
	font-size: 0.86rem;
	letter-spacing: 0.06em;
	text-decoration: none;
	text-transform: uppercase;
}

.rd-btn:hover {
	background: #524237;
	color: #fff;
}

.rd-btn-wa {
	background: #25d366;
	color: #071c0e;
}

.rd-btn-wa:hover {
	background: #1fb457;
	color: #071c0e;
}

.rd-article-foot {
	margin-top: 2rem;
	padding-top: 1.4rem;
	border-top: 1px solid #e3ddd3;
	color: #6a5b50;
	font-size: 0.86rem;
	line-height: 1.65;
}

.rd-article-foot p {
	margin: 0;
}

.rd-article-nav {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
	margin-top: 1.5rem;
}

.rd-article-nav-item {
	display: block;
	padding: 1rem 1.2rem;
	background: #fff;
	border: 1px solid #e3ddd3;
	color: #3b2d24;
	font-size: 0.9rem;
	line-height: 1.4;
	text-decoration: none;
}

.rd-article-nav-item span {
	display: block;
	margin-bottom: 0.35rem;
	color: #766153;
	font-size: 0.7rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.rd-article-nav-next {
	text-align: right;
}

@media (max-width: 640px) {
	.rd-article {
		padding: 1.2rem;
	}

	.rd-article-nav {
		grid-template-columns: 1fr;
	}

	.rd-article-nav-next {
		text-align: left;
	}

	.rd-wa-float {
		width: 52px;
		height: 52px;
	}
}
