/* Recursos (blog + preguntas frecuentes) y plantilla de artículo. */

/* ======================= Recursos ======================= */

.el-blog, .el-faq--recursos { display: flex; flex-direction: column; align-items: center; gap: 16px; padding-block: 48px; text-align: center; }
.el-blog > *, .el-faq--recursos > * { margin: 0 !important; }
.el-blog__title { max-width: 780px; font-size: 28px; line-height: 1.13; }
.el-blog .el-blog__title { max-width: 636px; }
.el-blog .el-lead { max-width: 640px; }

.el-blog__query { width: 100%; margin-top: 16px !important; text-align: left; }
.el-posts { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; }
.el-post-card {
	position: relative; display: flex; flex-direction: column; height: 100%; overflow: hidden; box-sizing: border-box;
	border: 1px solid #dee0e3; border-radius: 16px; background: #fff;
	transition: transform 0.3s var(--el-ease), box-shadow 0.3s var(--el-ease);
}
.el-post-card > * { margin: 0 !important; }
.el-post-card::before { content: ""; height: 200px; background: #a5a6a7; } /* sin imagen destacada: el gris del Figma */
.el-post-card:has(.el-post-card__img)::before { display: none; }
.el-post-card__img img { display: block; width: 100%; height: 200px; object-fit: cover; }
.el-post-card:hover { transform: translateY(-4px); box-shadow: 0 16px 32px rgba(26, 44, 58, 0.08); }
.el-post-card__body { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 24px; }
.el-post-card__body > * { margin: 0 !important; }
.el-post-card__cat { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; line-height: normal; text-transform: uppercase; }
.el-post-card__cat::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--wp--preset--color--azul-cielo); }
.el-post-card__cat a, .el-post-card__title a, .el-post-card__more { color: var(--wp--preset--color--navy); text-decoration: none; }
.el-post-card__title { font-size: 20px; font-weight: 600; line-height: normal; }
.el-post-card__title a::after { content: ""; position: absolute; inset: 0; } /* toda la tarjeta es clicable */
.el-post-card__date { font-size: 14px; font-weight: 500; line-height: normal; color: #8c9499; }
.el-post-card__more { font-size: 14px; font-weight: 700; line-height: normal; }
.el-pagination { gap: 12px; margin-top: 32px !important; font-size: 14px; font-weight: 600; }
.el-pagination a { color: var(--wp--preset--color--navy); }

.el-faq--recursos { background: #fff; }
.el-faq--recursos .el-faq__list { max-width: 880px; margin-top: 8px !important; border-radius: 0; background: none; }
.el-faq--recursos .el-faq__item { padding: 22px 0; border: 0; border-bottom: 1px solid #dee0e3; }
.el-faq--recursos .el-faq__item summary { font-size: 16px; font-weight: 600; line-height: normal; color: var(--wp--preset--color--navy); }
.el-faq--recursos .el-faq__item summary::after { font-weight: 700; color: var(--wp--preset--color--navy); }
.el-faq--recursos .el-faq__item p { font-size: 16px; line-height: 1.5; color: #8c9499; }

@media (min-width: 1024px) {
	.el-blog { gap: 24px; padding-block: 72px 60px; }
	.el-blog__title { font-size: 40px; }
	.el-blog__query { max-width: 1282px; margin-top: 32px !important; }
	.el-posts { grid-template-columns: repeat(3, minmax(0, 410px)); justify-content: center; gap: 21px 26px; }
	.el-faq--recursos { gap: 24px; padding-block: 60px 96px; }
	.el-faq--recursos .el-faq__item { padding: 28px 0; }
	.el-faq--recursos .el-faq__item + .el-faq__item { border-top: 0; }
	.el-faq--recursos .el-faq__item summary { font-size: 18px; }
}

/* ======================= Artículo ======================= */

.el-article__head { display: flex; flex-direction: column; gap: 20px; padding-block: 40px 32px; }
.el-article__head > * { margin: 0 !important; }
.el-article__meta { gap: 16px; align-items: center; }
.el-article__cat { padding: 8px 16px; }
.el-article__cat a { color: #fff; text-decoration: none; }
.el-article__date { font-size: 14px; font-weight: 500; color: var(--wp--preset--color--gris-medio); }
.el-article__title { max-width: 797px; font-size: 28px; line-height: 1.13; }
.el-article__excerpt { max-width: 739px; font-size: 16px; line-height: normal; color: var(--wp--preset--color--gris-medio); }
.el-article__excerpt p { margin: 0; }
.el-article__img img { display: block; width: 100%; height: 240px; object-fit: cover; border-radius: 16px; }

.el-article__body { display: flex; flex-direction: column; gap: 24px; padding-block: 8px 56px; }
.el-article__body > * { width: 100%; max-width: 760px; margin: 0 auto !important; }
.el-article__body p, .el-article__body li { font-size: 16px; line-height: 1.5; color: var(--wp--preset--color--gris-medio); }
.el-article__body h2 { font-size: 24px; font-weight: 700; line-height: 1.1; }
.el-article__body h3 { font-size: 20px; font-weight: 600; line-height: normal; }
.el-article__body ul { display: flex; flex-direction: column; gap: 12px; padding: 4px 0; list-style: none; }
.el-article__body li { position: relative; padding-left: 18px; }
.el-article__body li::before { content: ""; position: absolute; top: 0.6em; left: 0; width: 6px; height: 6px; border-radius: 50%; background: var(--wp--preset--color--navy); }
.el-article__body figure img { border-radius: 16px; }
.el-article__body .el-art-sources { font-size: 14px; font-weight: 500; line-height: normal; }

.el-art-faq { display: flex; flex-direction: column; gap: 8px; padding-block: 20px; border-bottom: 1px solid #d3d8db; }
.el-art-faq > * { margin: 0 !important; }

.el-article__body > .el-art-cta { max-width: 1226px; }
.el-art-cta { display: flex; flex-direction: column; gap: 24px; padding: 32px 24px; border-radius: 20px; background: var(--wp--preset--color--navy); }
.el-art-cta > * { margin: 0 !important; }
.el-art-cta__copy { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.el-art-cta__copy > * { margin: 0 !important; }
.el-article__body .el-art-cta__text { max-width: 538px; color: #b8bfcc; }
.el-art-cta__photo img { display: block; width: 100%; height: auto; aspect-ratio: 402 / 254; object-fit: cover; border-radius: 7px; }

.el-related { display: flex; flex-direction: column; gap: 24px; padding-block: 48px; background: var(--el-glass); }
.el-related > * { margin: 0 !important; }
.el-related__title { font-size: 20px; font-weight: 700; line-height: normal; }
.el-related__list { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; }
.el-related__card { position: relative; display: flex; flex-direction: column; gap: 12px; height: 100%; box-sizing: border-box; padding: 16px; border-radius: 16px; background: #fff; }
.el-related__card > * { margin: 0 !important; }
.el-related__card::before { content: ""; height: 140px; border-radius: 10px; background: #f4f4f4; }
.el-related__card:has(.el-related__img)::before { display: none; }
.el-related__img img { display: block; width: 100%; height: 140px; object-fit: cover; border-radius: 10px; }
.el-related__cat { font-size: 13px; font-weight: 600; color: var(--wp--preset--color--gris-medio); }
.el-related__cat a { color: inherit; text-decoration: none; }
.el-related__name { font-size: 16px; font-weight: 700; line-height: normal; }
.el-related__name a { color: var(--wp--preset--color--navy); text-decoration: none; }
.el-related__name a::after { content: ""; position: absolute; inset: 0; }
.el-related__date { font-size: 14px; font-weight: 500; color: var(--wp--preset--color--gris-medio); }

@media (min-width: 1024px) {
	.el-article__head { gap: 24px; padding-block: 64px 48px; }
	.el-article__title { font-size: 40px; }
	.el-article__img img { height: 440px; }
	.el-article__body { gap: 28px; padding-block: 8px 72px; }
	.el-article__body h2 { font-size: 28px; }
	.el-art-cta { flex-direction: row; align-items: center; justify-content: center; gap: 117px; padding: 40px; }
	.el-art-cta__photo { flex: 0 0 402px; }
	.el-related { gap: 32px; padding-block: 64px; }
	.el-related__list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
}
.el-related:not(:has(.el-related__card)) { display: none; } /* sin otros artículos no se muestra */

/* ======================= Popup Platiquemos ======================= */

.el-modal {
	width: min(880px, 100vw - 32px); max-height: calc(100dvh - 32px); box-sizing: border-box; padding: 56px 24px 32px;
	border: 0; border-radius: 16px; background: #fff; box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25); color: var(--wp--preset--color--navy);
}
.el-modal[open] { display: flex; flex-direction: column; gap: 24px; animation: el-pop 0.3s cubic-bezier(.215, .61, .355, 1); }
.el-modal::backdrop { background: rgba(0, 0, 0, 0.55); }
.el-modal p { margin: 0; }
.el-modal__close {
	position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: none; cursor: pointer;
	font-size: 16px; font-weight: 700; color: #8c9499;
}
.el-modal__close { z-index: 1; }
.el-modal__close:hover { background: #f4f4f4; }
.el-modal__close:focus:not(:focus-visible) { outline: none; }
.el-modal__info, .el-modal__agenda { display: flex; flex-direction: column; gap: 8px; }
.el-modal__avatar { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 4px; border-radius: 50%; background: var(--wp--preset--color--navy); font-size: 16px; font-weight: 700; color: #fff; }
.el-modal__org { font-size: 13px; font-weight: 600; color: #8c9499; }
.el-modal__title { margin: 0 0 8px; font-size: 22px; font-weight: 700; line-height: normal; }
.el-modal__meta { font-size: 14px; font-weight: 500; }
.el-modal__text { margin-top: 8px !important; font-size: 13px; line-height: 1.4; color: #8c9499; }
.el-modal__h { font-size: 16px; font-weight: 700; }
.el-modal__link { font-size: 16px; font-weight: 600; color: var(--wp--preset--color--navy); }
.el-modal__agenda iframe { width: 100%; height: 100%; min-height: 560px; border: 0; }
.el-modal.has-calendly { padding: 0; }
.el-modal.has-calendly .el-modal__info { display: none; } /* Calendly ya muestra estos datos */
.el-modal.has-calendly .el-modal__agenda { flex: 1; }

/* Móvil: el popup sube desde abajo como una hoja. */
@keyframes el-sheet { from { translate: 0 100%; } }
@media (max-width: 1023px) {
	.el-modal { width: 100%; max-width: 100%; max-height: 92dvh; margin: auto 0 0; padding-bottom: calc(32px + env(safe-area-inset-bottom)); border-radius: 20px 20px 0 0; overflow-y: auto; }
	.el-modal[open] { animation: el-sheet 0.4s var(--el-ease); }
	.el-modal::before { content: ""; align-self: center; width: 40px; height: 4px; margin: -40px 0 12px; border-radius: 2px; background: #dee0e3; }
}

@media (min-width: 1024px) {
	.el-modal { padding: 40px; }
	.el-modal[open] { flex-direction: row; gap: 40px; min-height: 520px; }
	.el-modal__info { flex: 0 0 240px; }
	.el-modal__agenda { flex: 1; padding-left: 40px; border-left: 1px solid #dee0e3; }
	.el-modal.has-calendly .el-modal__agenda { padding: 0; border: 0; }
	.el-modal__agenda iframe { min-height: 640px; }
	.el-modal.has-calendly { width: min(1000px, 100vw - 32px); }
}
@media (prefers-reduced-motion: reduce) { .el-modal[open] { animation: none; } }
