* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	font-family: 'Segoe UI', Arial, sans-serif;
}
.container {
	width: 100%;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 40px;
	background-color: #f4f4f4;
	background-image: url('../imagenes_alta/fondo.png');
	background-position: center center;
}
.form-container {
	background-color: white;
	padding: clamp(14px, 2vh, 30px) clamp(20px, 4vw, 40px);
	border-radius: 14px;
	box-shadow: 0px 8px 30px rgba(0, 0, 0, 0.15);
	width: 100%;
	max-width: 900px;
	text-align: left;
}
fieldset {
	border: 1px solid #dfe3e6;
	border-radius: 10px;
	padding: clamp(10px, 1.5vh, 18px) clamp(14px, 2vw, 22px);
	margin-bottom: clamp(8px, 1.2vh, 16px);
	background: #fafbfc;
}
legend {
	color: #267d39;
	font-weight: 700;
	font-size: clamp(1rem, 1.3vw, 1.2rem);
	padding: 0 10px;
	letter-spacing: 0.3px;
}
.form-group {
	margin-bottom: clamp(6px, 1vh, 12px);
}
.form-group:last-child {
	margin-bottom: 0;
}
label {
	font-weight: 600;
	display: block;
	font-size: clamp(0.85rem, 0.95vw, 0.95rem);
	color: #2c2c2c;
	margin-bottom: 3px;
}
input, select {
	width: 100%;
	padding: clamp(6px, 0.8vh, 9px) clamp(10px, 1.4vw, 14px);
	margin-top: 2px;
	border: 1.5px solid #dcdfe3;
	border-radius: 7px;
	font-size: clamp(0.85rem, 0.95vw, 0.95rem);
	background-color: white;
	color: #333;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
input:hover, select:hover {
	border-color: #b7bcc2;
}
input:focus, select:focus {
	outline: none;
	border-color: #267d39;
	box-shadow: 0 0 0 3px rgba(38, 125, 57, 0.15);
}
select {
	cursor: pointer;
}
.cif-nif-container {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
}
.cif-nif-container input {
	width: 100%;
}
#info, #info1 {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	padding: 0;
	font-size: 0.75rem;
	background-color: #267d39;
	color: white;
	border: none;
	border-radius: 50%;
	cursor: pointer;
	margin-left: 8px;
	vertical-align: middle;
	transition: opacity 0.15s ease;
}
#info:hover, #info1:hover {
	opacity: 0.8;
}
.button-container {
	display: flex;
	justify-content: flex-end;
	gap: 12px;
	width: 100%;
	margin-top: 10px;
	flex-wrap: wrap;
}
.submit-btn, .reset-btn {
	padding: 12px 26px;
	font-size: 0.95rem;
	font-weight: 600;
	border: none;
	border-radius: 8px;
	cursor: pointer;
	margin-top: 10px;
	width: auto;
	transition: opacity 0.15s ease, transform 0.1s ease;
}
.submit-btn {
	background-color: #267d39;
	color: white;
}
.reset-btn {
	background-color: #dc3545;
	color: #ffffff;
	border: 1.5px solid #dc3545;
}
.submit-btn:hover, .reset-btn:hover {
	opacity: 0.85;
}
.submit-btn:active, .reset-btn:active {
	transform: scale(0.98);
}
.checkbox-group {
	margin-top: 4px;
}
.checkbox-group .form-group {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin-bottom: 16px;
}
.checkbox-group label {
	font-size: 0.95rem;
	font-weight: 400;
	display: inline;
	margin: 0;
	cursor: pointer;
	line-height: 1.4;
}
.checkbox-group input {
	width: 18px;
	height: 18px;
	margin-top: 2px;
	flex-shrink: 0;
	accent-color: #267d39;
}
@media (max-width: 1024px) {
	.container {
		padding: 30px;
	}
	.form-container {
		padding: 34px;
	}
	fieldset {
		padding: 18px;
	}
}
@media (max-width: 768px) {
	.container {
		padding: 10px;
	}
	.form-container {
		padding: 22px 18px;
		border-radius: 10px;
	}
	fieldset {
		padding: 16px;
	}
	label {
		font-size: 0.95rem;
	}
	input, select {
		padding: 11px 12px;
		font-size: 0.95rem;
	}
	.button-container {
		flex-direction: column;
		gap: 10px;
	}
	.submit-btn {
		width: 100%;
		text-align: center;
		order: 1;
		padding: 16px;
		font-size: 1.05rem;
	}
	.reset-btn {
		width: 100%;
		text-align: center;
		order: 2;
		background-color: transparent;
		color: #888;
		border: none;
		text-decoration: underline;
		font-weight: 500;
		box-shadow: none;
	}
}
.btn-elegir-archivo {
	padding: 10px 18px;
	font-size: 0.95rem;
	font-weight: 600;
	border: none;
	border-radius: 8px;
	cursor: pointer;
	background-color: #3d5a80;
	color: white;
	transition: opacity 0.15s ease;
}
.btn-elegir-archivo:hover {
	opacity: 0.85;
}