/* Coaxios — Guías estáticas.
   Diseño: patrón "Trust & Authority" + estilo "Enterprise SaaS" (ui-ux-pro-max),
   adaptado a la marca Coaxios (azul/rojo) y a fuente Inter self-hosted.
   Solo HTML/CSS: rápido, crawleable, accesible (WCAG AA), sin JS. */
@font-face {
	font-family: "Inter";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("/fonts/Inter-Latin.woff2") format("woff2");
}

:root {
	/* Brand */
	--brand: #1d4ed8;
	--brand-dark: #1e3a8a;
	--brand-darker: #172554;
	--brand-soft: #eef4ff;
	--brand-border: #dbe6ff;
	--accent: #e11d48;

	/* Neutrals */
	--ink: #0b1220;
	--body: #334155;
	--muted: #64748b;
	--line: #e6eaf2;
	--line-strong: #d6deea;
	--bg: #ffffff;
	--soft: #f7f9fc;

	/* Tokens */
	--radius: 14px;
	--radius-lg: 20px;
	--shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
	--shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 10px 26px rgba(15, 23, 42, 0.07);
	--shadow-brand: 0 2px 6px rgba(29, 78, 216, 0.1), 0 18px 44px rgba(29, 78, 216, 0.16);
	--ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

* {
	box-sizing: border-box;
}
html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	color: var(--body);
	background: var(--bg);
	line-height: 1.72;
	font-size: 17px;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	font-feature-settings: "cv05", "ss01";
}

a {
	color: var(--brand);
	text-decoration: none;
}
a:hover {
	text-decoration: underline;
	text-underline-offset: 2px;
}

:focus-visible {
	outline: 3px solid rgba(29, 78, 216, 0.45);
	outline-offset: 2px;
	border-radius: 6px;
}

.wrap {
	max-width: 768px;
	margin: 0 auto;
	padding: 0 24px;
}

/* ── Header ───────────────────────────────────────────────────────────── */
.site-header {
	border-bottom: 1px solid var(--line);
	background: rgba(255, 255, 255, 0.8);
	backdrop-filter: saturate(180%) blur(14px);
	position: sticky;
	top: 0;
	z-index: 50;
}
.site-header .wrap {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 66px;
}
.brand {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	text-decoration: none;
}
.brand img {
	height: 28px;
	width: auto;
	display: block;
}
.brand span {
	font-weight: 800;
	color: var(--ink);
	letter-spacing: -0.01em;
}
.site-header nav a {
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
	color: #fff;
	background: var(--brand);
	padding: 10px 18px;
	border-radius: 999px;
	box-shadow: 0 6px 16px rgba(29, 78, 216, 0.28);
	transition:
		background 0.2s var(--ease),
		transform 0.2s var(--ease),
		box-shadow 0.2s var(--ease);
}
.site-header nav a:hover {
	background: var(--brand-dark);
	transform: translateY(-1px);
	box-shadow: 0 10px 22px rgba(29, 78, 216, 0.34);
}

/* ── Breadcrumb ───────────────────────────────────────────────────────── */
.crumbs {
	font-size: 13px;
	color: var(--muted);
	margin: 30px 0 0;
}
.crumbs a {
	color: var(--muted);
	text-decoration: none;
}
.crumbs a:hover {
	color: var(--brand);
}
.crumbs span {
	margin: 0 8px;
	color: var(--line-strong);
}

/* ── Article ──────────────────────────────────────────────────────────── */
article {
	padding: 10px 0 64px;
}
article h1 {
	font-size: clamp(31px, 5vw, 44px);
	line-height: 1.08;
	letter-spacing: -0.032em;
	color: var(--ink);
	font-weight: 800;
	margin: 22px 0 0;
	text-wrap: balance;
}
.updated {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 12.5px;
	font-weight: 600;
	color: var(--muted);
	margin: 18px 0 0;
	padding: 5px 12px;
	background: var(--soft);
	border: 1px solid var(--line);
	border-radius: 999px;
}
.updated::before {
	content: "";
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--accent);
}
.updated time {
	color: var(--muted);
}
.lead {
	font-size: 19.5px;
	line-height: 1.6;
	color: var(--ink);
	margin: 26px 0 8px;
	padding: 22px 24px;
	background: linear-gradient(180deg, var(--brand-soft), #fbfdff);
	border: 1px solid var(--brand-border);
	border-left: 4px solid var(--brand);
	border-radius: var(--radius);
}
article h2 {
	position: relative;
	font-size: clamp(21px, 3vw, 25px);
	line-height: 1.25;
	letter-spacing: -0.022em;
	color: var(--ink);
	font-weight: 800;
	margin: 50px 0 10px;
	padding-top: 6px;
}
article h2::before {
	content: "";
	position: absolute;
	top: -10px;
	left: 0;
	width: 34px;
	height: 3px;
	border-radius: 3px;
	background: linear-gradient(90deg, var(--brand), var(--accent));
}
article h3 {
	font-size: 18px;
	color: var(--ink);
	font-weight: 700;
	margin: 28px 0 4px;
}
article p {
	margin: 15px 0;
}
article ul,
article ol {
	margin: 15px 0;
	padding-left: 24px;
}
article li {
	margin: 9px 0;
}
article li::marker {
	color: var(--brand);
	font-weight: 700;
}
article strong {
	color: var(--ink);
	font-weight: 700;
}
article a {
	font-weight: 600;
}
article a:hover {
	color: var(--brand-dark);
}

/* ── FAQ (accordion) ──────────────────────────────────────────────────── */
.faq {
	margin-top: 54px;
	border-top: 1px solid var(--line);
	padding-top: 10px;
}
.faq h2 {
	margin-top: 30px;
}
.faq h2::before {
	display: none;
}
.faq details {
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 2px 20px;
	margin: 12px 0;
	background: var(--bg);
	box-shadow: var(--shadow-sm);
	transition:
		border-color 0.2s var(--ease),
		box-shadow 0.2s var(--ease);
}
.faq details[open] {
	border-color: var(--brand-border);
	box-shadow: var(--shadow);
}
.faq summary {
	cursor: pointer;
	list-style: none;
	position: relative;
	font-weight: 700;
	color: var(--ink);
	font-size: 16.5px;
	padding: 17px 34px 17px 0;
}
.faq summary::-webkit-details-marker {
	display: none;
}
.faq summary::after {
	content: "";
	position: absolute;
	right: 5px;
	top: 22px;
	width: 9px;
	height: 9px;
	border-right: 2px solid var(--muted);
	border-bottom: 2px solid var(--muted);
	transform: rotate(45deg);
	transition:
		transform 0.25s var(--ease),
		border-color 0.2s var(--ease);
}
.faq details[open] summary {
	color: var(--brand);
}
.faq details[open] summary::after {
	transform: rotate(-135deg);
	border-color: var(--brand);
}
.faq details p {
	margin: 0 0 18px;
	color: var(--body);
}

/* ── Related guides ───────────────────────────────────────────────────── */
.related {
	margin-top: 54px;
}
.related h2 {
	font-size: 19px;
}
.related h2::before {
	width: 28px;
}
.cards {
	display: grid;
	gap: 14px;
	grid-template-columns: 1fr;
}
@media (min-width: 620px) {
	.cards {
		grid-template-columns: 1fr 1fr;
	}
}
.card {
	position: relative;
	display: block;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 20px 22px;
	text-decoration: none;
	background: var(--bg);
	box-shadow: var(--shadow-sm);
	transition:
		border-color 0.2s var(--ease),
		box-shadow 0.2s var(--ease),
		transform 0.2s var(--ease);
}
.card:hover {
	border-color: var(--brand-border);
	box-shadow: var(--shadow-brand);
	transform: translateY(-3px);
}
.card .k {
	font-size: 11.5px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--brand);
}
.card .t {
	display: block;
	margin-top: 7px;
	font-weight: 700;
	color: var(--ink);
	line-height: 1.35;
}
.card::after {
	content: "→";
	position: absolute;
	top: 18px;
	right: 20px;
	color: var(--brand);
	opacity: 0;
	transform: translateX(-4px);
	transition:
		opacity 0.2s var(--ease),
		transform 0.2s var(--ease);
	font-weight: 700;
}
.card:hover::after {
	opacity: 1;
	transform: translateX(0);
}

/* ── Product help (cómo ayuda Coaxios) ───────────────────────────────── */
.product-help {
	margin: 44px 0 0;
	padding: 28px 28px 26px;
	border: 1px solid var(--brand-border);
	border-radius: var(--radius-lg);
	background: linear-gradient(180deg, var(--brand-soft), #ffffff);
}
.product-help .tag {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 11.5px;
	font-weight: 800;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	color: var(--brand);
	background: #fff;
	border: 1px solid var(--brand-border);
	padding: 5px 12px;
	border-radius: 999px;
}
.product-help h2 {
	margin: 14px 0 10px;
}
.product-help p {
	margin: 12px 0;
}
.product-help p:last-child {
	margin-bottom: 0;
}

/* ── CTA ──────────────────────────────────────────────────────────────── */
.cta {
	position: relative;
	overflow: hidden;
	margin: 56px 0 0;
	padding: 36px 32px;
	border-radius: var(--radius-lg);
	background: linear-gradient(135deg, var(--brand), var(--brand-darker));
	color: #eaf1ff;
	text-align: center;
	box-shadow: 0 22px 50px rgba(29, 78, 216, 0.3);
}
.cta::before {
	content: "";
	position: absolute;
	inset: 0;
	background: radial-gradient(120% 80% at 100% 0%, rgba(225, 29, 72, 0.28), transparent 60%);
	pointer-events: none;
}
.cta h2 {
	color: #fff;
	margin: 0 0 8px;
	font-size: clamp(21px, 3vw, 25px);
	position: relative;
}
.cta h2::before {
	display: none;
}
.cta p {
	color: #cfe0ff;
	margin: 0 auto 22px;
	max-width: 460px;
	position: relative;
}
.cta a.btn {
	position: relative;
	display: inline-block;
	background: #fff;
	color: var(--brand-dark);
	font-weight: 800;
	text-decoration: none;
	padding: 14px 28px;
	border-radius: 12px;
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
	transition:
		transform 0.2s var(--ease),
		box-shadow 0.2s var(--ease);
}
.cta a.btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
	color: var(--brand-dark);
}
.cta a.btn:active {
	transform: scale(0.98);
}

/* ── Disclaimer + Footer ──────────────────────────────────────────────── */
.disclaimer {
	font-size: 13px;
	color: var(--muted);
	margin-top: 40px;
	padding: 18px 20px;
	background: var(--soft);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	line-height: 1.65;
}
footer {
	border-top: 1px solid var(--line);
	background: var(--soft);
	padding: 32px 0 52px;
	margin-top: 60px;
	font-size: 14px;
	color: var(--muted);
}
footer .wrap {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 22px;
	align-items: center;
	justify-content: space-between;
}
footer a {
	color: var(--muted);
	font-weight: 600;
}
footer a:hover {
	color: var(--brand);
}

/* ── Hub index ────────────────────────────────────────────────────────── */
.hub-hero {
	padding: 56px 0 12px;
	position: relative;
}
.hub-hero::before {
	content: "GUÍAS";
	display: inline-block;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.14em;
	color: var(--brand);
	background: var(--brand-soft);
	border: 1px solid var(--brand-border);
	padding: 6px 13px;
	border-radius: 999px;
	margin-bottom: 4px;
}
.hub-hero h1 {
	font-size: clamp(34px, 6vw, 50px);
	line-height: 1.05;
	letter-spacing: -0.035em;
	color: var(--ink);
	font-weight: 800;
	margin: 16px 0 0;
	text-wrap: balance;
}
.hub-hero p {
	font-size: 19.5px;
	color: var(--body);
	max-width: 600px;
	margin: 18px 0 0;
}
.hub-list {
	display: grid;
	gap: 16px;
	grid-template-columns: 1fr;
	margin: 42px 0 0;
}
@media (min-width: 720px) {
	.hub-list {
		grid-template-columns: 1fr 1fr;
	}
}
.hub-item {
	position: relative;
	display: block;
	overflow: hidden;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 26px;
	text-decoration: none;
	background: var(--bg);
	box-shadow: var(--shadow-sm);
	transition:
		border-color 0.22s var(--ease),
		transform 0.22s var(--ease),
		box-shadow 0.22s var(--ease);
}
.hub-item::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 3px;
	background: linear-gradient(180deg, var(--brand), var(--accent));
	opacity: 0;
	transition: opacity 0.22s var(--ease);
}
.hub-item:hover {
	border-color: var(--brand-border);
	transform: translateY(-3px);
	box-shadow: var(--shadow-brand);
}
.hub-item:hover::before {
	opacity: 1;
}
.hub-item h2 {
	font-size: 19.5px;
	color: var(--ink);
	margin: 0;
	line-height: 1.3;
	letter-spacing: -0.015em;
	font-weight: 800;
}
.hub-item h2::before {
	display: none;
}
.hub-item p {
	font-size: 15px;
	color: var(--muted);
	margin: 9px 0 0;
	line-height: 1.6;
}

/* ── Reduced motion ───────────────────────────────────────────────────── */
/* ── Tables ───────────────────────────────────────────────────────────── */
.table-wrap {
	margin: 18px 0;
	overflow-x: auto;
	border: 1px solid var(--line);
	border-radius: var(--radius);
}
article table {
	width: 100%;
	border-collapse: collapse;
	font-size: 15.5px;
}
article th,
article td {
	text-align: left;
	padding: 12px 16px;
	border-bottom: 1px solid var(--line);
	vertical-align: top;
}
article thead th {
	background: var(--brand-soft);
	color: var(--ink);
	font-weight: 700;
	border-bottom: 1px solid var(--brand-border);
}
article tbody tr:last-child td {
	border-bottom: none;
}
article tbody td:first-child {
	font-weight: 600;
	color: var(--ink);
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
	.site-header nav a,
	.faq details,
	.faq summary::after,
	.card,
	.card::after,
	.cta a.btn,
	.hub-item,
	.hub-item::before {
		transition: none;
	}
	.site-header nav a:hover,
	.card:hover,
	.card:hover::after,
	.cta a.btn:hover,
	.cta a.btn:active,
	.hub-item:hover {
		transform: none;
	}
}
