:root {
	--ebdc-ink: #202a32;
	--ebdc-muted: #68737b;
	--ebdc-accent: #df7826;
	--ebdc-accent-dark: #b85413;
	--ebdc-soft: #f7f3ed;
	--ebdc-line: #e5ded4;
	--ebdc-white: #fff;
	--ebdc-shadow: 0 14px 38px rgba(32, 42, 50, 0.1);
}

.ebdc-main,
.ebdc-main * {
	box-sizing: border-box;
}

.ebdc-main {
	padding: 32px 18px 70px;
	color: var(--ebdc-ink);
}

.ebdc-container {
	width: 100%;
	max-width: 1180px;
	margin: 0 auto;
}

.ebdc-breadcrumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
	margin-bottom: 22px;
	color: var(--ebdc-muted);
	font-size: 0.85rem;
}

.ebdc-breadcrumbs a {
	color: var(--ebdc-accent-dark);
	text-decoration: none;
}

.ebdc-hero {
	position: relative;
	overflow: hidden;
	margin-bottom: 40px;
	padding: clamp(30px, 6vw, 64px);
	border-radius: 24px;
	background: linear-gradient(135deg, #202a32 0%, #394751 60%, #a8521a 140%);
	color: var(--ebdc-white);
	box-shadow: 0 22px 55px rgba(32, 42, 50, 0.2);
}

.ebdc-hero::after {
	content: "";
	position: absolute;
	right: -75px;
	top: -95px;
	width: 280px;
	height: 280px;
	border: 42px solid rgba(255, 255, 255, 0.05);
	border-radius: 50%;
}

.ebdc-hero > * {
	position: relative;
	z-index: 1;
}

.ebdc-hero h1 {
	max-width: 820px;
	margin: 10px 0 16px;
	color: var(--ebdc-white);
	font-size: clamp(2rem, 5vw, 3.55rem);
	line-height: 1.08;
}

.ebdc-hero p,
.ebdc-description {
	max-width: 820px;
	margin: 0;
	color: rgba(255, 255, 255, 0.88);
	font-size: 1.04rem;
	line-height: 1.72;
}

.ebdc-description p:last-child {
	margin-bottom: 0;
}

.ebdc-eyebrow {
	display: block;
	color: var(--ebdc-accent-dark);
	font-size: 0.75rem;
	font-weight: 800;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.ebdc-hero .ebdc-eyebrow {
	color: #ffd6b7;
}

.ebdc-section {
	margin: 46px 0;
}

.ebdc-heading {
	margin-bottom: 20px;
}

.ebdc-heading h2 {
	margin: 5px 0 0;
	color: var(--ebdc-ink);
	font-size: clamp(1.55rem, 3vw, 2.1rem);
	line-height: 1.2;
}

.ebdc-group-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px;
}

.ebdc-group-card {
	overflow: hidden;
	border: 1px solid var(--ebdc-line);
	border-radius: 18px;
	background: var(--ebdc-white);
	box-shadow: var(--ebdc-shadow);
}

.ebdc-group-parent {
	display: flex;
	gap: 14px;
	align-items: center;
	padding: 20px;
	background: linear-gradient(135deg, var(--ebdc-ink), #3f4e58);
	color: var(--ebdc-white);
	text-decoration: none;
}

.ebdc-zone-parent {
	background: linear-gradient(135deg, #8f4215, var(--ebdc-accent));
}

.ebdc-group-icon {
	display: grid;
	place-items: center;
	flex: 0 0 44px;
	width: 44px;
	height: 44px;
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.1);
	font-size: 1.2rem;
}

.ebdc-group-parent > span:last-child {
	display: flex;
	flex-direction: column;
}

.ebdc-group-parent small {
	margin-bottom: 2px;
	color: rgba(255, 255, 255, 0.7);
	font-size: 0.67rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.ebdc-group-parent strong {
	color: var(--ebdc-white);
	font-size: 1.2rem;
	line-height: 1.2;
}

.ebdc-group-children {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px;
	padding: 15px;
}

.ebdc-group-children a {
	display: flex;
	gap: 9px;
	align-items: center;
	justify-content: space-between;
	padding: 10px 12px;
	border: 1px solid var(--ebdc-line);
	border-radius: 9px;
	background: var(--ebdc-soft);
	color: var(--ebdc-ink);
	font-size: 0.86rem;
	font-weight: 750;
	text-decoration: none;
}

.ebdc-group-children a:hover {
	border-color: var(--ebdc-accent);
	background: var(--ebdc-white);
	color: var(--ebdc-accent-dark);
}

.ebdc-group-children a span {
	color: var(--ebdc-accent-dark);
}

.ebdc-card-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
}

.ebdc-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid var(--ebdc-line);
	border-radius: 18px;
	background: var(--ebdc-white);
	box-shadow: var(--ebdc-shadow);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ebdc-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 20px 45px rgba(32, 42, 50, 0.15);
}

.ebdc-card-media {
	display: grid;
	place-items: center;
	height: 205px;
	overflow: hidden;
	background: linear-gradient(135deg, #c8621d, #29353d);
	color: rgba(255, 255, 255, 0.9);
	font-weight: 800;
	text-decoration: none;
}

.ebdc-card-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.35s ease;
}

.ebdc-card:hover .ebdc-card-media img {
	transform: scale(1.035);
}

.ebdc-card-body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 20px;
}

.ebdc-term-row {
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
}

.ebdc-term-row a {
	display: inline-flex;
	align-items: center;
	padding: 5px 8px;
	border-radius: 7px;
	background: var(--ebdc-soft);
	color: var(--ebdc-accent-dark);
	font-size: 0.73rem;
	font-weight: 750;
	text-decoration: none;
}

.ebdc-card h2 {
	margin: 13px 0 9px;
	font-size: 1.22rem;
	line-height: 1.28;
}

.ebdc-card h2 a {
	color: var(--ebdc-ink);
	text-decoration: none;
}

.ebdc-card p {
	margin: 0 0 18px;
	color: var(--ebdc-muted);
	font-size: 0.91rem;
	line-height: 1.62;
}

.ebdc-card-link {
	margin-top: auto;
	color: var(--ebdc-accent-dark);
	font-size: 0.86rem;
	font-weight: 800;
	text-decoration: none;
}

.ebdc-index,
.ebdc-chip-section {
	margin: 28px 0;
	padding: 20px;
	border: 1px solid var(--ebdc-line);
	border-radius: 16px;
	background: var(--ebdc-soft);
}

.ebdc-index > strong,
.ebdc-chip-section > strong {
	display: block;
	margin-bottom: 12px;
}

.ebdc-index > div,
.ebdc-chip-section > div {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.ebdc-index a,
.ebdc-chip-section a {
	display: inline-flex;
	gap: 9px;
	align-items: center;
	padding: 9px 12px;
	border: 1px solid var(--ebdc-line);
	border-radius: 999px;
	background: var(--ebdc-white);
	color: var(--ebdc-ink);
	font-size: 0.86rem;
	font-weight: 750;
	text-decoration: none;
}

.ebdc-index a:hover,
.ebdc-chip-section a:hover {
	border-color: var(--ebdc-accent);
	color: var(--ebdc-accent-dark);
}

.ebdc-single-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: 34px;
	align-items: start;
}

.ebdc-single {
	min-width: 0;
}

.ebdc-single-header {
	margin-bottom: 26px;
	padding: clamp(25px, 5vw, 43px);
	border: 1px solid var(--ebdc-line);
	border-radius: 22px;
	background: linear-gradient(145deg, #fff 0%, var(--ebdc-soft) 100%);
}

.ebdc-single-header h1 {
	margin: 15px 0;
	color: var(--ebdc-ink);
	font-size: clamp(2rem, 5vw, 3.35rem);
	line-height: 1.08;
}

.ebdc-lead {
	margin: 0 0 15px;
	color: #47545c;
	font-size: 1.06rem;
	line-height: 1.72;
}

.ebdc-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 17px;
	color: var(--ebdc-muted);
	font-size: 0.81rem;
}

.ebdc-meta a {
	color: var(--ebdc-accent-dark);
}

.ebdc-featured {
	margin: 0 0 28px;
	overflow: hidden;
	border-radius: 20px;
	box-shadow: var(--ebdc-shadow);
}

.ebdc-featured img {
	display: block;
	width: 100%;
	max-height: 560px;
	object-fit: cover;
}

.ebdc-content {
	font-size: 1rem;
	line-height: 1.8;
}

.ebdc-content h2,
.ebdc-content h3,
.ebdc-content h4 {
	color: var(--ebdc-ink);
	line-height: 1.25;
}

.ebdc-content h2 {
	margin-top: 1.75em;
	font-size: clamp(1.55rem, 3vw, 2.05rem);
}

.ebdc-content h3 {
	margin-top: 1.45em;
	font-size: 1.38rem;
}

.ebdc-content img {
	max-width: 100%;
	height: auto;
	border-radius: 14px;
}

.ebdc-content table {
	width: 100%;
	border-collapse: collapse;
}

.ebdc-content th,
.ebdc-content td {
	padding: 11px;
	border: 1px solid var(--ebdc-line);
	text-align: left;
}

.ebdc-content th {
	background: var(--ebdc-ink);
	color: var(--ebdc-white);
}

.ebdc-single-footer {
	display: flex;
	flex-wrap: wrap;
	gap: 9px;
	margin-top: 38px;
	padding-top: 22px;
	border-top: 1px solid var(--ebdc-line);
}

.ebdc-single-footer a {
	padding: 9px 12px;
	border-radius: 9px;
	background: var(--ebdc-soft);
	color: var(--ebdc-accent-dark);
	font-size: 0.86rem;
	font-weight: 750;
	text-decoration: none;
}

.ebdc-sidebar {
	position: sticky;
	top: 25px;
}

.ebdc-sidebar-box,
.ebdc-widget {
	margin-bottom: 22px;
	padding: 20px;
	border: 1px solid var(--ebdc-line);
	border-radius: 17px;
	background: var(--ebdc-white);
	box-shadow: var(--ebdc-shadow);
}

.ebdc-sidebar-box h2,
.ebdc-widget-title {
	margin: 0 0 14px;
	color: var(--ebdc-ink);
	font-size: 1.13rem;
	line-height: 1.25;
}

.ebdc-search-box {
	background: linear-gradient(145deg, #fff 0%, var(--ebdc-soft) 100%);
}

.ebdc-search-box form {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 8px;
}

.ebdc-search-box input[type="search"] {
	min-width: 0;
	height: 44px;
	padding: 0 11px;
	border: 1px solid var(--ebdc-line);
	border-radius: 9px;
	background: var(--ebdc-white);
	font: inherit;
	font-size: 0.79rem;
}

.ebdc-search-box button {
	height: 44px;
	padding: 0 12px;
	border: 0;
	border-radius: 9px;
	background: var(--ebdc-accent);
	color: var(--ebdc-white);
	font: inherit;
	font-size: 0.79rem;
	font-weight: 800;
	cursor: pointer;
}

.ebdc-related-list,
.ebdc-sector-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.ebdc-related-list li + li,
.ebdc-sector-list li + li {
	border-top: 1px solid var(--ebdc-line);
}

.ebdc-related-list a {
	display: block;
	padding: 11px 0;
	text-decoration: none;
}

.ebdc-related-list small {
	display: block;
	margin-bottom: 3px;
	color: var(--ebdc-accent-dark);
	font-size: 0.67rem;
	font-weight: 800;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

.ebdc-related-list strong {
	display: block;
	color: var(--ebdc-ink);
	font-size: 0.88rem;
	line-height: 1.42;
}

.ebdc-sector-list a {
	display: flex;
	gap: 10px;
	align-items: center;
	justify-content: space-between;
	padding: 10px 1px;
	color: var(--ebdc-ink);
	font-size: 0.86rem;
	font-weight: 750;
	text-decoration: none;
}

.ebdc-sector-list a:hover {
	color: var(--ebdc-accent-dark);
}

.ebdc-sidebar-button {
	display: block;
	margin-top: 13px;
	padding: 10px;
	border-radius: 9px;
	background: var(--ebdc-ink);
	color: var(--ebdc-white);
	font-size: 0.8rem;
	font-weight: 800;
	text-align: center;
	text-decoration: none;
}

.ebdc-muted {
	margin: 0;
	color: var(--ebdc-muted);
	font-size: 0.84rem;
	line-height: 1.6;
}

.ebdc-widget img {
	max-width: 100%;
	height: auto;
}

.ebdc-empty {
	padding: 24px;
	border: 1px dashed var(--ebdc-accent);
	border-radius: 14px;
	background: var(--ebdc-soft);
	color: var(--ebdc-muted);
	text-align: center;
}

.navigation.pagination {
	margin-top: 30px;
}

.navigation.pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
	justify-content: center;
}

.navigation.pagination .page-numbers {
	display: grid;
	place-items: center;
	min-width: 40px;
	height: 40px;
	padding: 0 10px;
	border: 1px solid var(--ebdc-line);
	border-radius: 8px;
	color: var(--ebdc-ink);
	text-decoration: none;
}

.navigation.pagination .current {
	border-color: var(--ebdc-accent);
	background: var(--ebdc-accent);
	color: var(--ebdc-white);
}

@media (max-width: 960px) {
	.ebdc-card-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.ebdc-single-layout {
		grid-template-columns: minmax(0, 1fr) 285px;
		gap: 24px;
	}
}

@media (max-width: 760px) {
	.ebdc-main {
		padding: 22px 14px 50px;
	}

	.ebdc-group-grid,
	.ebdc-card-grid,
	.ebdc-single-layout {
		grid-template-columns: 1fr;
	}

	.ebdc-sidebar {
		position: static;
	}
}

@media (max-width: 480px) {
	.ebdc-hero,
	.ebdc-single-header {
		border-radius: 17px;
	}

	.ebdc-group-parent {
		padding: 16px;
	}

	.ebdc-group-children,
	.ebdc-search-box form {
		grid-template-columns: 1fr;
	}

	.ebdc-search-box button {
		width: 100%;
	}

	.ebdc-content table,
	.ebdc-content thead,
	.ebdc-content tbody,
	.ebdc-content tr,
	.ebdc-content th,
	.ebdc-content td {
		display: block;
		width: 100%;
	}
}


.ebdc-main {
	display: block;
	float: none !important;
	clear: both;
	width: 100% !important;
	max-width: none !important;
}

.ebdc-container {
	width: 100%;
	max-width: 1380px;
	margin-right: auto;
	margin-left: auto;
}

body.single-directorio_local .ebdc-main,
body.post-type-archive-directorio_local .ebdc-main,
body.tax-zona_profesional .ebdc-main,
body.tax-sector_profesional .ebdc-main,
body.single-directorio_local #primary.ebdc-main,
body.post-type-archive-directorio_local #primary.ebdc-main,
body.tax-zona_profesional #primary.ebdc-main,
body.tax-sector_profesional #primary.ebdc-main {
	float: none !important;
	width: 100% !important;
	max-width: none !important;
}