/* ============================================================
   TestCoches - Archivos, listados y búsqueda
   ============================================================ */

/* Base tipográfica de la vista: sin esto, los formularios e
   inputs caen a la fuente por defecto del navegador */
body.tc-archive-view {
	margin: 0;
	background: #fff;
	color: var(--tc-ink);
	font-family: var(--tc-body);
	font-size: 16px; line-height: 1.55;
	-webkit-font-smoothing: antialiased;
}

.tc-archive { padding: 36px 0 12px; }

/* ---------------- Cabecera del término ---------------- */
.tc-archive__header {
	display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px;
	padding-bottom: 18px; margin-bottom: 30px;
	border-bottom: 1px solid var(--tc-line);
}
.tc-archive__header .tc-kicker { width: 100%; }
.tc-archive__title {
	margin: 2px 0 0;
	font-family: var(--tc-display); font-weight: 700;
	font-size: clamp(34px, 4.6vw, 52px);
	line-height: 1.02; text-transform: uppercase;
	color: var(--tc-ink);
}
.tc-archive__count {
	font-family: var(--tc-display); font-weight: 600;
	font-size: 17px; text-transform: uppercase; letter-spacing: 0.05em;
	color: var(--tc-muted);
}

/* ---------------- Grid con destacado ---------------- */
.tc-archive__grid { margin-top: 0; }

.tc-archive__grid .tc-card--feature {
	grid-column: 1 / -1;
	display: grid; grid-template-columns: 1.25fr 1fr;
	gap: 28px; align-items: center;
	padding-bottom: 8px;
}
.tc-card--feature .tc-card__media img { aspect-ratio: 16 / 10; }
.tc-card--feature .tc-card__body { padding: 0; }
.tc-card--feature .tc-card__title {
	font-size: clamp(26px, 3vw, 38px); line-height: 1.08;
}
.tc-card--feature .tc-card__excerpt { font-size: 16px; }

.tc-archive__empty { color: var(--tc-muted); font-size: 17px; }
.tc-archive__empty a { color: var(--tc-rojo); }

/* ---------------- Paginación ---------------- */
.tc-archive .navigation.pagination { margin: 40px 0 24px; }
.tc-archive .nav-links {
	display: flex; flex-wrap: wrap; justify-content: center; gap: 8px;
}
.tc-archive .page-numbers {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 42px; height: 42px; padding: 0 14px;
	background: var(--tc-surface); border: 1px solid var(--tc-line);
	border-radius: 8px;
	font-family: var(--tc-display); font-weight: 600; font-size: 16.5px;
	text-transform: uppercase; letter-spacing: 0.03em;
	color: var(--tc-ink); text-decoration: none;
	transition: border-color .15s ease, color .15s ease;
}
.tc-archive a.page-numbers:hover { border-color: var(--tc-rojo); color: var(--tc-rojo); }
.tc-archive .page-numbers.current {
	background: var(--tc-rojo); border-color: var(--tc-rojo); color: #fff;
}
.tc-archive .page-numbers.dots { border: 0; background: none; }
.tc-archive .screen-reader-text {
	position: absolute; width: 1px; height: 1px;
	clip-path: inset(50%); overflow: hidden;
}

/* ---------------- Responsive ---------------- */
@media (max-width: 980px) {
	.tc-archive__grid .tc-card--feature { grid-template-columns: 1fr; gap: 14px; }
}
@media (max-width: 760px) {
	.tc-archive { padding: 26px 0 8px; }
}
@media (prefers-reduced-motion: reduce) {
	.tc-archive * { transition: none !important; }
}

/* ---------------- Mosaico de operadores ---------------- */
.tc-optiles {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
	gap: 14px;
}
.tc-optile {
	display: flex; flex-direction: column;
	align-items: center; justify-content: center; gap: 10px;
	min-height: 130px; padding: 18px 14px;
	background: var(--tc-surface);
	border: 1px solid var(--tc-line);
	border-radius: var(--tc-radius);
	text-decoration: none; color: var(--tc-ink);
	transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.tc-optile:hover {
	border-color: var(--tc-rojo);
	transform: translateY(-3px);
	box-shadow: var(--tc-shadow);
}
.tc-optile img { max-height: 44px; width: auto; }
.tc-optile__name {
	font-family: var(--tc-display); font-weight: 600;
	font-size: 16px; text-transform: uppercase; letter-spacing: 0.04em;
	text-align: center;
}
@media (max-width: 480px) {
	.tc-optiles { grid-template-columns: repeat(2, 1fr); }
}

/* ---------------- Buscador interno de sección ---------------- */
.tc-search {
	position: relative;
	max-width: 560px;
	margin: -6px 0 28px;
}
.tc-search__input {
	width: 100%; box-sizing: border-box;
	padding: 14px 124px 14px 46px;
	font-family: var(--tc-body) !important;
	font-size: 16px;
	color: var(--tc-ink);
	background: var(--tc-surface);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%236d6d72' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cline x1='21' y1='21' x2='16.5' y2='16.5'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: 16px center;
	border: 1.5px solid var(--tc-line);
	border-radius: 999px;
	transition: border-color .15s ease, background-color .15s ease;
	-webkit-appearance: none; appearance: none;
}
.tc-search__input:focus {
	outline: none;
	border-color: var(--tc-rojo);
	background-color: #fff;
}
.tc-search__input::placeholder { color: var(--tc-muted); }
.tc-search__btn {
	position: absolute; right: 5px; top: 5px; bottom: 5px;
	padding: 0 22px;
	font-family: var(--tc-display); font-weight: 600; font-size: 16px;
	text-transform: uppercase; letter-spacing: 0.05em;
	color: #fff; background: var(--tc-antracita);
	border: 0; border-radius: 999px; cursor: pointer;
	transition: background .15s ease;
}
.tc-search__btn:hover { background: var(--tc-rojo); }
.tc-search__status {
	margin: -14px 0 24px;
	font-size: 15px; color: var(--tc-muted);
}
.tc-search__status a { color: var(--tc-rojo); text-decoration: underline; text-underline-offset: 3px; }

/* ---------------- Tarjetas de catálogo (medidas/opiniones) ---------------- */
.tc-card--catalog .tc-card__title {
	font-size: 23px; line-height: 1.2; font-weight: 600;
}
.tc-card--catalog .tc-card__body { padding-top: 14px; }

@media (max-width: 760px) {
	.tc-card--catalog .tc-card__title { font-size: 22px; }
}

/* ============================================================
   Página 404
   ============================================================ */
.tc-404 { padding: 40px 0 60px; }
.tc-404__hero { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.tc-404__code {
	font-family: var(--tc-display); font-weight: 700;
	font-size: 120px; line-height: 1; color: var(--tc-rojo);
	display: block; letter-spacing: 0.02em;
}
.tc-404__title {
	font-family: var(--tc-display); font-weight: 700;
	font-size: 34px; margin: 8px 0 10px; color: var(--tc-ink);
}
.tc-404__text { color: var(--tc-muted); font-size: 17px; margin: 0 0 26px; }
.tc-404 .tc-buscador { max-width: 480px; margin: 0 auto; }
@media (max-width: 640px) {
	.tc-404__code { font-size: 84px; }
	.tc-404__title { font-size: 26px; }
}

/* ============================================================
   Tarjeta de autor
   ============================================================ */
.tc-author-card {
	display: flex; align-items: flex-start; gap: 26px;
	background: var(--tc-antracita);
	color: #fff;
	border-radius: var(--tc-radius);
	padding: 28px;
	margin: 26px 0 34px;
}
.tc-author-card__avatar img {
	display: block;
	width: 110px; height: 110px;
	border-radius: 50%;
	border: 3px solid var(--tc-rojo);
	object-fit: cover;
}
.tc-author-card__body { min-width: 0; }
.tc-author-card .tc-kicker { color: #ff6b6b; }
.tc-author-card__name {
	font-family: var(--tc-display); font-weight: 700;
	font-size: clamp(28px, 4vw, 40px); line-height: 1.05;
	margin: 4px 0 10px; color: #fff;
}
.tc-author-card__bio {
	color: #d4d4d6; font-size: 16px; line-height: 1.55;
	margin: 0 0 14px; max-width: 640px;
}
.tc-author-card__socials { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 12px; }
.tc-author-card__social {
	display: inline-flex; align-items: center; justify-content: center;
	width: 38px; height: 38px;
	border: 1px solid #3a3a3e; border-radius: 50%;
	color: #d4d4d6;
	transition: color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.tc-author-card__social:hover,
.tc-author-card__social:focus-visible {
	color: #fff; border-color: var(--tc-rojo);
	transform: translateY(-2px);
}
.tc-author-card__count {
	margin: 0;
	font-family: var(--tc-display); font-weight: 600; font-size: 14px;
	letter-spacing: 0.08em; text-transform: uppercase;
	color: #9a9a9e;
}
@media (max-width: 640px) {
	.tc-author-card { flex-direction: column; align-items: center; text-align: center; gap: 16px; padding: 24px 18px; }
	.tc-author-card__socials { justify-content: center; }
	.tc-author-card__bio { font-size: 15px; }
}

/* Logos de operadores/tiles: contenidos y a altura uniforme */
.tc-optile img {
	max-width: 100%;
	width: auto;
	height: 56px;
	object-fit: contain;
}

