/* =========================================================
   Nueva portada · Jessica & Antonio
   ========================================================= */

.bh {
	--ink: #2a1a10;
	--text: #4a3d33;
	--muted: #7a6a5d;
	--gold: #a87410;
	--gold-dark: #885c09;
	--gold-soft: #c9a25a;
	--cream: #fbf6ef;
	--sand: #f4ebdf;
	--line: rgba(168, 116, 16, .28);
	--serif: "EB Garamond", Georgia, serif;
	--sans: "IBM Plex Sans", system-ui, sans-serif;
	--ease: cubic-bezier(.16, 1, .3, 1);
	--header-h: 80px;

	font-family: var(--sans);
	color: var(--text);
	overflow-x: clip;
}

/* Lienzo a pantalla completa dentro de Astra */
.bh-page .site-content > .ast-container,
.bh-page .entry-content,
.bh-page #primary,
.bh-page .site-main,
.bh-page .site-main > article {
	max-width: none !important;
	width: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
}
.bh-page .site-content > .ast-container {
	display: block;
}
.bh > section,
.bh > nav {
	max-width: none !important;
	width: 100% !important;
	margin: 0 !important;
}
.bh-page .entry-content > :not(.bh) {
	display: none;
}

.bh *,
.bh *::before,
.bh *::after {
	box-sizing: border-box;
}
.bh img {
	display: block;
	max-width: 100%;
	height: auto;
}
.bh figure {
	margin: 0;
}
.bh ul,
.bh ol {
	margin-left: 0;
}
.bh p {
	margin: 0 0 1em;
}
.bh h1,
.bh h2,
.bh h3 {
	font-family: var(--serif);
	color: var(--ink);
	font-weight: 500;
	margin: 0;
	text-transform: none;
	letter-spacing: 0;
}

.bh-wrap {
	width: min(1180px, 100% - 48px);
	margin-inline: auto;
}
.bh-wrap--narrow {
	width: min(720px, 100% - 48px);
}

.bh-eyebrow {
	font-family: var(--sans);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .32em;
	text-transform: uppercase;
	color: var(--gold);
	margin: 0 0 18px !important;
}
.bh-title {
	font-size: clamp(36px, 5vw, 58px);
	line-height: 1.05;
}
.bh-sub {
	font-family: var(--serif);
	font-style: italic;
	font-size: 20px;
	color: var(--muted);
	margin-top: 14px !important;
}
.bh-head {
	text-align: center;
	margin-bottom: clamp(48px, 7vw, 80px);
}

/* ---------- Botones ---------- */
.bh-btn {
	--bg: transparent;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 52px;
	padding: 0 30px;
	border-radius: 999px;
	font-family: var(--sans);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .14em;
	text-transform: uppercase;
	text-decoration: none !important;
	position: relative;
	overflow: hidden;
	isolation: isolate;
	transition: transform .4s var(--ease), box-shadow .4s var(--ease), background-color .4s, color .4s, border-color .4s;
}
.bh-btn::after {
	content: "";
	position: absolute;
	inset: 0 auto 0 -60%;
	width: 40%;
	z-index: -1;
	background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .35), transparent);
	transform: skewX(-20deg);
	pointer-events: none;
}
.bh-btn:hover {
	transform: translateY(-2px);
}
.bh-btn:hover::after {
	animation: bh-shine .9s var(--ease);
}
@keyframes bh-shine {
	to {
		left: 130%;
	}
}
.bh-btn--gold {
	background: var(--gold);
	color: #fff !important;
	box-shadow: 0 10px 30px -10px rgba(136, 92, 9, .6);
}
.bh-btn--gold:hover {
	background: var(--gold-dark);
	box-shadow: 0 16px 36px -12px rgba(136, 92, 9, .7);
}
.bh-btn--ghost {
	color: #fff !important;
	border: 1px solid rgba(255, 255, 255, .55);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	background: rgba(255, 255, 255, .06);
}
.bh-btn--ghost:hover {
	background: #fff;
	color: var(--ink) !important;
}
.bh-btn--line {
	color: var(--ink) !important;
	border: 1px solid var(--ink);
}
.bh-btn--line:hover {
	background: var(--ink);
	color: #fff !important;
}
.bh-btn--lg {
	min-height: 58px;
	padding: 0 40px;
}
.bh-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin-top: 32px;
}
.bh-actions--center {
	justify-content: center;
}

/* =========================================================
   PORTADA
   ========================================================= */
.bh-hero {
	position: relative;
	min-height: calc(100svh - var(--header-h));
	min-height: max(620px, calc(100svh - var(--header-h)));
	display: grid;
	place-items: center;
	text-align: center;
	color: #fff;
	isolation: isolate;
	overflow: hidden;
	background: #1d140e;
}
.bh-hero__media {
	position: absolute;
	inset: 0;
	z-index: -2;
}
.bh-hero__img {
	width: 100%;
	height: 100% !important;
	object-fit: cover;
	object-position: 50% 35%;
	transform: scale(1.12);
	animation: bh-kenburns 18s var(--ease) forwards;
	filter: grayscale(1) contrast(1.05);
}
@keyframes bh-kenburns {
	to {
		transform: scale(1);
	}
}
.bh-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		radial-gradient(ellipse at 50% 55%, rgba(29, 20, 14, .25), rgba(29, 20, 14, .7) 75%),
		linear-gradient(180deg, rgba(29, 20, 14, .35), rgba(60, 38, 16, .55));
}
.bh-hero__content {
	padding: 80px 24px 110px;
	max-width: 1000px;
}
.bh-hero__eyebrow {
	color: var(--gold-soft) !important;
	margin-bottom: 22px !important;
}
.bh-hero__title {
	color: #fff !important;
	font-size: clamp(58px, 11vw, 150px) !important;
	line-height: .95 !important;
	font-weight: 400 !important;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: baseline;
	column-gap: .25em;
}
.bh-amp {
	font-style: italic;
	font-weight: 400;
	color: var(--gold-soft);
	font-size: .8em;
}
.bh-hero__date {
	font-family: var(--serif);
	font-size: clamp(19px, 2.2vw, 26px);
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 6px 18px;
	margin: 26px 0 0 !important;
	color: rgba(255, 255, 255, .92);
}
.bh-dot {
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: var(--gold-soft);
}

/* Cuenta atrás */
.bh-count {
	display: flex;
	justify-content: center;
	gap: clamp(10px, 2vw, 18px);
	margin-top: 40px;
}
.bh-count__item {
	min-width: clamp(68px, 9vw, 96px);
	padding: 14px 8px 12px;
	border: 1px solid rgba(255, 255, 255, .22);
	border-radius: 14px;
	background: rgba(255, 255, 255, .07);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	display: flex;
	flex-direction: column;
	align-items: center;
}
.bh-count__num {
	font-family: var(--serif);
	font-size: clamp(28px, 4vw, 44px);
	line-height: 1;
	font-variant-numeric: tabular-nums;
}
.bh-count__num.is-tick {
	animation: bh-tick .6s var(--ease);
}
@keyframes bh-tick {
	from {
		opacity: .2;
		transform: translateY(-30%);
	}
}
.bh-count__label {
	margin-top: 8px;
	font-size: 10px;
	font-weight: 600;
	letter-spacing: .22em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, .7);
}
.bh-hero__actions {
	justify-content: center;
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin-top: 40px;
}

/* Entrada escalonada de la portada */
[class*="bh-in-"] {
	opacity: 0;
	transform: translateY(26px);
	animation: bh-up 1.2s var(--ease) forwards;
}
.bh-in-1 { animation-delay: .15s; }
.bh-in-2 { animation-delay: .3s; }
.bh-in-3 { animation-delay: .5s; }
.bh-in-4 { animation-delay: .65s; }
.bh-in-5 { animation-delay: .9s; }
.bh-in-6 { animation-delay: 1.05s; }
.bh-in-7 { animation-delay: 1.2s; }
@keyframes bh-up {
	to {
		opacity: 1;
		transform: none;
	}
}

.bh-scroll {
	position: absolute;
	left: 50%;
	bottom: 28px;
	width: 26px;
	height: 42px;
	margin-left: -13px;
	border: 1px solid rgba(255, 255, 255, .5);
	border-radius: 20px;
	opacity: 0;
	animation: bh-up 1s var(--ease) 1.8s forwards;
}
.bh-scroll span {
	position: absolute;
	left: 50%;
	top: 8px;
	width: 3px;
	height: 8px;
	margin-left: -1.5px;
	border-radius: 2px;
	background: #fff;
	animation: bh-wheel 2s ease-in-out infinite;
}
@keyframes bh-wheel {
	0% { opacity: 0; transform: translateY(0); }
	30% { opacity: 1; }
	100% { opacity: 0; transform: translateY(14px); }
}

/* =========================================================
   BIENVENIDA
   ========================================================= */
.bh-intro {
	background: var(--cream);
	padding: clamp(80px, 12vw, 150px) 0;
	text-align: center;
}
.bh-ornament {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
	color: var(--gold);
	margin-bottom: 36px;
}
.bh-ornament span {
	height: 1px;
	width: 80px;
	background: var(--line);
}
.bh-lead {
	font-family: var(--serif);
	font-size: clamp(28px, 3.6vw, 42px);
	line-height: 1.25;
	color: var(--ink);
}
.bh-intro__text {
	font-size: 17px;
	line-height: 1.8;
	max-width: 560px;
	margin: 26px auto 0 !important;
}
.bh-intro__text strong {
	color: var(--ink);
	font-weight: 600;
}
.bh-signature {
	font-family: var(--serif);
	font-style: italic;
	font-size: 26px;
	color: var(--gold);
	margin-top: 34px !important;
}

/* =========================================================
   EL GRAN DÍA · línea de tiempo
   ========================================================= */
.bh-day {
	padding: clamp(80px, 12vw, 140px) 0;
	background: #fff;
}
.bh-timeline {
	list-style: none;
	margin: 0 auto;
	padding: 0;
	max-width: 760px;
	position: relative;
}
.bh-timeline::before {
	content: "";
	position: absolute;
	left: 50%;
	top: 10px;
	bottom: 10px;
	width: 1px;
	background: var(--line);
	transform-origin: top;
	transform: scaleY(var(--bh-progress, 1));
}
.bh-timeline__item {
	display: grid;
	grid-template-columns: 1fr 64px 1fr;
	align-items: center;
	gap: 28px;
	margin: 0 0 54px;
}
.bh-timeline__item:last-child {
	margin-bottom: 0;
}
.bh-timeline__time {
	font-family: var(--serif);
	font-size: clamp(36px, 4.5vw, 52px);
	color: var(--gold);
	text-align: right;
	line-height: 1;
}
.bh-timeline__icon {
	width: 64px;
	height: 64px;
	border-radius: 50%;
	background: var(--cream);
	border: 1px solid var(--line);
	display: grid;
	place-items: center;
	position: relative;
	z-index: 1;
	transition: transform .5s var(--ease), background-color .5s, border-color .5s;
}
.bh-timeline__icon svg,
.bh-facts svg,
.bh-album__icon svg {
	fill: none;
	stroke: currentColor;
	stroke-width: 1.6;
	stroke-linecap: round;
	stroke-linejoin: round;
}
.bh-timeline__icon svg {
	width: 30px;
	height: 30px;
	color: var(--gold-dark);
}
.bh-timeline__item:hover .bh-timeline__icon {
	transform: scale(1.08) rotate(-6deg);
	background: var(--gold);
	border-color: var(--gold);
}
.bh-timeline__item:hover .bh-timeline__icon svg {
	color: #fff;
}
.bh-timeline__body h3 {
	font-size: 26px;
	line-height: 1.15;
	margin-bottom: 6px;
}
.bh-timeline__body p {
	margin: 0;
	color: var(--muted);
	font-size: 15px;
}
/* alterna lados */
.bh-timeline__item:nth-child(even) .bh-timeline__time {
	order: 3;
	text-align: left;
}
.bh-timeline__item:nth-child(even) .bh-timeline__icon {
	order: 2;
}
.bh-timeline__item:nth-child(even) .bh-timeline__body {
	order: 1;
	text-align: right;
}

/* =========================================================
   EL LUGAR
   ========================================================= */
.bh-venue {
	background: var(--sand);
	padding: clamp(80px, 12vw, 140px) 0;
}
.bh-venue__grid {
	display: grid;
	grid-template-columns: 1.05fr 1fr;
	gap: clamp(48px, 7vw, 100px);
	align-items: center;
}
.bh-venue__media {
	position: relative;
	padding: 0 18% 18% 0;
}
.bh-venue__media figure {
	overflow: hidden;
	border-radius: 220px 220px 18px 18px;
	box-shadow: 0 30px 60px -30px rgba(42, 26, 16, .45);
}
.bh-venue__main img {
	width: 100%;
	aspect-ratio: 4 / 5;
	object-fit: cover;
}
.bh-venue__small {
	position: absolute !important;
	right: 0;
	bottom: 0;
	width: 52%;
	border-radius: 18px !important;
	border: 8px solid var(--sand);
}
.bh-venue__small img {
	aspect-ratio: 4 / 3;
	object-fit: cover;
	width: 100%;
}
.bh-venue__media img {
	transition: transform 1.4s var(--ease);
}
.bh-venue__media figure:hover img {
	transform: scale(1.05);
}
.bh-facts {
	list-style: none;
	margin: 36px 0 0;
	padding: 0;
	display: grid;
	gap: 22px;
}
.bh-facts li {
	display: grid;
	grid-template-columns: 46px 1fr;
	gap: 16px;
	align-items: start;
	line-height: 1.6;
	font-size: 15.5px;
}
.bh-facts svg {
	width: 46px;
	height: 46px;
	padding: 11px;
	border-radius: 50%;
	background: #fff;
	color: var(--gold-dark);
}
.bh-facts strong {
	display: block;
	font-family: var(--serif);
	font-size: 21px;
	font-weight: 500;
	color: var(--ink);
	margin-bottom: 2px;
}
.bh-note {
	margin-top: 26px !important;
	font-family: var(--serif);
	font-style: italic;
	font-size: 18px;
	color: var(--muted);
}

/* =========================================================
   INFORMACIÓN ÚTIL
   ========================================================= */
.bh-info {
	padding: clamp(80px, 12vw, 140px) 0;
	background: #fff;
}
.bh-cards {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 28px;
}
.bh-card {
	display: flex;
	flex-direction: column;
	text-decoration: none !important;
	color: inherit !important;
	background: var(--cream);
	border-radius: 20px;
	overflow: hidden;
	transition: transform .6s var(--ease), box-shadow .6s var(--ease);
	box-shadow: 0 0 0 rgba(42, 26, 16, 0);
}
.bh-card:hover {
	transform: translateY(-6px);
	box-shadow: 0 30px 50px -28px rgba(42, 26, 16, .4);
}
.bh-card figure {
	overflow: hidden;
	aspect-ratio: 4 / 3;
}
.bh-card figure img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 1.2s var(--ease);
}
.bh-card:hover figure img {
	transform: scale(1.07);
}
.bh-card__body {
	padding: 28px 28px 30px;
	display: flex;
	flex-direction: column;
	flex: 1;
}
.bh-card__num {
	font-family: var(--serif);
	font-size: 18px;
	color: var(--gold);
	margin-bottom: 8px;
}
.bh-card h3 {
	font-size: 28px;
	margin-bottom: 8px;
}
.bh-card p {
	color: var(--muted);
	font-size: 15px;
	line-height: 1.6;
}
.bh-card__more {
	margin-top: auto;
	padding-top: 10px;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--gold-dark);
	display: inline-flex;
	align-items: center;
	gap: 10px;
}
.bh-card__more::after {
	content: "→";
	font-size: 16px;
	letter-spacing: 0;
	transition: transform .4s var(--ease);
}
.bh-card:hover .bh-card__more::after {
	transform: translateX(6px);
}

/* =========================================================
   NUESTRA HISTORIA
   ========================================================= */
.bh-story {
	padding: clamp(80px, 12vw, 140px) 0;
	background: var(--cream);
}
.bh-story__grid {
	display: grid;
	grid-template-columns: .9fr 1.1fr;
	gap: clamp(48px, 8vw, 110px);
	align-items: center;
}
.bh-story__photo {
	position: relative;
	max-width: 440px;
	justify-self: center;
}
.bh-story__photo::before {
	content: "";
	position: absolute;
	inset: -18px 18px 18px -18px;
	border: 1px solid var(--gold-soft);
	border-radius: 18px;
	z-index: 0;
	transition: transform .8s var(--ease);
}
.bh-story__photo:hover::before {
	transform: translate(-6px, -6px);
}
.bh-story__photo img {
	position: relative;
	z-index: 1;
	border-radius: 18px;
	aspect-ratio: 3 / 4;
	object-fit: cover;
	width: 100%;
	box-shadow: 0 30px 60px -30px rgba(42, 26, 16, .5);
}
.bh-story__text .bh-title {
	margin-bottom: 26px;
}
.bh-story__text p {
	font-size: 17px;
	line-height: 1.8;
}
.bh-story__text strong {
	color: var(--ink);
}

/* =========================================================
   CONFIRMACIÓN
   ========================================================= */
.bh-rsvp {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	padding: clamp(100px, 14vw, 170px) 0;
	text-align: center;
	color: rgba(255, 255, 255, .88);
	background: #2a1a10;
}
.bh-rsvp__bg {
	position: absolute;
	inset: -15% 0;
	z-index: -2;
	will-change: transform;
}
.bh-rsvp__bg img {
	width: 100%;
	height: 100% !important;
	object-fit: cover;
}
.bh-rsvp::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(180deg, rgba(42, 26, 16, .9), rgba(42, 26, 16, .8));
}
.bh-rsvp .bh-eyebrow {
	color: var(--gold-soft);
}
.bh-rsvp .bh-title {
	color: #fff;
	font-size: clamp(44px, 7vw, 84px);
	margin-bottom: 22px;
}
.bh-rsvp p {
	font-size: 18px;
	line-height: 1.7;
}

/* =========================================================
   ÁLBUM
   ========================================================= */
.bh-album {
	padding: clamp(80px, 12vw, 130px) 0;
	background: #fff;
	text-align: center;
}
.bh-album__icon {
	width: 76px;
	height: 76px;
	margin: 0 auto 26px;
	border-radius: 50%;
	background: var(--cream);
	display: grid;
	place-items: center;
	color: var(--gold-dark);
}
.bh-album__icon svg {
	width: 36px;
	height: 36px;
}
.bh-album .bh-title {
	margin-bottom: 18px;
}
.bh-album p {
	font-size: 17px;
	line-height: 1.7;
}
.bh-thanks {
	margin-top: 60px !important;
	font-family: var(--serif);
	font-style: italic;
	font-size: 22px;
	color: var(--gold);
}

/* =========================================================
   Aparición al hacer scroll
   ========================================================= */
/* Se anima con una animación (no con transition) para no pisar
   las transiciones propias de cada tarjeta al pasar el ratón. */
.bh-js .bh [data-reveal]:not(.is-in) {
	opacity: 0;
}
.bh-js .bh [data-reveal].is-in {
	animation: bh-reveal 1.1s var(--ease) var(--bh-delay, 0s) backwards;
}
@keyframes bh-reveal {
	from {
		opacity: 0;
		transform: translateY(30px);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 900px) {
	.bh-venue__grid,
	.bh-story__grid {
		grid-template-columns: 1fr;
	}
	.bh-cards {
		grid-template-columns: 1fr;
		max-width: 520px;
		margin-inline: auto;
	}
	.bh-venue__media {
		max-width: 520px;
		margin-inline: auto;
		width: 100%;
	}
	.bh-story__photo {
		max-width: 340px;
	}
}

@media (max-width: 640px) {
	.bh-hero__content {
		padding: 24px 20px 100px; /* sube el contenido para que el selector de idioma flotante no pise «Ver detalles» */
	}
	.bh-count {
		gap: 8px;
	}
	.bh-count__item {
		min-width: 0;
		flex: 1;
		padding: 12px 4px 10px;
	}
	.bh-count__label {
		font-size: 9px;
		letter-spacing: .14em;
	}
	.bh-hero__actions .bh-btn {
		width: 100%;
	}

	/* línea de tiempo a un lado */
	.bh-timeline::before {
		left: 27px;
	}
	.bh-timeline__item,
	.bh-timeline__item:nth-child(even) {
		grid-template-columns: 54px 1fr;
		grid-template-areas: "icon time" "icon body";
		gap: 4px 20px;
		align-items: start;
		margin-bottom: 40px;
	}
	.bh-timeline__icon {
		grid-area: icon;
		width: 54px;
		height: 54px;
	}
	.bh-timeline__icon svg {
		width: 26px;
		height: 26px;
	}
	.bh-timeline__time,
	.bh-timeline__item:nth-child(even) .bh-timeline__time {
		grid-area: time;
		text-align: left;
		font-size: 34px;
		order: 0;
	}
	.bh-timeline__body,
	.bh-timeline__item:nth-child(even) .bh-timeline__body {
		grid-area: body;
		text-align: left;
		order: 0;
	}
	.bh-timeline__body h3 {
		font-size: 23px;
	}
	.bh-ornament span {
		width: 48px;
	}
	.bh-actions .bh-btn {
		flex: 1 1 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.bh *,
	.bh *::before,
	.bh *::after {
		animation: none !important;
		transition: none !important;
	}
	[class*="bh-in-"],
	.bh-scroll {
		opacity: 1;
		transform: none;
	}
	.bh-hero__img {
		transform: none;
	}
}
