/* =========================================================
   VLM BD Plugin — Estilos adaptados a vivelamoto.org
   ========================================================= */

/* Contenedor principal: ocupa el 100 % del contenedor padre */
.vlm-wrap {
	width: 100%;
	box-sizing: border-box;
	font-family: inherit;
	color: #1a1a1a;
}

/* Títulos */
.vlm-title {
	margin: 0 0 1.5rem;
	font-size: 1.5rem;
	font-weight: 700;
	color: #1a1a1a;
	line-height: 1.25;
}

.vlm-hint {
	font-size: 0.78rem;
	font-weight: 400;
	color: #999;
}

.vlm-required {
	color: #006eb7;
}

/* ── Campos ─────────────────────────────────────────────── */

.vlm-field {
	margin-bottom: 1.1rem;
}

.vlm-field label {
	display: block;
	margin-bottom: 0.35rem;
	font-size: 0.82rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #555;
}

.vlm-field input[type="text"],
.vlm-field input[type="email"],
.vlm-field input[type="password"],
.vlm-field input[type="tel"] {
	display: block;
	width: 100%;
	padding: 0.7rem 0.9rem;
	font-size: 0.95rem;
	font-family: inherit;
	color: #1a1a1a;
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 3px;
	box-sizing: border-box;
	transition: border-color 0.15s;
	-webkit-appearance: none;
	border-radius: 15px;
}

.vlm-field input[type="text"]:focus,
.vlm-field input[type="email"]:focus,
.vlm-field input[type="password"]:focus,
.vlm-field input[type="tel"]:focus {
	outline: none;
	border-color: #006eb7;
}

/* Campos de solo lectura */
.vlm-field.vlm-readonly label {
	color: #888;
}

.vlm-field.vlm-readonly span {
	display: block;
	padding: 0.5rem 0;
	font-size: 0.95rem;
	color: #333;
	border-bottom: 1px solid #efefef;
}

/* ── Secciones del perfil ────────────────────────────────── */

.vlm-section {
	margin-bottom: 2rem;
}

.vlm-section h4 {
	margin: 0 0 1rem;
	font-size: 0.72rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: #006eb7;
}

/* ── Botones ─────────────────────────────────────────────── */

.vlm-btn {
	display: inline-block;
	padding: 0.7rem 1.6rem;
	border: 2px solid transparent;
	border-radius: 3px;
	font-family: inherit;
	font-size: 0.82rem;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	line-height: 1;
	cursor: pointer;
	text-align: center;
	text-decoration: none;
	transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.vlm-btn:disabled,
.vlm-btn[disabled] {
	opacity: 0.5;
	cursor: not-allowed;
}

/* Primario: naranja relleno */
.vlm-btn-primary {
	background: #006eb7;
	border-color: #006eb7;
	color: #fff;
}

.vlm-btn-primary:hover:not(:disabled) {
	background: #005a96;
	border-color: #005a96;
	color: #fff;
}

/* Secundario: oscuro relleno */
.vlm-btn-secondary {
	background: #1a1a1a;
	border-color: #1a1a1a;
	color: #fff;
}

.vlm-btn-secondary:hover:not(:disabled) {
	background: #000;
	border-color: #000;
	color: #fff;
}

/* Contorno: transparente con borde gris */
.vlm-btn-outline {
	background: transparent;
	border-color: #ccc;
	color: #555;
}

.vlm-btn-outline:hover:not(:disabled) {
	border-color: #888;
	color: #1a1a1a;
}

/* ── Alertas ─────────────────────────────────────────────── */

.vlm-alert {
	padding: 0.75rem 1rem;
	border-radius: 3px;
	margin-bottom: 1rem;
	font-size: 0.875rem;
	line-height: 1.5;
}

.vlm-alert-error {
	background: #fff3f0;
	color: #9b2c2c;
	border-left: 3px solid #006eb7;
}

.vlm-alert-success {
	background: #f0faf4;
	color: #1a5c33;
	border-left: 3px solid #38a169;
}

/* ── Cajas de estado ─────────────────────────────────────── */

.vlm-success-box,
.vlm-info-box,
.vlm-warning-box {
	padding: 1.1rem 1.25rem;
	border-radius: 3px;
	font-size: 0.95rem;
	line-height: 1.65;
}

.vlm-success-box p,
.vlm-info-box p,
.vlm-warning-box p {
	margin: 0;
}

.vlm-success-box {
	background: #f0faf4;
	border-left: 4px solid #38a169;
	color: #1a5c33;
}

.vlm-info-box {
	background: #f0f6ff;
	border-left: 4px solid #4a90d9;
	color: #1a3a5c;
}

.vlm-warning-box {
	background: #fffbf0;
	border-left: 4px solid #006eb7;
	color: #7a3a0a;
}

/* ── Enlace "¿Olvidaste la contraseña?" ─────────────────── */

.vlm-link-row {
	margin-top: 1rem;
	font-size: 0.85rem;
}

.vlm-link-row a,
a.vlm-toggle {
	color: #006eb7;
	text-decoration: none;
	border-bottom: 1px solid transparent;
	cursor: pointer;
	transition: border-color 0.15s;
}

.vlm-link-row a:hover,
a.vlm-toggle:hover {
	border-bottom-color: #006eb7;
}

/* ── Newsletter ──────────────────────────────────────────── */

.vlm-newsletter-row {
	display: flex;
	align-items: center;
	gap: 1.25rem;
	flex-wrap: wrap;
}

#vlm-newsletter-status {
	font-size: 0.9rem;
	color: #555;
}

/* ── Condiciones del sorteo ──────────────────────────────── */

.vlm-check-row {
	display: flex;
	align-items: flex-start;
	gap: 0.65rem;
	margin-bottom: 1.25rem;
}

.vlm-check-row input[type="checkbox"] {
	margin-top: 2px;
	flex-shrink: 0;
	width: 16px;
	height: 16px;
	accent-color: #006eb7;
	cursor: pointer;
}

.vlm-check-row label {
	font-size: 0.88rem;
	line-height: 1.55;
	cursor: pointer;
	color: #333;
}

.vlm-check-row label a {
	color: #006eb7;
	text-decoration: none;
	border-bottom: 1px solid #006eb7;
}

/* ── Premio / fecha del sorteo ───────────────────────────── */

.vlm-premio,
.vlm-fecha {
	margin: 0 0 0.6rem;
	font-size: 0.92rem;
	color: #444;
}

/* ── Barra de acciones del perfil ────────────────────────── */

.vlm-actions {
	display: flex;
	gap: 0.75rem;
	flex-wrap: wrap;
	align-items: center;
	margin-top: 1.75rem;
	padding-top: 1.25rem;
	border-top: 1px solid #efefef;
}

/* ── Nombre del sorteo en el bloque de inscripción ───────── */

.vlm-sorteo-wrap .vlm-title {
	font-size: 1.3rem;
	margin-bottom: 0.75rem;
}

/* ── Separación entre bloques login / reset ─────────────── */

.vlm-block + .vlm-block {
	margin-top: 0;
}

/* ── Grid 2 columnas (formulario de registro) ────────────── */

.vlm-grid-2 {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr 1fr;
	gap: 0 1.25rem;
}

@media (max-width: 520px) {
	.vlm-grid-2 {
		grid-template-columns: 1fr;
	}
}

/* ── Política de privacidad ──────────────────────────────── */

.vlm-privacidad-row {
	margin-bottom: 1.25rem;
}

/* ── Comunicaciones comerciales ──────────────────────────── */

.vlm-comunicaciones-field {
	margin-bottom: 1.25rem;
}

.vlm-comunicaciones-label {
	display: block;
	margin-bottom: 0.6rem;
	font-size: 0.82rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #555;
}

.vlm-radio-group {
	display: flex;
	flex-direction: column;
	gap: 0.55rem;
}

.vlm-radio-opt {
	display: flex;
	align-items: flex-start;
	gap: 0.55rem;
}

.vlm-radio-opt input[type="radio"] {
	margin-top: 3px;
	flex-shrink: 0;
	width: 15px;
	height: 15px;
	accent-color: #006eb7;
	cursor: pointer;
}

.vlm-radio-opt label {
	font-size: 0.84rem;
	line-height: 1.5;
	cursor: pointer;
	color: #333;
	text-transform: none;
	letter-spacing: 0;
	font-weight: 400;
}
