﻿/* ===== VARIABLES DE COLOR (tu paleta) ===== */
:root {
	--fondo-suave: #E7DFF2; /* UI/UX-1 */
	--color-primario: #5C41BF; /* UI/UX-2 – principal */
	--color-secundario: #7C69BF; /* UI/UX-3 – hover / acento */
	--color-neutral: #A69D8D; /* UI/UX-4 – texto secundario */
	--color-texto: #0D0D0D; /* UI/UX-5 – texto principal */
}

/* ===== ESTILOS GENERALES ===== */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: 'Poppins', sans-serif;
	background-color: white;
	color: var(--color-texto);
	line-height: 1.6;
}

/* ===== HEADER ===== */
.header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 1rem 5%;
	background-color: white;
	box-shadow: 0 2px 8px rgba(0,0,0,0.08);
	position: sticky;
	top: 0;
	z-index: 100;
}

.logo {
	font-size: 1.6rem;
	font-weight: 700;
	color: var(--color-primario);
}

.nav a {
	margin-left: 1.5rem;
	text-decoration: none;
	color: var(--color-texto);
	font-weight: 600;
	transition: color 0.25s;
	position: relative;
}

	.nav a:hover,
	.nav a.active {
		color: var(--color-primario);
	}

.btn-login {
	background: var(--color-primario);
	color: white !important;
	padding: 0.5rem 1.2rem;
	border-radius: 20px;
	margin-left: 1.5rem;
}

/* ===== BANNER PRINCIPAL (HERO) ===== */
.hero {
	background: linear-gradient(135deg, var(--color-primario), var(--color-secundario));
	color: white;
	text-align: center;
	padding: 5rem 1.5rem;
}

	.hero h1 {
		font-size: 2.6rem;
		margin-bottom: 1rem;
	}

	.hero p {
		font-size: 1.2rem;
		max-width: 700px;
		margin: 0 auto 1.8rem;
		opacity: 0.95;
	}

.btn-primary {
	display: inline-block;
	background: white;
	color: var(--color-primario);
	font-weight: 700;
	padding: 0.85rem 2.2rem;
	border-radius: 30px;
	text-decoration: none;
	font-size: 1.1rem;
	transition: background 0.3s, transform 0.2s;
}
@media (max-width: 768px) {
	.hero {
		padding: 3rem 1rem;
	}

		.hero h1 {
			font-size: 2rem;
		}

		.hero p {
			font-size: 1rem;
		}
}

	.btn-primary:hover {
		background: var(--fondo-suave);
		transform: translateY(-2px);
	}

/* ===== SECCIONES DESTACADAS (TARJETAS) ===== */
.cards-section {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 2rem;
	padding: 4rem 5%;
	background-color: var(--fondo-suave);
}

.card {
	background: white;
	border-radius: 14px;
	padding: 1.8rem 1.5rem;
	text-align: center;
	box-shadow: 0 4px 12px rgba(92, 65, 191, 0.12);
	transition: transform 0.3s, box-shadow 0.3s;
}

	.card:hover {
		transform: translateY(-6px);
		box-shadow: 0 8px 20px rgba(92, 65, 191, 0.2);
	}

	.card h3 {
		color: var(--color-primario);
		margin-bottom: 1rem;
		font-size: 1.4rem;
	}

	.card p {
		color: var(--color-neutral);
		margin-bottom: 1.2rem;
	}

.btn-card {
	color: var(--color-primario);
	text-decoration: none;
	font-weight: 600;
	position: relative;
}

	.btn-card::after {
		content: " →";
		opacity: 0;
		transition: opacity 0.3s;
	}

.card:hover .btn-card::after {
	opacity: 1;
}

/* ===== FOOTER ===== */
.footer {
	text-align: center;
	padding: 2rem;
	background: var(--color-texto);
	color: white;
	font-size: 0.95rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
	.header {
		flex-direction: column;
		gap: 1rem;
	}

	.nav {
		display: flex;
		flex-wrap: wrap;
		justify-content: center;
	}

		.nav a {
			margin: 0.3rem 0.8rem;
		}

	.hero h1 {
		font-size: 2rem;
	}
}
/* ===== VARIABLES DE COLOR – MODO OSCURO (USAinstmaroto) ===== */
:root {
	/* Fondo oscuro profundo (en lugar de blanco) */
	--bg-primary: #0D0D0D; /* Tu UI/UX-5 como fondo */
	--bg-secondary: #141414; /* Un poco más claro para tarjetas/sidebar */
	/* Texto: invertimos el uso */
	--text-primary: #E7DFF2; /* Tu UI/UX-1 (claro) como texto principal */
	--text-secondary: #A69D8D; /* Tu UI/UX-4 como texto secundario */
	/* Acentos: mantenemos tus colores clave */
	--accent-primary: #5C41BF; /* Tu UI/UX-2 – botones, activo */
	--accent-secondary: #7C69BF; /* Tu UI/UX-3 – hover, resaltados */
	--accent-light: #A69D8D; /* UI/UX-4 – neutro, errores suaves */
}
