/*
 * [RW] Lume - Landing Form — hero con formulario (solo en las landings de campaña).
 * Medidas del diseño aprobado (1440 y 390 px). Tokens con prefijo --rw-llf-.
 * Todo va bajo .rw-llf / .rw-llf-hero para no chocar con los estilos de formularios del tema.
 */
.rw-llf-hero {
	--rw-llf-accent: #b5604f;
	--rw-llf-accent-hover: #9e4f40;
	--rw-llf-card: #fbf8f4;
	--rw-llf-ink: #2b2622;
	--rw-llf-muted: #7a736d;
	--rw-llf-line: #dad4cd;
	--rw-llf-error: #b3261e;
	--rw-llf-serif: "IBM Plex Serif", Georgia, serif;
	--rw-llf-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	position: relative;
	/* La sección crece con el formulario: la foto tiene que cubrirla entera (sin repetirse). */
	background-size: cover !important;
	background-position: center !important;
	background-repeat: no-repeat !important;
}

/* El hero ya lleva «Reservar» y «Tarjeta regalo»: los botones flotantes se apartan mientras se ve. */
body.rw-llf-hero-visible .rw-fb {
	visibility: hidden;
	opacity: 0;
}

/* Oscurecido sobre la foto para que el texto blanco se lea (más a la izquierda, donde va el texto). */
.rw-llf-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 0;
	background: linear-gradient(90deg, rgba(23, 17, 14, .82) 0%, rgba(23, 17, 14, .62) 50%, rgba(23, 17, 14, .5) 100%);
	pointer-events: none;
}
.rw-llf-hero > .elementor-container {
	position: relative;
	z-index: 1;
}

/* La sección sube bajo la cabecera (margen negativo de Elementor): las filas del menú van por
   encima, para que se puedan pulsar y los submenús se desplieguen sobre la tarjeta. Este CSS
   solo se carga en las landings. */
.top_panel .elementor-section.elementor-element:not(.rw-llf-hero) {
	z-index: 3 !important;
}
/* La sección (y los envoltorios de Elementor) deja pasar los clics; solo el texto, los botones
   y la tarjeta los reciben. */
.rw-llf-hero,
.rw-llf-hero * {
	pointer-events: none;
}
.rw-llf-hero .rw-llf__intro,
.rw-llf-hero .rw-llf__intro *,
.rw-llf-hero .rw-llf__actions,
.rw-llf-hero .rw-llf__actions *,
.rw-llf-hero .rw-llf__card,
.rw-llf-hero .rw-llf__card * {
	pointer-events: auto;
}
.rw-llf-hero .elementor-column > .elementor-widget-wrap,
.rw-llf-hero .elementor-column > .elementor-column-wrap {
	padding: 0 !important;
}

/* Rejilla: texto y botones a la izquierda, tarjeta a la derecha. */
.rw-llf {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 541px;
	grid-template-areas: "intro card" "actions card";
	grid-template-rows: auto 1fr;
	column-gap: clamp(32px, 7vw, 110px);
	align-items: start;
	box-sizing: border-box;
	width: 100%;
	max-width: 1440px;
	margin: 0 auto;
	padding: 157px 93px 76px 98px;
	color: #fff;
	font-family: var(--rw-llf-sans);
	text-align: left;
}
.rw-llf *,
.rw-llf *::before,
.rw-llf *::after {
	box-sizing: border-box;
}
.rw-llf__intro {
	grid-area: intro;
	padding-top: 100px;
}
.rw-llf__actions {
	grid-area: actions;
	padding-top: 48px;
}
.rw-llf__card {
	grid-area: card;
	padding: 36px;
	background: var(--rw-llf-card);
	color: var(--rw-llf-ink);
}

/* Texto del hero */
.rw-llf .rw-llf__overline {
	margin: 0 0 22px;
	color: #fff;
	font: 700 12px/1.4 var(--rw-llf-sans);
	letter-spacing: .32em;
	text-transform: uppercase;
}
.rw-llf .rw-llf__title {
	margin: 0 0 30px;
	padding: 0;
	color: #fff;
	font-family: var(--rw-llf-serif);
	font-size: clamp(40px, 4.75vw, 68px);
	font-weight: 300;
	line-height: 1.07;
	letter-spacing: 0;
	text-transform: none;
}
.rw-llf .rw-llf__desc {
	max-width: 500px;
	margin: 0;
	color: rgba(255, 255, 255, .92);
	font: 400 17px/28px var(--rw-llf-sans);
}
.rw-llf .rw-llf__desc--mobile {
	display: none;
}
.rw-llf .rw-llf__decided {
	margin: 0 0 12px;
	color: #fff;
	font: 500 12px/1.4 var(--rw-llf-sans);
}
.rw-llf__buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}
.rw-llf .rw-llf__btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 42px;
	padding: 8px 24px;
	border: 1px solid rgba(255, 255, 255, .9);
	border-radius: 100px;
	color: #fff;
	font: 500 14px/1.2 var(--rw-llf-sans);
	text-decoration: none;
	transition: background-color .2s, color .2s;
}
.rw-llf .rw-llf__btn:hover,
.rw-llf .rw-llf__btn:focus-visible {
	background: #fff;
	color: var(--rw-llf-ink);
}

/* Tarjeta */
.rw-llf .rw-llf__eyebrow {
	margin: 0 0 8px;
	color: var(--rw-llf-ink);
	font: 700 10px/1.4 var(--rw-llf-sans);
	letter-spacing: .32em;
	text-transform: uppercase;
}
.rw-llf .rw-llf__card-title {
	margin: 0 0 22px;
	padding: 0;
	color: var(--rw-llf-ink);
	font-family: var(--rw-llf-serif);
	font-size: 26px;
	font-weight: 300;
	line-height: 1.2;
	letter-spacing: 0;
	text-transform: none;
}
.rw-llf__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 18px 18px;
}
.rw-llf__field {
	display: flex;
	flex-direction: column;
	min-width: 0;
}
.rw-llf__field--full {
	grid-column: 1 / -1;
}
.rw-llf .rw-llf__field label,
.rw-llf .rw-llf__consent label {
	margin: 0 0 6px;
	color: var(--rw-llf-ink);
	font: 400 12px/1.3 var(--rw-llf-sans);
	letter-spacing: 0;
	text-transform: none;
}

/* Campos con solo línea inferior (se anulan los estilos de formularios del tema) */
.rw-llf .rw-llf__form input[type="text"],
.rw-llf .rw-llf__form input[type="tel"],
.rw-llf .rw-llf__form input[type="email"],
.rw-llf .rw-llf__form input[type="date"],
.rw-llf .rw-llf__form input[type="number"],
.rw-llf .rw-llf__form textarea {
	width: 100%;
	height: auto;
	min-height: 0;
	margin: 0;
	padding: 6px 1px 10px;
	border: 0;
	border-bottom: 1px solid var(--rw-llf-line);
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	color: var(--rw-llf-ink);
	font: 400 15px/1.4 var(--rw-llf-sans);
	letter-spacing: 0;
	transition: border-color .2s;
	-webkit-appearance: none;
	appearance: none;
}
.rw-llf .rw-llf__form input[type="date"] {
	-webkit-appearance: auto;
	appearance: auto;
	min-height: 38px;
}
.rw-llf .rw-llf__form textarea {
	min-height: 52px;
	resize: vertical;
}
.rw-llf .rw-llf__form input::placeholder,
.rw-llf .rw-llf__form textarea::placeholder {
	color: var(--rw-llf-muted);
	opacity: 1;
}
.rw-llf .rw-llf__form input:focus,
.rw-llf .rw-llf__form textarea:focus {
	outline: none;
	border-bottom-color: var(--rw-llf-ink);
}
.rw-llf .rw-llf__form [aria-invalid="true"] {
	border-bottom-color: var(--rw-llf-error);
}

/* Número de personas: − 2 + */
.rw-llf__stepper {
	display: flex;
	align-items: center;
	border-bottom: 1px solid var(--rw-llf-line);
}
.rw-llf .rw-llf__stepper input[type="number"] {
	flex: 1;
	border-bottom: 0;
	text-align: center;
	-moz-appearance: textfield;
}
.rw-llf .rw-llf__stepper input::-webkit-inner-spin-button,
.rw-llf .rw-llf__stepper input::-webkit-outer-spin-button {
	margin: 0;
	-webkit-appearance: none;
}
.rw-llf .rw-llf__step {
	flex: 0 0 36px;
	height: 38px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: var(--rw-llf-ink);
	font: 400 20px/1 var(--rw-llf-sans);
	cursor: pointer;
}
.rw-llf .rw-llf__step:hover,
.rw-llf .rw-llf__step:focus-visible {
	background: rgba(43, 38, 34, .06);
	color: var(--rw-llf-ink);
}

/* Privacidad (el tema oculta la casilla nativa y pinta otra con label::before: se anula) */
.rw-llf__consent {
	display: flex;
	flex-wrap: wrap;
	gap: 0 10px;
	align-items: flex-start;
	margin: 22px 0 10px;
}
.rw-llf .rw-llf__consent input[type="checkbox"] {
	position: static !important;
	display: block !important;
	flex: 0 0 18px;
	width: 18px !important;
	height: 18px !important;
	margin: 0 !important;
	clip: auto !important;
	opacity: 1 !important;
	visibility: visible !important;
	-webkit-appearance: checkbox;
	appearance: auto;
	accent-color: var(--rw-llf-accent);
}
.rw-llf .rw-llf__consent label {
	flex: 1 1 0;
	min-width: 0;
	margin: 1px 0 0;
	padding: 0 !important;
}
.rw-llf .rw-llf__consent label::before,
.rw-llf .rw-llf__consent label::after {
	display: none !important;
	content: none !important;
}
.rw-llf .rw-llf__consent a {
	color: var(--rw-llf-ink);
	text-decoration: underline;
}
.rw-llf__consent .rw-llf__field-error {
	flex: 1 0 100%;
	padding-left: 28px;
}

/* Errores */
.rw-llf .rw-llf__field-error {
	min-height: 0;
	color: var(--rw-llf-error);
	font: 400 12px/1.3 var(--rw-llf-sans);
}
.rw-llf .rw-llf__field-error:not(:empty) {
	margin-top: 4px;
}
.rw-llf .rw-llf__alert {
	margin: 0 0 12px;
	padding: 10px 12px;
	background: #fbeceb;
	color: var(--rw-llf-error);
	font: 400 13px/1.4 var(--rw-llf-sans);
}

/* Botón de envío (teja) */
.rw-llf .rw-llf__submit {
	display: block;
	width: 100%;
	min-height: 52px;
	margin: 0;
	padding: 12px 20px;
	border: 0;
	border-radius: 0;
	background: var(--rw-llf-accent);
	color: #fff;
	font: 700 15px/1.3 var(--rw-llf-sans);
	letter-spacing: 0;
	text-transform: none;
	cursor: pointer;
	transition: background-color .2s;
}
.rw-llf .rw-llf__submit:hover,
.rw-llf .rw-llf__submit:focus-visible {
	background: var(--rw-llf-accent-hover);
	color: #fff;
}
.rw-llf .rw-llf__submit:focus-visible {
	outline: 2px solid var(--rw-llf-ink);
	outline-offset: 2px;
}
.rw-llf .rw-llf__submit[disabled] {
	opacity: .7;
	cursor: progress;
}
.rw-llf .rw-llf__call {
	margin: 18px 0 0;
	color: var(--rw-llf-ink);
	font: 400 14px/1.4 var(--rw-llf-sans);
	text-align: center;
}
.rw-llf .rw-llf__call a {
	color: var(--rw-llf-ink);
	font-weight: 700;
	text-decoration: underline;
}
.rw-llf .rw-llf__success:focus {
	outline: none;
}
.rw-llf .rw-llf__success-text {
	margin: 0;
	color: var(--rw-llf-ink);
	font: 400 15px/1.6 var(--rw-llf-sans);
}

/* Campo trampa (fuera de la vista y del lector de pantalla) */
.rw-llf .rw-llf__hp {
	position: absolute !important;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* Portátil / tablet horizontal */
@media (max-width: 1279px) {
	.rw-llf {
		grid-template-columns: minmax(0, 1fr) minmax(400px, 480px);
		padding: 150px 40px 64px;
	}
	.rw-llf__card {
		padding: 30px;
	}
}

/* Tablet vertical y móvil: todo en una columna (texto, tarjeta, botones) */
@media (max-width: 1023px) {
	/* Aquí la cabecera es opaca: el hero empieza debajo en lugar de subir bajo ella. */
	.rw-llf-hero.elementor-section.elementor-element {
		margin-top: 0 !important;
	}
	.rw-llf {
		grid-template-columns: minmax(0, 1fr);
		grid-template-areas: "intro" "card" "actions";
		grid-template-rows: none;
		max-width: 640px;
		padding: 40px 32px 48px;
	}
	.rw-llf__intro {
		align-self: start;
		padding: 0 0 24px;
	}
	.rw-llf__actions {
		padding-top: 26px;
		text-align: center;
	}
	.rw-llf__buttons {
		justify-content: center;
	}
	.rw-llf .rw-llf__decided {
		display: none;
	}
}

@media (max-width: 767px) {
	.rw-llf {
		padding: 28px 25px 26px;
	}
	.rw-llf .rw-llf__overline {
		margin-bottom: 10px;
		font-size: 10px;
	}
	.rw-llf .rw-llf__title {
		margin-bottom: 14px;
		font-size: 32px;
		line-height: 1.1;
	}
	.rw-llf .rw-llf__desc {
		font-size: 14px;
		line-height: 23px;
	}
	.rw-llf .rw-llf__desc--desktop {
		display: none;
	}
	.rw-llf .rw-llf__desc--mobile {
		display: block;
	}
	.rw-llf__intro {
		padding-bottom: 20px;
	}
	.rw-llf__card {
		padding: 22px 20px;
	}
	.rw-llf .rw-llf__card-title {
		margin-bottom: 18px;
		font-size: 22px;
	}
	.rw-llf__grid {
		gap: 14px 14px;
	}
	.rw-llf__field--half {
		grid-column: 1 / -1;
	}
	/* Fecha y personas siguen en la misma fila, como en el diseño */
	.rw-llf__field--date,
	.rw-llf__field--guests {
		grid-column: auto;
	}
	.rw-llf .rw-llf__btn {
		padding: 8px 18px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.rw-llf .rw-llf__btn,
	.rw-llf .rw-llf__submit,
	.rw-llf .rw-llf__form input,
	.rw-llf .rw-llf__form textarea {
		transition: none;
	}
}
