/* =========================================================
   Boda – Mejoras: animaciones sobre el diseño existente
   Paleta: dorado #a87410 / #885c09 · crema #fff7f0 · marrón #3a2416
   ========================================================= */

:root {
	--bm-gold: #a87410;
	--bm-gold-dark: #885c09;
	--bm-cream: #fff7f0;
	--bm-brown: #3a2416;
	--bm-ease: cubic-bezier(.22, .61, .36, 1);
	--bm-ease-out: cubic-bezier(.16, 1, .3, 1);
}

html {
	scroll-behavior: smooth;
}

/* ---------- Barra de progreso de lectura ---------- */
.bm-progress {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	z-index: 99999;
	pointer-events: none;
	background: linear-gradient(90deg, #c99a3b, var(--bm-gold), var(--bm-gold-dark));
	transform-origin: 0 50%;
	transform: scaleX(0);
}
.admin-bar .bm-progress {
	top: 32px;
}
@media (max-width: 782px) {
	.admin-bar .bm-progress {
		top: 46px;
	}
}

/* ---------- Cabecera fija con sombra al hacer scroll ---------- */
.bm-js #masthead {
	position: sticky;
	top: 0;
	z-index: 999;
	transition: box-shadow .4s var(--bm-ease), background-color .4s var(--bm-ease);
}
.admin-bar.bm-js #masthead,
.bm-js .admin-bar #masthead {
	top: 32px;
}
@media (max-width: 782px) {
	.bm-js .admin-bar #masthead {
		top: 0;
	}
}
.bm-scrolled #masthead {
	box-shadow: 0 6px 30px rgba(58, 36, 22, .08);
}
.bm-scrolled #masthead .main-header-bar,
.bm-scrolled #masthead .ast-primary-header-bar {
	background-color: rgba(255, 255, 255, .92);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
}

/* Subrayado suave en el menú */
.main-header-menu > .menu-item > .menu-link {
	text-decoration: underline !important;
	text-decoration-color: transparent !important;
	text-decoration-thickness: 1px !important;
	text-underline-offset: 8px;
	transition: color .35s var(--bm-ease), text-decoration-color .35s var(--bm-ease), text-underline-offset .35s var(--bm-ease) !important;
}
.main-header-menu > .menu-item > .menu-link:hover,
.main-header-menu > .current-menu-item > .menu-link {
	text-decoration-color: currentColor !important;
	text-underline-offset: 5px;
}

/* ---------- Aparición al hacer scroll ---------- */
.bm-js .bm-reveal {
	opacity: 0;
	transform: translate3d(0, 28px, 0);
	transition: opacity 1s var(--bm-ease-out), transform 1.1s var(--bm-ease-out);
	transition-delay: var(--bm-delay, 0s);
	will-change: opacity, transform;
}
.bm-js .bm-reveal.bm-from-left {
	transform: translate3d(-36px, 0, 0);
}
.bm-js .bm-reveal.bm-from-right {
	transform: translate3d(36px, 0, 0);
}
.bm-js .bm-reveal.bm-in {
	opacity: 1;
	transform: none;
	will-change: auto;
}

/* Imágenes: aparecen con un ligero "zoom out" */
.bm-js .bm-reveal-img figure,
.bm-js .bm-reveal-img .wp-block-uagb-image__figure {
	overflow: hidden;
}
.bm-js .bm-reveal-img img {
	transform: scale(1.12);
	transition: transform 1.6s var(--bm-ease-out);
	transition-delay: var(--bm-delay, 0s);
}
.bm-js .bm-reveal-img.bm-in img {
	transform: scale(1);
}

/* Separadores dorados: la línea se dibuja */
.bm-js .bm-line {
	transform: scaleX(0);
	transform-origin: var(--bm-line-origin, 0) 50%;
	transition: transform 1.2s var(--bm-ease-out) .15s;
}
.bm-js .bm-in .bm-line,
.bm-js .bm-line.bm-in {
	transform: scaleX(1);
}

/* ---------- Portada ---------- */
/* Oculto hasta que el JS lo prepara, para que no parpadee */
.bm-js:not(.bm-ready):not(.bm-failsafe) .home .entry-content > .uagb-is-root-container:first-child .uagb-heading-text {
	visibility: hidden;
}
.bm-word {
	display: inline-block;
	overflow: hidden;
	vertical-align: top;
	padding-bottom: .08em;
	margin-bottom: -.08em;
}
.bm-word > span {
	display: inline-block;
	transform: translate3d(0, 105%, 0);
	animation: bm-rise 1.1s var(--bm-ease-out) forwards;
	animation-delay: var(--bm-delay, 0s);
}
@keyframes bm-rise {
	to {
		transform: none;
	}
}

/* ---------- Cuenta atrás ---------- */
.wp-block-uagb-countdown__box {
	transition: transform .5s var(--bm-ease), box-shadow .5s var(--bm-ease);
}
.wp-block-uagb-countdown__box:hover {
	transform: translateY(-4px);
	box-shadow: 0 14px 34px rgba(58, 36, 22, .14);
}
.wp-block-uagb-countdown__time.bm-tick {
	animation: bm-tick .6s var(--bm-ease-out);
}
@keyframes bm-tick {
	0% {
		opacity: .2;
		transform: translateY(-35%);
		filter: blur(2px);
	}
	100% {
		opacity: 1;
		transform: none;
		filter: none;
	}
}

/* ---------- Tarjetas (Hoteles, Transporte, Córdoba…) ---------- */
.bm-card {
	transition: transform .5s var(--bm-ease), box-shadow .5s var(--bm-ease);
}
.bm-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 18px 40px rgba(58, 36, 22, .10);
}
.bm-card .uagb-heading-text {
	transition: color .4s var(--bm-ease), letter-spacing .5s var(--bm-ease);
}
.bm-card:hover h2.uagb-heading-text {
	color: var(--bm-gold);
}

/* ---------- Imágenes: zoom suave al pasar el ratón ---------- */
.bm-zoom {
	overflow: hidden;
}
.bm-zoom img {
	transition: transform 1.2s var(--bm-ease-out), filter .6s var(--bm-ease) !important;
}
.bm-zoom:hover img {
	transform: scale(1.05) !important;
}

/* ---------- Botones ---------- */
.bm-btn {
	position: relative;
	overflow: hidden;
	isolation: isolate;
	transition: transform .35s var(--bm-ease), box-shadow .35s var(--bm-ease), background-color .35s var(--bm-ease) !important;
}
.bm-btn::after {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	left: -75%;
	width: 50%;
	z-index: -1;
	pointer-events: none;
	background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .35), transparent);
	transform: skewX(-20deg);
}
.bm-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 24px rgba(136, 92, 9, .28);
}
.bm-btn:hover::after {
	animation: bm-shine .9s var(--bm-ease);
}
@keyframes bm-shine {
	to {
		left: 130%;
	}
}

/* Enlaces de texto ("Leer más"): flecha que avanza */
.bm-link .uagb-button__link {
	transition: letter-spacing .4s var(--bm-ease);
}
.bm-link:hover .uagb-button__link {
	letter-spacing: .04em;
}

/* Botón principal de la cabecera: píldora marrón oscuro con corazón dorado */
.ast-header-button-1 .ast-custom-button,
.ast-custom-button {
	display: inline-flex !important;
	align-items: center;
	gap: 10px;
	min-height: 46px;
	padding: 0 24px 0 20px !important;
	border-radius: 999px !important;
	border: 1px solid #2a1a10 !important;
	background: #2a1a10 !important;
	color: #fff !important;
	font-family: "IBM Plex Sans", system-ui, sans-serif !important;
	font-size: 12px !important;
	font-weight: 600 !important;
	letter-spacing: .14em !important;
	text-transform: uppercase !important;
	line-height: 1 !important;
	box-shadow: 0 8px 22px -12px rgba(42, 26, 16, .7) !important;
	transition: background-color .4s var(--bm-ease), border-color .4s var(--bm-ease), color .4s var(--bm-ease), transform .4s var(--bm-ease), box-shadow .4s var(--bm-ease) !important;
}
.ast-custom-button::before {
	content: "";
	width: 15px;
	height: 15px;
	flex: none;
	background: #c9a25a;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21s-8-5-8-11a4.5 4.5 0 018-2.8A4.5 4.5 0 0120 10c0 6-8 11-8 11z'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21s-8-5-8-11a4.5 4.5 0 018-2.8A4.5 4.5 0 0120 10c0 6-8 11-8 11z'/%3E%3C/svg%3E") center / contain no-repeat;
	transition: background-color .4s var(--bm-ease), transform .5s var(--bm-ease);
}
.ast-custom-button:hover {
	background: #a87410 !important;
	border-color: #a87410 !important;
	transform: translateY(-2px);
	box-shadow: 0 14px 28px -12px rgba(136, 92, 9, .6) !important;
}
.ast-custom-button:hover::before {
	background: #fff;
	transform: scale(1.15);
}
.ast-header-button-1 .ast-custom-button-link {
	text-decoration: none !important;
}

/* ---------- Secciones con imagen de fondo: parallax ---------- */
.bm-parallax {
	background-attachment: scroll !important;
	background-position: center var(--bm-py, 50%) !important;
	background-size: cover !important;
}

/* ---------- Popup de confirmación ---------- */
.pum-overlay.pum-active .pum-container {
	animation: bm-popup .55s var(--bm-ease-out);
}
@keyframes bm-popup {
	from {
		opacity: 0;
		transform: translateY(24px) scale(.97);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

/* ---------- Selector de idioma y botón "subir" ---------- */
.trp-floating-switcher,
#ast-scroll-top {
	transition: transform .35s var(--bm-ease), box-shadow .35s var(--bm-ease), opacity .35s var(--bm-ease) !important;
}
.trp-floating-switcher:hover,
#ast-scroll-top:hover {
	transform: translateY(-3px);
	box-shadow: 0 10px 24px rgba(58, 36, 22, .15);
}

/* ---------- Si JS falla, todo visible ---------- */
.bm-failsafe:not(.bm-ready) .bm-reveal {
	opacity: 1 !important;
	transform: none !important;
}

/* ---------- Accesibilidad: sin movimiento si el usuario lo pide ---------- */
@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
	*,
	*::before,
	*::after {
		animation: none !important;
		transition: none !important;
	}
	.bm-progress {
		display: none;
	}
}

/* =========================================================
   Ajustes de maquetación por página
   ========================================================= */

/* Nosotros: fotos centradas y con aire respecto a la cabecera */
.entry-content .uagb-block-a0ff4339.uagb-is-root-container {
	padding: 80px 40px 0 !important;
}
.uagb-block-a0ff4339 > .uagb-container-inner-blocks-wrap > .wp-block-group {
	justify-content: center;
	gap: 48px;
	width: 100%;
}
.uagb-block-a0ff4339 .uagb-block-9e55d07d {
	width: auto;
	flex: 0 1 auto;
}
@media (max-width: 768px) {
	.entry-content .uagb-block-a0ff4339.uagb-is-root-container {
		padding: 48px 24px 0 !important;
	}
	.uagb-block-a0ff4339 > .uagb-container-inner-blocks-wrap > .wp-block-group {
		flex-wrap: wrap;
		gap: 24px;
	}
	.uagb-block-a0ff4339 .uagb-block-9e55d07d,
	.uagb-block-a0ff4339 .wp-block-group > figure,
	.uagb-block-a0ff4339 .wp-block-image,
	.uagb-block-a0ff4339 .wp-block-image img {
		width: 100% !important;
		max-width: 100%;
		margin: 0;
	}
}

/* =========================================================
   Pie de página
   ========================================================= */
.site-primary-footer-wrap {
	display: none !important; /* antiguo bloque "No te pierdas nuestro gran día" */
}
.bm-footer {
	background: #2a1a10;
	color: rgba(255, 255, 255, .72);
	text-align: center;
	padding: 64px 24px 44px;
	font-family: "IBM Plex Sans", system-ui, sans-serif;
}
.bm-footer__inner {
	max-width: 900px;
	margin: 0 auto;
}
.bm-footer p {
	margin: 0;
}
.bm-footer__names {
	font-family: "EB Garamond", Georgia, serif;
	font-size: clamp(30px, 4vw, 40px);
	line-height: 1.1;
	color: #fff;
}
.bm-footer__names em {
	color: #c9a25a;
}
.bm-footer__date {
	margin-top: 10px !important;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .28em;
	text-transform: uppercase;
	color: #c9a25a;
}
.bm-footer__links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px 30px;
	margin-top: 28px;
}
.bm-footer__links a {
	color: rgba(255, 255, 255, .85) !important;
	font-size: 14px;
	text-decoration: underline !important;
	text-decoration-color: rgba(201, 162, 90, .45) !important;
	text-underline-offset: 5px;
	transition: color .35s var(--bm-ease), text-decoration-color .35s var(--bm-ease);
}
.bm-footer__links a:hover {
	color: #fff !important;
	text-decoration-color: #c9a25a !important;
}

/* Fila inferior de Astra (menú + copyright) integrada en el mismo bloque */
.site-footer .site-below-footer-wrap {
	background: #2a1a10 !important;
	border-top: 1px solid rgba(255, 255, 255, .1) !important;
	padding: 0 !important;
}
.site-footer .site-below-footer-wrap .ast-builder-grid-row {
	min-height: 0 !important;
	padding: 18px 0 70px !important; /* deja sitio al selector de idioma flotante */
}
.site-footer .site-below-footer-wrap,
.site-footer .site-below-footer-wrap p,
.site-footer .ast-footer-copyright {
	color: rgba(255, 255, 255, .5) !important;
	font-size: 13px !important;
}
.site-footer #astra-footer-menu .menu-link {
	color: rgba(255, 255, 255, .62) !important;
	font-size: 13px !important;
	padding-top: 4px !important;
	padding-bottom: 4px !important;
	transition: color .35s var(--bm-ease);
}
.site-footer #astra-footer-menu .menu-link:hover,
.site-footer #astra-footer-menu .current-menu-item > .menu-link {
	color: #c9a25a !important;
}
@media (max-width: 768px) {
	.bm-footer {
		padding: 52px 20px 36px;
	}
	.bm-footer__links {
		flex-direction: column;
		gap: 14px;
	}
	.site-footer .site-below-footer-wrap .ast-builder-grid-row {
		padding: 20px 0 80px !important; /* deja sitio al selector de idioma */
		text-align: center;
	}
	.site-footer #astra-footer-menu {
		flex-direction: row !important;
		flex-wrap: wrap;
		justify-content: center;
		gap: 0 6px;
	}
}
