/* ==========================================================
   KYK • AVISO DE PRIVACIDAD
   STYLE.CSS
   PARTE 1
========================================================== */

/* ==========================================================
   VARIABLES
========================================================== */

:root {
	--bg-primary: #061423;
	--bg-secondary: #0b1f36;
	--surface: rgba(15, 34, 58, 0.82);
	--surface-light: rgba(255, 255, 255, 0.05);

	--border: rgba(255, 255, 255, 0.08);

	--text: #f8fafc;
	--text-soft: #cbd5e1;
	--text-muted: #94a3b8;

	--primary: #3b82f6;
	--primary-dark: #2563eb;
	--primary-light: #60a5fa;

	--success: #22c55e;

	--shadow-lg: 0 25px 80px rgba(0, 0, 0, 0.35);
	--shadow-card: 0 10px 35px rgba(0, 0, 0, 0.2);

	--radius: 24px;
	--radius-sm: 14px;

	--container: 1100px;
}

/* ==========================================================
   RESET
========================================================== */

*,
*::before,
*::after {
	margin: 0;
	padding: 0;

	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	min-height: 100vh;

	background:
		radial-gradient(circle at top left, #0f4c81 0%, transparent 45%),
		radial-gradient(circle at bottom right, #2563eb 0%, transparent 40%),
		var(--bg-primary);

	color: var(--text);

	font-family: 'Inter', sans-serif;

	line-height: 1.75;

	overflow-x: hidden;
}

/* ==========================================================
   SELECCIÓN
========================================================== */

::selection {
	background: var(--primary);

	color: white;
}

/* ==========================================================
   TIPOGRAFÍA
========================================================== */

h1,
h2,
h3 {
	font-family: 'Space Grotesk', sans-serif;

	font-weight: 700;

	letter-spacing: -0.03em;

	color: white;
}

p {
	color: var(--text-soft);

	margin-bottom: 1.2rem;
}

strong {
	color: white;

	font-weight: 700;
}

small {
	color: var(--text-muted);
}

/* ==========================================================
   ENLACES
========================================================== */

a {
	color: var(--primary-light);

	text-decoration: none;

	transition: 0.25s;
}

a:hover {
	color: white;
}

/* ==========================================================
   LISTAS
========================================================== */

ul {
	padding-left: 1.3rem;

	margin: 1rem 0 2rem;
}

li {
	margin-bottom: 0.65rem;

	color: var(--text-soft);
}

/* ==========================================================
   IMÁGENES
========================================================== */

img {
	max-width: 100%;

	display: block;
}

/* ==========================================================
   CONTENEDOR
========================================================== */

.container {
	width: min(92%, var(--container));

	margin: auto;
}

/* ==========================================================
   FONDO
========================================================== */

body::before {
	content: '';

	position: fixed;

	inset: 0;

	background-image:
		linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);

	background-size: 42px 42px;

	opacity: 0.28;

	pointer-events: none;

	z-index: -2;
}

body::after {
	content: '';

	position: fixed;

	width: 700px;

	height: 700px;

	top: -220px;

	right: -220px;

	background: radial-gradient(
		circle,
		rgba(59, 130, 246, 0.28),
		transparent 72%
	);

	filter: blur(60px);

	pointer-events: none;

	z-index: -1;
}
/* ==========================================================
   HEADER
========================================================== */

header {
	position: sticky;

	top: 0;

	z-index: 100;

	backdrop-filter: blur(18px);

	background: rgba(6, 20, 35, 0.72);

	border-bottom: 1px solid var(--border);
}

header .container {
	display: flex;

	align-items: center;

	justify-content: space-between;

	gap: 2rem;

	min-height: 82px;
}

.logo {
	font-family: 'Space Grotesk', sans-serif;

	font-size: 1.7rem;

	font-weight: 700;

	color: white;

	letter-spacing: -0.04em;
}

.logo:hover {
	color: var(--primary-light);
}

.back {
	display: inline-flex;

	align-items: center;

	justify-content: center;

	padding: 0.85rem 1.5rem;

	border-radius: 999px;

	border: 1px solid rgba(96, 165, 250, 0.25);

	background: rgba(59, 130, 246, 0.12);

	color: white;

	font-weight: 600;

	transition: 0.3s ease;
}

.back:hover {
	background: var(--primary);

	border-color: var(--primary);

	transform: translateY(-2px);

	box-shadow: 0 10px 25px rgba(59, 130, 246, 0.35);
}

/* ==========================================================
   HERO
========================================================== */

.hero {
	padding: 6rem 0 4rem;
}

.hero .container {
	max-width: 850px;

	text-align: center;
}

.eyebrow {
	display: inline-flex;

	align-items: center;

	gap: 0.6rem;

	padding: 0.55rem 1rem;

	border-radius: 999px;

	background: rgba(59, 130, 246, 0.12);

	border: 1px solid rgba(96, 165, 250, 0.2);

	color: var(--primary-light);

	font-size: 0.85rem;

	font-weight: 700;

	letter-spacing: 0.12em;

	text-transform: uppercase;

	margin-bottom: 1.8rem;
}

.hero h1 {
	font-size: clamp(2.6rem, 5vw, 4.2rem);

	line-height: 1.05;

	margin-bottom: 1.4rem;
}

.hero p {
	max-width: 720px;

	margin: 0 auto;

	font-size: 1.15rem;

	color: var(--text-soft);
}

/* ==========================================================
   HERO CARD
========================================================== */

.hero .container {
	position: relative;

	padding: 4rem;

	border-radius: var(--radius);

	background: linear-gradient(
		180deg,
		rgba(255, 255, 255, 0.05),
		rgba(255, 255, 255, 0.02)
	);

	border: 1px solid var(--border);

	box-shadow: var(--shadow-lg);

	overflow: hidden;
}

.hero .container::before {
	content: '';

	position: absolute;

	width: 420px;

	height: 420px;

	right: -150px;

	top: -180px;

	background: radial-gradient(circle, rgba(59, 130, 246, 0.3), transparent 72%);

	filter: blur(30px);
}

.hero .container::after {
	content: '';

	position: absolute;

	inset: 0;

	border-radius: inherit;

	pointer-events: none;

	border: 1px solid rgba(255, 255, 255, 0.04);
}

/* ==========================================================
   EFECTO DE TEXTO
========================================================== */

.hero h1 {
	background: linear-gradient(90deg, #ffffff, #c7e1ff, #7ec3ff);

	-webkit-background-clip: text;

	-webkit-text-fill-color: transparent;

	background-clip: text;
}

/* ==========================================================
   RESPONSIVE
========================================================== */

@media (max-width: 768px) {
	header .container {
		flex-direction: column;

		justify-content: center;

		padding: 1rem 0;
	}

	.back {
		width: 100%;
	}

	.hero {
		padding: 4rem 0 3rem;
	}

	.hero .container {
		padding: 2rem;
	}

	.hero h1 {
		font-size: 2.2rem;
	}

	.hero p {
		font-size: 1rem;
	}
}
/* ==========================================================
   CONTENIDO PRINCIPAL
========================================================== */

.content {
	padding: 0 0 5rem;
}

.content .container {
	display: flex;

	flex-direction: column;

	gap: 2rem;
}

/* ==========================================================
   TABLA DE CONTENIDO
========================================================== */

.toc {
	background: rgba(255, 255, 255, 0.04);

	border: 1px solid var(--border);

	border-radius: var(--radius);

	padding: 2rem;

	box-shadow: var(--shadow-card);
}

.toc h2 {
	margin-bottom: 1.5rem;

	font-size: 1.4rem;
}

.toc ul {
	list-style: none;

	padding: 0;

	margin: 0;

	display: grid;

	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));

	gap: 0.85rem;
}

.toc li {
	margin: 0;
}

.toc a {
	display: flex;

	align-items: center;

	gap: 0.75rem;

	padding: 0.85rem 1rem;

	border-radius: 14px;

	background: rgba(255, 255, 255, 0.03);

	border: 1px solid transparent;

	color: var(--text-soft);

	font-weight: 600;

	transition: 0.25s ease;
}

.toc a::before {
	content: '→';

	color: var(--primary-light);

	font-weight: 700;
}

.toc a:hover {
	color: white;

	background: rgba(59, 130, 246, 0.12);

	border-color: rgba(96, 165, 250, 0.35);

	transform: translateX(4px);
}

/* ==========================================================
   TARJETAS
========================================================== */

.card {
	background: var(--surface);

	border: 1px solid var(--border);

	border-radius: var(--radius);

	padding: 2.5rem;

	box-shadow: var(--shadow-card);

	transition: 0.35s ease;
}

.card:hover {
	transform: translateY(-4px);

	border-color: rgba(96, 165, 250, 0.25);

	box-shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
}

/* ==========================================================
   TITULOS
========================================================== */

.card h2 {
	position: relative;

	margin-bottom: 1.8rem;

	padding-bottom: 1rem;

	font-size: 1.7rem;
}

.card h2::after {
	content: '';

	position: absolute;

	left: 0;

	bottom: 0;

	width: 70px;

	height: 4px;

	border-radius: 999px;

	background: linear-gradient(90deg, var(--primary), var(--primary-light));
}

.card h3 {
	margin-top: 2rem;

	margin-bottom: 1rem;

	color: white;

	font-size: 1.2rem;
}

/* ==========================================================
   PARRAFOS
========================================================== */

.card p {
	color: var(--text-soft);

	text-align: justify;

	line-height: 1.9;

	margin-bottom: 1.2rem;
}

/* ==========================================================
   LISTAS
========================================================== */

.card ul {
	margin-top: 1.2rem;

	padding-left: 0;

	list-style: none;
}

.card li {
	position: relative;

	padding-left: 1.8rem;

	margin-bottom: 0.9rem;

	color: var(--text-soft);
}

.card li::before {
	content: '';

	position: absolute;

	left: 0;

	top: 0.7rem;

	width: 8px;

	height: 8px;

	border-radius: 50%;

	background: var(--primary-light);

	box-shadow: 0 0 12px rgba(96, 165, 250, 0.6);
}

/* ==========================================================
   DESTACADOS
========================================================== */

.card strong {
	color: white;

	font-weight: 700;
}

.card em {
	color: var(--primary-light);

	font-style: normal;
}

/* ==========================================================
   SEPARADORES
========================================================== */

.card hr {
	border: none;

	height: 1px;

	background: rgba(255, 255, 255, 0.08);

	margin: 2rem 0;
}

/* ==========================================================
   SCROLL SUAVE A LAS SECCIONES
========================================================== */

.card {
	scroll-margin-top: 120px;
}
/* ==========================================================
   FOOTER
========================================================== */

footer {
	padding: 4rem 0 5rem;
}

footer .container {
	display: flex;

	flex-direction: column;

	align-items: center;

	gap: 1rem;

	text-align: center;

	padding-top: 2.5rem;

	border-top: 1px solid var(--border);
}

footer p {
	margin: 0;

	color: var(--text-muted);

	font-size: 0.95rem;
}

footer a {
	display: inline-flex;

	align-items: center;

	justify-content: center;

	gap: 0.6rem;

	margin-top: 0.5rem;

	padding: 0.9rem 1.8rem;

	border-radius: 999px;

	background: linear-gradient(135deg, var(--primary), var(--primary-dark));

	color: white;

	font-weight: 700;

	transition: 0.3s ease;

	box-shadow: 0 10px 30px rgba(37, 99, 235, 0.3);
}

footer a:hover {
	transform: translateY(-3px);

	box-shadow: 0 18px 40px rgba(37, 99, 235, 0.45);
}

/* ==========================================================
   TABLAS (POR SI EN EL FUTURO LAS NECESITAS)
========================================================== */

table {
	width: 100%;

	border-collapse: collapse;

	margin: 2rem 0;

	overflow: hidden;

	border-radius: 18px;
}

th {
	background: rgba(59, 130, 246, 0.18);

	color: white;

	padding: 1rem;

	text-align: left;
}

td {
	padding: 1rem;

	border-top: 1px solid rgba(255, 255, 255, 0.08);

	color: var(--text-soft);

	background: rgba(255, 255, 255, 0.02);
}

/* ==========================================================
   SCROLLBAR
========================================================== */

::-webkit-scrollbar {
	width: 10px;
}

::-webkit-scrollbar-track {
	background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
	background: rgba(96, 165, 250, 0.45);

	border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
	background: var(--primary);
}

/* ==========================================================
   FOCUS
========================================================== */

a:focus-visible {
	outline: 3px solid var(--primary-light);

	outline-offset: 4px;

	border-radius: 12px;
}

/* ==========================================================
   RESPONSIVE
========================================================== */

@media (max-width: 900px) {
	.toc ul {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 768px) {
	.card {
		padding: 2rem;
	}

	.card h2 {
		font-size: 1.45rem;
	}

	.card p {
		text-align: left;
	}
}

@media (max-width: 480px) {
	.hero {
		padding: 3rem 0 2rem;
	}

	.hero .container {
		padding: 1.6rem;
	}

	.eyebrow {
		font-size: 0.72rem;
	}

	.hero h1 {
		font-size: 2rem;
	}

	.hero p {
		font-size: 0.95rem;
	}

	.card {
		padding: 1.4rem;
	}

	.toc {
		padding: 1.4rem;
	}

	footer a {
		width: 100%;
	}
}

/* ==========================================================
   ANIMACIONES
========================================================== */

@keyframes fadeUp {
	from {
		opacity: 0;

		transform: translateY(20px);
	}

	to {
		opacity: 1;

		transform: translateY(0);
	}
}

.hero {
	animation: fadeUp 0.7s ease;
}

.toc {
	animation: fadeUp 0.9s ease;
}

.card {
	animation: fadeUp 1s ease;
}

/* ==========================================================
   IMPRESIÓN
========================================================== */

@media print {
	body {
		background: white;

		color: black;
	}

	body::before,
	body::after {
		display: none;
	}

	header,
	footer {
		display: none;
	}

	.card {
		border: none;

		box-shadow: none;

		background: white;

		color: black;

		page-break-inside: avoid;
	}

	.card h2,
	.card p,
	.card li {
		color: black;
	}
}
