/*
 * Cabañas Miramar — Hero + barra de reserva StayFlow.
 * Destino: wp-content/novamira-sandbox/miramar-hero.css
 * Patrón tomado del hero de Cabañas Risso, con la paleta de Miramar.
 */

.mm-hero {
	--mm-navy: #193D87;
	--mm-cyan: #36D5FD;

	position: relative;
	z-index: 2;
	max-width: 62rem;
	margin: 0 auto;
	padding: clamp(1rem, 4vw, 3rem) 1rem 0;
	color: #fff;
	text-align: center;
	text-shadow: 0 1px 24px rgba(6, 16, 40, 0.45);
}

/* Antetítulo con guion, como el .eyebrow de Risso */
.mm-hero__eyebrow {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.75em;
	margin: 0 0 clamp(0.75rem, 2vw, 1.25rem);
	font-size: clamp(0.75rem, 1.4vw, 0.875rem);
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.88);
}

.mm-hero__dash {
	display: block;
	width: clamp(1.5rem, 4vw, 2.75rem);
	height: 2px;
	background: var(--mm-cyan);
}

/* Título: segunda línea en itálica y color de acento */
.mm-hero__title {
	margin: 0;
	font-size: clamp(2rem, 6.2vw, 4.25rem);
	line-height: 1.08;
	font-weight: 700;
	color: #fff;
}

.mm-hero__title em {
	display: block;
	font-style: italic;
	font-weight: 400;
	color: var(--mm-cyan);
}

.mm-hero__lead {
	max-width: 42rem;
	margin: clamp(1rem, 2.5vw, 1.5rem) auto 0;
	font-size: clamp(1rem, 1.8vw, 1.175rem);
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.92);
}

/* Botonera
 *
 * Impreza aplica `.l-section.color_primary a { color: inherit }` (0,2,1), que
 * le gana a `.mm-btn--solid` y deja el texto blanco sobre cian (contraste
 * 1.7:1). Por eso los botones se califican con tres clases (0,3,0).
 */
.mm-hero__cta {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.75rem;
	margin-top: clamp(1.5rem, 3.5vw, 2.25rem);
}

.mm-hero .mm-hero__cta .mm-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.9em 1.9em;
	border: 2px solid transparent;
	border-radius: 999px;
	font-size: clamp(0.875rem, 1.4vw, 1rem);
	font-weight: 700;
	line-height: 1;
	text-decoration: none;
	text-shadow: none;
	transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.mm-hero .mm-hero__cta .mm-btn:hover,
.mm-hero .mm-hero__cta .mm-btn:focus-visible {
	transform: translateY(-2px);
	text-decoration: none;
}

.mm-hero .mm-hero__cta .mm-btn--solid {
	background: var(--mm-cyan);
	border-color: var(--mm-cyan);
	color: var(--mm-navy);
}

.mm-hero .mm-hero__cta .mm-btn--solid:hover,
.mm-hero .mm-hero__cta .mm-btn--solid:focus-visible {
	background: #fff;
	border-color: #fff;
	color: var(--mm-navy);
}

.mm-hero .mm-hero__cta .mm-btn--ghost {
	background: rgba(255, 255, 255, 0.06);
	border-color: rgba(255, 255, 255, 0.7);
	color: #fff;
}

.mm-hero .mm-hero__cta .mm-btn--ghost:hover,
.mm-hero .mm-hero__cta .mm-btn--ghost:focus-visible {
	background: #fff;
	border-color: #fff;
	color: var(--mm-navy);
}

/* Bloque de reserva */
.mm-hero__booking {
	margin-top: clamp(2rem, 5vw, 3.5rem);
	/* El encabezado fijo se encoge al hacer scroll, así que 120px dejaban el
	 * bloque pegado a su borde inferior. */
	scroll-margin-top: 150px;
}

.mm-hero__hint {
	margin: 0 0 0.75rem;
	font-size: 0.8125rem;
	letter-spacing: 0.04em;
	color: rgba(255, 255, 255, 0.78);
}

.mm-bookingbar {
	padding: clamp(0.75rem, 2vw, 1.25rem);
	border-radius: 18px;
	background: rgba(255, 255, 255, 0.96);
	box-shadow: 0 18px 48px rgba(6, 16, 40, 0.28);
	color: var(--mm-navy);
	text-align: left;
	text-shadow: none;
}

/* El widget de StayFlow se monta dentro de .mm-bookingbar y se tematiza con
 * sus propias variables. `[data-tema]` sube la especificidad por encima de
 * `.sfw[data-tema="claro"]`, que es donde el widget fija sus valores.
 * El botón "Buscar" conserva el naranja de acento de Impreza, el mismo del
 * botón "Reservar Ahora" del encabezado.
 */
.mm-bookingbar .sfw[data-tema] {
	--sfw-texto: var(--mm-navy);
	--sfw-borde: rgba(25, 61, 135, 0.22);
	--sfw-radio: 10px;
	font-family: inherit;
	max-width: none;
}

/* Impreza le da a todo <button> un radio de píldora (42px), que desentona con
 * las esquinas de los campos del widget. */
.mm-bookingbar .sfw .sfw-enviar {
	border-radius: var(--sfw-radio);
	align-self: stretch;
}

/* Cifras de apoyo */
.mm-hero__stats {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(0.75rem, 2.5vw, 2rem);
	margin: clamp(1.25rem, 3vw, 2rem) 0 0;
	padding: 0;
	list-style: none;
}

.mm-hero__stats li {
	display: flex;
	flex-direction: column;
	gap: 0.2em;
}

.mm-hero__stats strong {
	font-size: clamp(1rem, 2vw, 1.375rem);
	line-height: 1.2;
	color: #fff;
}

.mm-hero__stats span {
	font-size: clamp(0.75rem, 1.3vw, 0.875rem);
	color: rgba(255, 255, 255, 0.78);
}

@media (max-width: 600px) {
	.mm-hero__stats {
		grid-template-columns: 1fr;
		gap: 0.75rem;
	}

	/* Con 0.18em el antetítulo llega justo a los bordes en 375px. */
	.mm-hero__eyebrow {
		flex-wrap: wrap;
		letter-spacing: 0.1em;
	}

	.mm-hero .mm-hero__cta .mm-btn {
		flex: 1 1 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.mm-hero .mm-hero__cta .mm-btn {
		transition: none;
	}

	.mm-hero .mm-hero__cta .mm-btn:hover,
	.mm-hero .mm-hero__cta .mm-btn:focus-visible {
		transform: none;
	}
}

/* Motor de reserva dentro del popup "Reservar Ahora" del encabezado */
.mm-popup-booking {
	--mm-navy: #193D87;
	--mm-cyan: #36D5FD;

	color: var(--mm-navy);
	text-align: center;
}

.mm-popup-booking__title {
	margin: 0 0 0.35em;
	font-size: clamp(1.25rem, 3vw, 1.75rem);
	line-height: 1.2;
	color: var(--mm-navy);
}

.mm-popup-booking__hint {
	margin: 0 0 1.25rem;
	font-size: 0.9375rem;
	color: rgba(25, 61, 135, 0.75);
}

.mm-bookingbar--popup {
	background: transparent;
	box-shadow: none;
	padding: 0;
}

/* Keep the booking form in the first viewport. */
.home main > .l-section:first-child:has(.mm-hero) {
 padding-top: calc(clamp(16px, 3vh, 32px) + 35px);
 padding-bottom: clamp(28px, 5vh, 48px);
 min-height: 100svh;
}
.mm-hero { padding-top: 0; }
.mm-hero .mm-hero__eyebrow { margin-bottom: 12px; }
.mm-hero .mm-hero__title { padding-top: 0; font-size: clamp(32px, 7vh, 64px); }
.mm-hero .mm-hero__lead { margin-top: 16px; font-size: 18px; line-height: 1.45; }
.mm-hero .mm-hero__cta { margin-top: 20px; }
.mm-hero .mm-hero__booking { margin-top: 24px; }
.mm-hero .mm-hero__hint { margin-bottom: 8px; line-height: 1.4; }
.mm-hero .mm-bookingbar { padding: 12px; }
.mm-hero .sfw-pie { display: none; }
@media (max-width: 600px) {
 .mm-hero { padding-inline: 16px; }
 .mm-hero .mm-hero__eyebrow { font-size: 10px; letter-spacing: .06em; line-height: 1.4; gap: 6px; }
 .mm-hero .mm-hero__title { font-size: clamp(26px, 7vw, 40px); }
 .mm-hero .mm-hero__lead { font-size: 14px; margin-top: 12px; }
 .mm-hero .mm-hero__cta { gap: 8px; margin-top: 14px; }
 .mm-hero .mm-hero__cta .mm-btn { flex: 0 1 auto; font-size: 12px; padding: 12px; }
 .mm-hero .mm-hero__booking { margin-top: 16px; }
 .mm-hero .mm-hero__hint { font-size: 11px; }
 .mm-hero .sfw .sfw-bar { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
 .mm-hero .sfw .sfw-campo { min-width: 0; padding: 8px; }
 .mm-hero .sfw .sfw-campo input, .mm-hero .sfw .sfw-campo select { min-width: 0; width: 100%; font-size: 16px; }
 .mm-hero .sfw .sfw-enviar { width: auto; margin: 6px; min-height: 44px; }
}
