/* Munguinaldo: pantalla de clave de la preventa (templates/gate-form.php).
   1) Con la plantilla «clave» instalada (el diseño de Acceso VIP con la clave en lugar del registro), el formulario va DENTRO de la tarjeta crema
      y toma los valores del formulario de Acceso VIP: ver el último bloque de este archivo (.mvip-card).
   2) Sin esa plantilla (fallback), el formulario sale a secas con la paleta de Acceso VIP: rojo #e64151, azul #16badb, crema #ffeed1, campo #f7e3a4, texto #4a3b2e. */
.mng-gate {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 60vh;
	padding: 48px 16px;
	background: #16badb;
	font-family: "xanti-typewriter-variable", "Courier Prime", ui-monospace, monospace;
}

.mng-gate .mng-gate__form {
	display: grid;
	gap: 14px;
	width: 100%;
	max-width: 460px;
	margin: 0;
	padding: 32px 28px;
	background: #ffeed1;
	border-radius: 28px;
	box-shadow: 0 6px 0 rgba(74, 59, 46, .18);
}

.mng-gate .mng-gate__label {
	margin: 0;
	color: #e64151;
	font-size: 1.1rem;
	font-weight: 700;
}

.mng-gate .mng-gate__input {
	box-sizing: border-box;
	width: 100%;
	min-height: 48px;
	padding: 12px 20px;
	background: #f7e3a4;
	color: #4a3b2e;
	border: 2px solid transparent;
	border-radius: 999px;
	font: inherit;
	font-size: 16px; /* 16 px o más: así iOS no hace zoom al enfocar el campo */
}

.mng-gate .mng-gate__input:focus {
	outline: none;
	border-color: #e64151;
}

.mng-gate .mng-gate__button,
.mng-gate .mng-gate__button:hover,
.mng-gate .mng-gate__button:focus {
	min-height: 48px;
	padding: 10px 28px;
	background: #e64151;
	color: #ffeed1;
	border: 0;
	border-radius: 999px;
	font-family: "Leckerli One", cursive;
	font-size: 1.15rem;
	cursor: pointer;
	box-shadow: none;
}

/* El tema pinta `button:hover` con otro color: se fija el de la marca. */
.mng-gate .mng-gate__button:hover,
.mng-gate .mng-gate__button:focus-visible {
	background: #d2293b;
	color: #ffeed1;
}

.mng-gate .mng-gate__button:focus-visible {
	outline: 3px solid #4a3b2e;
	outline-offset: 2px;
}

.mng-gate .mng-gate__error {
	margin: 0;
	color: #d2293b;
	font-weight: 700;
	text-align: center;
}

.mng-gate .mng-gate__error[hidden] {
	display: none;
}

.mng-gate .mng-gate__noscript {
	margin: 0;
	color: #4a3b2e;
	text-align: center;
}

/* ---- Dentro del diseño de Acceso VIP (plantilla «clave») -------------------------------------------------------------------------------
   La nube crema, la tarjeta roja con el logo y el fondo azul los pone el diseño; el formulario solo pone el campo y el botón, con los mismos
   valores del formulario de Acceso VIP: campo #f7e3a4 redondo (Courier Prime negrita cursiva) y botón rojo con Leckerli One. */
.mvip-card .mng-gate {
	display: block;
	min-height: 0;
	padding: 0;
	background: transparent;
}

.mvip-card .mng-gate .mng-gate__form {
	max-width: none;
	gap: 10px;
	padding: 0;
	background: transparent;
	border-radius: 0;
	box-shadow: none;
}

/* El diseño no lleva etiqueta visible (el campo trae marcador), pero el lector de pantalla sí la lee. */
.mvip-card .mng-gate .mng-gate__label {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.mvip-card .mng-gate .mng-gate__input {
	min-height: 40px;
	padding: 4px 24px;
	background: #f7e3a4;
	color: #6b4a1c;
	border: 0;
	border-radius: 99px;
	font-family: "Courier Prime", monospace;
	font-weight: 700;
	font-style: italic;
	font-size: clamp(14px, 1.181vw, 17px);
	line-height: 1.2;
}

.mvip-card .mng-gate .mng-gate__input::placeholder {
	color: #a87e3a;
	opacity: 1;
}

.mvip-card .mng-gate .mng-gate__input:focus {
	outline: 2px solid #16badb;
	outline-offset: 1px;
}

.mvip-card .mng-gate .mng-gate__button,
.mvip-card .mng-gate .mng-gate__button:hover,
.mvip-card .mng-gate .mng-gate__button:focus-visible {
	justify-self: center;
	min-width: clamp(170px, 17.2vw, 248px);
	padding: 13px 26px;
	white-space: nowrap;
	font-size: clamp(18px, 1.736vw, 25px);
	line-height: 1.1;
	transition: transform .2s ease, background-color .2s ease;
}

.mvip-card .mng-gate .mng-gate__button:hover,
.mvip-card .mng-gate .mng-gate__button:focus-visible {
	transform: scale(1.04);
}

.mvip-card .mng-gate .mng-gate__error {
	font-family: "Courier Prime", monospace;
	font-size: 15px;
}

/* El título («Bienvenidos a Ciudad Munguinaldo») es más largo que «Acceso VIP»: margen a la derecha para que la esfera de la esquina no lo tape. */
/* Más específico que el CSS que Elementor genera por widget (`.elementor-<id> .elementor-element-<id>`, que fija el relleno del widget). */
.mvip-sec .mvip-card .elementor-element.mng-gate-title {
	padding-right: clamp(40px, 5vw, 72px);
}

.mvip-card .mng-gate-title .elementor-heading-title {
	line-height: 1.05;
}

@media (max-width: 767px) {
	.mvip-card .mng-gate .mng-gate__input {
		font-size: 15.5px;
	}

	.mvip-card .mng-gate .mng-gate__button {
		width: 100%;
		min-width: 0;
		font-size: 23px;
	}
}
