/* Formulario de sorteo / showcase — Billboard Argentina */

.bb-sorteo {
	--bb-verde: #00f7b2;
	--bb-negro: #000;
	--bb-gris: #e6e6e6;
	--bb-gris-texto: #5a5a5a;
	--bb-error: #c0261c;

	box-sizing: border-box;
	margin: 32px 0;
	padding: 28px;
	background: #fff;
	border: 2px solid var(--bb-negro);
	font-family: inherit;
}

.bb-sorteo *,
.bb-sorteo *::before,
.bb-sorteo *::after {
	box-sizing: border-box;
}

.bb-sorteo__head {
	margin-bottom: 22px;
	padding-bottom: 18px;
	border-bottom: 1px solid var(--bb-gris);
}

.bb-sorteo__kicker {
	display: inline-block;
	margin-bottom: 10px;
	padding: 4px 10px;
	background: var(--bb-verde);
	color: var(--bb-negro);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
}

.bb-sorteo__title {
	margin: 0;
	color: var(--bb-negro);
	font-size: 28px;
	font-weight: 800;
	line-height: 1.15;
}

.bb-sorteo__intro {
	margin-top: 10px;
	color: var(--bb-gris-texto);
	font-size: 16px;
	line-height: 1.5;
}

.bb-sorteo__intro p:last-child {
	margin-bottom: 0;
}

.bb-sorteo__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
}

@media (max-width: 640px) {
	.bb-sorteo {
		padding: 20px;
	}

	.bb-sorteo__title {
		font-size: 22px;
	}

	.bb-sorteo__grid {
		grid-template-columns: 1fr;
	}
}

.bb-sorteo__field {
	margin: 0;
}

.bb-sorteo__field label {
	display: block;
	margin-bottom: 6px;
	color: var(--bb-negro);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
}

.bb-sorteo__field input {
	width: 100%;
	height: 46px;
	padding: 0 14px;
	background: #fff;
	border: 1px solid #b7b7b7;
	border-radius: 0;
	color: var(--bb-negro);
	font-size: 16px; /* 16px evita el zoom automático en iOS */
	line-height: 46px;
}

.bb-sorteo__field input:focus {
	border-color: var(--bb-negro);
	outline: 2px solid var(--bb-verde);
	outline-offset: -2px;
}

.bb-sorteo__field.has-error input {
	border-color: var(--bb-error);
}

.bb-sorteo__error {
	display: block;
	margin-top: 4px;
	color: var(--bb-error);
	font-size: 13px;
	line-height: 1.3;
}

/* Honeypot: invisible para las personas, visible para los bots. */
.bb-sorteo__hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.bb-sorteo__submit {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin-top: 22px;
	padding: 15px 34px;
	background: var(--bb-negro);
	border: 0;
	color: #fff;
	font-family: inherit;
	font-size: 14px;
	font-weight: 800;
	letter-spacing: .08em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background .15s ease, color .15s ease;
}

.bb-sorteo__submit:hover:not(:disabled) {
	background: var(--bb-verde);
	color: var(--bb-negro);
}

.bb-sorteo__submit:disabled {
	opacity: .6;
	cursor: default;
}

.bb-sorteo__spinner {
	width: 15px;
	height: 15px;
	border: 2px solid rgba(255, 255, 255, .35);
	border-top-color: #fff;
	border-radius: 50%;
	animation: bb-sorteo-spin .7s linear infinite;
}

@keyframes bb-sorteo-spin {
	to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
	.bb-sorteo__spinner {
		animation-duration: 2s;
	}
}

.bb-sorteo__legal {
	margin: 12px 0 0;
	color: #8a8a8a;
	font-size: 12px;
}

.bb-sorteo__msg {
	margin-top: 18px;
	padding: 14px 16px;
	font-size: 15px;
	line-height: 1.45;
}

.bb-sorteo__msg.is-ok {
	background: var(--bb-verde);
	color: var(--bb-negro);
	font-weight: 700;
}

.bb-sorteo__msg.is-error {
	background: #fdeceb;
	border-left: 4px solid var(--bb-error);
	color: #7d1a13;
}

/* Una vez enviado, ocultamos los campos y dejamos solo la confirmación. */
.bb-sorteo__form.is-done .bb-sorteo__grid,
.bb-sorteo__form.is-done .bb-sorteo__submit,
.bb-sorteo__form.is-done .bb-sorteo__legal {
	display: none;
}

.bb-sorteo__cerrado {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 18px 20px;
	background: #f4f4f4;
	border-left: 4px solid var(--bb-negro);
	color: var(--bb-gris-texto);
	font-size: 15px;
}

.bb-sorteo__cerrado strong {
	color: var(--bb-negro);
	font-size: 17px;
}

.bb-sorteo-error {
	padding: 12px;
	background: #fdeceb;
	border-left: 4px solid #c0261c;
	color: #7d1a13;
}
