/* KRC — página de próximamente: manchas de fondo, logo, titular y alta de correo. */

/* Esta página va sola, sin el reseteo del tema: sin esto, el alto y el relleno se suman. */
.krc-prox,
.krc-prox *,
.krc-prox *::before,
.krc-prox *::after {
	box-sizing: border-box;
}

body.krc-prox-body {
	margin: 0;
	background: #7ec8ff;
	font-family: 'Open Sans KRC', system-ui, sans-serif;
	color: var(--krc-negro);
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect( 0, 0, 0, 0 );
	white-space: nowrap;
	border: 0;
}

.krc-prox {
	position: relative;
	min-height: 100svh;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: clamp( 1rem, 3vh, 3rem ) 1.25rem clamp( 1rem, 3vh, 2.5rem );
	overflow: hidden;
	isolation: isolate;
	background: #7ec8ff;
	text-align: center;
}

.krc-prox__contenido {
	width: min( 100%, 880px );
	display: flex;
	flex-direction: column;
	align-items: center;
}

.krc-prox__logo {
	width: clamp( 84px, min( 16vw, 12.5vh ), 180px );
	height: auto;
	display: block;
	filter: drop-shadow( 0 14px 24px rgba( 0, 0, 0, .12 ) );
}

/* Pastilla de "Próximamente": la misma de los botones de la marca, en blanco con borde rojo. */
.krc-prox__etiqueta {
	margin: clamp( 1rem, 2.4vh, 2rem ) 0 0;
	padding: .45rem 1.4rem;
	border-radius: 999px;
	background: var(--krc-blanco);
	box-shadow: 0 0 0 4px var(--krc-rojo);
	font-family: 'Bagel Fat One', system-ui, sans-serif;
	font-size: clamp( .85rem, 1.4vw, 1.1rem );
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--krc-rojo);
}

.krc-prox__titular {
	margin-top: clamp( 1rem, 3vh, 2.5rem );
	font-size: clamp( 2.3rem, min( 7.4vw, 8.8vh ), 6.2rem );
	line-height: .9;
	padding-bottom: .5em;
}

.krc-prox__texto {
	margin: 0;
	max-width: 44ch;
	font-size: clamp( 1.05rem, min( 1.7vw, 2.4vh ), 1.3rem );
	line-height: 1.55;
	font-weight: 600;
}

/* Alta de correo. */
.krc-prox__alta {
	width: min( 100%, 560px );
	margin-top: clamp( 1rem, 2.6vh, 2.25rem );
}

.krc-prox__fila {
	display: flex;
	gap: .5rem;
	padding: .4rem;
	border-radius: 999px;
	background: var(--krc-blanco);
	box-shadow: 0 0 0 4px var(--krc-rojo);
}

.krc-prox__correo {
	flex: 1;
	min-width: 0;
	padding: .8rem 1.1rem;
	border: 0;
	border-radius: 999px;
	background: transparent;
	font: inherit;
	font-size: 1rem;
	color: var(--krc-negro);
}

.krc-prox__correo:focus {
	outline: none;
}

.krc-prox__fila:focus-within {
	box-shadow: 0 0 0 4px var(--krc-rojo), 0 0 0 8px rgba( 202, 12, 37, .25 );
}

.krc-prox__boton {
	flex: none;
	padding: .8rem 1.6rem;
	border: 0;
	border-radius: 999px;
	background: var(--krc-rojo);
	font-family: 'Bagel Fat One', system-ui, sans-serif;
	font-size: 1rem;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: var(--krc-blanco);
	cursor: pointer;
	transition: transform .2s ease;
}

.krc-prox__boton:hover {
	transform: translateY( -2px );
}

.krc-prox__boton:disabled {
	opacity: .6;
	cursor: progress;
	transform: none;
}

.krc-prox__consentimiento {
	display: flex;
	gap: .6rem;
	align-items: flex-start;
	justify-content: center;
	margin-top: .8rem;
	font-size: .92rem;
	line-height: 1.4;
	text-align: left;
	cursor: pointer;
}

.krc-prox__consentimiento input {
	flex: none;
	width: 1.15rem;
	height: 1.15rem;
	margin-top: .1rem;
	accent-color: var(--krc-rojo);
}

.krc-prox__consentimiento a {
	color: var(--krc-rojo);
	font-weight: 700;
}

.krc-prox__aviso {
	min-height: 1.4em;
	margin: .5rem 0 0;
	font-weight: 700;
}

.krc-prox__aviso[data-estado='ok'] {
	color: #0b6b2e;
}

.krc-prox__aviso:not( [data-estado='ok'] ) {
	color: var(--krc-rojo);
}

.krc-prox__legal {
	margin: .3rem 0 0;
	font-size: .78rem;
	line-height: 1.4;
	opacity: .8;
}

/* Campo trampa para robots: fuera de pantalla, nunca display:none (algunos lo detectan). */
.krc-prox__trampa {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.krc-prox__firma {
	margin: .6rem 0 0;
	font-size: .8rem;
	font-weight: 600;
}

/* Entrada: el contenido es visible de entrada; la animación solo añade movimiento. */
.krc-prox__contenido > * {
	animation: krc-prox-entra .8s cubic-bezier( .2, .8, .2, 1 ) both;
}

.krc-prox__contenido > :nth-child( 2 ) { animation-delay: .08s; }
.krc-prox__contenido > :nth-child( 3 ) { animation-delay: .16s; }
.krc-prox__contenido > :nth-child( 4 ) { animation-delay: .24s; }
.krc-prox__contenido > :nth-child( 5 ) { animation-delay: .32s; }

@keyframes krc-prox-entra {
	from { opacity: 0; transform: translateY( 24px ); }
	to   { opacity: 1; transform: none; }
}

@media ( prefers-reduced-motion: reduce ) {
	.krc-prox__contenido > * {
		animation: none;
	}
}


@media ( max-width: 520px ) {
	.krc-prox__alta {
		margin-top: 1.25rem;
	}

	.krc-prox__fila {
		gap: .35rem;
		padding: .3rem;
		box-shadow: 0 0 0 3px var(--krc-rojo);
	}

	.krc-prox__fila:focus-within {
		box-shadow: 0 0 0 3px var(--krc-rojo), 0 0 0 6px rgba( 202, 12, 37, .25 );
	}

	.krc-prox__correo {
		padding: .65rem .9rem;
		font-size: 1rem;
	}

	.krc-prox__boton {
		padding: .65rem 1.05rem;
		font-size: .9rem;
	}

	.krc-prox__texto {
		font-size: 1.1rem;
	}

	.krc-prox__consentimiento {
		font-size: .95rem;
		line-height: 1.45;
	}

	.krc-prox__aviso {
		font-size: 1rem;
	}

	.krc-prox__legal {
		font-size: .82rem;
		opacity: .85;
	}

	.krc-prox__firma {
		font-size: .85rem;
	}
}

@media ( max-width: 340px ) {
	.krc-prox__fila {
		flex-direction: column;
		border-radius: 24px;
	}

	.krc-prox__correo {
		text-align: center;
	}

	.krc-prox__boton {
		width: 100%;
	}
}

/* Manchas de fondo: cada una en su capa, girando despacio. */
.krc-prox__fondo {
	position: absolute;
	inset: 0;
	z-index: -1;
	overflow: hidden;
}

.krc-prox__capa {
	position: absolute;
	top: 50%;
	left: 50%;
	width: calc( var( --krc-tamano, 1 ) * 40vmax );
	aspect-ratio: 1;
	margin: calc( var( --krc-tamano, 1 ) * -20vmax ) 0 0 calc( var( --krc-tamano, 1 ) * -20vmax );
	will-change: transform;
	animation: krc-vuelta var( --krc-vuelta, 40s ) linear infinite;
	animation-direction: var( --krc-sentido, normal );
}

.krc-prox__capa svg {
	width: 100%;
	height: 100%;
	display: block;
}

@keyframes krc-vuelta {
	from { transform: rotate( var( --krc-giro-inicial, 0deg ) ); }
	to   { transform: rotate( calc( var( --krc-giro-inicial, 0deg ) + 360deg ) ); }
}

@media ( prefers-reduced-motion: reduce ) {
	.krc-prox__capa {
		animation: none;
		transform: rotate( var( --krc-giro-inicial, 0deg ) );
	}
}
