/* estilo.css - Tema oscuro moderno básico */
:root {
	--bg: #0f1720; /* fondo principal */
	--bg-hover: #131f2e; /* fondo en hover */
	--surface: #111827; /* tarjetas / surface */
	--muted-surface: #0b1220;
	--text: #e6eef6; /* texto principal */
	--muted: #9aa6b2; /* texto secundario */
	--accent: #7dd3fc; /* acento cian claro */
	--accent-2: #60a5fa; /* azul secundario */
	--danger: #f87171;
	--radius: 12px;
	--glass: rgba(255, 255, 255, 0.03);
	--shadow: 0 6px 18px rgba(2, 6, 23, 0.6);
}

/* Soporte para prefers-color-scheme (fallback ligero) */
@media (prefers-color-scheme: light) {
	:root {
		--bg: #0f1720; /* mantenemos oscuro por diseño, pero se puede invertir */
	}
}

/* 1. CARGA DE PESO 200 (ExtraLight / Delgado) */
@font-face {
	font-family: "Inter";
	font-weight: 200;
	font-style: normal;
	font-display: swap;
	src: url("./fonts/inter-v20-latin-200.woff2") format("woff2");
	/* unicode-range optimiza la carga: solo descarga si se usan estos caracteres latinos */
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
		U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191,
		U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* 2. CARGA DE PESO REGULAR (Para texto de párrafo y base) */
@font-face {
	font-family: "Inter";
	font-weight: 400;
	font-style: normal;
	font-display: swap; /* Usa fuente fallback mientras carga, previene FOIT (Flash of Invisible Text) */
	src: url("./fonts/inter-v20-latin-regular.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
		U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191,
		U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* 3. CARGA DE PESO 800 (ExtraBold / Muy Negrita) */
@font-face {
	font-family: "Inter";
	font-weight: 800;
	font-style: normal;
	font-display: swap;
	src: url("./fonts/inter-v20-latin-800.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
		U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191,
		U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Reset muy pequeño */
* {
	box-sizing: border-box;
}
/* Base font-size 10px (62.5% de 16px) para facilitar rem */
html {
	font-size: 62.5%; /* 1rem = 10px para cálculos fáciles */
	/* Scroll suave para anclas */
	scroll-behavior: smooth;
}

html,
body {
	height: 100%;
}

body {
	font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
		sans-serif;
	font-weight: 400;
	font-size: 1.6rem; /* 16px - Tamaño base para texto legible */
	margin: 0;
	background: linear-gradient(180deg, var(--bg), #081018 60%);
	color: var(--text);
	/* Suavizado de fuentes para mejor renderizado en pantallas modernas */
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	line-height: 1.6; /* Mejora legibilidad en todos los dispositivos */
	/* Optimización de renderizado de texto */
	text-rendering: optimizeLegibility;
}

/* h1: Título principal (Ej. varía entre 3.2rem (32px) y 6.0rem (60px)) */
h1 {
	font-size: clamp(3.2rem, 5vw + 1rem, 6rem);
	line-height: 1.2;
	margin-bottom: 0.8em;
}

/* h2: Secciones principales (Ej. varía entre 2.8rem (28px) y 4.2rem (42px)) */
h2 {
	font-size: clamp(2.8rem, 4vw + 1rem, 4.2rem);
	line-height: 1.3;
	margin-top: 1.5em;
	margin-bottom: 0.6em;
}

/* h3: Subsecciones (Ej. varía entre 2.2rem (22px) y 3.0rem (30px)) */
h3 {
	font-size: clamp(2.2rem, 3vw + 1rem, 3rem);
	line-height: 1.4;
	margin-top: 1.2em;
	margin-bottom: 0.4em;
}

/* h4, h5, h6: Secciones de detalle */
h4 {
	font-size: clamp(1.8rem, 2vw + 1rem, 2.4rem); /* Varia entre 18px y 24px */
	line-height: 1.5;
}

h5 {
	font-size: 1.6rem; /* Fijo o variaciones menores */
	line-height: 1.5;
}

h6 {
	font-size: 1.4rem; /* Fijo o variaciones menores */
	line-height: 1.5;
}

.flex-centro {
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 48px 20px;
}

.card {
	background: linear-gradient(
		180deg,
		rgba(255, 255, 255, 0.02),
		rgba(255, 255, 255, 0.01)
	);
	backdrop-filter: blur(6px);
	border-radius: var(--radius);
	padding: 28px;
	box-shadow: var(--shadow);
	border: 1px solid rgba(255, 255, 255, 0.03);
	max-width: 780px;
	width: 100%;
}

.hero h1 {
	margin: 0 0 0.8rem 0;
	font-size: clamp(2.8rem, 4.5vw, 4.8rem);
	letter-spacing: -0.02em;
}

.flex {
	display: flex;
	gap: 12px;
}

/* ========================================
   BOTONES MODERNOS
   ======================================== */

/* Botón primario - Con fondo degradado */
.btn {
	display: inline-block;
	padding: 10px 16px;
	background: linear-gradient(90deg, var(--accent), var(--accent-2));
	color: #02202a;
	font-weight: 600;
	text-decoration: none;
	border-radius: 10px;
	border: none;
	cursor: pointer;
	box-shadow: 0 6px 18px rgba(29, 78, 216, 0.12);
	transition: transform 0.12s ease, box-shadow 0.12s ease, opacity 0.12s ease;
}
.btn:hover {
	transform: translateY(-2px);
	opacity: 0.98;
	text-decoration: none;
}

/* Botón outline/secondary - Solo borde */
.btn-outline {
	display: inline-block;
	padding: 10px 16px;
	background: transparent;
	color: var(--accent);
	font-weight: 600;
	text-decoration: none;
	border-radius: 10px;
	border: 1px solid var(--accent);
	cursor: pointer;
	transition: background 0.12s ease, transform 0.12s ease, box-shadow 0.12s ease;
}
.btn-outline:hover {
	background: rgba(125, 211, 252, 0.08);
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(125, 211, 252, 0.15);
	text-decoration: none;
}

/* Botón ghost - Transparente con hover sutil */
.btn-ghost {
	display: inline-block;
	padding: 10px 16px;
	background: transparent;
	color: var(--text);
	font-weight: 600;
	text-decoration: none;
	border-radius: 10px;
	border: 1px solid rgba(255, 255, 255, 0.04);
	cursor: pointer;
	transition: background 0.12s ease, border-color 0.12s ease;
}
.btn-ghost:hover {
	background: rgba(255, 255, 255, 0.05);
	border-color: rgba(255, 255, 255, 0.1);
	text-decoration: none;
}

/* Botón de solo texto - Sin borde ni fondo */
.btn-text {
	display: inline-block;
	padding: 10px 16px;
	background: transparent;
	color: var(--accent);
	font-weight: 600;
	text-decoration: none;
	border-radius: 10px;
	border: none;
	cursor: pointer;
	transition: background 0.12s ease, color 0.12s ease;
}
.btn-text:hover {
	background: rgba(125, 211, 252, 0.08);
	color: var(--accent-2);
	text-decoration: none;
}

/* Botón de peligro - Para acciones destructivas */
.btn-danger {
	display: inline-block;
	padding: 10px 16px;
	background: var(--danger);
	color: #fff;
	font-weight: 600;
	text-decoration: none;
	border-radius: 10px;
	border: none;
	cursor: pointer;
	box-shadow: 0 6px 18px rgba(248, 113, 113, 0.15);
	transition: transform 0.12s ease, box-shadow 0.12s ease, opacity 0.12s ease;
}
.btn-danger:hover {
	transform: translateY(-2px);
	opacity: 0.92;
	box-shadow: 0 8px 24px rgba(248, 113, 113, 0.25);
	text-decoration: none;
}

/* Botón de peligro outline */
.btn-danger-outline {
	display: inline-block;
	padding: 10px 16px;
	background: transparent;
	color: var(--danger);
	font-weight: 600;
	text-decoration: none;
	border-radius: 10px;
	border: 1px solid var(--danger);
	cursor: pointer;
	transition: background 0.12s ease, transform 0.12s ease;
}
.btn-danger-outline:hover {
	background: rgba(248, 113, 113, 0.08);
	transform: translateY(-1px);
	text-decoration: none;
}

/* Tamaños de botones adicionales */
.btn-sm,
.btn-outline-sm,
.btn-ghost-sm,
.btn-text-sm {
	padding: 8px 12px;
	font-size: 1.4rem;
}

.btn-lg,
.btn-outline-lg,
.btn-ghost-lg,
.btn-text-lg {
	padding: 12px 24px;
	font-size: 1.8rem;
}

/* Botón deshabilitado */
.btn:disabled,
.btn-outline:disabled,
.btn-ghost:disabled,
.btn-text:disabled,
.btn-danger:disabled {
	opacity: 0.5;
	cursor: not-allowed;
	pointer-events: none;
}

/* Links */
a {
	color: var(--accent);
	text-decoration: none;
}
a:hover {
	text-decoration: underline;
}

/* Responsive small */
@media (max-width: 520px) {
	.card {
		padding: 2rem;
	}
	.hero h1 {
		font-size: 2.8rem;
	}
}

/* Small helpers for forms or placeholders */
input,
textarea,
button {
	font-family: inherit;
}

/* Simple focus state */
:focus {
	outline: 2px solid rgba(125, 211, 252, 0.12);
	outline-offset: 2px;
}

/* Clase para modo claro si se quiere alternar por JS */
.theme-light {
	--bg: #f7fafc;
	--surface: #ffffff;
	--text: #0b1220;
	--muted: #536471;
}

/* Fin de estilo.css */

/*
* ESTILOS DEL CÓDIGO 404
*/
.error-code {
	font-size: 4.5rem; /* text-7xl por defecto */
	font-weight: 800; /* font-extrabold */
	letter-spacing: -0.05em; /* tracking-tight */
	margin-bottom: 1rem; /* mb-4 */
	user-select: none; /* select-none */
}

/* Media query para pantallas más grandes (sm:breakpoint en Tailwind) */
@media (min-width: 640px) {
	.error-code {
		font-size: 6rem; /* sm:text-9xl */
	}
}
