/* Titan Core: subpágina dentro del sistema "Formulario radicado" (../css/site.css). */

.nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--red); }

/* ---------- Primera vista ---------- */

.tc-hero { padding-block: clamp(36px, 6vw, 88px) clamp(48px, 7vw, 96px); }

.tc-hero__grid {
	display: grid;
	grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
	gap: clamp(32px, 5vw, 80px);
	align-items: center;
}

.tc-crumb {
	margin-bottom: 1.25rem;
	font-size: 0.9375rem;
	color: var(--ink-3);
}
.tc-crumb a {
	color: var(--ink-2);
	text-decoration-color: var(--rule);
	text-decoration-thickness: 2px;
}
.tc-crumb a:hover { color: var(--red); text-decoration-color: currentColor; }
.tc-crumb span { margin-inline: 0.35em; }

.tc-hero h1 {
	font-size: clamp(2.3rem, 4.4vw, 4rem);
	font-weight: 800;
	font-stretch: 110%;
	line-height: 1.03;
	letter-spacing: -0.03em;
	max-width: 19ch;
}

/* El video, enmarcado como un anexo del formulario */
.tc-film {
	position: relative;
	margin: 0;
	padding: 14px 14px 0;
	border: 1px solid var(--rule-strong);
	background: var(--paper);
	box-shadow: 0 1px 2px rgba(28, 23, 24, 0.06), 0 18px 40px -24px rgba(28, 23, 24, 0.35);
}
.tc-film::before {
	content: "";
	position: absolute;
	inset: 6px 6px auto;
	height: 4px;
	border-top: 2px solid var(--red);
	border-bottom: 1px solid var(--red);
}
.tc-film video {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	margin-top: 8px;
	background: var(--paper);
}
.tc-film figcaption {
	padding: 12px 120px 14px 0;
	font-size: 0.8125rem;
	color: var(--ink-3);
	border-top: 1px solid var(--rule);
	margin-top: 14px;
}
.tc-film__toggle {
	position: absolute;
	right: 10px;
	bottom: 4px;
	min-height: 44px;
	padding: 0 6px;
	border: 0;
	background: none;
	font: inherit;
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--ink);
	text-decoration: underline;
	text-decoration-color: var(--rule);
	text-decoration-thickness: 2px;
	text-underline-offset: 0.3em;
	cursor: pointer;
}
.tc-film__toggle:hover { color: var(--red); text-decoration-color: currentColor; }

/* ---------- Sin frameworks de terceros ---------- */

.tc-stack {
	border-block: 1px solid var(--rule-strong);
	background: var(--paper-tint);
	padding-block: clamp(36px, 5vw, 64px);
}
.tc-stack__title {
	margin-bottom: 18px;
	font-size: 0.875rem;
	font-weight: 700;
	font-stretch: 112%;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	color: var(--ink-3);
}
.tc-langs {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.45fr) minmax(0, 1fr);
	margin: 0;
	padding: 0;
	list-style: none;
	border-top: 3px double var(--rule-strong);
}
.tc-langs li {
	display: grid;
	gap: 6px;
	padding: 20px clamp(16px, 2.4vw, 32px) 22px 0;
}
.tc-langs li + li {
	padding-left: clamp(16px, 2.4vw, 32px);
	border-left: 1px solid var(--rule);
}
.tc-langs__name {
	font-size: clamp(1.75rem, 2.6vw, 2.5rem);
	font-weight: 900;
	font-stretch: 112%;
	letter-spacing: -0.03em;
	line-height: 1;
	color: var(--ink);
}
.tc-langs__role { color: var(--ink-2); }
.tc-stack__note {
	margin-top: 18px;
	padding-top: 16px;
	border-top: 1px solid var(--rule-strong);
	font-size: 1.125rem;
	font-weight: 600;
	color: var(--ink);
}

/* ---------- Capas ---------- */

.tc-layers {
	margin: 0;
	padding: 0;
	list-style: none;
	border-top: 3px double var(--rule-strong);
}
.tc-layers li {
	display: grid;
	grid-template-columns: 3.5rem minmax(0, 4fr) minmax(0, 6fr);
	gap: 8px clamp(20px, 3vw, 48px);
	align-items: baseline;
	padding: 18px 16px 18px 0;
	border-bottom: 1px solid var(--rule);
}
.tc-layers li:nth-child(odd) { background: linear-gradient(90deg, var(--paper-tint), var(--paper-tint)); }
.tc-layers li:last-child { border-bottom: 1px solid var(--rule-strong); }
.tc-layers__n {
	justify-self: end;
	font-size: 0.9375rem;
	font-weight: 600;
	color: var(--ink-3);
}
.tc-layers h3 {
	font-size: clamp(1.25rem, 1.9vw, 1.625rem);
	font-weight: 700;
	font-stretch: 108%;
	letter-spacing: -0.015em;
	line-height: 1.2;
}
.tc-layers p { color: var(--ink-2); max-width: 52ch; }
.tc-layers li.is-core { background: var(--red); border-bottom-color: var(--red); }
.tc-layers li.is-core h3,
.tc-layers li.is-core p { color: var(--on-red); }
.tc-layers li.is-core .tc-layers__n { color: var(--on-red-2); }

/* ---------- Modificabilidad ---------- */

.tc-change { padding-block: 0 var(--section); }
.tc-change .section-head p strong { color: var(--ink); }

/* Módulos */
.tc-modules { margin-top: clamp(48px, 6vw, 80px); }
.tc-modules__title {
	margin-bottom: 12px;
	font-size: 0.875rem;
	font-weight: 700;
	font-stretch: 112%;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	color: var(--ink-3);
}
.tc-modules__intro {
	margin-bottom: 20px;
	max-width: 60ch;
	font-size: 1.125rem;
	color: var(--ink-2);
}
.tc-modules__grid {
	columns: 3;
	column-gap: clamp(24px, 3.5vw, 48px);
}
.tc-modules__col {
	break-inside: avoid;
	padding: 16px 0 28px;
	border-top: 3px double var(--rule-strong);
}
.tc-modules__col h4 {
	margin: 0 0 8px;
	font-size: 1.1875rem;
	font-weight: 700;
	font-stretch: 108%;
	letter-spacing: -0.01em;
}
.tc-modules__col ul { margin: 0; padding: 0; list-style: none; }
.tc-modules__col li {
	position: relative;
	padding: 7px 0 7px 24px;
	border-top: 1px solid var(--rule);
	font-size: 0.98rem;
	line-height: 1.4;
	color: var(--ink);
}
.tc-modules__col li::before {
	content: "";
	position: absolute;
	left: 3px;
	top: 0.85em;
	width: 11px;
	height: 5.5px;
	border-left: 2.5px solid var(--red);
	border-bottom: 2.5px solid var(--red);
	transform: rotate(-45deg);
}
.tc-modules__connect {
	margin-top: clamp(28px, 4vw, 40px);
	padding: 20px clamp(20px, 3vw, 32px);
	border: 1px solid var(--rule-strong);
	border-left: 1px solid var(--red);
	background: var(--paper-tint);
	font-size: 1.125rem;
	line-height: 1.5;
	color: var(--ink-2);
	max-width: 70ch;
}
.tc-modules__connect strong { display: block; margin-bottom: 4px; color: var(--ink); font-size: 1.25rem; font-stretch: 106%; }

/* ---------- Disponibilidad ---------- */

.tc-avail {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	border-top: 1px solid rgba(255, 255, 255, 0.55);
}
.tc-avail .method__item,
.tc-avail .method__item + .method__item {
	padding: 26px clamp(20px, 3vw, 40px) 30px 0;
	border-left: 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.35);
}
.tc-avail .method__item:nth-child(even) {
	padding-left: clamp(20px, 3vw, 40px);
	border-left: 1px solid rgba(255, 255, 255, 0.35);
}

/* ---------- Cierre ---------- */

.tc-close__aside {
	padding-top: 18px;
	border-top: 3px double var(--rule-strong);
}
.tc-close__aside p { color: var(--ink-2); max-width: 44ch; margin-bottom: 1rem; }

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
	.tc-hero__grid { grid-template-columns: minmax(0, 1fr); }
	.tc-film { max-width: 520px; }
	.tc-langs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.tc-hero h1 { max-width: 18ch; }
	.tc-modules__grid { columns: 2; }
	.tc-langs li:nth-child(3) { padding-left: 0; border-left: 0; }
	.tc-langs li:nth-child(n + 3) { border-top: 1px solid var(--rule); }
}

@media (max-width: 760px) {
	.tc-layers li { grid-template-columns: 2rem minmax(0, 1fr); padding-right: 12px; }
	.tc-layers li p { grid-column: 2; }
	.tc-avail { grid-template-columns: minmax(0, 1fr); }
	.tc-modules__grid { columns: 1; }
	.tc-avail .method__item:nth-child(even) { padding-left: 0; border-left: 0; }
}

@media (max-width: 420px) {
	.tc-langs { grid-template-columns: minmax(0, 1fr); }
	.tc-langs li, .tc-langs li + li { padding-left: 0; border-left: 0; }
	.tc-langs li + li { border-top: 1px solid var(--rule); }
}
