/* =========================================================
   Benaes Blog — Post content shortcodes
   ========================================================= */

/* ── Saber Más  [benaes_saber_mas] ── */

.bsm-saber-mas {
	background-color: #f5f0eb;
	padding: 18px 24px;
	margin: 24px 0;
	line-height: 1.5;
	font-size: 1rem;
}

.bsm-saber-mas__label {
	font-weight: 400;
	color: #1a1a1a;
}

.bsm-saber-mas__text {
	font-weight: 700;
	color: #1a1a1a;
	text-decoration: underline;
	text-underline-offset: 3px;
	text-decoration-thickness: 2px;
}

/* ── Tip / Consejo  [benaes_tip] ── */

.btp-tip {
	border: none;
	border-left: 4px solid #c8c8c8;
	margin: 24px 0;
	padding: 12px 20px;
	background: transparent;
}

.btp-tip__text {
	margin: 0;
	font-style: italic;
	font-size: 1rem;
	line-height: 1.6;
	color: #4a4a4a;
}

/* ── Blockquote antiguo de WordPress (wp-block-quote) ── */

.wp-block-quote:not(:has(.btp-tip)) {
	border: none;
	border-left: 4px solid #c8c8c8;
	margin: 24px 0;
	padding: 12px 20px;
	background: transparent;
}

.wp-block-quote:not(:has(.btp-tip)) p {
	margin: 0;
	font-style: italic;
	font-size: 1rem;
	line-height: 1.6;
	color: #4a4a4a;
}

.wp-block-quote:has(.btp-tip) {
	border: none;
	padding: 0;
	margin: 0;
}

/* ── CTA  [benaes_cta] ── */

.bcta-cta {
	position: relative;
	background-color: #f5f0eb;
	padding: 56px 32px;
	margin: 32px 0;
	text-align: center;
	overflow: hidden;
	border-radius: 24px;
}

.bcta-cta--has-image {
	background-color: #2c2c2c;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	padding: 60px 32px;
}

.bcta-cta__overlay {
	position: absolute;
	inset: 0;
	background-color: rgba(0, 0, 0, 0.55);
	z-index: 1;
}

.bcta-cta__content {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
	max-width: 640px;
	margin: 0 auto;
}

.bcta-cta__title {
	color: #1a1a1a;
	font-size: 2rem;
	font-weight: 800;
	margin: 0;
	line-height: 1.2;
}

.bcta-cta__subtitle {
	color: #5a5a5a;
	font-size: 1.0625rem;
	font-weight: 400;
	margin: 0;
	line-height: 1.5;
}

.bcta-cta--has-image .bcta-cta__title,
.bcta-cta--has-image .bcta-cta__subtitle {
	color: #ffffff;
}

.bcta-cta--has-image .bcta-cta__subtitle {
	font-style: italic;
}

.bcta-cta__buttons {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 12px;
	margin-top: 12px;
}

.bcta-cta__btn {
	display: inline-block;
	padding: 14px 36px;
	border-radius: 999px;
	font-size: 0.95rem;
	font-weight: 600;
	letter-spacing: 0.01em;
	text-decoration: none;
	text-align: center;
	transition:
		background-color 0.2s ease,
		color 0.2s ease,
		border-color 0.2s ease,
		opacity 0.2s ease;
	border: 1.5px solid transparent;
	line-height: 1.2;
}

.bcta-cta__btn--primary {
	background-color: #3a3a3a;
	color: #fffcf6 !important;
	text-decoration: none !important;
	border-color: #3a3a3a;
}

.bcta-cta__btn--primary:hover {
	background-color: transparent;
	border-color: #3a3a3a;
	color: #3a3a3a !important;
}

.bcta-cta__btn--secondary {
	background-color: transparent;
	color: #3a3a3a !important;
	text-decoration: none !important;
	border-color: #3a3a3a;
}

.bcta-cta__btn--secondary:hover {
	background-color: #3a3a3a;
	color: #fffcf6 !important;
}

.bcta-cta--has-image .bcta-cta__btn--primary {
	background-color: #fffcf6;
	color: #3a3a3a !important;
	text-decoration: none !important;
	border-color: #fffcf6;
}

.bcta-cta--has-image .bcta-cta__btn--primary:hover {
	background-color: transparent;
	color: #fffcf6 !important;
	border-color: #fffcf6;
}

.bcta-cta--has-image .bcta-cta__btn--secondary {
	background-color: transparent;
	color: #fffcf6 !important;
	text-decoration: none !important;
	border-color: #fffcf6;
}

.bcta-cta--has-image .bcta-cta__btn--secondary:hover {
	background-color: #fffcf6;
	color: #3a3a3a !important;
}

/* ── Autor del post  [benaes_post_autor] ── */

.bpa-autor {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 0.9rem;
	color: #c8a280;
}

.bpa-autor__avatar {
	width: 32px;
	height: 32px !important;
	border-radius: 50% !important;
	object-fit: cover;
	flex-shrink: 0;
}

.bpa-autor__name,
.bpa-autor__name:hover {
	font-weight: 400;
	line-height: 1;
	color: #bb8c62;
}

.bpa-autor__text {
	display: flex;
	flex-direction: column;
	gap: 3px;
}

.bpa-autor__subtitle {
	font-size: 0.85rem;
	font-weight: 400;
	line-height: 1.2;
	color: #8a8a8a;
}

/* ── Responsive ── */

@media (max-width: 600px) {
	.bcta-cta {
		padding: 40px 22px;
		border-radius: 20px;
	}

	.bcta-cta--has-image {
		padding: 44px 22px;
	}

	.bcta-cta__title {
		font-size: 1.5rem;
	}

	.bcta-cta__subtitle {
		font-size: 1rem;
	}

	.bcta-cta__buttons {
		flex-direction: column;
		width: 100%;
	}

	.bcta-cta__btn {
		width: 100%;
		max-width: 320px;
		padding: 13px 28px;
	}
}

/* ── Lo esencial · 30 segundos  [benaes_esencial] ── */

.bes-esencial {
	--bes-gold: #bb8c62;
	--bes-gold-strong: #a06a3a;
	--bes-gold-soft: rgba(187, 140, 98, 0.16);

	margin: 28px 0;
	padding: 26px 30px;
	background: #ffffff;
	border-left: 5px solid var(--bes-gold);
	border-radius: 14px;
	box-shadow:
		0 1px 2px rgba(0, 0, 0, 0.04),
		0 8px 24px rgba(0, 0, 0, 0.05);
}

.bes-esencial__label {
	margin: 0 0 18px;
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--bes-gold);
}

.bes-esencial__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.bes-esencial__item {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	margin: 0;
	padding: 0;
}

.bes-esencial__num {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	margin-top: 1px;
	border-radius: 50%;
	background: var(--bes-gold-soft);
	color: var(--bes-gold-strong);
	font-size: 0.8125rem;
	font-weight: 700;
	line-height: 1;
}

.bes-esencial__text {
	flex: 1 1 auto;
	color: #3a3a3a;
	font-size: 1.0625rem;
	line-height: 1.55;
}

.bes-esencial__text > :first-child {
	margin-top: 0;
}

.bes-esencial__text > :last-child {
	margin-bottom: 0;
}

.bes-esencial__text p {
	margin: 0 0 0.6em;
}

.bes-esencial__text a {
	color: var(--bes-gold-strong);
	text-decoration: underline;
	text-underline-offset: 2px;
}

@media (max-width: 600px) {
	.bes-esencial {
		padding: 22px 20px;
		border-radius: 12px;
	}

	.bes-esencial__text {
		font-size: 1rem;
	}
}
