/* Grandes Clásicos (carreras/page-grandes-clasicos.php). La temporada contada como una carrera:
   portada = próximo clásico a todo el ancho; una pista con un poste por clásico en su fecha y el marcador "Hoy"
   (lo memorable de la página); los clásicos en fotos verticales con su estado. Dorado solo para lo próximo,
   el Grupo I y "Hoy"; el resto, carbón y verde césped de la marca. */
.chs-gc-hero, .chs-gc-track, .chs-gc-season { font-family: var(--font-sans); }
.chs-gc-hero ::selection, .chs-gc-season ::selection { background: var(--oro); color: var(--carbon-900); }
.chs-gc-wrap { max-width: 1300px; margin: 0 auto; padding: 0 var(--space-4); }

/* ---------- Grupo ---------- */
.chs-gc-grupo { display: inline-block; padding: 4px 11px; border-radius: var(--radius-pill); background: rgba(255, 255, 255, .92); color: var(--carbon-900); font-size: 12px; font-weight: 900; line-height: 1.2; white-space: nowrap; }
.chs-gc-grupo.is-g1 { background: var(--oro); }

/* ---------- Portada: el próximo clásico ---------- */
.chs-gc-hero { position: relative; display: flex; align-items: flex-end; min-height: min(88vh, 820px); padding: calc(var(--chs-header-h, 110px) + 64px) 0 var(--space-8); overflow: hidden; background: var(--carbon) var(--gc-bg) center 35% / cover no-repeat; color: var(--blanco); isolation: isolate; }
.chs-gc-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(27, 27, 27, .94) 0%, rgba(27, 27, 27, .55) 42%, rgba(27, 27, 27, .15) 70%, rgba(27, 27, 27, .55) 100%); }
.chs-gc-hero .chs-gc-wrap { width: 100%; }
.chs-gc-h1 { margin: 0 0 auto; color: rgba(255, 255, 255, .92); font: 300 clamp(22px, 2.2vw, 30px)/1.1 var(--font-sans); letter-spacing: -.005em; }
.chs-gc-h1 b { font-weight: 900; }
.chs-gc-h1 span { color: var(--oro); font-weight: 900; }
.chs-gc-hero__next { max-width: 900px; margin-top: clamp(80px, 18vh, 200px); }
.chs-gc-hero__when { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 0 0 16px; color: rgba(255, 255, 255, .86); font-size: 17px; font-weight: 700; }
.chs-gc-count { padding: 6px 14px; border-radius: var(--radius-pill); background: var(--oro); color: var(--carbon-900); font-size: 15px; font-weight: 900; font-variant-numeric: tabular-nums; }
.chs-gc-hero__title { margin: 0; color: var(--blanco); font: 900 clamp(44px, 7.2vw, 104px)/.95 var(--font-sans); letter-spacing: -.035em; text-wrap: balance; }
.chs-gc-hero__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin: 22px 0 0; color: rgba(255, 255, 255, .8); font-size: 15.5px; }
.chs-gc-hero__meta b { color: var(--blanco); font-weight: 900; }
.chs-gc-btn { display: inline-flex; align-items: center; margin-top: 28px; padding: 15px 28px; border-radius: var(--radius-pill); background: var(--oro); color: var(--carbon-900) !important; font-size: 15.5px; font-weight: 900; text-decoration: none !important; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); transition: background-color .2s, transform .2s cubic-bezier(.16, 1, .3, 1); }
.chs-gc-btn:hover { background: var(--blanco); transform: translateY(-1px); }
.chs-gc-btn:focus-visible { outline: 3px solid var(--blanco); outline-offset: 3px; }

/* ---------- La pista de la temporada ---------- */
.chs-gc-track { padding: 44px 0 34px; background: var(--carbon); }
.chs-gc-track__rail { position: relative; height: 14px; margin: 40px 0 34px; border-radius: 7px; background: repeating-linear-gradient(90deg, #4a7f48 0 18px, #528c50 18px 36px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
.chs-gc-track__rail::before, .chs-gc-track__rail::after { content: ""; position: absolute; left: 0; right: 0; height: 2px; background: rgba(255, 255, 255, .7); }
.chs-gc-track__rail::before { top: -6px; }
.chs-gc-track__rail::after { bottom: -6px; }
.chs-gc-track__done { position: absolute; inset: 0 auto 0 0; border-radius: 7px 0 0 7px; background: rgba(27, 27, 27, .35); }
.chs-gc-track__month { position: absolute; top: 30px; transform: translateX(-50%); color: rgba(255, 255, 255, .5); font-size: 11.5px; font-weight: 800; text-transform: lowercase; white-space: nowrap; }
.chs-gc-post { position: absolute; top: 50%; z-index: 1; width: 18px; height: 18px; transform: translate(-50%, -50%); border: 3px solid var(--carbon); border-radius: 50%; background: var(--blanco); transition: transform .2s cubic-bezier(.16, 1, .3, 1); }
.chs-gc-post.is-past { background: #9db89c; }
.chs-gc-post.is-next { width: 24px; height: 24px; background: var(--oro); box-shadow: 0 0 0 4px rgba(211, 171, 5, .3); }
.chs-gc-post:hover, .chs-gc-post:focus-visible { z-index: 3; transform: translate(-50%, -50%) scale(1.25); outline: none; }
.chs-gc-post:focus-visible { box-shadow: 0 0 0 3px var(--oro); }
.chs-gc-post__tip { position: absolute; bottom: calc(100% + 12px); left: 50%; transform: translateX(-50%); padding: 6px 10px; border-radius: var(--radius-md); background: var(--blanco); color: var(--carbon-900); font-size: 12.5px; font-weight: 800; white-space: nowrap; box-shadow: 0 8px 20px rgba(0, 0, 0, .3); opacity: 0; pointer-events: none; transition: opacity .15s; }
.chs-gc-post:hover .chs-gc-post__tip, .chs-gc-post:focus-visible .chs-gc-post__tip { opacity: 1; }
.chs-gc-today { position: absolute; bottom: calc(100% + 14px); z-index: 2; transform: translateX(-50%); padding: 3px 9px; border-radius: var(--radius-pill); background: var(--oro); color: var(--carbon-900); font-size: 12px; font-weight: 900; }
.chs-gc-today::after { content: ""; position: absolute; top: 100%; left: 50%; width: 2px; height: 22px; transform: translateX(-50%); background: var(--oro); }

/* ---------- Los clásicos ---------- */
.chs-gc-season { padding: calc(var(--space-8) * 1.25) 0; background: var(--blanco); }
.chs-gc-title { margin: 0 0 var(--space-6); color: var(--carbon-900); font: 300 clamp(30px, 3.4vw, 46px)/1.08 var(--font-sans); letter-spacing: -.015em; }
.chs-gc-title b { font-weight: 900; }
.chs-gc-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin: 0; padding: 0; list-style: none; }
.chs-gc-card { scroll-margin-top: calc(var(--chs-header-h, 68px) + 24px); }
.chs-gc-card > a { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius-lg); background: var(--carbon); color: var(--blanco); text-decoration: none; isolation: isolate; }
.chs-gc-card img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.16, 1, .3, 1), filter .3s; }
.chs-gc-card > a::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(27, 27, 27, .92) 0%, rgba(27, 27, 27, .35) 48%, rgba(27, 27, 27, .05) 70%, rgba(27, 27, 27, .45) 100%); }
.chs-gc-card > a:hover img { transform: scale(1.04); }
.chs-gc-card > a:focus-visible { outline: 3px solid var(--oro); outline-offset: 3px; }
.chs-gc-card.is-past img { filter: grayscale(.55) brightness(.9); }
.chs-gc-card.is-past > a:hover img { filter: none; }
.chs-gc-card.is-next > a { box-shadow: 0 0 0 3px var(--oro), 0 14px 34px rgba(27, 27, 27, .25); }
.chs-gc-card__date { position: absolute; top: 16px; left: 18px; display: grid; line-height: 1; }
.chs-gc-card__date b { font: 900 46px/.9 var(--font-sans); font-variant-numeric: tabular-nums; letter-spacing: -.03em; }
.chs-gc-card__date span { margin-top: 4px; font-size: 13px; font-weight: 800; text-transform: lowercase; }
.chs-gc-card .chs-gc-grupo { position: absolute; top: 18px; right: 16px; }
.chs-gc-card__foot { position: absolute; right: 0; bottom: 0; left: 0; display: grid; gap: 8px; padding: 18px; }
.chs-gc-card__name { font: 900 21px/1.15 var(--font-sans); text-wrap: balance; }
.chs-gc-card__state { color: rgba(255, 255, 255, .82); font-size: 13.5px; line-height: 1.4; }
.chs-gc-card__state b { color: var(--blanco); font-weight: 900; }
.chs-gc-pill { display: inline-block; margin-right: 6px; padding: 3px 10px; border-radius: var(--radius-pill); background: var(--oro); color: var(--carbon-900); font-size: 12px; font-weight: 900; }
.chs-gc-pill.is-soft { background: var(--verde-hipico); color: var(--blanco); }
.chs-gc-empty { color: var(--gris-600); }

@media (max-width: 1100px) { .chs-gc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 767px) {
	.chs-gc-hero { min-height: 78vh; padding-top: calc(var(--chs-header-h, 64px) + 40px); }
	.chs-gc-hero__next { margin-top: 90px; }
	.chs-gc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
	.chs-gc-card__date b { font-size: 36px; }
	.chs-gc-card__name { font-size: 17px; }
	.chs-gc-card__foot { padding: 14px; }
	.chs-gc-card .chs-gc-grupo { top: 14px; right: 12px; font-size: 11px; }
	.chs-gc-track__month:nth-of-type(even) { display: none; }
}
@media (max-width: 420px) { .chs-gc-grid { grid-template-columns: 1fr; } .chs-gc-card > a { aspect-ratio: 5 / 4; } }
@media (prefers-reduced-motion: reduce) { .chs-gc-card img, .chs-gc-btn, .chs-gc-post, .chs-gc-post__tip { transition: none; } }
/* Dos clásicos casi el mismo día: el segundo poste sube sobre la pista con un tallo, para que no se tapen. */
.chs-gc-post.is-up { top: calc(50% - 22px); }
.chs-gc-post.is-up::after { content: ""; position: absolute; top: 100%; left: 50%; width: 2px; height: 10px; transform: translateX(-50%); background: rgba(255, 255, 255, .6); }
/* El CSS antiguo pone en mayúsculas los h1 */
section.chs-gc-hero h1.chs-gc-h1, section.chs-gc-hero h1.chs-gc-h1 * { text-transform: none !important; }
