/* ============================================================
   Registro — sistema visual moderno, paleta suave, responsive
   ============================================================ */

:root {
	--verde-cota: #2f8f5b;
	--verde-cota-suave: #4CAF7D;
	--violeta: #8b7cd8;
	--coral: #ff8a73;
	--azul-info: #4a90c4;

	--bg-1: #eef8f3;
	--bg-2: #f1eefb;
	--bg-3: #fef4ee;

	--surface: rgba(255, 255, 255, 0.86);
	--surface-solid: #ffffff;
	--texto: #24322c;
	--texto-suave: #64756c;
	--borde: #e3ece6;

	--sombra-suave: 0 10px 30px -12px rgba(47, 143, 91, 0.18);
	--sombra-media: 0 20px 45px -18px rgba(37, 45, 41, 0.25);

	--radio: 22px;
	--radio-chico: 12px;

	--fuente-display: "Plus Jakarta Sans", "Segoe UI", sans-serif;
	--fuente-texto: "Inter", "Segoe UI", sans-serif;
}

* {
	box-sizing: border-box;
}

body {
	margin: 0;
	font-family: var(--fuente-texto);
	color: var(--texto);
	background:
		radial-gradient(1200px 700px at -10% -10%, var(--bg-3) 0%, transparent 55%),
		radial-gradient(1000px 700px at 110% 10%, var(--bg-2) 0%, transparent 55%),
		linear-gradient(180deg, var(--bg-1) 0%, #f7fbf8 45%, var(--bg-2) 100%);
	background-attachment: fixed;
	min-height: 100vh;
	padding: clamp(16px, 4vw, 48px) 0;
	position: relative;
	overflow-x: hidden;
}

/* Formas decorativas suaves */
body::before,
body::after {
	content: "";
	position: fixed;
	border-radius: 50%;
	filter: blur(60px);
	opacity: 0.35;
	z-index: 0;
	pointer-events: none;
}

body::before {
	width: 380px;
	height: 380px;
	top: -120px;
	left: -120px;
	background: var(--verde-cota-suave);
}

body::after {
	width: 420px;
	height: 420px;
	bottom: -160px;
	right: -140px;
	background: var(--violeta);
}

.page-wrap {
	position: relative;
	z-index: 1;
	max-width: 640px;
	margin: 0 auto;
	padding: 0 16px;
}

/* ---------- Tarjeta principal ---------- */
.tarjeta {
	background: var(--surface);
	backdrop-filter: blur(18px);
	-webkit-backdrop-filter: blur(18px);
	border: 1px solid rgba(255, 255, 255, 0.6);
	border-radius: var(--radio);
	box-shadow: var(--sombra-media);
	overflow: hidden;
	animation: aparecer 0.5s ease-out;
}

@keyframes aparecer {
	from { opacity: 0; transform: translateY(14px); }
	to { opacity: 1; transform: translateY(0); }
}

.tarjeta__franja {
	height: 6px;
	background: linear-gradient(90deg, var(--verde-cota-suave), var(--violeta), var(--coral));
	background-size: 200% 100%;
	animation: correr 6s linear infinite;
}

@keyframes correr {
	to { background-position: 200% 0; }
}

/* ---------- Banner ---------- */
.banner img {
	width: 100%;
	height: auto;
	display: block;
}

/* ---------- Encabezado del evento ---------- */
.evento-header {
	padding: clamp(20px, 4vw, 36px) clamp(20px, 5vw, 40px) 4px;
	text-align: center;
}

.evento-header__kicker {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--verde-cota);
	background: rgba(76, 175, 125, 0.12);
	padding: 6px 14px;
	border-radius: 999px;
	margin-bottom: 14px;
}

.evento-header__titulo {
	font-family: var(--fuente-display);
	font-weight: 800;
	font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.1rem);
	line-height: 1.2;
	margin: 0 0 8px;
	background: linear-gradient(90deg, var(--verde-cota), var(--violeta));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.evento-header__tema {
	color: var(--texto-suave);
	font-size: 1rem;
	margin: 0 0 18px;
}

.evento-badges {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	margin-bottom: 6px;
}

.evento-badges__item {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 16px;
	background: var(--surface-solid);
	border: 1px solid var(--borde);
	border-radius: 999px;
	font-size: 13px;
	font-weight: 600;
	color: var(--texto);
	box-shadow: var(--sombra-suave);
}

.evento-badges__item i {
	color: var(--azul-info);
}

/* ---------- Aviso ---------- */
.aviso {
	margin: 18px clamp(20px, 5vw, 40px) 0;
	padding: 14px 16px;
	background: rgba(139, 124, 216, 0.08);
	border: 1px dashed rgba(139, 124, 216, 0.35);
	border-radius: var(--radio-chico);
	text-align: center;
	color: var(--texto-suave);
	font-size: 13px;
	line-height: 1.5;
}

/* ---------- Formulario ---------- */
.form-body {
	padding: clamp(20px, 5vw, 40px);
}

.campo {
	margin-bottom: 20px;
}

.campo label {
	display: block;
	font-weight: 700;
	font-size: 13.5px;
	color: var(--texto);
	margin-bottom: 7px;
}

.campo label .req {
	color: var(--coral);
}

.input-shell {
	position: relative;
}

.input-shell i.icono {
	position: absolute;
	left: 14px;
	top: 50%;
	transform: translateY(-50%);
	color: var(--texto-suave);
	font-size: 15px;
	pointer-events: none;
}

.form-control {
	width: 100%;
	padding: 13px 14px 13px 40px;
	border: 1.5px solid var(--borde);
	border-radius: var(--radio-chico);
	background-color: var(--surface-solid);
	font-family: var(--fuente-texto);
	font-size: 15px;
	color: var(--texto);
	transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.form-control::placeholder {
	color: #a9b6ae;
}

.form-control:focus {
	outline: none;
	border-color: var(--verde-cota-suave);
	box-shadow: 0 0 0 4px rgba(76, 175, 125, 0.15);
}

/* background-color, no el atajo background: el atajo borra la flecha del select */
.form-control:read-only,
.form-control:disabled {
	background-color: #f4f7f5;
	color: var(--texto-suave);
	cursor: not-allowed;
}

.form-control.is-valid {
	border-color: var(--verde-cota-suave);
	background-color: rgba(76, 175, 125, 0.06);
}

.form-control.is-invalid {
	border-color: var(--coral);
	background-color: rgba(255, 138, 115, 0.06);
}

select.form-control {
	/* Bootstrap fija height en select.form-control y recorta el texto */
	height: auto;
	padding-left: 40px;
	padding-right: 38px;
	appearance: none;
	-webkit-appearance: none;
	background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%2364756c' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
}

.campo-mensaje {
	margin-top: 6px;
	font-size: 12.5px;
	text-align: center;
	min-height: 4px;
}

.invalid-feedback {
	display: none;
	color: var(--coral);
	font-size: 12px;
	margin-top: 5px;
}

.was-validated .form-control:invalid ~ .invalid-feedback {
	display: block;
}

/* ---------- Autorización ---------- */
.autorizacion {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	background: rgba(74, 144, 196, 0.06);
	border: 1px solid rgba(74, 144, 196, 0.18);
	border-radius: var(--radio-chico);
	padding: 14px 16px;
	margin: 22px 0;
}

.autorizacion input[type="checkbox"] {
	margin-top: 3px;
	width: 18px;
	height: 18px;
	accent-color: var(--verde-cota-suave);
	flex-shrink: 0;
}

.autorizacion label {
	font-size: 12.5px;
	color: var(--texto-suave);
	line-height: 1.5;
	margin: 0;
	font-weight: 500;
}

/* ---------- Botón ---------- */
.btn-registro {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	border: none;
	padding: 15px 20px;
	font-family: var(--fuente-display);
	font-weight: 700;
	font-size: 15.5px;
	letter-spacing: 0.01em;
	color: #fff;
	background: linear-gradient(90deg, var(--verde-cota) 0%, var(--verde-cota-suave) 100%);
	border-radius: 999px;
	cursor: pointer;
	box-shadow: 0 12px 28px -10px rgba(47, 143, 91, 0.55);
	transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.btn-registro:hover:not(:disabled) {
	transform: translateY(-2px);
	box-shadow: 0 16px 34px -10px rgba(47, 143, 91, 0.6);
	filter: brightness(1.03);
}

.btn-registro:active:not(:disabled) {
	transform: translateY(0);
}

.btn-registro:disabled {
	background: #cfd8d3;
	color: #8b978f;
	cursor: not-allowed;
	box-shadow: none;
}

.observacion {
	text-align: center;
	margin-top: 20px;
	font-size: 12.5px;
	color: var(--texto-suave);
	font-style: italic;
}

/* ---------- Responsive ---------- */
@media (max-width: 480px) {
	.evento-badges {
		flex-direction: column;
		align-items: stretch;
	}

	.evento-badges__item {
		justify-content: center;
	}

	.form-body {
		padding: 20px 16px 28px;
	}
}

/* ---------- Accesibilidad: reducir movimiento ---------- */
@media (prefers-reduced-motion: reduce) {
	.tarjeta,
	.tarjeta__franja,
	.btn-registro {
		animation: none !important;
		transition: none !important;
	}
}
