/* Página de venta del libro (template-libro.php). Colores de marca del sitio. */

.bo-libro {
	--bo-wine: #664351;
	--bo-mauve: #8a6c78;
	--bo-rose: #e6cfc9;
	--bo-blush: #fcf7fa;
	--bo-tint: #f6ece9;
	--bo-ink: #3d2a32;
	--bo-muted: #7a6870;
	--bo-dark: #1d1418;
	color: var(--bo-ink);
	font-size: 17px;
	line-height: 1.65;
}

.bo-libro h2 {
	font-size: 40px;
	line-height: 1.15;
	letter-spacing: -1px;
	margin: 0 0 20px;
	color: var(--bo-wine);
}

.bo-libro h3 {
	color: var(--bo-wine);
}

.bo-libro p {
	margin: 0 0 16px;
}

.bo-wrap {
	max-width: 1180px;
	margin: 0 auto;
	padding: 0 24px;
	box-sizing: border-box;
}

.bo-narrow {
	max-width: 800px;
}

.bo-center {
	text-align: center;
}

.bo-small {
	font-size: 14px;
	color: var(--bo-muted);
	max-width: 720px;
	margin: 28px auto 0 !important;
}

.bo-eyebrow {
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 3px;
	text-transform: uppercase;
	color: var(--bo-mauve);
	margin-bottom: 10px !important;
}

.bo-section {
	padding: 96px 0;
}

.bo-section--tint {
	background: var(--bo-tint);
}

.bo-section--dark {
	background: var(--bo-dark);
	color: #f3e9ec;
}

/* Botones */
.bo-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 15px 28px;
	border-radius: 999px;
	font-weight: 700;
	font-size: 16px;
	line-height: 1.2;
	text-decoration: none !important;
	transition: background-color .2s, color .2s, transform .2s;
}

.bo-btn--primary {
	background: var(--bo-wine);
	color: #fff !important;
}

.bo-btn--primary:hover {
	background: var(--bo-mauve);
	transform: translateY(-1px);
}

.bo-btn--ghost {
	border: 2px solid var(--bo-wine);
	color: var(--bo-wine) !important;
}

.bo-btn--ghost:hover {
	background: var(--bo-wine);
	color: #fff !important;
}

.bo-btn--link {
	color: var(--bo-wine) !important;
	padding-left: 8px;
	padding-right: 8px;
}

.bo-btn--block {
	display: flex;
	width: 100%;
	box-sizing: border-box;
}

.bo-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin: 28px 0 20px;
}

/* Hero */
.bo-hero {
	padding: 170px 0 72px; /* el header de BeTheme es fijo (≈135px) */
	background: linear-gradient(180deg, #c59d9b 0, #ead7d6 150px, var(--bo-blush) 420px); /* mismo tono que el resto de páginas */
}

.bo-hero__grid {
	display: grid;
	grid-template-columns: 5fr 6fr;
	gap: 64px;
	align-items: center;
}

.bo-hero__cover img {
	width: 100%;
	max-width: 460px;
	height: auto;
	display: block;
	margin: 0 auto;
	filter: drop-shadow(0 30px 40px rgba(61, 42, 50, .25));
}

.bo-libro .bo-hero__title {
	font-size: 64px;
	line-height: 1.02;
	letter-spacing: -2.5px;
	color: var(--bo-wine);
	margin: 0 0 20px;
}

.bo-hero__lead {
	font-size: 20px;
	color: var(--bo-ink);
}

.bo-checks {
	list-style: none;
	margin: 22px 0 0;
	padding: 0;
}

.bo-checks li {
	position: relative;
	padding-left: 32px;
	margin-bottom: 10px;
}

.bo-checks li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 6px;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: var(--bo-rose) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='%23664351' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.bo-hero__meta {
	font-size: 14px;
	color: var(--bo-muted);
}

/* Prensa */
.bo-press {
	border-top: 1px solid rgba(102, 67, 81, .12);
	border-bottom: 1px solid rgba(102, 67, 81, .12);
	padding: 26px 0;
	background: #fff;
}

.bo-press__label {
	text-align: center;
	font-size: 12px;
	letter-spacing: 3px;
	text-transform: uppercase;
	color: var(--bo-muted);
	margin-bottom: 12px !important;
}

.bo-press__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px 36px;
}

.bo-press__list a {
	font-weight: 700;
	font-size: 17px;
	color: var(--bo-mauve) !important;
	text-decoration: none;
	opacity: .85;
}

.bo-press__list a:hover {
	opacity: 1;
	color: var(--bo-wine) !important;
}

/* Para quién */
.bo-forwho {
	list-style: none;
	margin: 28px 0 0;
	padding: 0;
	display: grid;
	gap: 14px;
}

.bo-forwho li {
	background: #fff;
	border-left: 4px solid var(--bo-rose);
	border-radius: 10px;
	padding: 18px 22px;
	box-shadow: 0 6px 20px rgba(61, 42, 50, .06);
	font-size: 18px;
}

/* Formatos */
.bo-formats {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
	margin-top: 40px;
}

.bo-format {
	position: relative;
	background: #fff;
	border-radius: 20px;
	padding: 36px 30px 28px;
	text-align: center;
	box-shadow: 0 10px 30px rgba(61, 42, 50, .08);
	display: flex;
	flex-direction: column;
}

.bo-format.is-featured {
	outline: 2px solid var(--bo-wine);
}

.bo-badge {
	position: absolute;
	top: -13px;
	left: 50%;
	transform: translateX(-50%);
	background: var(--bo-wine);
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 1px;
	text-transform: uppercase;
	padding: 5px 14px;
	border-radius: 999px;
	white-space: nowrap;
}

.bo-libro .bo-format h3 {
	font-size: 22px;
	margin: 0 0 8px;
}

.bo-price {
	font-size: 44px;
	font-weight: 800;
	letter-spacing: -1px;
	color: var(--bo-wine);
	margin: 0 0 8px !important;
}

.bo-price span {
	font-size: 16px;
	font-weight: 600;
	color: var(--bo-muted);
	letter-spacing: 0;
}

.bo-format__note {
	color: var(--bo-muted);
}

.bo-format .bo-btn {
	margin-top: auto;
}

.bo-format__where {
	font-size: 13px;
	color: var(--bo-muted);
	margin: 0 0 18px !important;
}

/* Split */
.bo-split {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 64px;
	align-items: center;
}

.bo-split__media {
	margin: 0;
}

.bo-split__media img {
	width: 100%;
	height: auto;
	display: block;
	border-radius: 20px;
}

#sinopsis .bo-split__media img {
	aspect-ratio: 4 / 5;
	object-fit: cover;
	object-position: 68% center;
}

.bo-author__photo img {
	max-width: 420px;
	margin: 0 auto;
	background: var(--bo-tint);
}

/* Prólogo */
.bo-section--dark .bo-eyebrow {
	color: var(--bo-rose);
	text-align: center;
}

.bo-quote {
	margin: 0;
	text-align: center;
	border: 0;
	padding: 0;
	background: none;
}

.bo-quote p {
	font-size: 26px;
	line-height: 1.5;
	font-style: italic;
	color: #fff;
}

.bo-quote footer {
	margin-top: 24px;
	font-size: 15px;
	color: var(--bo-rose);
}

/* Reseñas */
.bo-reviews {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
	margin-top: 40px;
}

.bo-review {
	margin: 0;
	background: var(--bo-blush);
	border-radius: 20px;
	padding: 30px;
	display: flex;
	flex-direction: column;
}

.bo-stars {
	color: #c08a5b;
	font-size: 20px;
	letter-spacing: 2px;
	margin-bottom: 8px;
}

.bo-libro .bo-review h3 {
	font-size: 20px;
	margin: 0 0 10px;
}

.bo-review blockquote {
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	flex: 1;
}

.bo-review blockquote p {
	font-size: 16px;
	font-style: normal;
	color: var(--bo-ink);
}

.bo-review figcaption {
	font-weight: 700;
	color: var(--bo-wine);
}

.bo-review__src {
	font-weight: 400;
	font-size: 14px;
	color: var(--bo-muted);
}

/* Video */
.bo-video {
	position: relative;
	aspect-ratio: 16 / 9;
	border-radius: 20px;
	overflow: hidden;
	box-shadow: 0 10px 30px rgba(61, 42, 50, .15);
}

.bo-video iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

/* Próximo libro */
.bo-next {
	background: var(--bo-blush);
}

.bo-next__grid {
	display: grid;
	grid-template-columns: 340px 1fr;
	gap: 64px;
	align-items: center;
}

.bo-next__card {
	position: relative;
	aspect-ratio: 2 / 3;
	border-radius: 6px 18px 18px 6px;
	background: linear-gradient(160deg, #3a2730 0%, #1d1418 70%);
	box-shadow: 0 30px 50px rgba(29, 20, 24, .3), inset 6px 0 0 rgba(255, 255, 255, .06);
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	text-align: center;
	padding: 40px 28px;
	color: #fff;
	overflow: hidden;
}

.bo-next__card::before {
	content: "";
	position: absolute;
	inset: 18px;
	border: 1px solid rgba(230, 207, 201, .3);
	border-radius: 4px 12px 12px 4px;
}

.bo-next__badge {
	position: absolute;
	top: 36px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 3px;
	text-transform: uppercase;
	color: var(--bo-rose);
}

.bo-next__title {
	font-size: 38px;
	line-height: 1.05;
	font-weight: 800;
	letter-spacing: -1px;
}

.bo-next__author {
	position: absolute;
	bottom: 40px;
	font-size: 14px;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: var(--bo-rose);
}

.bo-next__label {
	font-weight: 700;
	color: var(--bo-wine);
	margin: 8px 0 0 !important;
}

.bo-next .bo-checks {
	margin-top: 12px;
}

.bo-next__meta {
	font-size: 14px;
	color: var(--bo-muted);
	margin-top: 12px !important;
}

.bo-next__incentive {
	margin: 24px 0 0 !important;
	color: var(--bo-wine);
}

/* FAQ */
.bo-faq {
	margin-top: 32px;
}

.bo-faq details {
	background: #fff;
	border-radius: 14px;
	margin-bottom: 12px;
	box-shadow: 0 4px 14px rgba(61, 42, 50, .05);
}

.bo-faq summary {
	cursor: pointer;
	list-style: none;
	padding: 20px 56px 20px 24px;
	font-weight: 700;
	font-size: 18px;
	color: var(--bo-wine);
	position: relative;
}

.bo-faq summary::-webkit-details-marker {
	display: none;
}

.bo-faq summary::after {
	content: "+";
	position: absolute;
	right: 24px;
	top: 50%;
	transform: translateY(-50%);
	font-size: 26px;
	font-weight: 400;
}

.bo-faq details[open] summary::after {
	content: "–";
}

.bo-faq details p {
	padding: 0 24px 22px;
	margin: 0;
	color: var(--bo-muted);
}

/* CTA final */
.bo-final {
	background: linear-gradient(135deg, var(--bo-wine), #4a2f3a);
	color: #fff;
}

.bo-final__grid {
	display: grid;
	grid-template-columns: 260px 1fr;
	gap: 56px;
	align-items: center;
	max-width: 920px;
}

.bo-final__grid img {
	width: 100%;
	height: auto;
	filter: drop-shadow(0 20px 30px rgba(0, 0, 0, .35));
}

.bo-libro .bo-final h2 {
	color: #fff;
}

.bo-final p {
	color: var(--bo-rose);
	font-size: 19px;
}

.bo-final .bo-btn--primary {
	background: #fff;
	color: var(--bo-wine) !important;
	margin-top: 8px;
}

.bo-final .bo-btn--primary:hover {
	background: var(--bo-rose);
}

/* Barra de compra móvil */
.bo-sticky {
	display: none;
}

/* Responsive */
@media (max-width: 959px) {
	.bo-section {
		padding: 72px 0;
	}

	.bo-hero__grid,
	.bo-split {
		grid-template-columns: 1fr;
		gap: 40px;
	}

	.bo-hero__cover img {
		max-width: 300px;
	}

	.bo-hero__text {
		text-align: center;
	}

	.bo-checks {
		display: inline-block;
		text-align: left;
	}

	.bo-actions {
		justify-content: center;
	}

	.bo-split--media-first .bo-split__text,
	#sinopsis .bo-split__text {
		order: 2;
	}

	.bo-next__grid {
		grid-template-columns: 1fr;
		gap: 40px;
	}

	.bo-next__card {
		width: 220px;
		margin: 0 auto;
		padding: 28px 20px;
	}

	.bo-next__title {
		font-size: 28px;
	}

	.bo-formats,
	.bo-reviews {
		grid-template-columns: 1fr;
		max-width: 480px;
		margin-left: auto;
		margin-right: auto;
	}

	.bo-formats {
		gap: 32px;
	}
}

@media (max-width: 767px) {
	.bo-libro {
		font-size: 16px;
	}

	.bo-wrap {
		padding: 0 16px;
	}

	.bo-section {
		padding: 56px 0;
	}

	.bo-hero {
		padding-top: 120px;
	}

	.bo-hero__grid {
		gap: 24px;
	}

	.bo-hero__cover img {
		max-width: 200px;
	}

	.bo-libro h2 {
		font-size: 30px;
	}

	.bo-libro .bo-hero__title {
		font-size: 42px;
		letter-spacing: -1.5px;
	}

	.bo-hero__lead {
		font-size: 18px;
	}

	.bo-quote p {
		font-size: 20px;
	}

	.bo-final__grid {
		grid-template-columns: 1fr;
		text-align: center;
		gap: 28px;
	}

	.bo-final__grid img {
		max-width: 180px;
		margin: 0 auto;
	}

	.bo-sticky {
		display: flex;
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 9000;
		align-items: center;
		justify-content: space-between;
		gap: 12px;
		padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
		background: #fff;
		box-shadow: 0 -6px 20px rgba(61, 42, 50, .12);
		font-size: 14px;
		line-height: 1.3;
		transform: translateY(110%);
		transition: transform .25s;
	}

	.bo-sticky.is-visible {
		transform: none;
	}

	.bo-sticky .bo-btn {
		padding: 11px 22px;
		flex-shrink: 0;
	}

	.bo-libro {
		padding-bottom: 64px;
	}

	/* Que el badge de reCAPTCHA no tape el botón de la barra */
	.grecaptcha-badge {
		bottom: 84px !important;
	}
}

/* Anclas (#formatos, #sinopsis, #proximo-libro): que el header fijo no tape el inicio de la sección */
.bo-libro [id] {
	scroll-margin-top: 110px;
}
