/* ==================================================
   CABECERA DEL SORTEO
================================================== */

.cabecera-sorteo {
	width: 100%;
	margin: 0 auto 15px;

	background-color: #ffffff;
	border: 1px solid #e3e9f1;
	border-radius: 12px;

	overflow: hidden;

	box-shadow: 0 5px 18px rgba(15, 23, 42, 0.07);
}

.cabecera-sorteo__titulo {
	min-height: 72px;
	padding: 12px 25px;

	display: flex;
	align-items: center;
	justify-content: center;
	gap: 13px;

	background: linear-gradient(
		180deg,
		#ffffff 0%,
		#f7f9fc 100%
	);

	border-bottom: 1px solid #e3e9f1;
}

.cabecera-sorteo__detalle {
	width: 5px;
	height: 42px;

	background: linear-gradient(
		180deg,
		#1671ff 0%,
		#0756d8 100%
	);

	border-radius: 10px;
}

.cabecera-sorteo h1 {
	margin: 0;

	display: flex;
	align-items: center;
	gap: 13px;

	font-family: Arial, Helvetica, sans-serif;
	line-height: 1.1;
}

.cabecera-sorteo__nombre {
	color: #172033;

	font-size: 29px;
	font-weight: 700;
}

.cabecera-sorteo__periodo {
	padding: 7px 14px;

	color: #0756d8;
	background-color: #eaf2ff;

	border: 1px solid #cfe0ff;
	border-radius: 20px;

	font-size: 20px;
	font-weight: 600;
	letter-spacing: 0.2px;
}

.cabecera-sorteo__imagen {
	display: block;

	width: 100%;
	height: auto;

	object-fit: contain;
}


/* ==================================================
   RESPONSIVE
================================================== */

@media (max-width: 767px) {
	.cabecera-sorteo {
		width: 95%;
	}

	.cabecera-sorteo__titulo {
		min-height: auto;
		padding: 14px 18px;
	}

	.cabecera-sorteo h1 {
		flex-direction: column;
		align-items: flex-start;
		gap: 5px;
	}

	.cabecera-sorteo__nombre {
		font-size: 25px;
	}

	.cabecera-sorteo__periodo {
		padding: 5px 11px;
		font-size: 16px;
	}

	.cabecera-sorteo__detalle {
		height: 48px;
	}
}

/* ==================================================
   CAMPO NUMÉRICO
================================================== */

#numero {
	width: 185px;
	max-width: 100%;
	height: 70px;
	margin: 0;

	font-size: 3em;
	font-family: Arial, Helvetica, sans-serif;
	font-weight: 700;
	text-align: center;

	color: #1e293b;
	background-color: #ffffff;

	border: 2px solid #d7dee8;
	border-radius: 8px;

	transition:
		border-color 0.2s ease,
		box-shadow 0.2s ease;
}

#numero::placeholder {
	color: #a3acb9;
	font-weight: 400;
}

#numero:focus {
	border-color: #1769f6;
	box-shadow: 0 0 0 4px rgba(23, 105, 246, 0.18);
	outline: none;
}


/* ==================================================
   BOTÓN BUSCAR
================================================== */

#enviarNumero {
	width: 320px;
	max-width: 100%;
	height: 70px;
	padding: 8px 22px;

	display: flex;
	align-items: center;
	justify-content: center;
	gap: 14px;

	color: #ffffff;
	background: linear-gradient(135deg, #1671ff 0%, #0756d8 100%);

	border: none;
	border-radius: 8px;

	font-family: Arial, Helvetica, sans-serif;
	text-align: left;

	cursor: pointer;
	box-sizing: border-box;

	box-shadow: 0 5px 12px rgba(7, 86, 216, 0.25);

	transition:
		transform 0.2s ease,
		box-shadow 0.2s ease,
		filter 0.2s ease;
}

#enviarNumero:hover {
	color: #ffffff;
	filter: brightness(1.06);
	transform: translateY(-1px);
	box-shadow: 0 8px 18px rgba(7, 86, 216, 0.32);
}

#enviarNumero:focus {
	color: #ffffff;
	outline: none;
	box-shadow:
		0 0 0 4px rgba(23, 105, 246, 0.25),
		0 8px 18px rgba(7, 86, 216, 0.32);
}

#enviarNumero:active {
	transform: translateY(0);
	box-shadow: 0 3px 8px rgba(7, 86, 216, 0.25);
}


/* ==================================================
   ÍCONO
================================================== */

.btn-buscar-icono {
	width: 48px;
	height: 48px;
	flex-shrink: 0;

	display: flex;
	align-items: center;
	justify-content: center;
}

.btn-buscar-icono svg {
	display: block;
	width: 100%;
	height: 100%;
	fill: currentColor;
}


/* ==================================================
   TEXTO DEL BOTÓN
================================================== */

.btn-buscar-texto {
	display: flex;
	flex-direction: column;
	justify-content: center;
	line-height: 1;
}

.btn-buscar-titulo {
	margin-bottom: 2px;
	font-size: 20px;
	font-weight: 700;
}

.btn-buscar-subtitulo {
	font-size: 24px;
	font-weight: 700;
}


/* ==================================================
   CONTENEDOR
================================================== */

.formulario-sorteo {
	width: 90%;
	margin: 0 auto; /* Centra el formulario completo */
	padding: 15px;

	display: flex;
	align-items: center;
	justify-content: center;

	background-color: #f8fafc;
	border: 1px solid #e5eaf1;
	border-radius: 12px;

	box-shadow: 0 4px 14px rgba(15, 23, 42, 0.07);
}

.formulario-sorteo > .row {
	width: 100%;
	margin: 0;

	display: flex;
	align-items: center;
	justify-content: center;

	column-gap: 60px;
	row-gap: 12px;
}

/* Centra el contenido dentro de ambas columnas */
.contenedor-control {
	display: flex;
	align-items: center;
	justify-content: center;

	padding-left: 0;
	padding-right: 0;
}


/* ==================================================
   RESPONSIVE
================================================== */

@media (max-width: 767px) {
	.formulario-sorteo {
		padding: 18px;
	}

	.formulario-sorteo > .row {
		column-gap: 0;
		row-gap: 14px;
	}

	.contenedor-control {
		width: 100%;
	}

	#numero {
		width: 185px;
		height: 65px;
		font-size: 2.5em;
	}

	#enviarNumero {
		width: 100%;
		max-width: 320px;
		height: 68px;
	}

	.btn-buscar-icono {
		width: 44px;
		height: 44px;
	}

	.btn-buscar-titulo {
		font-size: 18px;
	}

	.btn-buscar-subtitulo {
		font-size: 22px;
	}
}