/* ==========================================================================
   Páginas especiales: Calendarios de adviento y Regalos
   Se carga solo en esas páginas. Diseñado primero para el celular.
   ========================================================================== */

.brv-landing #content > .col-full {
	max-width: none;
	padding-left: 0;
	padding-right: 0;
}

.brv-land {
	overflow-x: clip;
}

/* Cajas que incluyen el relleno en su tamaño (no depender del tema padre) */
.brv-land,
.brv-land *,
.brv-land *::before,
.brv-land *::after {
	box-sizing: border-box;
}

.brv-land [hidden] {
	display: none !important;
}

.brv-land .brv-perks {
	margin-top: 0;
}

/* Secciones: espaciado propio (el del tema colapsa el aire entre secciones vecinas) */
.brv-land .brv-products,
.brv-land .brv-videosec,
.brv-land .brv-how,
.brv-land .brv-faq {
	padding: 52px 0;
}

.brv-head {
	text-align: center;
	margin-bottom: 32px;
}

.brv-head .brv-section-title {
	margin-bottom: 10px;
}

.brv-head__text {
	max-width: 52ch;
	margin: 0 auto;
	color: var(--at-muted);
}

.brv-notice {
	max-width: 640px;
	margin: 0 auto;
	padding: 18px 20px;
	background: #fff8e1;
	border: 1px dashed #d9a400;
	color: #5c4500;
	font-size: 14px;
	text-align: center;
}

/* ==========================================================================
   Portada de Calendarios
   ========================================================================== */

.brv-hero {
	position: relative;
	display: flex;
	align-items: flex-end;
	min-height: min(82vh, 620px);
	background:
		radial-gradient(70% 90% at 85% 0%, rgba(198, 43, 173, 0.55), transparent 62%),
		radial-gradient(50% 70% at 0% 100%, rgba(232, 127, 213, 0.22), transparent 70%),
		var(--at-dark);
	color: #fff;
	overflow: hidden;
	isolation: isolate;
}

.brv-hero__bg {
	position: absolute;
	inset: 0;
	z-index: -2;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 35%;
}

.brv-hero__veil {
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		linear-gradient(to top,
			rgba(14, 8, 13, 0.95) 0%,
			rgba(14, 8, 13, 0.86) 24%,
			rgba(14, 8, 13, 0.52) 54%,
			rgba(14, 8, 13, 0.16) 82%,
			rgba(14, 8, 13, 0) 100%),
		rgba(14, 8, 13, 0.14);
}

.brv-hero__inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 100%;
	padding-top: 96px;
	padding-bottom: 48px;
	text-align: center;
}

.brv-badge {
	display: inline-block;
	margin-bottom: 16px;
	padding: 8px 16px;
	border-radius: 999px;
	background: var(--at-accent);
	color: #fff;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.2em;
	text-transform: uppercase;
}

.brv-hero__eyebrow {
	display: block;
	margin-bottom: 14px;
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.26em;
	text-transform: uppercase;
	color: var(--at-accent-2);
}

.brv-hero__title {
	margin: 0;
	max-width: 14ch;
	font-family: var(--at-serif);
	font-weight: 400;
	font-size: clamp(38px, 10vw, 76px);
	line-height: 1.06;
	color: #fff;
	text-shadow: 0 2px 34px rgba(0, 0, 0, 0.42);
}

.brv-hero__text {
	max-width: 44ch;
	margin: 18px 0 0;
	font-size: 15px;
	line-height: 1.7;
	color: rgba(255, 255, 255, 0.9);
}

.brv-hero__actions {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 10px;
	width: 100%;
	max-width: 340px;
	margin-top: 26px;
}

.brv-hero__btn {
	min-height: 52px;
	padding: 14px 20px;
	font-size: 11px;
	text-align: center;
}

.brv-hero__btn--solid {
	background: #fff;
	border-color: #fff;
	color: var(--at-ink);
}

.brv-hero__btn--solid:hover {
	background: var(--at-accent);
	border-color: var(--at-accent);
	color: #fff;
}

/* ==========================================================================
   Selector de calendario (celular) y tarjetas
   ========================================================================== */

.brv-products {
	background: var(--at-bg-soft);
}

.brv-switch {
	display: none;
	max-width: 420px;
	margin: 0 auto 22px;
	padding: 4px;
	gap: 4px;
	background: #fff;
	border: 1px solid var(--at-line-2);
	border-radius: 999px;
}

.brv-switch__btn {
	flex: 1;
	appearance: none;
	min-height: 46px;
	padding: 0 12px;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: var(--at-ink);
	font-family: var(--at-sans);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background-color var(--at-t), color var(--at-t);
	-webkit-tap-highlight-color: transparent;
}

.brv-switch__btn.is-active {
	background: var(--at-ink);
	color: #fff;
}

.brv-switch__btn:focus-visible,
.brv-pill:focus-visible,
.brv-cal__thumb:focus-visible,
.brv-video__play:focus-visible {
	outline: 2px solid var(--at-accent);
	outline-offset: 2px;
}

.brv-cals {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 24px;
	max-width: 1120px;
	margin: 0 auto;
}

/* Con una sola tarjeta, no se estira */
.brv-cals:not(.brv-cals--two) {
	max-width: 560px;
}

.brv-cal {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid var(--at-line);
}

.brv-cal__stage {
	position: relative;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	background: var(--at-bg-alt);
}

.brv-cal__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.brv-cal__tag {
	position: absolute;
	left: 12px;
	top: 12px;
	padding: 7px 13px;
	border-radius: 999px;
	background: #fff;
	color: var(--at-ink);
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	box-shadow: 0 4px 14px rgba(26, 16, 24, 0.12);
}

.brv-cal__thumbs {
	display: flex;
	gap: 8px;
	padding: 10px 12px 0;
}

.brv-cal__thumb {
	appearance: none;
	width: 56px;
	height: 56px;
	padding: 0;
	border: 1px solid transparent;
	background: var(--at-bg-alt);
	cursor: pointer;
	opacity: 0.7;
	transition: opacity var(--at-t), border-color var(--at-t);
	-webkit-tap-highlight-color: transparent;
}

.brv-cal__thumb.is-active {
	border-color: var(--at-ink);
	opacity: 1;
}

.brv-cal__thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.brv-cal__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 20px 18px 24px;
}

.brv-cal__days {
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.24em;
	text-transform: uppercase;
	color: var(--at-accent);
}

.brv-cal__title {
	margin: 6px 0 10px;
	font-family: var(--at-serif);
	font-weight: 400;
	font-size: 25px;
	line-height: 1.2;
}

.brv-cal__price {
	font-size: 26px;
	font-weight: 600;
	line-height: 1.2;
}

.brv-cal__price del {
	margin-right: 8px;
	font-size: 17px;
	font-weight: 400;
	color: var(--at-muted-2);
}

.brv-cal__price ins {
	text-decoration: none;
}

.brv-cal__cuotas {
	margin: 8px 0 0;
	font-size: 14px;
	color: var(--at-accent);
}

.brv-cal__cuotas strong {
	font-weight: 700;
}

.brv-cal__desc {
	margin-top: 14px;
	font-size: 14.5px;
	color: var(--at-ink-2);
}

.brv-cal__desc p {
	margin: 0 0 8px;
}

.brv-checks {
	display: grid;
	gap: 10px;
	margin: 18px 0 0;
	padding: 0;
	list-style: none;
}

.brv-checks li {
	position: relative;
	padding-left: 28px;
	font-size: 14.5px;
	line-height: 1.5;
}

.brv-checks li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.12em;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: var(--at-accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 11px no-repeat;
}

.brv-cal__buy {
	display: grid;
	gap: 10px;
	margin-top: auto;
	padding-top: 22px;
}

.brv-land .brv-cal__buy .brv-btn {
	width: 100%;
	min-height: 54px;
	padding: 16px 12px;
	font-size: 11px;
	letter-spacing: 0.14em;
	line-height: 1.2;
	text-align: center;
}

.brv-cal__soldout {
	background: var(--at-line);
	border-color: var(--at-line);
	color: var(--at-muted);
	cursor: not-allowed;
}

/* El drawer del carrito ya confirma la compra: no hace falta el enlace «Ver carrito». */
.brv-cal .added_to_cart {
	display: none;
}

.brv-cal__more {
	align-self: flex-start;
	margin-top: 18px;
}

/* ==========================================================================
   Video
   ========================================================================== */

.brv-videosec__inner {
	display: grid;
	gap: 24px;
	align-items: center;
}

.brv-videosec__copy p {
	max-width: 46ch;
	margin: 0;
	color: var(--at-muted);
}

.brv-videosec__copy .brv-section-title {
	margin-bottom: 14px;
}

.brv-videosec__copy .brv-btn {
	margin-top: 22px;
}

.brv-video {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	background: #000;
	overflow: hidden;
}

.brv-video--vertical {
	aspect-ratio: 9 / 16;
	max-width: min(100%, 340px);
	margin: 0 auto;
}

.brv-video video,
.brv-video__frame,
.brv-video__play {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.brv-video video {
	object-fit: cover;
}

.brv-video__play {
	appearance: none;
	display: block;
	padding: 0;
	background: linear-gradient(135deg, #2a1226, var(--at-accent));
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}

.brv-video__play img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.brv-video__btn {
	position: absolute;
	left: 50%;
	top: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 72px;
	height: 72px;
	border-radius: 50%;
	background: var(--at-accent);
	color: #fff;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
	transform: translate(-50%, -50%);
	transition: transform var(--at-t);
}

.brv-video__btn svg {
	margin-left: 3px;
}

.brv-video__play:hover .brv-video__btn {
	transform: translate(-50%, -50%) scale(1.08);
}

/* ==========================================================================
   Cómo funciona
   ========================================================================== */

.brv-how {
	background: var(--at-bg-alt);
}

.brv-steps {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 14px;
	max-width: 1120px;
	margin: 0 auto;
	padding: 0;
	list-style: none;
}

.brv-steps__item {
	padding: 26px 22px;
	background: #fff;
	text-align: center;
}

.brv-steps__num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	margin-bottom: 12px;
	border-radius: 50%;
	background: var(--at-accent);
	color: #fff;
	font-family: var(--at-serif);
	font-size: 20px;
}

.brv-steps__item h3 {
	margin: 0 0 8px;
	font-family: var(--at-serif);
	font-weight: 400;
	font-size: 21px;
}

.brv-steps__item p {
	margin: 0;
	color: var(--at-muted);
	font-size: 15px;
}

/* ==========================================================================
   Preguntas frecuentes
   ========================================================================== */

.brv-faq__inner {
	max-width: 820px;
}

.brv-faq__item {
	border-bottom: 1px solid var(--at-line-2);
}

.brv-faq__item:first-child {
	border-top: 1px solid var(--at-line-2);
}

.brv-faq__item summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 56px;
	padding: 14px 0;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.4;
	cursor: pointer;
	list-style: none;
	-webkit-tap-highlight-color: transparent;
}

.brv-faq__item summary::-webkit-details-marker {
	display: none;
}

.brv-faq__item summary::after {
	content: "+";
	flex: none;
	font-size: 26px;
	font-weight: 300;
	line-height: 1;
	color: var(--at-accent);
}

.brv-faq__item[open] summary::after {
	content: "\2212";
}

.brv-faq__item summary:focus-visible {
	outline: 2px solid var(--at-accent);
	outline-offset: 2px;
}

.brv-faq__item p {
	margin: 0;
	padding: 0 0 20px;
	max-width: 62ch;
	color: var(--at-muted);
}

/* ==========================================================================
   Cierre
   ========================================================================== */

.brv-final {
	padding: 56px 0;
	background: var(--at-dark);
	color: #fff;
	text-align: center;
}

.brv-final__inner h2 {
	margin: 0 0 10px;
	font-family: var(--at-serif-italic);
	font-style: italic;
	font-weight: 400;
	font-size: clamp(30px, 7vw, 48px);
	line-height: 1.15;
	color: #fff;
}

.brv-final__inner p {
	margin: 0 auto 24px;
	max-width: 46ch;
	color: var(--at-on-dark-muted);
}

.brv-final__btn {
	min-height: 52px;
	background: #fff;
	border-color: #fff;
	color: var(--at-ink);
}

.brv-final__btn:hover {
	background: var(--at-accent);
	border-color: var(--at-accent);
	color: #fff;
}

/* ==========================================================================
   Barra fija de compra (solo celular)
   ========================================================================== */

.brv-sticky {
	display: none;
}

/* ==========================================================================
   Regalos
   ========================================================================== */

.brv-ghead {
	padding: 52px 0 40px;
	background: var(--at-bg-alt);
	text-align: center;
}

.brv-ghead__title {
	margin: 0;
	font-family: var(--at-serif);
	font-weight: 400;
	font-size: clamp(34px, 9vw, 60px);
	line-height: 1.1;
}

.brv-ghead__text {
	max-width: 52ch;
	margin: 14px auto 0;
	color: var(--at-muted);
}

.brv-filters {
	padding: 22px 0 6px;
	border-bottom: 1px solid var(--at-line);
}

.brv-filters__group {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-bottom: 14px;
}

.brv-filters__label {
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--at-muted);
}

/* En el celular los botones se deslizan con el dedo */
.brv-pills {
	display: flex;
	gap: 8px;
	margin: 0 calc(var(--at-gutter) * -1);
	padding: 2px var(--at-gutter);
	overflow-x: auto;
	scroll-snap-type: x proximity;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
}

.brv-pills::-webkit-scrollbar {
	display: none;
}

.brv-pill {
	flex: none;
	appearance: none;
	min-height: 44px;
	padding: 0 18px;
	border: 1px solid var(--at-line-2);
	border-radius: 999px;
	background: #fff;
	color: var(--at-ink);
	font-family: var(--at-sans);
	font-size: 13px;
	font-weight: 500;
	line-height: 1;
	white-space: nowrap;
	cursor: pointer;
	scroll-snap-align: start;
	transition: background-color var(--at-t), color var(--at-t), border-color var(--at-t);
	-webkit-tap-highlight-color: transparent;
}

.brv-pill:hover {
	border-color: var(--at-ink);
}

.brv-pill.is-active {
	background: var(--at-ink);
	border-color: var(--at-ink);
	color: #fff;
}

.brv-pill__n {
	margin-left: 4px;
	font-size: 11px;
	opacity: 0.55;
}

.brv-filters__bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	padding: 6px 0 10px;
}

.brv-filters__count {
	margin: 0;
	font-size: 14px;
	color: var(--at-muted);
}

.brv-sort {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
}

.brv-sort span {
	display: none;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--at-muted);
}

.brv-sort select {
	appearance: none;
	min-height: 44px;
	padding: 0 38px 0 14px;
	border: 1px solid var(--at-line-2);
	border-radius: 0;
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a1a1a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 12px center / 16px no-repeat;
	color: var(--at-ink);
	font-family: var(--at-sans);
	font-size: 14px;
	cursor: pointer;
}

.brv-gifts-body {
	padding-bottom: 8px;
}

.brv-gifts {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 28px 12px;
	padding: 24px 0 8px;
}

.brv-gift {
	min-width: 0;
	animation: brv-in 0.45s ease both;
}

/* Cada regalo reutiliza la tarjeta del tema, en una columna */
.brv-gift .brv-gift__card ul.products {
	display: block;
	margin: 0;
	padding: 0;
}

.brv-gift .brv-gift__card ul.products li.product {
	float: none;
	width: 100%;
	margin: 0;
}

.brv-empty {
	padding: 48px 0;
	text-align: center;
	color: var(--at-muted);
}

.brv-empty button {
	appearance: none;
	margin-left: 8px;
	padding: 0 0 3px;
	border: 0;
	border-bottom: 1px solid currentColor;
	background: transparent;
	color: var(--at-ink);
	cursor: pointer;
}

.brv-more {
	padding: 24px 0 8px;
	text-align: center;
}

.brv-more .brv-btn {
	min-height: 52px;
}

.brv-land--gifts .brv-final {
	margin-top: 48px;
}

@keyframes brv-in {
	from {
		opacity: 0;
		transform: translateY(8px);
	}

	to {
		opacity: 1;
		transform: none;
	}
}

/* ==========================================================================
   Celular: barra fija de compra
   ========================================================================== */

@media (max-width: 767px) {
	.brv-sticky {
		display: flex;
		align-items: center;
		gap: 12px;
		position: fixed;
		left: 10px;
		right: 10px;
		bottom: calc(12px + env(safe-area-inset-bottom));
		z-index: 145;
		padding: 8px 8px 8px 16px;
		background: #fff;
		border: 1px solid var(--at-line-2);
		box-shadow: 0 10px 30px rgba(26, 16, 24, 0.18);
		opacity: 0;
		transform: translateY(140%);
		pointer-events: none;
		transition: transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1), opacity 0.25s ease;
	}

	/* Por encima de la navegación inferior del tema */
	.brv-has-bottomnav .brv-sticky {
		bottom: calc(72px + env(safe-area-inset-bottom));
	}

	.brv-sticky.is-visible {
		opacity: 1;
		transform: none;
		pointer-events: auto;
	}

	.brv-sticky__text {
		flex: 1;
		min-width: 0;
		font-size: 12px;
		font-weight: 600;
		line-height: 1.3;
	}

	.brv-sticky__btn {
		flex: none;
		min-height: 46px;
		padding: 14px 18px;
		font-size: 10px;
	}

	/* El botón de WhatsApp sube para no quedar tapado por la barra */
	.brv-sticky-on .brv-wa {
		bottom: calc(142px + env(safe-area-inset-bottom));
	}

	/* Con JavaScript se elige un calendario por vez */
	.brv-js .brv-switch {
		display: flex;
	}

	.brv-js .brv-cals--two .brv-cal {
		display: none;
	}

	.brv-js .brv-cals--two .brv-cal.is-active {
		display: flex;
	}
}

/* ==========================================================================
   Tablet y escritorio
   ========================================================================== */

@media (min-width: 768px) {
	.brv-land .brv-products,
	.brv-land .brv-videosec,
	.brv-land .brv-how,
	.brv-land .brv-faq {
		padding: 80px 0;
	}

	.brv-head {
		margin-bottom: 44px;
	}

	.brv-hero {
		min-height: 640px;
	}

	.brv-hero__inner {
		padding-top: 130px;
		padding-bottom: 64px;
	}

	.brv-hero__eyebrow,
	.brv-badge {
		font-size: 11px;
	}

	.brv-hero__text {
		font-size: 17px;
	}

	.brv-hero__actions {
		flex-direction: row;
		justify-content: center;
		max-width: none;
		width: auto;
		margin-top: 34px;
	}

	.brv-hero__btn {
		padding: 18px 36px;
		font-size: 12px;
	}

	.brv-cals--two {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 28px;
		align-items: stretch;
	}

	.brv-cal__body {
		padding: 28px 30px 32px;
	}

	.brv-cal__title {
		font-size: 30px;
	}

	.brv-steps {
		grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
		gap: 20px;
	}

	.brv-steps__item {
		padding: 34px 26px;
	}

	.brv-videosec__inner {
		grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
		gap: 56px;
	}

	.brv-videosec__inner.is-vertical {
		grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
		justify-content: center;
	}

	.brv-final {
		padding: 80px 0;
	}

	.brv-ghead {
		padding: 80px 0 56px;
	}

	/* Filtros: en una línea, sin deslizar */
	.brv-filters {
		padding-top: 28px;
	}

	.brv-filters__group {
		flex-direction: row;
		align-items: center;
		gap: 18px;
	}

	.brv-filters__label {
		flex: none;
		width: 84px;
	}

	.brv-pills {
		flex-wrap: wrap;
		margin: 0;
		padding: 0;
		overflow: visible;
	}

	.brv-sort span {
		display: inline;
	}

	.brv-gifts {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 40px 24px;
		padding-top: 32px;
	}
}

@media (min-width: 1024px) {
	.brv-gifts {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: 44px 28px;
	}
}

@media (min-width: 1100px) {
	.brv-cal__buy {
		grid-template-columns: 1fr 1fr;
	}
}

@media (prefers-reduced-motion: reduce) {
	.brv-gift {
		animation: none;
	}

	.brv-sticky,
	.brv-video__btn {
		transition: none;
	}
}
