/*
Theme Name: Ydetodo
Theme URI: https://ydetodo.com
Author: Ydetodo
Author URI: https://ydetodo.com
Description: Tema clásico para comunidades, guías y clasificados. Portada con ilustración, tarjetas de servicios, blog y categorías. Compatible con Elementor, con Personalizador y menús de WordPress.
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Version: 2.3.5
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ydetodo
Tags: blog, news, custom-colors, custom-logo, custom-menu, editor-style, featured-images, threaded-comments, translation-ready, wide-blocks
*/

/* ==========================================================================
   1. Tokens y base
   ========================================================================== */

:root {
	--yd-white: #ffffff;
	--yd-soft: #f8fafb;
	--yd-border: #eef1f4;
	--yd-ink: #31236e;
	--yd-ink-2: #535255;
	--yd-green: #3ecf5a;
	--yd-green-dark: #237714;
	--yd-orange: #db4e25;
	--yd-orange-dark: #c2410c;
	--yd-radius: 14px;
	--yd-shadow: 0 6px 24px rgba(49, 35, 110, 0.07);
	--yd-shadow-hover: 0 16px 44px rgba(49, 35, 110, 0.13);
	--yd-container: 1200px;
	--yd-font-head: "Montserrat", "Segoe UI", system-ui, -apple-system, sans-serif;
	--yd-font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	background: var(--yd-white);
	color: var(--yd-ink-2);
	font-family: var(--yd-font-body);
	font-size: 16px;
	line-height: 1.75;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	margin: 0 0 0.6em;
	color: var(--yd-ink);
	font-family: var(--yd-font-head);
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -0.02em;
}

p {
	margin: 0 0 1.2em;
}

a {
	color: var(--yd-green-dark);
	text-decoration: underline;
	text-underline-offset: 0.18em;
}

a:hover,
a:focus {
	color: var(--yd-orange);
}

img,
svg,
video {
	max-width: 100%;
	height: auto;
}

figure {
	margin: 0 0 1.5rem;
}

::selection {
	background: var(--yd-green);
	color: #14301a;
}

:where(a, button, input, textarea, select, summary):focus-visible {
	outline: 2px solid var(--yd-green-dark);
	outline-offset: 3px;
	border-radius: 4px;
}

.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;
}

.screen-reader-text:focus {
	display: block;
	width: auto;
	height: auto;
	padding: 0.75rem 1rem;
	margin: 0;
	background: var(--yd-white);
	color: var(--yd-ink);
	clip: auto;
	font-size: 0.875rem;
	text-decoration: none;
	z-index: 100000;
}

.yd-container {
	width: 100%;
	max-width: var(--yd-container);
	margin: 0 auto;
	padding-left: 24px;
	padding-right: 24px;
}

.yd-center {
	display: flex;
	justify-content: center;
	margin-top: 48px;
}

.yd-verde {
	color: var(--yd-green);
}

/* ==========================================================================
   2. Encabezado
   ========================================================================== */

.yd-header {
	position: relative;
	z-index: 90;
	background: var(--yd-white);
	border-bottom: 1px solid var(--yd-border);
}

.yd-header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 96px;
	gap: 24px;
}

.yd-brand {
	display: flex;
	align-items: center;
}

.yd-brand-link {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	color: var(--yd-ink);
	text-decoration: none;
}

.yd-brand-mark {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--yd-green);
	flex: 0 0 auto;
}

.yd-brand-mark svg {
	width: 24px;
	height: 24px;
	display: block;
}

.yd-brand-name {
	font-family: var(--yd-font-head);
	font-size: 26px;
	font-weight: 700;
	letter-spacing: -0.03em;
	line-height: 1;
}

.custom-logo-link {
	display: inline-flex;
	align-items: center;
}

.custom-logo {
	width: auto;
	max-height: 56px;
}

.yd-nav {
	margin-left: auto;
}

.yd-menu {
	display: flex;
	align-items: center;
	gap: 40px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.yd-menu li {
	position: relative;
	margin: 0;
	padding: 0;
	list-style: none;
}

.yd-menu > li > a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--yd-ink);
	font-family: var(--yd-font-head);
	font-size: 15px;
	font-weight: 600;
	line-height: 1;
	text-decoration: none;
	padding: 12px 0;
}

.yd-menu > li > a:hover,
.yd-menu > li.current-menu-item > a,
.yd-menu > li.current_page_item > a {
	color: var(--yd-green-dark);
}

.yd-menu > .menu-item-has-children > a::after {
	content: "\25BE";
	font-size: 10px;
	line-height: 1;
	opacity: 0.6;
}

.yd-menu .sub-menu,
.yd-menu .children {
	position: absolute;
	top: 100%;
	left: -16px;
	z-index: 20;
	min-width: 200px;
	margin: 0;
	padding: 8px;
	list-style: none;
	background: var(--yd-white);
	border: 1px solid var(--yd-border);
	border-radius: 12px;
	box-shadow: 0 16px 40px rgba(49, 35, 110, 0.12);
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
}

.yd-menu li:hover > .sub-menu,
.yd-menu li:hover > .children,
.yd-menu li:focus-within > .sub-menu,
.yd-menu li:focus-within > .children {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.yd-menu .sub-menu a,
.yd-menu .children a {
	display: block;
	padding: 9px 12px;
	border-radius: 8px;
	color: var(--yd-ink);
	font-family: var(--yd-font-body);
	font-size: 14px;
	font-weight: 500;
	text-decoration: none;
	white-space: nowrap;
}

.yd-menu .sub-menu a:hover,
.yd-menu .children a:hover {
	background: var(--yd-soft);
	color: var(--yd-green-dark);
}

.yd-nav-toggle {
	display: none;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	margin-left: auto;
	padding: 0;
	border: 1px solid var(--yd-border);
	border-radius: 10px;
	background: var(--yd-white);
	color: var(--yd-ink);
	cursor: pointer;
}

.yd-nav-toggle-bars,
.yd-nav-toggle-bars::before,
.yd-nav-toggle-bars::after {
	display: block;
	width: 20px;
	height: 2px;
	background: currentColor;
	transition: transform 0.2s ease;
}

.yd-nav-toggle-bars {
	position: relative;
}

.yd-nav-toggle-bars::before,
.yd-nav-toggle-bars::after {
	content: "";
	position: absolute;
	left: 0;
}

.yd-nav-toggle-bars::before {
	top: -6px;
}

.yd-nav-toggle-bars::after {
	top: 6px;
}

/* ==========================================================================
   3. Portada
   ========================================================================== */

.yd-hero {
	overflow: hidden;
	background: var(--yd-white);
}

.yd-hero-grid {
	display: grid;
	grid-template-columns: 54% 46%;
	align-items: center;
	gap: 48px;
	padding-top: 64px;
	padding-bottom: 96px;
}

.yd-hero-title {
	margin: 0;
	font-size: 64px;
	line-height: 1.08;
	letter-spacing: -0.035em;
}

.yd-hero-title span {
	display: block;
}

.yd-hero-lead {
	max-width: 34rem;
	margin: 24px 0 0;
	font-size: 18px;
	line-height: 1.65;
}

.yd-hero .yd-btn {
	margin-top: 32px;
}

.yd-hero-art {
	min-width: 0;
}

.yd-hero-art svg,
.yd-hero-art img {
	display: block;
	width: 100%;
	height: auto;
}

/* ==========================================================================
   4. Secciones
   ========================================================================== */

.yd-section {
	padding: 64px 0 96px;
}

.yd-section--soft {
	background: var(--yd-soft);
}

.yd-section-head {
	max-width: 640px;
	margin: 0 auto;
	text-align: center;
}

.yd-section-title {
	color: var(--yd-green);
	font-size: 38px;
	line-height: 1.18;
	letter-spacing: -0.02em;
}

.yd-section-lead {
	margin: 8px 0 0;
	font-size: 18px;
	line-height: 1.6;
}

.yd-eyebrow {
	margin: 0 0 10px;
	color: var(--yd-green-dark);
	font-family: var(--yd-font-head);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

/* ==========================================================================
   5. Redes sociales
   ========================================================================== */

.yd-socials {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin: 0 0 20px;
	padding: 0;
	list-style: none;
}

.yd-socials li {
	margin: 0;
	list-style: none;
}

.yd-social {
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	border-radius: 10px;
	background: var(--yd-ink);
	color: #fff;
	text-decoration: none;
	transition: transform 0.2s ease, opacity 0.2s ease;
}

.yd-social:hover {
	transform: translateY(-2px);
	color: #fff;
	opacity: 0.92;
}

.yd-social svg {
	width: 20px;
	height: 20px;
	display: block;
}

.yd-social--facebook {
	background: #1877f2;
}

.yd-social--instagram {
	background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.yd-social--telegram {
	background: #010101;
}

/* ==========================================================================
   6. Tarjetas y servicios
   ========================================================================== */

.yd-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background: var(--yd-white);
	border-radius: var(--yd-radius);
	box-shadow: var(--yd-shadow);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.yd-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--yd-shadow-hover);
}

.yd-services {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 24px;
	margin-top: 48px;
}

.yd-service-media {
	min-width: 0;
	overflow: hidden;
	background: var(--yd-soft);
}

.yd-service-media svg,
.yd-service-media img {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 10;
	object-fit: cover;
}

.yd-service-body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 8px;
	padding: 24px;
}

.yd-service-title {
	margin: 0;
	font-size: 22px;
	line-height: 1.25;
}

.yd-service-text {
	margin: 0;
	font-size: 14px;
	line-height: 1.7;
}

.yd-service-foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: auto;
	padding-top: 16px;
	border-top: 1px solid var(--yd-border);
}

.yd-service-link {
	color: var(--yd-ink);
	font-family: var(--yd-font-head);
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
}

.yd-service-link span {
	color: var(--yd-green);
	margin-left: 2px;
}

.yd-service-link:hover {
	color: var(--yd-green-dark);
}

/* ==========================================================================
   7. Entradas
   ========================================================================== */

.yd-posts {
	display: grid;
	gap: 24px;
	margin-top: 48px;
}

/* Los SVG embebidos tienen ancho intrínseco: sin esto desbordan en móvil. */
.yd-hero-grid > *,
.yd-services > *,
.yd-posts > *,
.yd-contact > * {
	min-width: 0;
}

.yd-posts--4 {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.yd-posts--3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.yd-card--text {
	align-items: center;
	justify-content: center;
	min-height: 300px;
	padding: 32px 24px;
	text-align: center;
}

.yd-card--text:hover {
	transform: translateY(-4px);
}

.yd-card-title {
	margin: 0;
	font-size: 16px;
	line-height: 1.4;
	letter-spacing: -0.01em;
}

.yd-card-title a {
	color: var(--yd-ink);
	text-decoration: none;
}

.yd-card-title a:hover {
	color: var(--yd-green-dark);
}

.yd-card-text {
	margin: 10px 0 0;
	color: var(--yd-ink-2);
	font-size: 13px;
	line-height: 1.65;
}

.yd-read-more {
	display: inline-block;
	margin-top: 18px;
	color: var(--yd-ink);
	font-family: var(--yd-font-head);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-decoration: none;
	text-transform: uppercase;
}

.yd-read-more:hover {
	color: var(--yd-green-dark);
}

.yd-card--media {
	padding: 0;
}

.yd-card-thumb {
	display: block;
	overflow: hidden;
	background: var(--yd-soft);
}

.yd-card-thumb img {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 10;
	object-fit: cover;
	transition: transform 0.5s ease;
}

.yd-card--media:hover .yd-card-thumb img {
	transform: scale(1.03);
}

.yd-card-body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 8px;
	padding: 24px;
}

.yd-card-body .yd-card-title {
	font-size: 22px;
	line-height: 1.3;
}

.yd-card-body .yd-card-text {
	margin: 0;
}

.yd-card-date {
	margin-top: auto;
	padding-top: 8px;
	color: var(--yd-ink-2);
	font-size: 13px;
}

.yd-card-body .cat-links,
.yd-card-body .posted-on {
	font-family: var(--yd-font-head);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.yd-card-body .cat-links a {
	color: var(--yd-green-dark);
	text-decoration: none;
}

.yd-card-body .cat-links a:hover {
	color: var(--yd-ink);
}

.yd-empty {
	margin: 48px 0 0;
	text-align: center;
}

/* ==========================================================================
   8. Botones y paginación
   ========================================================================== */

.yd-btn {
	display: inline-block;
	padding: 14px 32px;
	border-radius: 999px;
	background: var(--yd-orange);
	box-shadow: 0 10px 24px rgba(219, 78, 37, 0.22);
	color: #fff;
	font-family: var(--yd-font-head);
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.01em;
	line-height: 1.2;
	text-decoration: none;
	transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.yd-btn:hover {
	transform: translateY(-2px);
	background: var(--yd-orange-dark);
	box-shadow: 0 14px 30px rgba(219, 78, 37, 0.3);
	color: #fff;
}

.yd-pagination,
.navigation.pagination {
	margin-top: 48px;
}

.yd-pagination .nav-links,
.navigation.pagination .nav-links {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 6px;
	flex-wrap: wrap;
}

.yd-pagination .page-numbers,
.navigation.pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 12px;
	border-radius: 999px;
	color: var(--yd-ink);
	font-family: var(--yd-font-head);
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
}

.yd-pagination .page-numbers:hover,
.navigation.pagination .page-numbers:hover {
	background: var(--yd-soft);
}

.yd-pagination .page-numbers.current,
.navigation.pagination .page-numbers.current {
	background: var(--yd-soft);
	color: var(--yd-ink);
}

/* ==========================================================================
   9. Archivos, páginas y entradas
   ========================================================================== */

.yd-page-head {
	max-width: 780px;
	margin-bottom: 48px;
}

.yd-page-title {
	margin: 0;
	font-size: 40px;
	line-height: 1.15;
	letter-spacing: -0.03em;
}

.yd-page-head p {
	margin: 12px 0 0;
	font-size: 18px;
}

.yd-single {
	padding-bottom: 96px;
}

.yd-single-head {
	max-width: 760px;
	padding-top: 56px;
	padding-bottom: 32px;
}

.yd-single-title {
	margin: 8px 0 16px;
	font-size: 44px;
	line-height: 1.12;
	letter-spacing: -0.03em;
}

.yd-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px;
	color: var(--yd-ink-2);
	font-size: 14px;
}

.yd-meta img {
	border-radius: 50%;
}

.yd-meta a {
	color: var(--yd-ink-2);
	text-decoration: none;
}

.yd-meta a:hover {
	color: var(--yd-green-dark);
}

.yd-single-media {
	max-width: 1120px;
	margin-bottom: 40px;
}

.yd-single-media img {
	display: block;
	width: 100%;
	border-radius: var(--yd-radius);
}

.yd-content {
	max-width: 760px;
	margin: 0 auto;
	font-size: 17px;
	line-height: 1.8;
}

.yd-content > * + * {
	margin-top: 1.4em;
}

.yd-content h2,
.yd-content h3 {
	margin-top: 1.8em;
}

.yd-content ul,
.yd-content ol {
	padding-left: 1.25rem;
}

.yd-content li + li {
	margin-top: 0.35rem;
}

.yd-content blockquote {
	margin: 2em 0;
	padding: 0 0 0 24px;
	border-left: 3px solid var(--yd-green);
	font-size: 18px;
	font-style: italic;
	line-height: 1.6;
}

.yd-content blockquote p:last-child {
	margin-bottom: 0;
}

.yd-content code,
.yd-content pre {
	font-size: 0.9em;
	background: var(--yd-soft);
	border-radius: 8px;
}

.yd-content code {
	padding: 0.15em 0.4em;
}

.yd-content pre {
	padding: 20px;
	overflow-x: auto;
}

.yd-content table {
	width: 100%;
	border-collapse: collapse;
	font-size: 15px;
}

.yd-content th,
.yd-content td {
	padding: 10px 12px;
	border: 1px solid var(--yd-border);
	text-align: left;
}

.yd-content th {
	background: var(--yd-soft);
}

.yd-content img {
	border-radius: 10px;
}

.yd-content .alignwide {
	width: 100%;
	max-width: 1120px;
}

.yd-single-foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	max-width: 760px;
	margin: 56px auto 0;
	padding-top: 24px;
	border-top: 1px solid var(--yd-border);
	font-size: 14px;
}

.yd-single-foot .tags-links a {
	display: inline-block;
	margin: 0 4px 4px 0;
	padding: 4px 10px;
	border-radius: 999px;
	background: var(--yd-soft);
	color: var(--yd-ink);
	font-size: 12px;
	text-decoration: none;
}

.yd-post-nav {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 24px;
	max-width: 760px;
	margin: 32px auto 0;
	font-size: 14px;
}

.yd-post-nav a {
	color: var(--yd-ink);
	font-weight: 600;
	text-decoration: none;
}

.yd-post-nav a:hover {
	color: var(--yd-green-dark);
}

.yd-elementor-content {
	width: 100%;
}

/* ==========================================================================
   10. Comentarios
   ========================================================================== */

.yd-comments {
	max-width: 760px;
	margin: 56px auto 0;
}

.yd-comments-title,
.comment-reply-title {
	font-size: 24px;
}

.yd-comment-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.yd-comment-list ol.children {
	margin: 0;
	padding-left: 40px;
	list-style: none;
}

.yd-comment-list .comment-body {
	padding: 24px 0;
	border-top: 1px solid var(--yd-border);
}

.yd-comment-list .comment-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin-bottom: 8px;
	font-size: 14px;
}

.yd-comment-list .comment-author {
	display: flex;
	align-items: center;
	gap: 10px;
	font-weight: 600;
}

.yd-comment-list .comment-author img {
	border-radius: 50%;
}

.yd-comment-list .comment-metadata {
	color: var(--yd-ink-2);
	font-size: 13px;
}

.yd-comment-list .comment-metadata a {
	color: var(--yd-ink-2);
	text-decoration: none;
}

.yd-comment-list .reply a {
	font-family: var(--yd-font-head);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-decoration: none;
	text-transform: uppercase;
}

.comment-form label {
	display: block;
	margin-bottom: 6px;
	color: var(--yd-ink);
	font-family: var(--yd-font-head);
	font-size: 13px;
	font-weight: 600;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea,
.yd-content input[type="text"],
.yd-content input[type="email"],
.yd-content input[type="url"],
.yd-content textarea {
	width: 100%;
	padding: 12px 16px;
	border: 1px solid var(--yd-border);
	border-radius: 10px;
	background: var(--yd-white);
	color: var(--yd-ink);
	font-family: inherit;
	font-size: 15px;
}

.comment-form input:focus,
.comment-form textarea:focus {
	outline: 2px solid var(--yd-green);
	outline-offset: 1px;
}

.comment-form .form-submit {
	margin-top: 16px;
}

.comment-form .submit {
	padding: 12px 28px;
	border: 0;
	border-radius: 999px;
	background: var(--yd-orange);
	color: #fff;
	font-family: var(--yd-font-head);
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
}

/* ==========================================================================
   11. Buscador y formularios
   ========================================================================== */

.search-form {
	display: flex;
	align-items: center;
	gap: 8px;
	max-width: 480px;
	padding: 4px 4px 4px 18px;
	border: 1px solid var(--yd-border);
	border-radius: 999px;
	background: var(--yd-white);
}

.search-form:focus-within {
	outline: 2px solid var(--yd-green-dark);
	outline-offset: 3px;
}

.search-form .search-field {
	flex: 1 1 auto;
	min-width: 0;
	padding: 10px 0;
	border: 0;
	background: transparent;
	color: var(--yd-ink);
	font-family: inherit;
	font-size: 15px;
}

.search-form .search-field:focus {
	outline: none;
}

.search-form .search-submit {
	flex: 0 0 auto;
	padding: 10px 20px;
	border: 0;
	border-radius: 999px;
	background: var(--yd-ink);
	color: #fff;
	font-family: var(--yd-font-head);
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
}

.search-form .search-submit:hover {
	background: var(--yd-green-dark);
}

/* ==========================================================================
   12. Pie de página
   ========================================================================== */

.yd-footer {
	padding: 32px 0;
	background: var(--yd-green-dark);
	color: #fff;
	text-align: center;
}

.yd-footer-text {
	margin: 0;
	color: #fff;
	font-size: 13px;
}

.yd-footer-nav {
	margin-bottom: 16px;
}

.yd-footer-menu {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 24px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.yd-footer-menu li {
	margin: 0;
	list-style: none;
}

.yd-footer-menu a {
	color: #fff;
	font-size: 13px;
	text-decoration: none;
	opacity: 0.9;
}

.yd-footer-menu a:hover {
	opacity: 1;
	text-decoration: underline;
}

/* ==========================================================================
   13. 404
   ========================================================================== */

.yd-404 {
	max-width: 640px;
	margin: 0 auto;
	padding: 96px 24px;
	text-align: center;
}

.yd-404-code {
	margin: 0 0 8px;
	color: var(--yd-green);
	font-family: var(--yd-font-head);
	font-size: 96px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: -0.04em;
}

.yd-404 .search-form {
	margin: 32px auto;
}

/* ==========================================================================
   13b. Contacto
   ========================================================================== */

.yd-contact {
	display: grid;
	grid-template-columns: 0.9fr 1.1fr;
	gap: 48px;
	align-items: start;
	margin-top: 48px;
}

.yd-contact-content {
	max-width: 760px;
	margin-left: 0;
	margin-right: 0;
	margin-bottom: 8px;
}

.yd-contact-info {
	padding: 40px;
	background: var(--yd-soft);
	border-radius: 20px;
}

.yd-contact-title {
	margin: 0 0 12px;
	font-size: 28px;
}

.yd-contact-intro {
	margin: 0 0 24px;
}

.yd-contact-list {
	display: grid;
	gap: 16px;
	margin: 0 0 24px;
	padding: 0;
	list-style: none;
}

.yd-contact-list li {
	display: grid;
	gap: 2px;
	margin: 0;
	font-size: 15px;
	line-height: 1.5;
	list-style: none;
}

.yd-contact-label {
	color: var(--yd-green-dark);
	font-family: var(--yd-font-head);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.yd-contact-info .yd-socials {
	justify-content: flex-start;
	margin: 0;
}

.yd-contact-form {
	padding: 40px;
	background: var(--yd-white);
	border-radius: 20px;
	box-shadow: var(--yd-shadow);
}

.yd-form {
	display: grid;
	gap: 16px;
}

.yd-field {
	margin: 0;
}

.yd-field label {
	display: block;
	margin-bottom: 6px;
	color: var(--yd-ink);
	font-family: var(--yd-font-head);
	font-size: 13px;
	font-weight: 600;
}

.yd-field input,
.yd-field textarea {
	width: 100%;
	padding: 12px 16px;
	border: 1px solid var(--yd-border);
	border-radius: 10px;
	background: var(--yd-soft);
	color: var(--yd-ink);
	font-family: inherit;
	font-size: 15px;
}

.yd-field input:focus,
.yd-field textarea:focus {
	outline: 2px solid var(--yd-green);
	outline-offset: 1px;
	background: var(--yd-white);
}

.yd-contact-form .yd-btn {
	justify-self: start;
	margin-top: 4px;
}


/* Integración con Contact Form 7 en la página de contacto. */
.yd-contact-form-cf7 .wpcf7 form {
	display: grid;
	gap: 16px;
}
.yd-contact-form-cf7 .wpcf7 p { margin: 0; }
.yd-contact-form-cf7 .wpcf7 label {
	display: block;
	color: var(--yd-ink);
	font-family: var(--yd-font-head);
	font-size: 13px;
	font-weight: 600;
}
.yd-contact-form-cf7 .wpcf7 input:not([type="submit"]),
.yd-contact-form-cf7 .wpcf7 textarea,
.yd-contact-form-cf7 .wpcf7 select {
	box-sizing: border-box;
	width: 100%;
	margin-top: 6px;
	padding: 12px 16px;
	border: 1px solid var(--yd-border);
	border-radius: 10px;
	background: var(--yd-soft);
	color: var(--yd-ink);
	font: inherit;
}
.yd-contact-form-cf7 .wpcf7 input:focus,
.yd-contact-form-cf7 .wpcf7 textarea:focus,
.yd-contact-form-cf7 .wpcf7 select:focus {
	outline: 2px solid var(--yd-green);
	outline-offset: 1px;
	background: var(--yd-white);
}
.yd-contact-form-cf7 .wpcf7 input[type="submit"] {
	border: 0;
	border-radius: 999px;
	padding: 13px 24px;
	background: var(--yd-green);
	color: #fff;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}
.yd-contact-form-cf7 .wpcf7 input[type="submit"]:hover { opacity: .9; }
.yd-contact-form-cf7 .wpcf7-not-valid-tip { color: #b42318; font-size: 12px; }
.yd-contact-form-cf7 .wpcf7-response-output {
	margin: 18px 0 0;
	padding: 12px 15px;
	border-radius: 10px;
}
.yd-contact-config-notice {
	margin: 0; padding: 14px; border-radius: 10px;
	background: var(--yd-soft); color: var(--yd-muted);
}

.yd-hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.yd-notice {
	margin: 0 0 20px;
	padding: 12px 16px;
	border-radius: 10px;
	font-size: 14px;
	line-height: 1.5;
}

.yd-notice--ok {
	background: #e8f8ec;
	color: #1d6b2f;
}

.yd-notice--error {
	background: #fdecea;
	color: #9b2c1f;
}

/* Ajustes de entradas y archivos */

.yd-meta-author {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	text-decoration: none;
}

.yd-meta-author img {
	border-radius: 50%;
}

.yd-search-box {
	margin-bottom: 32px;
}

.yd-archive-desc {
	margin-top: 12px;
	font-size: 18px;
	line-height: 1.6;
}

.yd-single-head .cat-links a {
	color: var(--yd-green-dark);
	font-family: var(--yd-font-head);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-decoration: none;
	text-transform: uppercase;
}

.yd-single-head .cat-links a:hover {
	color: var(--yd-ink);
}

.yd-comments-closed {
	margin-top: 24px;
	font-size: 14px;
}

/* Portada (página) */

.yd-portada-content {
	width: 100%;
}

.yd-portada-content > p,
.yd-portada-content > h1,
.yd-portada-content > h2,
.yd-portada-content > h3,
.yd-portada-content > ul,
.yd-portada-content > ol {
	max-width: 760px;
	margin-left: auto;
	margin-right: auto;
}

/* ==========================================================================
   14. Responsive
   ========================================================================== */

@media (max-width: 1024px) {
	.yd-hero-grid {
		grid-template-columns: 1fr;
		gap: 40px;
		padding-top: 48px;
		padding-bottom: 64px;
	}

	.yd-hero-art {
		max-width: 520px;
		margin: 0 auto;
	}

	.yd-hero-title {
		font-size: 52px;
	}

	.yd-services,
	.yd-posts--4 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.yd-posts--3 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 900px) {
	.yd-header-inner {
		min-height: 80px;
	}

	.yd-nav-toggle {
		display: inline-flex;
	}

	.yd-nav {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		margin: 0;
		padding: 16px 24px 24px;
		background: var(--yd-white);
		border-bottom: 1px solid var(--yd-border);
		box-shadow: 0 20px 40px rgba(49, 35, 110, 0.08);
	}

	.is-nav-open .yd-nav {
		display: block;
	}

	.is-nav-open .yd-nav-toggle-bars {
		background: transparent;
	}

	.is-nav-open .yd-nav-toggle-bars::before {
		top: 0;
		transform: rotate(45deg);
	}

	.is-nav-open .yd-nav-toggle-bars::after {
		top: 0;
		transform: rotate(-45deg);
	}

	.yd-menu {
		display: block;
	}

	.yd-menu > li > a {
		display: block;
		padding: 14px 0;
		border-bottom: 1px solid var(--yd-border);
	}

	.yd-menu .sub-menu,
	.yd-menu .children {
		position: static;
		display: block;
		opacity: 1;
		visibility: visible;
		transform: none;
		box-shadow: none;
		border: 0;
		padding: 0 0 0 16px;
		min-width: 0;
	}

	.yd-menu .sub-menu a,
	.yd-menu .children a {
		padding: 10px 0;
	}

	.yd-single-title {
		font-size: 34px;
	}

	.yd-page-title {
		font-size: 32px;
	}

	.yd-contact {
		grid-template-columns: minmax(0, 1fr);
		gap: 24px;
		margin-top: 32px;
	}

	.yd-contact-info,
	.yd-contact-form {
		padding: 28px;
	}
}

@media (max-width: 640px) {
	.yd-hero-title {
		font-size: 40px;
	}

	.yd-section {
		padding: 48px 0 64px;
	}

	.yd-section-title {
		font-size: 30px;
	}

	.yd-services,
	.yd-posts--4,
	.yd-posts--3 {
		grid-template-columns: minmax(0, 1fr);
	}

	.yd-hero-lead,
	.yd-section-lead {
		font-size: 16px;
	}

	.yd-single-title {
		font-size: 30px;
	}

	.yd-content {
		font-size: 16px;
	}

	.yd-404-code {
		font-size: 72px;
	}

	.yd-card--text {
		min-height: 0;
	}
}

/* ==========================================================================
   15. Elementor y accesibilidad
   ========================================================================== */

.elementor-page .yd-content {
	max-width: none;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
	}
}


/* ==========================================================================
   11. Portada editable con bloques nativos (Gutenberg / Elementor)
   ========================================================================== */
.yd-elementor-content,
.yd-portada-content { width: 100%; }
.yd-block-hero,
.yd-block-services,
.yd-block-latest { padding: clamp(56px, 7vw, 96px) 24px; }
.yd-block-hero { background: linear-gradient(115deg, #f8fafb 0%, #fff 72%); }
.yd-block-hero > .wp-block-columns,
.yd-block-services > .wp-block-columns,
.yd-block-latest > * { max-width: var(--yd-container); margin-left: auto; margin-right: auto; }
.yd-block-hero-inner { gap: clamp(24px, 5vw, 72px); }
.yd-block-hero-title { font-size: clamp(38px, 5.5vw, 66px); line-height: 1.08; }
.yd-block-hero-lead { max-width: 600px; font-size: clamp(17px, 2vw, 20px); }
.yd-block-hero-note { display:flex; min-height:220px; align-items:center; justify-content:center; padding:32px; border-radius:24px; background:linear-gradient(145deg,#e8f9ec,#f4f0ff); color:var(--yd-ink); font-family:var(--yd-font-head); font-size:clamp(22px,3vw,34px); font-weight:700; text-align:center; }
.yd-block-button .wp-block-button__link { border-radius:9px; background:var(--yd-green); color:#17351d; font-weight:700; text-decoration:none; padding:14px 24px; }
.yd-block-section-title { margin-bottom:12px; font-size:clamp(28px,3.5vw,40px); }
.yd-block-section-lead { margin-bottom:36px; color:var(--yd-ink-2); }
.yd-block-services { background:var(--yd-soft); }
.yd-block-service-grid { gap:20px; }
.yd-block-service-card { display:flex; flex-direction:column; padding:28px 24px; border:1px solid var(--yd-border); border-radius:var(--yd-radius); background:#fff; box-shadow:var(--yd-shadow); }
.yd-block-service-card h3 { font-size:21px; }
.yd-block-service-card .wp-block-buttons { margin-top:auto; }
.yd-block-service-card .wp-block-button__link { border-radius:8px; text-decoration:none; font-weight:600; }
.yd-block-latest-posts { gap:22px; }
.yd-block-latest-posts li { overflow:hidden; padding:18px; border:1px solid var(--yd-border); border-radius:var(--yd-radius); background:#fff; box-shadow:var(--yd-shadow); }
.yd-block-latest-posts .wp-block-latest-posts__post-title { display:block; margin:12px 0; color:var(--yd-ink); font-family:var(--yd-font-head); font-weight:700; text-decoration:none; }
@media (max-width: 781px) {
 .yd-block-hero, .yd-block-services, .yd-block-latest { padding:48px 20px; }
 .yd-block-service-grid { display:grid; grid-template-columns:1fr 1fr; }
 .yd-block-latest-posts { grid-template-columns:1fr 1fr !important; }
}
@media (max-width: 520px) {
 .yd-block-service-grid, .yd-block-latest-posts { grid-template-columns:1fr !important; }
 .yd-block-hero-title { font-size:38px; }
}


/* Redes sociales: Telegram */
.yd-social--telegram { background: #229ED9; }
.yd-footer .yd-socials { margin: 0 auto 18px; }


/* Portada 2.2.2: redes y botón Ver todos dentro de bloques. */
.yd-block-socials { padding: 18px 20px 0; }
.yd-block-socials .yd-socials { margin: 0 auto; }
.yd-block-socials .yd-social--telegram { background: #229ED9; }
.yd-block-view-all { justify-content: center; margin-top: 36px; }
.yd-block-view-all .wp-block-button__link { display:inline-flex; align-items:center; justify-content:center; min-width:120px; padding:13px 28px; border:0; border-radius:999px; background:#e94b20; color:#fff; font-weight:700; text-decoration:none; box-shadow:0 8px 20px rgba(233,75,32,.18); }
.yd-block-view-all .wp-block-button__link:hover { background:#c93b16; color:#fff; }

/* Ydetodo 2.2.3: bloques independientes, imágenes de servicios y redes en pie. */
.yd-home-container { width:100%; }
.yd-block-service-card { overflow:hidden; }
.yd-block-service-image { margin:-28px -24px 18px; }
.yd-block-service-image img { display:block; width:100%; height:170px; object-fit:cover; }
.yd-hero-image img { display:block; width:100%; height:auto; max-height:360px; object-fit:contain; }
.yd-footer .yd-socials { display:flex; justify-content:center; align-items:center; gap:10px; margin:0 auto 18px; padding:0; list-style:none; }
.yd-footer .yd-socials li { margin:0; padding:0; }
.yd-footer .yd-social { display:flex; width:34px; height:34px; align-items:center; justify-content:center; border-radius:9px; color:#fff; }
.yd-footer .yd-social svg { width:18px; height:18px; }
.yd-block-view-all { justify-content:center; margin-top:36px; }
.yd-block-view-all .wp-block-button__link { background:#e94b20; color:#fff; border-radius:999px; padding:13px 28px; font-weight:700; }


/* Elementor: portada de tres contenedores y página de contacto. */
.yd-el-home-hero, .yd-el-home-services, .yd-el-home-latest, .yd-el-contact-page { box-sizing:border-box; margin-left:auto; margin-right:auto; max-width:1140px; }
.yd-el-home-hero { min-height:390px; }
.yd-el-home-hero .elementor-widget-image img { display:block; width:100%; height:auto; max-height:360px; object-fit:contain; }
.yd-el-home-services { background:#f6f8fa; }
.yd-el-home-services .elementor-widget-heading .elementor-heading-title, .yd-el-home-latest .elementor-widget-heading .elementor-heading-title, .yd-el-contact-page .elementor-widget-heading .elementor-heading-title { font-family:var(--yd-font-head); font-weight:700; }
.yd-el-home-services .elementor-widget-image img { width:100%; height:150px; object-fit:contain; display:block; }
.yd-el-home-services .elementor-element.yd-service-card { min-width:0; }
.yd-el-home-latest .elementor-widget-button .elementor-button { background:#e94b20; color:#fff; border-radius:999px; padding:13px 30px; box-shadow:0 8px 20px rgba(233,75,32,.18); }
.yd-el-post-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:22px; margin-top:24px; }
.yd-el-post-card { overflow:hidden; background:#fff; border:1px solid #edf0f4; border-radius:12px; box-shadow:0 8px 24px rgba(35,25,80,.08); padding:0 0 18px; }
.yd-el-post-image { display:block; height:155px; overflow:hidden; background:#f5f7fa; }
.yd-el-post-image img { width:100%; height:100%; object-fit:cover; display:block; }
.yd-el-post-placeholder img { object-fit:contain; padding:14px; box-sizing:border-box; }
.yd-el-post-card h3 { margin:16px 16px 8px; font-size:17px; }
.yd-el-post-card h3 a { color:#30216f; text-decoration:none; }
.yd-el-post-card p { margin:0 16px; color:#777; font-size:14px; line-height:1.6; }
.yd-el-no-posts { text-align:center; color:#777; }
.yd-el-contact-page .elementor-widget-shortcode { width:100%; max-width:760px; margin-left:auto; margin-right:auto; }
@media(max-width:767px) { .yd-el-home-hero { min-height:0; } .yd-el-post-grid { grid-template-columns:1fr; } }


/* Ydetodo 2.2.5: diseños HTML independientes para Elementor */
.yd-elementor-content > .elementor { width:100%; }
.yd-html-section { width:100%; padding:64px 0 80px; }
.yd-html-wrap { width:min(1120px, calc(100% - 48px)); margin:0 auto; }
.yd-html-hero { padding:64px 0 96px; background:#fff; }
.yd-html-hero-grid { display:grid; grid-template-columns:54% 46%; gap:36px; align-items:center; }
.yd-html-hero-copy h1 { color:#31236e; font:700 clamp(38px,5vw,64px)/1.08 Montserrat, sans-serif; letter-spacing:-.035em; margin:0 0 24px; }
.yd-html-hero-copy h1 span { color:#3ecf5a; }
.yd-html-hero-copy p { color:#777; font-size:18px; max-width:560px; }
.yd-html-hero-art svg { display:block; width:100%; max-height:380px; }
.yd-html-btn { display:inline-flex; align-items:center; justify-content:center; padding:13px 24px; border-radius:10px; font-weight:700; text-decoration:none!important; }
.yd-html-btn-green { background:#3ecf5a; color:#17351d!important; }
.yd-html-btn-orange { background:#e64d22; color:#fff!important; border-radius:30px; min-width:120px; box-shadow:0 8px 20px #e64d2233; }
.yd-html-services { background:#f7f9fa; }
.yd-html-heading { text-align:center; margin:0 auto 34px; }
.yd-html-heading h1,.yd-html-heading h2 { color:#31236e; font:700 38px/1.2 Montserrat,sans-serif; margin:0 0 10px; }
.yd-html-heading p { margin:0; color:#666; }
.yd-html-service-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:18px; }
.yd-html-service-card { overflow:hidden; background:#fff; border-radius:14px; box-shadow:0 6px 24px #31236e12; }
.yd-html-service-image { height:150px; display:flex; align-items:center; justify-content:center; background:#f3f6f8; overflow:hidden; }
.yd-html-service-image svg { display:block; width:100%; height:100%; object-fit:cover; }
.yd-html-service-body { padding:18px; }
.yd-html-service-body h3 { color:#31236e; font-size:18px; margin:0 0 8px; }
.yd-html-service-body p { color:#666; font-size:14px; line-height:1.65; min-height:92px; }
.yd-html-outline { display:inline-block; padding:9px 14px; border:1px solid #aaa; border-radius:8px; color:#555!important; text-decoration:none!important; font-size:13px; font-weight:700; }
.yd-html-latest { background:#fff; }
.yd-html-latest .elementor-widget-posts .elementor-post { overflow:hidden; border-radius:14px; box-shadow:0 6px 24px #31236e12; padding-bottom:18px; }
.yd-html-latest .elementor-post__thumbnail img { width:100%; height:160px; object-fit:cover; }
.yd-html-view-all { display:flex; justify-content:center; margin:38px auto 0; }
.yd-html-contact { padding:64px 0 90px; background:#f8fafb; }
.yd-html-contact-grid { display:grid; grid-template-columns: .9fr 1.1fr; gap:36px; background:#fff; padding:32px; border-radius:16px; box-shadow:0 6px 24px #31236e10; }
.yd-html-contact-info h2 { color:#31236e; font-size:28px; }
.yd-html-contact-detail { margin-top:24px; display:grid; gap:4px; }
.yd-html-contact-form form { display:grid; gap:14px; }
.yd-html-contact-form label { display:grid; gap:6px; color:#31236e; font-weight:600; }
.yd-html-contact-form input,.yd-html-contact-form textarea { width:100%; border:1px solid #dfe3e8; border-radius:8px; padding:12px; font:inherit; }
.yd-html-contact-form button { border:0; cursor:pointer; justify-self:start; }
.yd-html-hp { position:absolute!important; left:-9999px!important; }
@media(max-width:800px){.yd-html-hero-grid{grid-template-columns:1fr}.yd-html-hero-art{max-width:520px;margin:0 auto}.yd-html-service-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.yd-html-contact-grid{grid-template-columns:1fr}}
@media(max-width:520px){.yd-html-service-grid{grid-template-columns:1fr}.yd-html-section{padding:48px 0}.yd-html-wrap{width:calc(100% - 32px)}.yd-html-contact-grid{padding:20px}}
.yd-html-post-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}.yd-html-post-card{overflow:hidden;background:#fff;border-radius:14px;box-shadow:0 6px 24px #31236e12}.yd-html-post-image{display:block;height:150px;overflow:hidden}.yd-html-post-image img{display:block;width:100%;height:100%;object-fit:cover}.yd-html-post-content{padding:18px}.yd-html-post-content h3{font-size:17px;line-height:1.35;margin:0 0 10px}.yd-html-post-content h3 a{color:#31236e;text-decoration:none}.yd-html-post-content p{font-size:13px;line-height:1.6;color:#666}.yd-html-read-more{font-size:12px;font-weight:700;text-decoration:none}@media(max-width:800px){.yd-html-post-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:520px){.yd-html-post-grid{grid-template-columns:1fr}}

/* Ydetodo 2.2.6: imágenes HTML con etiqueta img y formulario sin shortcode */
.yd-html-hero-art img { display:block; width:100%; max-height:380px; object-fit:contain; }
.yd-html-service-image img { display:block; width:100%; height:100%; object-fit:cover; }
.yd-html-contact-form form > input[type="hidden"] { display:none; }
.yd-html-contact-form form > label { margin-top:4px; }
.yd-html-contact-status { margin-bottom:14px; font-weight:600; }
.yd-html-contact-status:empty { display:none; }
.yd-html-contact-status.yd-status-ok { color:#16803c; }
.yd-html-contact-status.yd-status-error,.yd-html-contact-status.yd-status-slow { color:#b42318; }


/* Ydetodo 2.2.7: movimiento suave del lema principal */
@keyframes yd-title-enter {
  0% { opacity: 0; transform: translate3d(0, 22px, 0); }
  100% { opacity: 1; transform: translate3d(0, 0, 0); }
}
@keyframes yd-title-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}
.yd-html-hero-copy h1,
.yd-hero-title {
  animation: yd-title-enter .9s cubic-bezier(.2,.75,.25,1) both;
}
.yd-html-hero-copy h1 span,
.yd-hero-title .yd-verde {
  display: inline-block;
  animation: yd-title-float 3.8s ease-in-out 1s infinite;
  will-change: transform;
}
@media (prefers-reduced-motion: reduce) {
  .yd-html-hero-copy h1, .yd-hero-title,
  .yd-html-hero-copy h1 span, .yd-hero-title .yd-verde {
    animation: none !important; transform: none !important; will-change: auto;
  }
}


/* Ydetodo 2.2.9: tarjetas de publicaciones por categoría en Elementor HTML */
.yd-html-category { background:#fff; }
.yd-html-category .yd-html-post-grid,
.yd-html-latest .yd-html-post-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:22px; }
.yd-html-post-card { min-width:0; display:flex; flex-direction:column; overflow:hidden; background:#fff; border:1px solid #edf0f4; border-radius:16px; box-shadow:0 7px 24px rgba(49,35,110,.08); transition:transform .25s ease,box-shadow .25s ease; }
.yd-html-post-card:hover { transform:translateY(-5px); box-shadow:0 14px 32px rgba(49,35,110,.14); }
.yd-html-post-image { display:block; height:190px; overflow:hidden; background:linear-gradient(135deg,#f0f3f8,#e5eaf2); }
.yd-html-post-image img { display:block; width:100%; height:100%; object-fit:cover; transition:transform .4s ease; }
.yd-html-post-card:hover .yd-html-post-image img { transform:scale(1.045); }
.yd-html-post-image-empty { display:flex; align-items:center; justify-content:center; color:#e64d22; font:700 44px Montserrat,sans-serif; }
.yd-html-post-content { display:flex; flex:1; flex-direction:column; align-items:flex-start; padding:20px 21px 22px; }
.yd-html-post-category { display:inline-flex; margin:0 0 10px; padding:5px 11px; border-radius:30px; background:#fff0e9; color:#d94a20; font-size:10px; font-weight:800; letter-spacing:.07em; text-transform:uppercase; }
.yd-html-post-date { margin:0 0 9px; color:#9299a5; font-size:12px; }
.yd-html-post-content h3 { margin:0 0 10px; font:700 18px/1.35 Montserrat,sans-serif; }
.yd-html-post-content h3 a { color:#31236e; text-decoration:none; }
.yd-html-post-content h3 a:hover { color:#e64d22; }
.yd-html-post-content p { margin:0 0 18px; color:#687080; font-size:13px; line-height:1.7; }
.yd-html-read-more { display:inline-flex; gap:7px; align-items:center; margin-top:auto; color:#e64d22; font-size:13px; font-weight:800; text-decoration:none; }
.yd-html-read-more:hover { color:#bd3917; }
@media(max-width:800px) { .yd-html-category .yd-html-post-grid,.yd-html-latest .yd-html-post-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; } .yd-html-post-image { height:170px; } }
@media(max-width:520px) { .yd-html-category .yd-html-post-grid,.yd-html-latest .yd-html-post-grid { grid-template-columns:1fr; } .yd-html-post-image { height:210px; } }
@media(prefers-reduced-motion:reduce) { .yd-html-post-card,.yd-html-post-image img { transition:none; } }

/* Ydetodo 2.3.2: imágenes de entradas en tarjetas */
.yd-html-post-image{position:relative;display:block;min-height:190px;background:#eef1f5;overflow:hidden}
.yd-html-post-image img{display:block!important;width:100%!important;height:100%!important;min-height:190px;object-fit:cover;opacity:1;visibility:visible}
.yd-html-post-image-empty{display:flex;align-items:center;justify-content:center}


/* Ydetodo 2.3.3: portada a ancho completo (evita el límite de 760px del contenido normal). */

/* Ajuste de ancho de portada: recuperar el ancho equilibrado de Ydetodo 2.3.0 */
body.home #yd-content,
body.front-page #yd-content,
body.home .yd-home-blocks,
body.front-page .yd-home-blocks,
body.home .yd-elementor-content,
body.front-page .yd-elementor-content {
    display: block;
    width: 100%;
    max-width: 1140px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}
body.home .yd-home-blocks > .yd-content,
body.front-page .yd-home-blocks > .yd-content,
body.home .yd-elementor-content > .elementor,
body.front-page .yd-elementor-content > .elementor {
    width: 100%;
    max-width: 1140px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}
body.home .yd-el-home-hero,
body.home .yd-el-home-services,
body.home .yd-el-home-latest,
body.front-page .yd-el-home-hero,
body.front-page .yd-el-home-services,
body.front-page .yd-el-home-latest {
    width: 100%;
    max-width: 1140px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}
body.home .elementor-section.elementor-section-boxed > .elementor-container,
body.front-page .elementor-section.elementor-section-boxed > .elementor-container {
    width: calc(100% - 48px);
    max-width: 1140px;
    margin-left: auto;
    margin-right: auto;
}
@media (max-width: 767px) {
    body.home #yd-content,
    body.front-page #yd-content,
    body.home .yd-home-blocks,
    body.front-page .yd-home-blocks,
    body.home .yd-elementor-content,
    body.front-page .yd-elementor-content {
        width: 100%;
        max-width: 100%;
    }
    body.home .elementor-section.elementor-section-boxed > .elementor-container,
    body.front-page .elementor-section.elementor-section-boxed > .elementor-container {
        width: calc(100% - 32px);
    }
}

/* Tarjetas de novedades del blog */
.yd-latest-image{display:block;overflow:hidden;aspect-ratio:16/10;background:#f0f2f5;text-decoration:none}
.yd-latest-image img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .35s ease}
.yd-card--latest:hover .yd-latest-image img{transform:scale(1.045)}
.yd-latest-no-image{display:grid;place-items:center;width:100%;height:100%;color:#777;background:linear-gradient(135deg,#f1f3f7,#e3e8ef);font-weight:700}
.yd-latest-body{padding:20px}
.yd-latest-date{display:block;color:#8a8f98;font-size:12px;margin-bottom:8px}
.yd-card--latest{overflow:hidden;border-radius:14px;background:#fff;box-shadow:0 6px 24px rgba(49,35,110,.07);transition:transform .25s ease,box-shadow .25s ease}
.yd-card--latest:hover{transform:translateY(-4px);box-shadow:0 14px 32px rgba(49,35,110,.12)}


/* Ydetodo: entrada individual inspirada en el diseño editorial de Apper */
body.single {
    background: #f6f4fe;
}
.yd-single {
    padding: 46px 0 90px;
}
.yd-single-head {
    max-width: 960px;
    padding: 42px 28px 26px;
    margin: 0 auto;
    text-align: center;
}
.yd-single-head .cat-links,
.yd-single-head .cat-links a {
    display: inline-block;
    color: #6a49f2;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    text-decoration: none;
}
.yd-single-title {
    max-width: 900px;
    margin: 14px auto 20px;
    color: #32236f;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.16;
    letter-spacing: -.035em;
}
.yd-meta {
    justify-content: center;
    gap: 12px 20px;
    color: #737987;
    font-size: 13px;
}
.yd-meta img {
    width: 32px;
    height: 32px;
    object-fit: cover;
    border-radius: 50%;
}
.yd-single-media {
    width: min(100% - 40px, 1040px);
    max-width: 1040px;
    margin: 0 auto 34px;
    padding: 0;
    text-align: center;
}
.yd-single-media img {
    display: block;
    width: 100%;
    max-width: 1040px;
    max-height: 500px;
    height: auto;
    margin: 0 auto;
    object-fit: cover;
    object-position: center;
    border-radius: 22px;
    box-shadow: 0 12px 36px rgba(50,35,111,.14);
}
.yd-single-content-wrap {
    width: min(100% - 40px, 1040px);
    max-width: 1040px;
    margin: 0 auto;
    padding: 46px 58px 42px;
    background: #fff;
    border: 1px solid rgba(50,35,111,.06);
    border-radius: 24px;
    box-shadow: 0 8px 30px rgba(192,186,215,.32);
}
.yd-single-content-wrap .yd-content {
    max-width: 820px;
    color: #4d5563;
    font-size: 17px;
    line-height: 1.85;
}
.yd-single-content-wrap .yd-content h2,
.yd-single-content-wrap .yd-content h3,
.yd-single-content-wrap .yd-content h4 {
    color: #32236f;
    line-height: 1.3;
}
.yd-single-content-wrap .yd-content a {
    color: #6a49f2;
}
.yd-single-content-wrap .yd-content img {
    display: block;
    max-width: 100%;
    height: auto;
    margin-left: auto;
    margin-right: auto;
    border-radius: 12px;
}
.yd-single-content-wrap .yd-content figure {
    max-width: 100%;
    margin: 28px auto;
}
.yd-single-foot,
.yd-post-nav {
    max-width: 820px;
}
.yd-single-foot {
    border-color: #eceaf4;
}
.yd-single-foot .tags-links a {
    background: #f1effb;
    color: #51418d;
}
.yd-post-nav {
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid #eceaf4;
}
.yd-post-nav a {
    color: #6a49f2;
}
@media (max-width: 700px) {
    .yd-single { padding-top: 18px; }
    .yd-single-head { padding: 30px 20px 22px; }
    .yd-single-title { font-size: 30px; }
    .yd-single-media { width: calc(100% - 28px); margin-bottom: 20px; }
    .yd-single-media img { max-height: 300px; border-radius: 14px; }
    .yd-single-content-wrap { width: calc(100% - 28px); padding: 26px 22px; border-radius: 16px; }
    .yd-single-content-wrap .yd-content { font-size: 16px; }
}


/* Ajuste definitivo: imagen destacada de artículos individuales */
body.single-post article.yd-single > .yd-single-media,
body.single article.yd-single > .yd-single-media {
    width: min(100% - 40px, 1040px);
    max-width: 1040px;
    margin: 0 auto 34px;
    overflow: hidden;
}

body.single-post article.yd-single .yd-single-media img,
body.single article.yd-single .yd-single-media img,
body.single-post article.yd-single .yd-single-media .wp-post-image,
body.single article.yd-single .yd-single-media .wp-post-image {
    display: block;
    width: 100%;
    max-width: 100%;
    height: 430px;
    max-height: 55vh;
    margin: 0 auto;
    object-fit: contain;
    object-position: center;
    background: #f1eff8;
    border-radius: 22px;
}

@media (max-width: 700px) {
    body.single-post article.yd-single .yd-single-media img,
    body.single article.yd-single .yd-single-media img,
    body.single-post article.yd-single .yd-single-media .wp-post-image,
    body.single article.yd-single .yd-single-media .wp-post-image {
        height: 260px;
        max-height: 42vh;
        border-radius: 14px;
    }
}

/* Corrección reforzada: limitar el tamaño real de la imagen destacada */
body.single-post .yd-single-media,
body.single .yd-single-media {
    width: 100% !important;
    max-width: 760px !important;
    margin: 24px auto 32px !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
    box-sizing: border-box !important;
    text-align: center !important;
}

body.single-post .yd-single-media img,
body.single .yd-single-media img {
    display: inline-block !important;
    width: auto !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: 360px !important;
    object-fit: contain !important;
    margin: 0 auto !important;
}

@media (max-width: 700px) {
    body.single-post .yd-single-media,
    body.single .yd-single-media {
        max-width: 100% !important;
        margin: 16px auto 24px !important;
    }

    body.single-post .yd-single-media img,
    body.single .yd-single-media img {
        max-height: 240px !important;
    }
}

/* Imagen destacada de cada artículo: centrada y máximo 250 px */
body.single-post .yd-single-media,
body.single .yd-single-media {
    width: 100% !important;
    max-width: 100% !important;
    margin: 24px auto 30px !important;
    padding: 0 15px !important;
    box-sizing: border-box !important;
    text-align: center !important;
}

body.single-post .yd-single-media img,
body.single .yd-single-media img,
body.single-post .yd-single-media .wp-post-image,
body.single .yd-single-media .wp-post-image {
    display: block !important;
    width: auto !important;
    max-width: 250px !important;
    height: auto !important;
    max-height: none !important;
    margin: 0 auto !important;
    object-fit: contain !important;
    border-radius: 14px;
}
