* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

@font-face {
	font-family: "Muli-Regular";
	font-weight: normal;
	src: url("../fonts/Muli-Regular.ttf") format("truetype");
}

@font-face {
	font-family: "Muli-Bold";
	font-weight: bold;
	src: url("../fonts/Muli-Bold.ttf") format("truetype");
}

@font-face {
	font-family: "Muli-Black";
	font-weight: bold;
	src: url("../fonts/Muli-Black.ttf") format("truetype");
}

body {
	font-family: "Muli-Regular";
	background: #fafafa;
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 2rem 1rem;

	position: relative;
	background:
		linear-gradient(135deg, rgba(245, 247, 252, 0), rgba(233, 238, 245, 0)),
		url(../images/arboles.svg);
	background-size: cover, contain;
	background-position:
		center,
		bottom center;
	background-repeat: no-repeat, no-repeat;
	background-attachment: fixed, fixed;

	background-color: #f0f4f9;
}

.landing-container {
	width: 100%;
	max-width: 680px;
	margin: 0 auto;
}

.form-card {
	z-index: 2;
	background: white;
	border-radius: 32px;
	box-shadow: 0 25px 45px -12px rgba(0, 0, 0, 0.25);
	padding: 2rem 2rem 2.5rem;
	transition: all 0.2s;
}

h1 {
	font-size: 1.5rem;
	font-weight: 600;
	color: #4d4d4d;
	margin-bottom: 0.75rem;
	letter-spacing: -0.3px;
}

.subtitulo {
	color: #5d5d5d;
	font-size: 1rem;
	line-height: 1.4;
	margin-bottom: 1rem;
	border-left: 4px solid #50b563;
	padding-left: 1rem;
}

/* Opcion 1 */
.logo-container {
	text-align: center;
}

.logo {
	width: 50%;
	height: auto;
	max-width: 100%;
	transition: transform 0.3s ease;
}

/* Opcion 2 */
.header-with-logo {
	display: flex;
	align-items: center;
	gap: 1.5rem;
	margin-bottom: 1.5rem;
	flex-wrap: wrap;
}

.logo-wrapper {
	flex-shrink: 0;
}

.logo-inline {
	width: 100px;
	height: auto;
	border-radius: 16px;
}

.header-text {
	flex: 1;
}

.header-text h1 {
	margin-bottom: 0.5rem;
}

.header-text .subtitulo {
	margin-bottom: 0;
}

/* Floating labels */
.floating-group {
	position: relative;
	margin-bottom: 1.2rem;
}

.floating-group input {
	width: 100%;
	padding: 1rem 0.75rem 0.5rem 0.75rem;
	font-size: 1rem;
	border: 1px solid #cfdfed;
	border-radius: 14px;
	background: white;
	transition: all 0.3s ease;
	outline: none;
	font-family: inherit;
}

.floating-group input.error {
	border-color: #e3887f;
	background-color: #fff5f5;
}

.floating-group input.valid {
	border-color: #a9cfb9;
	background-color: #f0fff4;
}

.floating-group input.error:focus {
	border-color: #e3887f;
	box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.floating-group input.valid:focus {
	border-color: #a9cfb9;
	box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.1);
}

/* Mensajes de error flotantes */
.error-message {
	position: absolute;
	bottom: -13px;
	left: 12px;
	font-size: 0.7rem;
	color: #e74c3c;
	background: white;
	padding: 0 5px;
	border-radius: 4px;
	display: none;
	z-index: 10;
}

.floating-group .error-message.show {
	display: block;
}

.floating-group label {
	position: absolute;
	left: 0.75rem;
	top: 0.9rem;
	color: #7e8fa8;
	font-size: 1rem;
	pointer-events: none;
	transition: 0.2s ease all;
	background: transparent;
}

.floating-group input:focus ~ label,
.floating-group input:not(:placeholder-shown) ~ label {
	top: 0.25rem;
	font-size: 0.7rem;
	color: #50b563;
	background: white;
	padding: 0 0.3rem;
}

.floating-group input:focus {
	border-color: #50b563;
	box-shadow: 0 0 0 3px #e0f0d3;
}

/* Select group */
.select-group {
	margin-bottom: 1.5rem;
}
.select-group label {
	display: block;
	font-weight: 500;
	font-size: 0.85rem;
	margin-bottom: 0.5rem;
	color: #4d4d4d;
}
.select-group select {
	width: 100%;
	padding: 0.8rem;
	border-radius: 14px;
	border: 1px solid #cfdfed;
	font-family: inherit;
	background: white;
	font-size: 0.95rem;
}

/* Checkbox grid */
.check-group {
	margin-bottom: 1.5rem;
}
.check-group > label {
	font-weight: 600;
	display: block;
	margin-bottom: 0.8rem;
	color: #4d4d4d;
}
.check-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	gap: 0.6rem;
}
.check-grid label {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-weight: normal;
	font-size: 0.9rem;
	color: #5d5d5d;
}
.check-grid input {
	width: 18px;
	height: 18px;
	accent-color: #50b563;
}

.garantia {
	background: #e0f0d3;
	text-align: center;
	padding: 0.8rem;
	border-radius: 5px;
	font-size: 0.9rem;
	font-weight: 500;
	color: #34633a;
	margin: 1.8rem 0 1.5rem;
}

.btn-enviar {
	width: 100%;
	background: #50b563;
	border: none;
	padding: 1rem;
	font-size: 1rem;
	font-weight: 600;
	color: white;
	border-radius: 40px;
	cursor: pointer;
	transition: all 0.2s;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	font-family: "Muli-Bold";
}
.btn-enviar:hover {
	background: #34633a;
	transform: scale(1.01);
	box-shadow: 0 8px 20px #e0f0d3;
}

.alert {
	padding: 0.9rem;
	border-radius: 20px;
	margin-bottom: 1.5rem;
	font-size: 0.9rem;
}
.success {
	background: #e3f7ec;
	color: #1e7b48;
	border-left: 4px solid #2ecc71;
}
.error {
	background: #ffe6e5;
	color: #b83b2e;
	border-left: 4px solid #e74c3c;
}

@media (min-width: 1200px) {
	body {
		background-size: cover, 90%;
		background-position:
			center,
			bottom -20px center;
	}
}

@media (max-width: 768px) {
	body {
		background-size: cover, 120%;
		background-position:
			center,
			bottom -30px center;
		padding: 1rem;
	}
}

@media (max-width: 550px) {
	.form-card {
		padding: 1.5rem;
	}
	h1 {
		font-size: 1.5rem;
	}

	.header-with-logo {
		flex-direction: column;
		text-align: center;
		gap: 1rem;
	}

	.logo-inline {
		width: 100px;
	}

	.header-text h1 {
		font-size: 1.5rem;
	}

	.check-grid {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 480px) {
	body {
		background-size: cover, 180%;
		background-position:
			center,
			bottom -40px center;
	}
}
