/* =========================================================
   Páginas internas: universos, catálogo, categorías y blog
   (se carga después de styles.css y reutiliza sus variables)
   ========================================================= */
.page main { padding-top: calc(66px + clamp(18px, 3vw, 34px)); padding-bottom: clamp(70px, 9vw, 120px); }
.page .site-header { height: 66px; }

/* Migas de pan */
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px 10px; list-style: none; padding: 0; margin: 0 0 clamp(26px, 4vw, 44px); font-size: .74rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 10px; color: rgba(20,19,18,.3); }
.crumbs a:hover { color: var(--fire); }
.crumbs [aria-current] { color: var(--ink); }

/* Intro de página */
.page-intro { max-width: 900px; margin-bottom: clamp(40px, 6vw, 70px); margin-inline: max(16px, calc((100% - 1320px) / 2)); }
.page-intro h1 { font-size: clamp(2.8rem, 7vw, 6rem); line-height: .95; letter-spacing: -.04em; }
.page-intro h1 em { display: block; font-size: .5em; letter-spacing: -.02em; margin-top: .2em; }
.page-intro p:not(.kicker):not(.lead) { color: #3B3733; max-width: 62ch; }
.page-intro .lead { margin-bottom: 1em; }

/* Universo */
.universe { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(30px, 5vw, 80px); align-items: start; }
.universe-media { position: sticky; top: 90px; margin: 0; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 999px 999px 0 0; }
.universe-media img { width: 100%; height: 100%; object-fit: cover; }
.universe-body h1 { font-size: clamp(2.6rem, 5.5vw, 4.8rem); line-height: .95; letter-spacing: -.04em; margin-bottom: .3em; }
.universe-body h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); margin: 1.6em 0 .6em; }
.universe-body h2::before { content: "✦ "; color: var(--fire); font-size: .7em; vertical-align: middle; }
.universe-summary { font-size: clamp(1.1rem, 1.5vw, 1.28rem); line-height: 1.5; color: var(--ink); border-left: 3px solid var(--fire); padding-left: 18px; margin: 18px 0 0; }
.universe .um-facts { margin-top: 0; }

/* Rejillas de tarjetas */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; }
.card-grid .card { flex-basis: auto; margin-top: 0; animation: none; }
a.card { color: var(--paper); }
.card h2, .card h3 { font-size: 1.55rem; line-height: 1.1; margin-bottom: .4em; font-weight: 400; }
.card .card-link { margin-top: 4px; }
.related { margin-top: clamp(70px, 10vw, 130px); }
.related > h2 { font-size: clamp(2rem, 4vw, 3.2rem); margin-bottom: 30px; }
.related-more { margin-top: 30px; }

/* Otras categorías */
.other-cats { margin-top: clamp(70px, 10vw, 120px); }
.other-cats h2 { font-size: clamp(1.8rem, 3.4vw, 2.8rem); }
.other-cats ul { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.other-cats a { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 20px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.other-cats span { font-family: var(--f-display); font-size: clamp(1.5rem, 3vw, 2.4rem); letter-spacing: -.02em; transition: color .3s, transform .5s var(--ease); }
.other-cats small { font-size: .8rem; color: var(--muted); letter-spacing: .1em; text-transform: uppercase; font-weight: 600; }
.other-cats a:hover span { color: var(--fire); font-style: italic; transform: translateX(8px); }

/* Olimpiadas */
.olymp { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 70px); align-items: center; }
.olymp-media { margin: 0; aspect-ratio: 11 / 9; overflow: hidden; border-radius: 0 0 0 160px; }
.olymp-media img { width: 100%; height: 100%; object-fit: cover; }
.olymp-body h2 { font-size: clamp(2rem, 3.6vw, 3.2rem); }
.olymp-body p { color: #3B3733; font-size: 1.08rem; }
.olymp-body .boxed { color: var(--fire-2); margin: 24px 0; }

/* Catálogo general */
.cat-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: clamp(60px, 9vw, 110px); }
.cat-card { position: relative; aspect-ratio: 3 / 4; overflow: hidden; color: var(--white); display: flex; align-items: flex-end; }
.cat-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.cat-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(20,19,18,.9)); }
.cat-card:hover img { transform: scale(1.07); }
.cat-card-body { position: relative; z-index: 1; padding: 22px; display: flex; flex-direction: column; gap: 6px; }
.cat-card-body small { font-size: .66rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; opacity: .8; }
.cat-card-body strong { font-family: var(--f-display); font-weight: 400; font-size: clamp(1.5rem, 2.2vw, 2rem); line-height: 1.05; }
.cat-card-body > span { color: var(--fire); font-weight: 700; font-size: .85rem; }
.cat-index--page > h2 { font-size: clamp(2rem, 4vw, 3.2rem); margin-bottom: 30px; }
.cat-index--page { display: block; }
.cat-index--page .ci-group { margin-bottom: 40px; }

/* Blog */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 26px; }
.post-card { display: flex; flex-direction: column; background: var(--white); transition: transform .5s var(--ease), box-shadow .5s; }
.post-card:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -40px rgba(0,0,0,.45); }
.post-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.post-card-body { padding: 22px 22px 26px; display: flex; flex-direction: column; gap: 8px; }
.post-card time { font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--fire-2); }
.post-card strong { font-family: var(--f-display); font-weight: 400; font-size: 1.5rem; line-height: 1.15; }
.post-card-body > span { color: #3B3733; font-size: .92rem; }

.post-head { max-width: 900px; }
.post-head h1 { font-size: clamp(2.4rem, 5.5vw, 4.6rem); line-height: 1; letter-spacing: -.035em; }
.post-media { margin: clamp(26px, 4vw, 44px) 0; aspect-ratio: 2 / 1; overflow: hidden; }
.post-media img { width: 100%; height: 100%; object-fit: cover; }
.post-layout { display: grid; grid-template-columns: 240px minmax(0, 720px); gap: clamp(30px, 5vw, 80px); }
.post-toc { position: sticky; top: 96px; align-self: start; font-size: .9rem; }
.post-toc p { font-size: .7rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.post-toc ol { padding-left: 1.1em; margin: 0; display: grid; gap: 8px; }
.post-toc a:hover { color: var(--fire); }
.prose { font-size: 1.1rem; line-height: 1.75; color: #2A2623; }
.prose h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin: 1.8em 0 .5em; color: var(--ink); scroll-margin-top: 90px; }
.prose h3 { font-size: 1.4rem; margin: 1.5em 0 .4em; }
.prose a { color: var(--fire-2); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose a:hover { color: var(--ink); }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .45em; }
.prose blockquote { margin: 1.6em 0; padding-left: 22px; border-left: 3px solid var(--fire); font-family: var(--f-display); font-size: 1.4rem; font-style: italic; }
.post-cta { margin-top: 60px; background: var(--ink); color: var(--paper); padding: clamp(26px, 4vw, 44px); }
.post-cta-title { font-family: var(--f-display); font-size: clamp(1.6rem, 3vw, 2.3rem); line-height: 1.1; margin-bottom: 22px; }
.post-cta a { color: inherit; text-decoration: none; }
.btn--line-light { border-color: var(--paper); color: var(--paper); }
.btn--line-light::before { background: var(--paper); }
.btn--line-light:hover { color: var(--ink); }

/* Pie interno */
.footer-h { font-family: var(--f-body); font-size: .7rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--fire); margin-bottom: 18px; }
.page .dossier p { font-family: var(--f-display); font-size: 1.3rem; line-height: 1.25; color: var(--paper); }

.page-404 { min-height: 50vh; }

@media (max-width: 1100px) {
  .cat-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .universe, .olymp { grid-template-columns: 1fr; }
  .universe-media { position: static; aspect-ratio: 4 / 3; border-radius: 0 0 0 120px; }
  .post-layout { grid-template-columns: 1fr; }
  .post-toc { position: static; border: 1px solid var(--line); padding: 16px 20px; }
}
@media (max-width: 520px) {
  .cat-cards { grid-template-columns: 1fr 1fr; gap: 10px; }
  .cat-card-body { padding: 14px; }
}

/* Olimpiadas: página de categoría */
.olymp-media { position: relative; overflow: visible; }
.olymp-media img { border-radius: 0 0 0 160px; }
.olymp-media .medals { right: 24px; bottom: -28px; }
.olymp-media .medal { width: 70px; height: 70px; font-size: 1.6rem; }
.olymp-program { margin-top: clamp(80px, 11vw, 140px); }
.olymp-program > h2 { font-size: clamp(2.2rem, 5vw, 4.2rem); margin-bottom: clamp(30px, 4vw, 50px); }
.olymp-program ol { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 2px; background: var(--line); border: 1px solid var(--line); }
.olymp-program li { background: var(--paper); padding: 28px 22px 30px; position: relative; transition: background .4s; }
.olymp-program li:hover { background: var(--white); }
.olymp-program li:last-child { background: var(--ink); color: var(--paper); }
.olymp-program li:last-child p { color: rgba(244,241,236,.78); }
.olymp-n { display: block; font-family: var(--f-display); font-style: italic; font-weight: 300; font-size: 3rem; line-height: 1; color: var(--fire); margin-bottom: 18px; font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1; }
.olymp-program h3 { font-size: 1.35rem; margin-bottom: .4em; }
.olymp-program p { font-size: .95rem; color: #3B3733; margin: 0; }
.olymp-disciplines { margin-top: clamp(70px, 10vw, 120px); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(26px, 5vw, 70px); align-items: center; background: var(--fire); color: var(--white); padding: clamp(30px, 5vw, 60px); }
.olymp-disciplines .kicker { color: var(--white); }
.olymp-disciplines .kicker::before { background: var(--white); }
.olymp-disciplines h2 { font-size: clamp(1.9rem, 3.4vw, 3rem); }
.olymp-disciplines p { color: rgba(255,255,255,.9); margin: 0; }
.olymp-disciplines .boxed { margin: 0; color: var(--white); }
.olymp-disciplines .boxed li { font-size: .8rem; padding: .5em 1em; }

@media (max-width: 1100px) { .olymp-program ol { grid-template-columns: repeat(2, 1fr); } .olymp-program li:last-child { grid-column: 1 / -1; } }
@media (max-width: 860px) { .olymp-disciplines { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .olymp-program ol { grid-template-columns: 1fr; } }

/* =========================================================
   Página /olimpiadas/
   ========================================================= */
.oly-hero { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(30px, 5vw, 80px); align-items: center; }
.oly-hero h1 { font-size: clamp(3.2rem, 8vw, 7.4rem); line-height: .9; letter-spacing: -.045em; margin-bottom: .3em; }
.oly-hero h1 em { display: block; }
.oly-hero .lead { margin-bottom: 1.6em; }
.oly-stats { list-style: none; padding: 26px 0 0; margin: 40px 0 0; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 20px 46px; }
.oly-stats strong { display: block; font-family: var(--f-display); font-weight: 400; font-size: 2.6rem; line-height: 1; color: var(--fire); }
.oly-stats span { font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.oly-what { margin-top: clamp(80px, 11vw, 140px); display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(26px, 5vw, 80px); }
.oly-what h2 { font-size: clamp(2.2rem, 4.6vw, 4rem); }
.oly-what p { font-size: 1.12rem; color: #3B3733; }
.oly-editions { margin-top: clamp(80px, 11vw, 140px); }
.oly-editions > h2 { font-size: clamp(2.2rem, 5vw, 4.2rem); margin-bottom: .2em; }
.oly-ed-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 30px; }
.oly-ed { background: var(--ink-2); color: var(--paper); display: flex; flex-direction: column; }
.oly-ed img { width: 100%; aspect-ratio: 10 / 7; object-fit: cover; }
.oly-ed div { padding: 22px 24px 26px; }
.oly-ed h3 { font-size: 1.6rem; }
.oly-ed p { margin: 0; color: rgba(244,241,236,.78); }
.oly-ed:last-child { background: var(--fire); }
.oly-ed:last-child p { color: rgba(255,255,255,.92); }
.oly-ideal, .oly-process, .oly-faq { margin-top: clamp(80px, 11vw, 140px); }
.oly-ideal h2, .oly-process h2, .oly-faq h2 { font-size: clamp(2.2rem, 5vw, 4.2rem); margin-bottom: 30px; }
.oly-ideal ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); }
.oly-ideal li { padding: 26px 24px 26px 0; border-bottom: 1px solid var(--line); }
.oly-ideal li + li { padding-left: 24px; border-left: 1px solid var(--line); }
.oly-ideal h3 { font-size: 1.4rem; }
.oly-ideal p { margin: 0; color: #3B3733; font-size: .96rem; }
.oly-process ol { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.oly-process li { border-top: 3px solid var(--ink); padding-top: 20px; }
.oly-process li:last-child { border-color: var(--fire); }
.oly-process h3 { font-size: 1.35rem; }
.oly-process p { margin: 0; color: #3B3733; font-size: .96rem; }
.oly-faq .faq-list { max-width: 900px; }
.oly-cta { margin-top: clamp(80px, 11vw, 140px); margin-bottom: calc(-1 * clamp(70px, 9vw, 120px)); background: var(--ink); color: var(--paper); text-align: center; padding: clamp(90px, 12vw, 150px) 0; }
.oly-cta .container { display: flex; flex-direction: column; align-items: center; }
.oly-cta .medals { position: static; margin-bottom: 40px; }
.oly-cta .kicker::after { content: ""; width: 34px; height: 1.5px; background: var(--fire); }
.oly-cta h2 { font-size: clamp(2.8rem, 7vw, 6rem); line-height: .95; letter-spacing: -.04em; }
.oly-cta p:not(.kicker) { color: rgba(244,241,236,.8); max-width: 52ch; margin: 0 auto 30px; font-size: 1.08rem; }

@media (max-width: 1100px) {
  .oly-ideal ul { grid-template-columns: 1fr 1fr; }
  .oly-ideal li:nth-child(3) { padding-left: 0; border-left: 0; }
  .oly-process ol { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .oly-hero, .oly-what { grid-template-columns: 1fr; }
  .oly-ed-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .oly-ideal ul, .oly-process ol { grid-template-columns: 1fr; }
  .oly-ideal li + li { padding-left: 0; border-left: 0; }
}

/* =========================================================
   Página /cultura-mexicana/
   ========================================================= */
.cul-hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(30px, 5vw, 80px); align-items: center; }
.cul-hero h1 { font-size: clamp(3rem, 7.4vw, 6.6rem); line-height: .92; letter-spacing: -.045em; margin-bottom: .3em; }
.cul-hero h1 em { display: block; }
.cul-hero .lead { margin-bottom: 1.6em; }
.cul-collage { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cul-collage img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.cul-collage img:nth-child(1) { border-radius: 999px 999px 0 0; }
.cul-collage img:nth-child(2) { transform: translateY(40px); }
.cul-collage img:nth-child(3) { border-radius: 50%; }
.cul-collage img:nth-child(4) { transform: translateY(40px); border-radius: 0 0 0 120px; }

.cul-paths { margin-top: clamp(80px, 11vw, 140px); background: var(--ink); color: var(--paper); padding: clamp(70px, 9vw, 110px) 0; }
.cul-paths-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 70px); }
.cul-path { border-top: 1px solid rgba(244,241,236,.25); padding-top: 28px; scroll-margin-top: 90px; }
.cul-path h2 { font-size: clamp(2.2rem, 4vw, 3.4rem); }
.cul-path > p { color: rgba(244,241,236,.8); font-size: 1.08rem; }
.cul-path h3 { font-family: var(--f-body); font-size: .7rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--fire); margin: 26px 0 12px; }
.cul-path .boxed { margin-bottom: 28px; }

.cul-vive { margin-top: clamp(80px, 11vw, 140px); }
.cul-vive > h2 { font-size: clamp(2.2rem, 5vw, 4.2rem); margin-bottom: 30px; }
.cul-vive ol { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; background: var(--line); border: 1px solid var(--line); }
.cul-vive li { background: var(--paper); padding: 28px 22px 30px; }
.cul-vive h3 { font-size: 1.35rem; }
.cul-vive p { margin: 0; color: #3B3733; font-size: .96rem; }

.cul-rutas { margin-top: clamp(80px, 11vw, 140px); }
.cul-rutas > h2 { font-size: clamp(2.2rem, 5vw, 4.2rem); margin-bottom: .2em; }
.cul-rutas-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 30px; }
.cul-ruta { background: var(--white); display: flex; flex-direction: column; }
.cul-ruta img { width: 100%; aspect-ratio: 5 / 3; object-fit: cover; }
.cul-ruta > div { padding: 22px 24px 26px; }
.cul-ruta h3 { font-size: 1.6rem; margin-bottom: .2em; }
.cul-ruta > div > p { color: #3B3733; font-size: .95rem; }
.cul-ruta ul { list-style: none; padding: 0; margin: 14px 0 0; border-top: 1px solid var(--line); }
.cul-ruta li { padding: 9px 0; border-bottom: 1px solid var(--line); font-size: .92rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 12px; }
.cul-ruta li a { font-weight: 600; }
.cul-ruta li a:hover { color: var(--fire); }
.cul-ruta li span { color: var(--muted); font-size: .8rem; }

.cul-licencia .kicker { margin-bottom: 14px; }
.cul-lic-cta { margin-top: 36px; }

@media (max-width: 1100px) {
  .cul-vive ol { grid-template-columns: 1fr 1fr; }
  .cul-rutas-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .cul-hero, .cul-paths-grid { grid-template-columns: 1fr; }
  .cul-collage img:nth-child(2), .cul-collage img:nth-child(4) { transform: none; }
}
@media (max-width: 560px) {
  .cul-vive ol, .cul-rutas-grid { grid-template-columns: 1fr; }
}
