/* =========================================================
   COLOMBIA CORE · gráfica popular colombiana
   Muro ocre al sol, afiches rojo/crema, letras de bus tricolor,
   tiquete de compra para los datos. Mismo ADN que los videos.
   ========================================================= */
:root {
  --ochre: #f0b640;
  --ochre-2: #e4962e;
  --terra: #ba3c24;
  --red: #b0241e;
  --cream: #f7e9ba;
  --paper: #f7f6f1;
  --ink: #16141a;
  --navy: #121a48;
  --bus-y: #fcca1c;
  --bus-r: #d62628;
  --bus-b: #1c58be;
  --radius: 6px;
  --wrap: 1180px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background:
    radial-gradient(1200px 600px at 0% 0%, rgba(0,0,0,.08), transparent 60%),
    linear-gradient(180deg, var(--ochre) 0%, var(--ochre-2) 100%) fixed;
  color: var(--ink);
  font-family: "Work Sans", system-ui, sans-serif;
  font-size: 18px;
  line-height: 1.6;
}
a { color: inherit; }
img, video { display: block; max-width: 100%; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.mono { font-family: "Space Mono", ui-monospace, monospace; letter-spacing: .02em; }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 10; background: var(--red); color: var(--cream); box-shadow: 0 6px 0 rgba(0,0,0,.12); }
.stripe { display: grid; grid-template-rows: 6px 3px 3px; }
.stripe i:nth-child(1) { background: var(--bus-y); }
.stripe i:nth-child(2) { background: var(--bus-b); }
.stripe i:nth-child(3) { background: var(--bus-r); }
.top-row { display: flex; align-items: center; gap: 24px; padding: 10px 0; }
.logo {
  display: inline-flex; flex-direction: column; line-height: .86; text-decoration: none;
  font-family: "Alfa Slab One", serif; font-size: 26px; letter-spacing: .01em;
}
.logo span {
  background: linear-gradient(180deg, var(--bus-y) 0 48%, var(--bus-r) 48% 74%, var(--bus-b) 74%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  -webkit-text-stroke: 1.5px var(--navy);
  filter: drop-shadow(3px 3px 0 var(--navy));
}
.logo.small { font-size: 22px; }
.cats { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin-left: auto; }
.cats::-webkit-scrollbar { display: none; }
.cats a {
  white-space: nowrap; text-decoration: none; font-weight: 600; font-size: 15px;
  padding: 6px 12px; border-radius: 999px; border: 2px solid rgba(247,233,186,.35);
}
.cats a:hover { background: var(--cream); color: var(--red); }

/* ---------- hero ---------- */
.hero { display: grid; gap: 28px; padding: 40px 0 16px; align-items: center; }
@media (min-width: 900px) { .hero { grid-template-columns: 1fr 1.25fr; padding-top: 56px; } }
.kicker { margin: 0 0 8px; font-weight: 700; font-size: 14px; color: var(--navy); }
.hero h1 {
  margin: 0 0 12px; font-family: "Alfa Slab One", serif; font-weight: 400;
  font-size: clamp(2.2rem, 5.4vw, 4rem); line-height: 1.02; color: var(--red);
  text-shadow: 3px 3px 0 var(--cream);
}
.lead { margin: 0; font-size: 1.15rem; font-weight: 600; }

/* ---------- cards (pasted posters) ---------- */
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 40px 0 16px; }
.section-head h2 { margin: 0; font-family: "Alfa Slab One", serif; font-weight: 400; font-size: 2rem; color: var(--navy); }
.section-head .mono { font-size: 13px; }
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.card {
  display: flex; flex-direction: column; text-decoration: none; background: var(--cream);
  box-shadow: 8px 10px 0 rgba(120, 70, 20, .35); transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover { transform: translate(-2px, -3px) rotate(-.4deg); box-shadow: 12px 14px 0 rgba(120, 70, 20, .35); }
.thumb { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--red); }
.thumb img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 72%; }
.play {
  position: absolute; left: 12px; bottom: 12px; padding: 4px 10px; background: var(--ink); color: var(--cream);
  font: 700 13px "Space Mono", monospace;
}
.meta { padding: 14px 16px 18px; display: grid; gap: 6px; }
.meta h3 { margin: 0; font-family: "Alfa Slab One", serif; font-weight: 400; font-size: 1.3rem; line-height: 1.15; color: var(--red); }
.meta p { margin: 0; }
.date { font-size: 13px; color: #6b5a40; }
.card.big { background: var(--red); color: var(--cream); }
.card.big .meta h3 { color: var(--cream); font-size: clamp(1.5rem, 3vw, 2.1rem); }
.card.big .date { color: var(--cream); opacity: .8; }
@media (min-width: 640px) { .card.big { flex-direction: row; } .card.big .thumb { flex: 0 0 44%; } .card.big .meta { align-content: center; } }
.card.soon { box-shadow: none; border: 3px dashed rgba(18, 26, 72, .35); background: transparent; }
.card.soon .thumb { background: transparent; display: grid; place-items: center; aspect-ratio: auto; min-height: 160px; }
.card.soon .thumb span { font: 700 14px "Space Mono", monospace; color: var(--navy); }
.card.soon h3 { color: var(--navy); font-size: 1.05rem; }

.tag {
  justify-self: start; display: inline-block; padding: 2px 10px; font: 700 12px "Space Mono", monospace;
  text-transform: uppercase; text-decoration: none; background: var(--navy); color: var(--cream);
}
.tag-historias { --c: var(--bus-b); }
.tag-como-funciona { --c: #2e7d4f; }
.tag-colombia-vs { --c: #7a3fb0; }
.tag-datos { --c: var(--terra); }
.tag-palabras { --c: #c2185b; }
.tag-diciembre { --c: #0f7a5a; }
.tag[class*="tag-"] { background: var(--c, var(--navy)); }

/* ---------- ticket (receipt) ---------- */
.ticket {
  position: relative; background: var(--paper); padding: 34px 28px 30px; max-width: 520px; margin-inline: auto;
  background-image:
    linear-gradient(115deg, rgba(0,0,0,.035) 0 30%, transparent 30% 55%, rgba(0,0,0,.03) 55% 70%, transparent 70%),
    linear-gradient(200deg, transparent 0 40%, rgba(0,0,0,.03) 40% 62%, transparent 62%);
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom/20px 51% repeat-x,
                conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) top/20px 51% repeat-x;
  mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom/20px 51% repeat-x,
        conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) top/20px 51% repeat-x;
  filter: drop-shadow(6px 10px 10px rgba(120, 70, 10, .35));
}
.ticket hr { border: 0; border-top: 3px dashed var(--ink); margin: 14px 0; }
.ticket .strong { font-weight: 700; }
.ticket .row { display: flex; justify-content: space-between; gap: 12px; margin: 6px 0; font-size: 14px; }
.ticket .row b { text-align: right; }
.barcode {
  height: 64px; margin-top: 16px;
  background: repeating-linear-gradient(90deg, var(--ink) 0 3px, transparent 3px 6px, var(--ink) 6px 8px, transparent 8px 13px, var(--ink) 13px 18px, transparent 18px 21px);
}
.retro {
  margin: 0; text-align: center; font-family: "Alfa Slab One", serif; font-size: 3rem; line-height: 1; color: #e43428;
  -webkit-text-stroke: 2px #fcd03e; text-shadow: 4px 4px 0 #8c1616; transform: rotate(-4deg);
}
.retro.script { color: #225cc4; font-style: italic; -webkit-text-stroke: 2px #e43428; text-shadow: 4px 4px 0 #101e50; margin-top: 4px; }
.ticket-band { padding: 48px 0 8px; }
.ticket-band .mono { text-align: center; margin: 0; }

/* ---------- categories ---------- */
.cat-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.cat-tile { display: grid; gap: 4px; padding: 18px; text-decoration: none; background: var(--c, var(--navy)); color: #fff; box-shadow: 6px 8px 0 rgba(0,0,0,.18); }
.cat-tile strong { font-family: "Alfa Slab One", serif; font-weight: 400; font-size: 1.35rem; }
.cat-tile span { font-size: .95rem; opacity: .9; }
.cat-head { padding: 40px 0 8px; }
.cat-head h1 { margin: 0; font-family: "Alfa Slab One", serif; font-weight: 400; font-size: clamp(2.2rem, 6vw, 4rem); color: var(--red); text-shadow: 3px 3px 0 var(--cream); }

/* ---------- article ---------- */
.article { padding: 40px 0 0; }
.article-head { max-width: 860px; }
.article-head h1 {
  margin: 12px 0; font-family: "Alfa Slab One", serif; font-weight: 400; font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.05; color: var(--red); text-shadow: 3px 3px 0 var(--cream);
}
.dek { font-size: 1.2rem; font-weight: 600; margin: 0 0 6px; }
.article-grid { display: grid; gap: 32px; margin-top: 24px; }
@media (min-width: 900px) { .article-grid { grid-template-columns: 380px 1fr; align-items: start; } .video-col { position: sticky; top: 96px; } }
.video-col video { width: 100%; aspect-ratio: 9 / 16; background: #000; box-shadow: 8px 10px 0 rgba(120, 70, 20, .35); }
.video-col .facts { margin-top: 28px; }
.body { background: var(--cream); padding: clamp(20px, 4vw, 44px); box-shadow: 8px 10px 0 rgba(120, 70, 20, .3); }
.body h2 { font-family: "Alfa Slab One", serif; font-weight: 400; color: var(--navy); font-size: 1.6rem; margin: 1.6em 0 .4em; }
.body h2:first-of-type { margin-top: 1em; }
.body p, .body li { max-width: 68ch; }
.offer { margin: 32px 0 0; padding: 20px; background: var(--red); color: var(--cream); }
.offer h3 { margin: 4px 0; font-family: "Alfa Slab One", serif; font-weight: 400; font-size: 1.6rem; }
.offer p { margin: 0; }
.ad-slot { margin-top: 28px; min-height: 120px; display: grid; place-items: center; border: 2px dashed rgba(0,0,0,.2); color: rgba(0,0,0,.4); font-size: 12px; }

/* ---------- footer ---------- */
.foot { margin-top: 64px; background: var(--terra); color: var(--cream); padding: 32px 0 40px; }
.foot p { margin: 8px 0 0; }
.foot .mono { font-size: 13px; opacity: .8; }

@media (max-width: 640px) {
  body { font-size: 17px; }
  .top-row { flex-wrap: wrap; gap: 8px; }
  .cats { margin-left: 0; width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .card { transition: none; } }

/* ---------- herramientas / calculadoras ---------- */
.nav-tools { background: var(--bus-y); color: var(--ink) !important; border-color: var(--bus-y) !important; }
.tool-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.tool-card { display: grid; gap: 4px; align-content: start; padding: 16px; text-decoration: none; background: var(--cream); box-shadow: 6px 8px 0 rgba(120, 70, 20, .3); transition: transform .15s ease; }
.tool-card:hover { transform: translate(-2px, -3px); }
.tool-card strong { font-family: "Alfa Slab One", serif; font-weight: 400; font-size: 1.15rem; color: var(--red); line-height: 1.15; }
.tool-card span:not(.tool-ico) { font-size: .9rem; color: #5a4a35; }
.tool-ico { font-size: 1.8rem; }
.tool-grid.big .tool-card { padding: 20px; }
.tool { padding-top: 40px; }
.calc-grid { display: grid; gap: 28px; margin-top: 20px; align-items: start; }
@media (min-width: 900px) { .calc-grid { grid-template-columns: 1fr 420px; } }
.calc { display: grid; gap: 16px; background: var(--cream); padding: 24px; box-shadow: 8px 10px 0 rgba(120, 70, 20, .3); }
.calc label { display: grid; gap: 6px; font-weight: 600; }
.calc label.check { display: flex; gap: 10px; align-items: center; font-weight: 400; }
.calc input[type=text], .calc input[type=number], .calc select { font: 600 1.2rem "Work Sans", sans-serif; padding: 12px 14px; border: 3px solid var(--ink); background: #fff; width: 100%; }
.calc input:focus, .calc select:focus { outline: 4px solid var(--bus-y); }
.calc .hours { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.ticket.result { max-width: none; margin: 0; }
.ticket .big { font-size: 2.6rem; font-weight: 700; margin: 6px 0; text-align: center; color: var(--red); }
.ticket .small, .body .small { font-size: 13px; }
.festivos-list .row { font-size: 14px; }
.festivos-list .row.past { opacity: .45; }
.tool-body { margin-top: 28px; }
.calc-grid .tool-body { margin-top: 0; }
.formula { background: var(--ink); color: var(--bus-y); padding: 12px 16px; font-size: 15px; overflow-x: auto; }
.cc-table { width: 100%; border-collapse: collapse; }
.cc-table th, .cc-table td { padding: 8px; border-bottom: 2px dashed rgba(0,0,0,.2); text-align: left; }
.next-holiday { margin: 16px 0; padding: 18px 22px; background: var(--red); color: var(--cream); box-shadow: 8px 10px 0 rgba(120, 70, 20, .3); }
.next-holiday .big { font-family: "Alfa Slab One", serif; font-size: clamp(1.6rem, 4vw, 2.4rem); margin: 4px 0; }
.next-holiday p { margin: 0; }

/* páginas legales */
.legal { max-width: 760px; padding-top: 32px; padding-bottom: 48px; line-height: 1.6; }
.legal h2 { margin-top: 28px; }
.legal a { text-decoration: underline; }
.foot-links a { text-decoration: underline; }

/* ---------- juegos ---------- */
.game-page { padding-top: 24px; }
.game-title { font-family: "Alfa Slab One", serif; font-weight: 400; font-size: clamp(2rem, 5vw, 3rem); color: var(--red); line-height: 1.05; margin: 10px 0 14px; }
.game-text { max-width: 760px; margin: 28px auto 0; }
.game-btn { font: 800 1rem "Work Sans", sans-serif; padding: 12px 20px; border: 3px solid var(--ink); background: var(--cream); color: var(--ink); cursor: pointer; }
.game-btn:hover { background: #fff; }
.game-btn:focus-visible { outline: 4px solid var(--bus-b); outline-offset: 2px; }
.game-btn.primary { background: var(--red); color: var(--cream); border-color: var(--ink); }
.game-btn:disabled { opacity: .45; cursor: default; }
.game-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.tejo-stage { position: relative; width: min(100%, calc((100svh - 190px) * .8), 620px); min-width: 280px; margin: 0 auto; box-shadow: 8px 10px 0 rgba(120, 70, 20, .3); }
#tejo { display: block; width: 100%; height: auto; touch-action: none; cursor: grab; user-select: none; -webkit-user-select: none; }
#tejo:focus-visible { outline: 4px solid var(--bus-b); }
.tejo-sound { position: absolute; bottom: 10px; right: 10px; width: 44px; height: 44px; font-size: 20px; border: 3px solid var(--ink); background: var(--cream); cursor: pointer; }
.tejo-end { position: absolute; inset: 0; display: grid; align-content: center; gap: 8px; padding: 24px; text-align: center; background: rgba(176, 36, 30, .96); color: var(--cream); }
.tejo-end[hidden] { display: none; }
.tejo-end p { margin: 0; }
.tejo-big { font-family: "Alfa Slab One", serif; font-size: clamp(2.6rem, 11vw, 4.4rem); color: var(--bus-y); line-height: 1.05; }
.tejo-line { font-weight: 600; font-size: 1.15rem; }
.tejo-end .game-actions { margin-top: 14px; }
.pd { max-width: 460px; margin: 0 auto; }
.pd-board { display: grid; gap: 6px; max-width: min(320px, 33svh); margin: 0 auto; }
.pd-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.pd-row span { aspect-ratio: 1; display: grid; place-items: center; font: 400 1.7rem "Alfa Slab One", serif; background: var(--cream); border: 3px solid rgba(22, 20, 26, .3); }
.pd-row span.on { border-color: var(--ink); }
.pd-row span.si, .pd-keys .si { background: #1f8f4d; color: #fff; border-color: #1f8f4d; }
.pd-row span.casi, .pd-keys .casi { background: var(--bus-y); color: var(--ink); border-color: var(--bus-y); }
.pd-row span.no, .pd-keys .no { background: #57534c; color: #fff; border-color: #57534c; }
.pd-msg { min-height: 1.6em; margin: 8px 0; text-align: center; font-weight: 700; }
.pd-keys { display: grid; gap: 6px; }
.pd-krow { display: flex; gap: 4px; justify-content: center; }
.pd-krow button { flex: 1 1 0; min-width: 0; height: 52px; padding: 0; font: 800 1rem "Work Sans", sans-serif; background: var(--cream); color: var(--ink); border: 2px solid var(--ink); cursor: pointer; }
.pd-krow button.wide { flex: 1.7 1 0; font-size: .72rem; }
.pd-end { margin: 0 0 14px; padding: 18px; text-align: center; background: var(--red); color: var(--cream); box-shadow: 6px 8px 0 rgba(120, 70, 20, .3); }
.pd-end[hidden] { display: none; }
.pd-end p { margin: 0 0 8px; }
.pd-title { font: 400 2rem "Alfa Slab One", serif; color: var(--bus-y); }
.pd-next { margin-top: 10px !important; }
.tv { max-width: 640px; margin: 0 auto; }
.tv-bar { font-weight: 700; margin: 0 0 8px; }
.tv-card { padding: 24px; background: var(--cream); box-shadow: 8px 10px 0 rgba(120, 70, 20, .3); }
.tv-card[hidden] { display: none; }
.tv-card h2 { margin: 0 0 16px; font-size: 1.35rem; line-height: 1.25; }
.tv-opts { display: grid; gap: 10px; margin-bottom: 14px; }
.tv-opts .game-btn { text-align: left; background: #fff; }
.tv-opts .game-btn:disabled { opacity: 1; color: #6b6558; }
.tv-opts .game-btn.ok { background: #1f8f4d; color: #fff; border-color: #1f8f4d; }
.tv-opts .game-btn.bad { background: var(--bus-r); color: #fff; border-color: var(--bus-r); }
.tv-fact { font-weight: 600; margin: 0 0 14px; }
.tv-end { text-align: center; display: grid; gap: 8px; }
.tv-end p { margin: 0; }
.tv-score { color: var(--red); }
.pq-setup { max-width: 640px; margin: 0 auto; text-align: center; }
.pq-note { font-size: 13px; margin: 14px 0 0; }
.pq { display: grid; gap: 18px; align-items: start; }
.pq[hidden] { display: none; }
@media (min-width: 900px) { .pq { grid-template-columns: minmax(0, min(70vh, 640px)) minmax(280px, 1fr); justify-content: center; } }
#pq-board { display: block; width: 100%; height: auto; box-shadow: 8px 10px 0 rgba(120, 70, 20, .3); scroll-margin-top: 90px; }
.pq-panel { display: grid; gap: 10px; padding: 16px; background: var(--cream); box-shadow: 8px 10px 0 rgba(120, 70, 20, .3); }
.pq-turn { margin: 0; font: 400 1.5rem "Alfa Slab One", serif; border-left: 10px solid var(--pq, var(--ink)); padding-left: 10px; }
.pq-dice { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.pq-die { width: 54px; height: 54px; display: grid; place-items: center; font: 400 1.7rem "Alfa Slab One", serif; background: #fff; border: 3px solid var(--ink); }
.pq-msg { margin: 0; min-height: 1.5em; font-weight: 600; }
.pq-moves { display: grid; gap: 8px; }
.pq-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pq-tag { min-width: 66px; font-weight: 800; font-size: .95rem; }
.pq-mv { padding: 9px 14px; min-width: 56px; background: #fff; }
.pq-rollbtn { width: 100%; font-size: 1.1rem; padding: 14px; }
.pq-hint { margin: 0; font-size: .92rem; font-weight: 600; }
.pq-row.on .pq-tag { color: var(--red); }
.pq-mv.eats, .pq-blow { background: var(--bus-r); color: #fff; }
.pq-blow { width: 100%; animation: pq-pulse .7s ease-in-out infinite alternate; }
@keyframes pq-pulse { to { transform: scale(1.03); } }
@media (prefers-reduced-motion: reduce) { .pq-blow { animation: none; } }
.pq-log { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; font-size: .92rem; font-weight: 600; min-height: 2.4em; }
.pq-log .old { font-weight: 400; color: #6b6558; font-size: .84rem; }
.pq-new { justify-self: start; background: none; border: 0; padding: 4px 0; text-decoration: underline; cursor: pointer; color: var(--ink); }
@media (max-width: 899px) { body:has(.game-page) .top { position: static; } #pq-board { scroll-margin-top: 8px; } }
.tejo-menu { align-content: center; overflow-y: auto; }
.tejo-menu[hidden] { display: none; }
.tejo-menu-title { font-size: clamp(1.8rem, 7vw, 3rem); }
.tejo-levels { display: grid; gap: 7px; margin: 4px 0 10px; }
.tejo-level { display: grid; grid-template-columns: 30px 1fr; gap: 0 8px; text-align: left; padding: 8px 12px; background: var(--cream); color: var(--ink); border: 3px solid var(--ink); cursor: pointer; font: 400 1rem "Work Sans", sans-serif; }
.tejo-level span { grid-row: span 2; align-self: center; font-weight: 700; font-size: 1.2rem; }
.tejo-level strong { font-weight: 800; line-height: 1.2; }
.tejo-level em { font-style: normal; font-size: .85rem; color: #5a4a35; line-height: 1.2; }
.tejo-level.now { background: var(--bus-y); }
.tejo-level:disabled { opacity: .5; cursor: default; }
