:root {
	--animate-duration: 1.2s;
	--animate-delay: 0.2s;
	--animate-repeat: 1;
	--color-primary: #3b82f6;
	--color-dark: #0f172a;
	--color-light: #f1f5f9;
	--font-main: "Inter", sans-serif;
}

body {
	margin: 0;
	font-family: var(--font-main);
	background-color: var(--color-light);
	color: var(--color-dark);
}

header {
	background-color: var(--color-dark);
	color: white;
	text-align: center;
	padding: 4rem 2rem;
}

header h1 {
	font-size: 3rem;
	margin: 0;
}

header p {
	font-size: 1.3rem;
	color: #cbd5e1;
	margin-top: 0.5rem;
}

.contenido {
	display: grid;
	grid-template-columns: 1fr;
	gap: 3rem;
	padding: 3rem 2rem;
	max-width: 1000px;
	margin: auto;
}

.seccion {
	background: white;
	padding: 2rem;
	border-radius: 1rem;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
	transition: transform 0.4s ease, box-shadow 0.4s ease;
	will-change: transform, box-shadow;
}

.seccion:hover {
	transform: translateY(-10px);
	box-shadow: 0 12px 45px rgba(0, 0, 0, 0.12);
}
.seccion h2 {
	margin-top: 0;
	color: var(--color-primary);
}

.cta {
	display: flex;
	justify-content: center;
}

.boton {
	background: var(--color-primary);
	color: white;
	font-size: 1.1rem;
	border: none;
	padding: 0.8rem 2rem;
	border-radius: 0.5rem;
	cursor: pointer;
	transition: background 0.3s ease;
}

.boton:hover {
	background: #2563eb;
}

footer {
	text-align: center;
	padding: 2rem;
	background: #1e293b;
	color: #cbd5e1;
}

@media (min-width: 768px) {
	.contenido {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* Estilos para la modal nativa */
dialog::backdrop {
	background: rgba(0, 0, 0, 0.5);
}

dialog {
	border: none;
	border-radius: 1rem;
	padding: 2rem 2.5rem;
	max-width: fit-content;
	width: 90%;
	position: relative;
}

dialog form {
	margin: 0;
}

.form-group {
	margin-bottom: 1.2rem;
}

label {
	display: block;
	font-weight: 600;
	margin-bottom: 0.4rem;
}

input[type="text"],
input[type="email"] {
	width: 90%;
	padding: 0.5rem;
	border: 1px solid #ccc;
	border-radius: 0.4rem;
	font-size: 1rem;
}

.cerrar-modal {
	position: absolute;
	top: 1rem;
	right: 1rem;
	background: transparent;
	border: none;
	font-size: 1.5rem;
	cursor: pointer;
	color: var(--color-dark);
}