/* Rediseño del home (/nuevo-home). Tokens y componentes del HANDOFF.
   Todo va bajo .tdsh para no pisar los estilos del resto del sitio. */


:root {
  --bg: #FFFFFF;
  --panel: #F6F6F4;
  --line: #E3E3DF;
  --ink: #0E0E0C;
  --muted: #55554E;
  --body: #3A3A35;
  --moss: #4A5A2B;
  --moss-100: #DFE3CF;
  --moss-200: #C7CDB0;
  --moss-light: #A9B38A;
  --moss-ink: #2E3A18;
  --map-land: #EEEEEB;
  --sponsor-bg: #F4F4F2;
  --dark-soft: #DCDCD6;
  --dark-panel: #1C1C19;

  --font-display: 'Anybody', sans-serif;
  --font-text: 'Space Grotesk', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --gutter: 64px;
}

.tdsh, .tdsh *, .tdsh *::before, .tdsh *::after { box-sizing: border-box; }
.tdsh { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-text); -webkit-font-smoothing: antialiased; }
.tdsh a { color: var(--ink); text-decoration: none; }
.tdsh a:hover { color: var(--moss); }
.tdsh button, .tdsh input { font-family: inherit; }
.tdsh button { cursor: pointer; }
.tdsh img { display: block; max-width: 100%; }
.tdsh :focus-visible { outline: 2px solid var(--moss); outline-offset: 2px; }
.tdsh h1, .tdsh h2, .tdsh h3, .tdsh p { margin: 0; }

html { scroll-behavior: smooth; }
#calendario, #mapa { scroll-margin-top: 80px; }
.tdsh-skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff !important; padding: 10px 16px; z-index: 100; }
.tdsh-skip:focus { left: 0; }
.tdsh-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- tipografía ---------- */
.tdsh .lbl { font-family: var(--font-mono); font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.tdsh .h { font-family: var(--font-display); font-weight: 900; font-style: italic; font-stretch: 112%; text-transform: uppercase; letter-spacing: -0.03em; line-height: .88; }
.tdsh .moss { color: var(--moss); }

/* ---------- botones / píldoras ---------- */
.tdsh .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 20px; border-radius: 4px; border: 1px solid var(--ink); background: transparent; color: var(--ink); font-size: 14px; font-weight: 600; white-space: nowrap; }
.tdsh .btn:hover { background: var(--ink); color: #fff; }
.tdsh .btn-ink { background: var(--ink); color: #fff; }
.tdsh .btn-ink:hover { background: var(--moss); border-color: var(--moss); color: #fff; }
.tdsh .btn-moss { background: var(--moss); border-color: var(--moss); color: #fff; }
.tdsh .btn-moss:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.tdsh .btn-sm { height: 42px; }
.tdsh .pill { display: inline-flex; align-items: center; height: 26px; padding: 0 12px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--panel); color: var(--ink); }
.tdsh .pill-moss { background: var(--moss); color: #fff; }
.tdsh .pill-chip { background: var(--moss-100); color: var(--moss-ink); height: 24px; padding: 0 10px; }
.tdsh .dist { display: inline-flex; padding: 6px 11px; border: 1px solid var(--ink); border-radius: 999px; font-family: var(--font-mono); font-size: 12px; font-weight: 700; }
.tdsh .dist-fill { background: var(--ink); color: #fff; }

/* ---------- nav ---------- */
.tdsh-nav { height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 0 var(--gutter); border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: 0; z-index: 50; }
.tdsh-logo { display: flex; align-items: center; flex: 0 0 300px; }
.tdsh-logo img { height: 16px; width: auto; }
.tdsh-links { display: flex; gap: 36px; font-size: 15px; }
.tdsh-links a { color: var(--muted); }
.tdsh-links a:first-child { color: var(--ink); font-weight: 600; }
.tdsh-links a:hover { color: var(--moss); }
.tdsh-nav-r { display: flex; align-items: center; gap: 12px; flex: 0 0 420px; justify-content: flex-end; }
.tdsh-nav-search { display: flex; align-items: center; gap: 10px; width: 250px; height: 42px; padding: 0 14px; border: 1px solid var(--line); border-radius: 6px; background: var(--panel); color: var(--muted); }
.tdsh-nav-search input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; font-size: 14px; color: var(--ink); }
.tdsh-nav-search:focus-within { border-color: var(--ink); }
.tdsh-nav-send-short { display: none; }

.tdsh-status { height: 36px; display: flex; align-items: center; justify-content: space-between; padding: 0 var(--gutter); border-bottom: 1px solid var(--line); gap: 16px; overflow: hidden; white-space: nowrap; }
.tdsh-status > div { display: flex; align-items: center; gap: 12px; min-width: 0; }
.tdsh-dot { width: 7px; height: 7px; border-radius: 999px; background: var(--moss); flex: none; }

/* ---------- hero ---------- */
.tdsh-hero { position: relative; height: 820px; overflow: hidden; border-bottom: 1px solid var(--line); }
.tdsh-hero-img { position: absolute; right: 0; top: 0; width: 54%; height: 100%; object-fit: cover; }
.tdsh-hero-grid { position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 96px 96px; opacity: .35; pointer-events: none; }
.tdsh-hero-in { position: relative; height: 100%; padding: 64px var(--gutter) 40px; display: flex; flex-direction: column; justify-content: space-between; }
.tdsh-hero-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.tdsh-ep-pill { display: inline-flex; align-items: center; gap: 12px; height: 44px; padding: 0 18px 0 6px; border-radius: 999px; background: var(--ink); color: #fff !important; max-width: 100%; }
.tdsh-ep-pill:hover { background: var(--moss); }
.tdsh-ep-pill .ic { width: 32px; height: 32px; border-radius: 999px; background: var(--moss-light); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.tdsh-ep-pill .lbl { color: var(--moss-light); }
.tdsh-ep-pill b { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tdsh-hero h1 { font-size: 88px; line-height: .9; }
.tdsh-hero-mid { display: flex; flex-direction: column; gap: 36px; }
.tdsh-hero-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 48px; }
.tdsh-hero-form { display: flex; flex-direction: column; gap: 18px; width: 640px; max-width: 100%; }
.tdsh-hero-form p { font-size: 19px; line-height: 1.5; color: var(--body); }
.tdsh-search { display: flex; align-items: center; height: 56px; border: 1px solid var(--ink); border-radius: 6px; background: var(--panel); padding: 0 6px 0 18px; gap: 12px; }
.tdsh-search input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; font-size: 16px; color: var(--ink); }
.tdsh-hero-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.tdsh-counts { display: flex; gap: 40px; padding: 20px 28px; background: var(--bg); border: 1px solid var(--ink); }
.tdsh-counts a { display: flex; flex-direction: column; gap: 6px; color: var(--ink); }
.tdsh .tdsh-counts a:hover .h { color: var(--moss); }
.tdsh .tdsh-counts a:hover .lbl { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.tdsh .tdsh-hero-stats a { color: inherit; }
.tdsh .tdsh-hero-stats a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.tdsh-counts .h { font-size: 56px; }


/* ---------- secciones ---------- */
.tdsh-sec { padding: 120px var(--gutter) 110px; display: flex; flex-direction: column; gap: 40px; border-bottom: 1px solid var(--line); }
.tdsh-sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 48px; }
.tdsh-sec-head > div { display: flex; flex-direction: column; gap: 24px; }
.tdsh-sec h2 { font-size: 81px; }

/* ---------- destacadas ---------- */
.tdsh-feat { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; min-height: 560px; }
.tdsh-feat-main { grid-column: span 2; display: flex; border: 1px solid var(--line); background: var(--panel); overflow: hidden; }
.tdsh-feat-main { position: relative; }
.tdsh-feat-main:hover { border-color: var(--ink); }
.tdsh-feat-info h3 a::after { content: ''; position: absolute; inset: 0; z-index: 3; } /* toda la tarjeta es clicable */
.tdsh-feat-btns .btn { position: relative; z-index: 4; }
.tdsh-feat-photo { width: 420px; flex: none; position: relative; overflow: hidden; background: var(--map-land); border-right: 1px solid var(--line); }
.tdsh-feat-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.15) brightness(1.05); }
.tdsh-feat-tags { position: absolute; left: 20px; top: 20px; display: flex; gap: 8px; flex-wrap: wrap; right: 20px; }
.tdsh-feat-big { position: absolute; left: 20px; bottom: 16px; font-size: 124px; letter-spacing: -0.05em; color: var(--ink); background: rgba(255,255,255,.0); }
.tdsh-feat-body { flex: 1; min-width: 0; padding: 36px; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.tdsh-feat-info { display: flex; flex-direction: column; gap: 16px; }
.tdsh-feat-info h3 { font-size: 36px; line-height: .95; }
.tdsh-feat-info .where { display: flex; align-items: center; gap: 6px; font-size: 15px; color: var(--muted); }
.tdsh-feat-ex { margin: 0; font-size: 16px; line-height: 1.55; color: var(--body); display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.tdsh-feat-dist { display: flex; align-items: center; gap: 10px; }
.tdsh-feat-dist i { flex: 1; height: 1px; background: var(--ink); }
.tdsh-feat-stats { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); border-top: 1px solid var(--ink); }
.tdsh-feat-stats div { padding: 16px 0 16px 16px; border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.tdsh-feat-stats div:first-child { padding-left: 0; border-left: 0; }
.tdsh-feat-stats .h { font-size: 44px; }
.tdsh-feat-stats .h { line-height: 44px; }
.tdsh-feat-stats .h.reg { font-size: 24px; line-height: 44px; }
.tdsh-feat-body { container-type: inline-size; }
.tdsh-feat-stats { display: flex; }
.tdsh-feat-stats div { flex: 0 0 auto; padding-right: 24px; }
.tdsh-feat-stats div:last-child { flex: 1 1 0; padding-right: 0; }
/* cuando la columna es angosta (pantallas medianas) la región pasa a su propia fila */
@container (max-width: 480px) {
  .tdsh-feat-stats { flex-wrap: wrap; }
  .tdsh-feat-stats div:last-child { flex: 1 1 100%; padding: 14px 0 16px; border-left: 0; border-top: 1px solid var(--line); }
}
.tdsh-feat-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.tdsh-feat-side { display: flex; flex-direction: column; gap: 16px; }
.tdsh-card { flex: 1; background: var(--panel); border: 1px solid var(--line); padding: 24px; display: flex; flex-direction: column; justify-content: space-between; gap: 16px; }
.tdsh-card:hover { border-color: var(--ink); background: var(--bg); }
.tdsh-card-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.tdsh-card .h { font-size: 30px; line-height: .95; }
.tdsh-card-ex { margin: 0; font-size: 15px; line-height: 1.5; color: var(--body); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tdsh-card-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 14px; color: var(--muted); }
.tdsh-go { width: 44px; height: 44px; flex: none; border-radius: 999px; background: var(--ink); color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.tdsh-sponsor { border: 1.5px dashed var(--moss); background: var(--sponsor-bg); padding: 20px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.tdsh-sponsor span.t { display: flex; flex-direction: column; gap: 6px; }
.tdsh-sponsor .lbl { color: var(--moss); }
.tdsh-sponsor b { font-size: 18px; font-weight: 700; }
.tdsh-sponsor small { font-size: 13px; color: var(--muted); }

/* ---------- podcast ---------- */
.tdsh-pod { background: var(--ink); color: #fff; padding: 110px var(--gutter); display: flex; flex-direction: column; gap: 56px; }
.tdsh-pod a { color: #fff; }
.tdsh-pod a:hover { color: var(--moss-light); }
.tdsh-pod .lbl { color: var(--moss-light); }
.tdsh-pod h2 { font-size: 81px; color: #fff; }
.tdsh-pod h2 span { color: var(--moss-light); }
.tdsh-pod-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 48px; }
.tdsh-pod-head > div:first-child { display: flex; flex-direction: column; gap: 24px; }
.tdsh-pod-brand { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.tdsh-pod-brand .lbl.b { color: #fff; border: 1px solid rgba(255,255,255,.5); border-radius: 999px; padding: 6px 10px; font-size: 10px; }
.tdsh-pod-right { display: flex; flex-direction: column; gap: 18px; align-items: flex-end; }
.tdsh-pod-right p { max-width: 440px; font-size: 17px; line-height: 1.55; color: var(--dark-soft); text-align: right; }
.tdsh-pod-links { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.tdsh-pod .btn { border-color: rgba(255,255,255,.5); color: #fff; }
.tdsh-pod .btn:hover { background: #fff; color: var(--ink); border-color: #fff; }
.tdsh-pod .btn-white { background: #fff; border-color: #fff; color: var(--ink); }
.tdsh-pod .btn-white:hover { background: var(--moss-light); border-color: var(--moss-light); color: var(--ink); }
.tdsh-pod-ep { display: grid; grid-template-columns: 420px minmax(0, 1fr); gap: 56px; padding-top: 40px; border-top: 1px solid rgba(255,255,255,.3); }
.tdsh-pod-art { height: 420px; position: relative; overflow: hidden; background: var(--dark-panel); padding: 28px; display: flex; flex-direction: column; justify-content: space-between; }
.tdsh-pod-art.has-img { padding: 0; background: var(--dark-panel); }
.tdsh-pod-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.tdsh-pod-art:hover img { transform: scale(1.03); }
.tdsh-pod-art .tag { position: absolute; left: 16px; top: 16px; padding: 6px 10px; background: var(--ink); color: var(--moss-light); border-radius: 999px; font-size: 10px; }
.tdsh-pod-art > .row, .tdsh-pod-art > .t2 { position: relative; }
.tdsh-pod-art .row { display: flex; justify-content: space-between; }
.tdsh-pod-art .t2 { font-size: 88px; line-height: .85; letter-spacing: -0.04em; color: var(--moss-light); }
.tdsh-pod-main { display: flex; flex-direction: column; justify-content: space-between; gap: 32px; min-width: 0; }
.tdsh-pod-main .meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.tdsh-pod-main .pill { background: var(--moss-light); color: var(--ink); font-weight: 700; }
.tdsh-pod-main h3 { font-size: 48px; line-height: .92; color: #fff; overflow-wrap: anywhere; }
.tdsh-pod-main p { margin-top: 20px; max-width: 640px; font-size: 17px; line-height: 1.55; color: var(--dark-soft); }
.tdsh-play-row { display: flex; align-items: center; gap: 20px; }
.tdsh-play { width: 76px; height: 76px; flex: none; border-radius: 999px; background: var(--moss-light); color: var(--ink) !important; display: inline-flex; align-items: center; justify-content: center; }
.tdsh-play:hover { background: #fff; color: var(--ink) !important; }
.tdsh-bar { flex: 1; display: flex; flex-direction: column; gap: 10px; }
.tdsh-bar i { display: block; height: 4px; background: rgba(255,255,255,.2); border-radius: 999px; }
.tdsh-bar div { display: flex; justify-content: space-between; }
.tdsh-pod .tdsh-bar .lbl { color: var(--dark-soft); }
.tdsh-pod-eps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.tdsh-pod-eps a { display: flex; flex-direction: column; justify-content: space-between; gap: 22px; min-height: 180px; padding: 24px; border: 1px solid rgba(255,255,255,.2); }
.tdsh-pod-eps a:hover { border-color: var(--moss-light); }
.tdsh-pod-eps .top { display: flex; justify-content: space-between; align-items: flex-start; }
.tdsh-pod-eps .th { width: 64px; height: 64px; object-fit: cover; display: block; background: var(--dark-panel); }
.tdsh-pod-eps .pl { width: 40px; height: 40px; border-radius: 999px; border: 1px solid rgba(255,255,255,.5); display: inline-flex; align-items: center; justify-content: center; }
.tdsh-pod-eps a:hover .pl { background: var(--moss-light); border-color: var(--moss-light); color: var(--ink); }
.tdsh-pod-eps .bd { display: flex; flex-direction: column; gap: 10px; }
.tdsh-pod-eps b { font-size: 21px; font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; }
.tdsh-pod-more { display: none; }

.tdsh [hidden] { display: none !important; }
.tdsh .dot { display: inline-block; width: 8px; height: 8px; border-radius: 999px; background: var(--moss); flex: none; }

/* ---------- segmentado ---------- */
.tdsh-seg { display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; border: 1px solid var(--ink); border-radius: 4px; padding: 3px; gap: 3px; }
.tdsh-seg button, .tdsh-seg .segl { height: 38px; padding: 0 14px; border: 0; border-radius: 2px; background: transparent; font-family: var(--font-mono); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); display: inline-flex; align-items: center; justify-content: center; }
.tdsh-seg .on { background: var(--ink); color: #fff; }
.tdsh-seg button:not(.on):hover, .tdsh-seg .segl:hover { background: var(--panel); color: var(--ink); }
.tdsh-seg-line { border-color: var(--line); border-radius: 6px; grid-auto-columns: auto; }

/* ---------- mapa ---------- */
.tdsh-map { display: grid; grid-template-columns: 821px minmax(0, 1fr); border: 1px solid var(--line); background: var(--panel); }
.tdsh-map-l { padding: 32px; display: flex; flex-direction: column; gap: 24px; border-right: 1px solid var(--line); min-width: 0; }
.tdsh-map-cols { display: flex; gap: 40px; }
.tdsh-map-col { display: flex; flex-direction: column; gap: 16px; min-width: 0; transition: opacity .2s; }
.tdsh-map-col:nth-child(1) { flex: 204 1 0; }
.tdsh-map-col:nth-child(2) { flex: 186 1 0; }
.tdsh-map-col:nth-child(3) { flex: 287 1 0; }
.tdsh-map-ch { display: flex; flex-direction: column; gap: 6px; border-bottom: 1px solid var(--ink); padding-bottom: 10px; }
.tdsh-map-ch .sub { font-size: 10px; letter-spacing: .12em; }
.tdsh-leaflet { height: 600px; background: var(--panel); }
.tdsh-leaflet.leaflet-container { font-family: var(--font-text); background: var(--panel); }
.nh-grat { font-family: var(--font-mono); font-size: 9px; letter-spacing: 1px; color: var(--muted); line-height: 12px; text-align: left; background: none; border: 0; }
.nh-mk-wrap { background: none; border: 0; display: flex; align-items: center; justify-content: center; }
.nh-mk { display: flex; align-items: center; justify-content: center; border-radius: 999px; background: rgba(74,90,43,.92); box-shadow: 0 0 0 5px rgba(110,138,58,.25); color: #fff; font-family: var(--font-mono); font-size: 10px; font-weight: 700; cursor: pointer; transition: opacity .2s; }
.nh-mk-wrap:hover .nh-mk { box-shadow: 0 0 0 7px rgba(110,138,58,.35); }
.nh-mk.sel { background: var(--ink); box-shadow: 0 0 0 5px rgba(14,14,12,.15); outline: 2px solid #fff; }
.nh-mk.dim { opacity: .25; }
.tdsh-map-legend { display: flex; gap: 24px; align-items: center; padding-top: 16px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.tdsh-map-legend > span { display: flex; align-items: center; gap: 8px; }
.tdsh-map-legend .dot { width: 10px; height: 10px; box-shadow: 0 0 0 4px rgba(110,138,58,.22); }
.tdsh-map-legend .dot.sel { background: var(--ink); box-shadow: 0 0 0 5px rgba(14,14,12,.12); }
.tdsh-map-legend .r { margin-left: auto; }
.tdsh-map-r { padding: 32px; display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.tdsh-map-sum { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--ink); }
.tdsh-sel-empty { font-size: 15px; line-height: 1.5; color: var(--muted); }
.tdsh-selected { margin-top: 0; background: var(--bg); border: 1px solid var(--ink); border-radius: 6px; padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.tdsh-selected .top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.tdsh-selected .h { font-size: 30px; line-height: .95; }
.tdsh-sel-list { list-style: none; margin: 0; padding: 0; max-height: 232px; overflow-y: auto; border-top: 1px solid var(--line); }
.tdsh-sel-list li { border-bottom: 1px solid var(--line); }
.tdsh .tdsh-sel-list a { display: grid; grid-template-columns: 58px minmax(0, 1fr) 24px; gap: 10px; align-items: center; padding: 10px 0; }
.tdsh-sel-list .d { font-family: var(--font-mono); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.tdsh-sel-list .t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tdsh-sel-list b { font-size: 15px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tdsh-sel-list small { font-size: 12px; color: var(--muted); }
.tdsh-sel-list .go { text-align: right; }
.tdsh-sel-list a:hover b { color: var(--moss); }

/* ---------- calendario ---------- */
.tdsh-cal-r { display: flex; flex-direction: column; gap: 14px; align-items: flex-end; }
.tdsh-filters { border: 1px solid var(--line); background: var(--panel); display: flex; flex-direction: column; }
.tdsh-f-row { display: flex; align-items: center; gap: 20px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.tdsh-f-row:last-child { border-bottom: 0; }
.tdsh-f-top { gap: 12px; }
.tdsh-f-l { width: 100px; flex: none; }
.tdsh-f-search { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 16px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); }
.tdsh-f-search:focus-within { border-color: var(--ink); }
.tdsh-f-search input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; font-size: 15px; color: var(--ink); }
.tdsh-f-select select { height: 46px; padding: 0 36px 0 16px; border: 1px solid var(--line); border-radius: 4px; background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%230E0E0C' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center; -webkit-appearance: none; appearance: none; font-size: 14px; font-weight: 600; color: var(--ink); max-width: 220px; }
.tdsh-f-more { border-color: var(--line); }
.tdsh-f-pick input { height: 42px; padding: 0 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); font-size: 14px; }
.tdsh-tgs { display: flex; flex-wrap: wrap; gap: 8px; }
.tdsh-grow { flex: 1; }
.tdsh .tg { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); color: var(--ink); font-size: 14px; font-weight: 500; white-space: nowrap; }
.tdsh .tg small { font-family: var(--font-mono); font-size: 10px; opacity: .6; }
.tdsh .tg:hover { border-color: var(--ink); }
.tdsh .tg.on { background: var(--ink); border-color: var(--ink); color: #fff; font-weight: 600; }
.tdsh-f-months { align-items: flex-end; padding-top: 18px; }
.tdsh-months { flex: 1; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.tdsh-months button { display: flex; flex-direction: column; gap: 8px; padding: 0; border: 0; background: transparent; text-align: left; color: var(--ink); }
.tdsh-months .bar { height: 48px; width: 100%; display: flex; align-items: flex-end; border-bottom: 1px solid var(--ink); }
.tdsh-months .bar i { display: block; width: 100%; background: var(--moss-200); }
.tdsh-months button.on .bar i, .tdsh-months button:hover .bar i { background: var(--moss); }
.tdsh-months .row { display: flex; justify-content: space-between; width: 100%; }
.tdsh-months .u { text-decoration: underline; text-underline-offset: 4px; color: var(--ink); }
.tdsh-f-active .tg b { font-weight: 700; }

.tdsh-list { display: flex; flex-direction: column; gap: 10px; }
.tdsh-mhead { display: flex; align-items: center; gap: 16px; padding: 28px 0 6px; }
.tdsh-mhead i { flex: 1; height: 1px; background: var(--line); }
.tdsh .race { display: grid; grid-template-columns: 120px 120px minmax(0, 1fr) 250px 56px; align-items: center; gap: 20px; height: 84px; padding: 0 14px 0 32px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); }
.tdsh .race:hover { border-color: var(--ink); background: var(--bg); color: var(--ink); }
.race .r-date { display: flex; flex-direction: column; gap: 2px; }
.race .r-dow { font-size: 10px; }
.race .r-dd { font-weight: 700; font-size: 28px; letter-spacing: -0.03em; }
.race .r-name { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.race .r-name b { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.race .r-flag { font-style: normal; font-family: var(--font-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; padding: 3px 8px; border: 1px solid var(--ink); border-radius: 999px; vertical-align: middle; margin-left: 6px; }
.race .r-where { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--muted); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.race .r-where svg { width: 13px; height: 13px; flex: none; }
.race .r-dist { display: flex; align-items: center; gap: 8px; }
.race .r-dist i { flex: 1; height: 1px; background: var(--ink); }
.race .dist { padding: 6px 10px; }
.race .r-go { width: 52px; height: 52px; border-radius: 999px; background: var(--ink); color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.tdsh .race:hover .r-go { background: var(--moss); }
.tdsh .tdsh-race-sponsor { display: flex; align-items: center; gap: 20px; height: 84px; padding: 0 14px 0 32px; border-radius: 999px; border: 1.5px dashed var(--moss); background: var(--sponsor-bg); margin-top: 6px; }
.tdsh-race-sponsor .lbl { color: var(--moss); width: 120px; flex: none; }
.tdsh-race-sponsor .t { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0; }
.tdsh-race-sponsor .t b { font-size: 20px; font-weight: 700; }
.tdsh-race-sponsor .t small { font-size: 14px; color: var(--muted); }
.tdsh-race-sponsor .btn { height: 52px; border-radius: 999px; }
.tdsh-empty { padding: 40px 0; font-size: 16px; color: var(--muted); }
.tdsh .lnk { border: 0; background: none; padding: 0; font-size: inherit; color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.tdsh-list-foot { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 8px; }

/* ---------- comunidad ---------- */
.tdsh-comm { background: var(--moss); color: #fff; padding: 120px var(--gutter); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; }
.tdsh-comm-l { grid-column: span 7; display: flex; flex-direction: column; gap: 28px; }
.tdsh-comm .lbl { color: var(--moss-100); }
.tdsh-comm h2 { font-size: 95px; line-height: .88; color: #fff; }
.tdsh-comm-r { grid-column: span 5; display: flex; flex-direction: column; justify-content: flex-end; gap: 28px; }
.tdsh-comm-r p { font-size: 19px; line-height: 1.55; color: var(--sponsor-bg); }
.tdsh-steps { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(255,255,255,.35); }
.tdsh-steps li { display: flex; gap: 20px; align-items: baseline; padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,.35); font-size: 18px; font-weight: 600; }
.tdsh-steps em { margin-left: auto; font-style: normal; font-size: 14px; font-weight: 400; color: var(--moss-100); }
.tdsh-comm-btns { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.tdsh .btn-white-lg { height: 54px; padding: 0 28px; background: #fff; border-color: #fff; color: var(--ink); font-size: 15px; }
.tdsh .btn-white-lg:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.tdsh-comm a.u { color: #fff; font-size: 14px; text-decoration: underline; text-underline-offset: 4px; }
.tdsh-comm a.u:hover { color: var(--moss-100); }

/* ---------- novedades + herramientas ---------- */
.tdsh-nt { padding: 120px var(--gutter); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; border-bottom: 1px solid var(--line); }
.tdsh-nt-l { grid-column: span 7; display: flex; flex-direction: column; gap: 28px; padding-right: 40px; }
.tdsh-nt-r { grid-column: span 5; display: flex; flex-direction: column; gap: 28px; }
.tdsh-nt-h { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; }
.tdsh-nt-h > div { display: flex; flex-direction: column; gap: 20px; }
.tdsh-nt-h h2 { font-size: 56px; }
.tdsh-posts { display: flex; flex-direction: column; border-top: 1px solid var(--ink); }
.tdsh-posts a { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 22px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); }
.tdsh-posts .ph { width: 96px; height: 96px; background: var(--panel); border: 1px solid var(--line); overflow: hidden; display: block; }
.tdsh-posts .ph img { width: 100%; height: 100%; object-fit: cover; display: block; filter: grayscale(1) contrast(1.15); transition: filter .2s, transform .3s; }
.tdsh-posts a:hover .ph img { filter: none; transform: scale(1.05); }
.tdsh-posts .tx { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.tdsh-posts b { font-size: 24px; font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; }
.tdsh-tools { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--ink); border-left: 1px solid var(--line); }
.tdsh-tools a { padding: 22px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 28px; }
.tdsh-tools a:hover { background: var(--panel); }
.tdsh-tools .h { font-size: 32px; letter-spacing: -0.03em; }
.tdsh-tools small { font-size: 14px; color: var(--muted); letter-spacing: 0; font-family: var(--font-text); font-style: normal; font-weight: 500; }
.tdsh-tools b { font-size: 15px; font-weight: 600; }

/* ---------- boletín ---------- */
.tdsh-news { padding: 72px var(--gutter); display: flex; justify-content: space-between; align-items: flex-end; gap: 48px; border-bottom: 1px solid var(--line); }
.tdsh-news > div { display: flex; flex-direction: column; gap: 18px; }
.tdsh-news h2 { font-size: 49px; }
.tdsh-news-f { width: 540px; max-width: 100%; }

/* ---------- footer ---------- */
.tdsh-foot { padding: 56px var(--gutter) 40px; display: flex; flex-direction: column; gap: 40px; overflow: hidden; }
.tdsh-foot-top { display: flex; justify-content: space-between; gap: 24px; }
.tdsh-foot-cols { display: flex; gap: 96px; font-size: 15px; }
.tdsh-foot-cols > div { display: flex; flex-direction: column; gap: 12px; }
.tdsh-foot-brand img { height: 18px; width: auto; }

/* ---------- acceso flotante (solo móvil) ---------- */
.tdsh-fab { display: none; }

/* ================= responsive ================= */
@media (max-width: 1279px) {
  :root { --gutter: 40px; }
  .tdsh-map { grid-template-columns: minmax(0, 1fr); }
  .tdsh-map-l { border-right: 0; border-bottom: 1px solid var(--line); }
  .tdsh-f-top { flex-wrap: wrap; }
  .tdsh-f-search { flex-basis: 100%; }
  .tdsh .race { grid-template-columns: 100px 110px minmax(0, 1fr) 190px 56px; gap: 16px; padding-left: 24px; }
  .tdsh-comm h2 { font-size: 74px; }
  .tdsh-foot-cols { gap: 56px; }
  .tdsh-logo { flex-basis: auto; }
  .tdsh-nav-r { flex-basis: auto; }
  .tdsh-links { gap: 24px; }
  .tdsh-nav-search { width: 180px; }
  .tdsh-hero h1 { font-size: 74px; }
  .tdsh-sec h2, .tdsh-pod h2 { font-size: 67px; }
  .tdsh-pod-ep { grid-template-columns: 340px minmax(0, 1fr); gap: 40px; }
  .tdsh-pod-art { height: 340px; }
  .tdsh-pod-art .t2 { font-size: 72px; }
  .tdsh-pod-main h3 { font-size: 38px; }
  .tdsh-feat-photo { width: 300px; }
  .tdsh-feat-big { font-size: 96px; }
}

@media (max-width: 1023px) {
  .tdsh-links, .tdsh-nav-search { display: none; }
  .tdsh-f-l { width: 80px; }
  .tdsh-months { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 16px; }
  .tdsh-cal-r { align-items: flex-start; }
  .tdsh .race { grid-template-columns: 90px minmax(0, 1fr) 150px 52px; }
  .tdsh .race .r-sport { display: none; }
  .tdsh-comm { padding: 80px var(--gutter); row-gap: 40px; }
  .tdsh-comm-l, .tdsh-comm-r { grid-column: 1 / -1; }
  .tdsh-comm h2 { font-size: 63px; }
  .tdsh-nt { padding: 80px var(--gutter); row-gap: 56px; }
  .tdsh-nt-l, .tdsh-nt-r { grid-column: 1 / -1; padding-right: 0; }
  .tdsh-news { flex-direction: column; align-items: flex-start; }
  .tdsh-foot-top { flex-direction: column; }
  .tdsh-hero { height: auto; min-height: 720px; }
  .tdsh-hero-img { width: 100%; opacity: .35; }
  .tdsh-hero h1 { font-size: 58px; }
  .tdsh-hero-row { flex-direction: column; align-items: stretch; gap: 28px; }
  .tdsh-hero-in { gap: 48px; }
  .tdsh-sec { padding: 80px var(--gutter) 72px; }
  .tdsh-sec-head, .tdsh-pod-head { flex-direction: column; align-items: flex-start; gap: 24px; }
  .tdsh-pod-right { align-items: flex-start; }
  .tdsh-pod-right p { text-align: left; }
  .tdsh-pod-links { justify-content: flex-start; }
  .tdsh-feat { grid-template-columns: 1fr; min-height: 0; }
  .tdsh-feat-main { grid-column: auto; }
  .tdsh-feat-side { display: grid; grid-template-columns: 1fr 1fr; }
  .tdsh-sponsor { grid-column: span 2; }
  .tdsh-pod { padding: 80px var(--gutter); }
  .tdsh-pod-ep { grid-template-columns: 1fr; }
  .tdsh-pod-art { height: 280px; }
  .tdsh-pod-eps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 639px) {
  :root { --gutter: 20px; }
  .tdsh-nav { height: 60px; }
  .tdsh-nav-send-long { display: none; }
  .tdsh-nav-send-short { display: inline; }
  .tdsh-status { height: 32px; }
  .tdsh-status > div:last-child { min-width: 0; overflow: hidden; }
  .tdsh-status > div:last-child a { overflow: hidden; text-overflow: ellipsis; }
  .tdsh-status > div:last-child .hide-sm { display: none; }
  .tdsh-status > div:first-child { display: none; }
  .tdsh-hero { min-height: 0; }
  .tdsh-hero-in { padding: 24px var(--gutter) 28px; gap: 28px; }
  .tdsh-hero-img { width: 100%; opacity: .5; object-position: 30% center; }
  .tdsh-hero-top > .lbl { display: none; }
  .tdsh-ep-pill { height: 40px; }
  .tdsh-ep-pill b { display: none; }
  .tdsh-hero h1 { font-size: 35px; line-height: .92; }
  .tdsh-hero-btns .btn { flex: 1; padding: 0 12px; }
  .tdsh-hero-btns .btn:not(.btn-ink) { background: var(--bg); }
  .tdsh-hero-mid { gap: 20px; }
  .tdsh-hero-form p { font-size: 16px; }
  .tdsh-search { height: 52px; }
  .tdsh-counts { gap: 20px; padding: 14px 16px; justify-content: space-between; }
  .tdsh-counts .h { font-size: 36px; }
  .tdsh-hero-in { padding-bottom: 28px; }
    .tdsh-sec { padding: 56px var(--gutter) 48px; gap: 28px; }
  .tdsh-sec h2, .tdsh-pod h2 { font-size: 39px; }
  .tdsh-sec-head > .btn { display: none; }
  .tdsh-feat-main { flex-direction: column; }
  .tdsh-feat-photo { width: 100%; height: 300px; border-right: 0; border-bottom: 1px solid var(--line); }
  .tdsh-feat-big { font-size: 84px; }
  .tdsh-feat-body { padding: 20px; }
  .tdsh-feat-info h3 { font-size: 28px; }
  .tdsh-feat-stats .h { font-size: 30px; line-height: 34px; }
  .tdsh-feat-stats .h.reg { font-size: 20px; line-height: 34px; }
  .tdsh-feat-side { grid-template-columns: 1fr; }
  .tdsh-sponsor { grid-column: auto; }
  .tdsh-pod { padding: 56px var(--gutter); gap: 32px; }
  .tdsh-pod-right p { font-size: 15px; }
  .tdsh-pod-links .btn:not(.btn-white) { display: none; }
  .tdsh-pod-ep { padding-top: 24px; gap: 24px; }
  .tdsh-pod-art { height: auto; aspect-ratio: 1 / 1; max-height: 340px; }
  .tdsh-pod-art:not(.has-img) { display: none; }
  .tdsh-pod-main h3 { font-size: 21px; line-height: 1.05; }
  .tdsh-pod-main p { font-size: 15px; }
  .tdsh-play { width: 56px; height: 56px; }
  .tdsh-pod-eps { grid-template-columns: 1fr; gap: 0; }
  .tdsh-pod-eps a { min-height: 0; flex-direction: row-reverse; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 0; border: 0; border-top: 1px solid rgba(255,255,255,.2); }
  .tdsh-pod-eps .top { flex: none; }
  .tdsh-pod-eps .th { width: 56px; height: 56px; }
  .tdsh-pod-eps .pl { display: none; }
  .tdsh-pod-eps .bd { gap: 6px; }
  .tdsh-pod-eps b { font-size: 17px; }
  .tdsh-map-l { padding: 12px; gap: 12px; }
  .tdsh-map-cols { gap: 6px; }
  .tdsh-map-col { gap: 10px; }
  .tdsh-map-ch { padding-bottom: 8px; }
  .tdsh-map-ch .lbl { font-size: 9px; letter-spacing: .04em; white-space: nowrap; }
  .tdsh-map-legend { display: none; }
  .tdsh-leaflet { height: 380px; }
  .tdsh-map-ch .sub { display: none; }
  .tdsh-map-legend .r { margin-left: 0; width: 100%; }
  .tdsh-map-r { padding: 20px; }
  .tdsh-f-row { flex-direction: column; align-items: stretch; gap: 10px; padding: 14px; }
  .tdsh-f-l { width: auto; }
  .tdsh-f-top .tdsh-seg-line { display: flex; overflow-x: auto; }
  .tdsh-f-top .tdsh-seg-line button { flex: none; }
  .tdsh-f-select select { width: 100%; max-width: none; }
  .tdsh .tdsh-f-more { display: none; }
  .tdsh-tgs { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; }
  .tdsh-f-row > .lbl:not(.tdsh-f-l), .tdsh-f-row > .tg { display: none; }
  .tdsh-f-months { align-items: stretch; }
  .tdsh-months { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tdsh-mhead { padding-top: 20px; }
  .tdsh .race { grid-template-columns: 56px minmax(0, 1fr) 40px; height: auto; border-radius: 16px; padding: 14px 14px 14px 16px; gap: 12px; }
  .tdsh .race .r-dist { display: none; }
  .race .r-dow { display: none; }
  .race .r-dd { font-size: 22px; line-height: 1; }
  .race .r-name b { font-size: 17px; white-space: normal; }
  .race .r-go { width: 40px; height: 40px; }
  .tdsh .tdsh-race-sponsor { flex-wrap: wrap; height: auto; border-radius: 16px; padding: 16px; gap: 10px; }
  .tdsh-race-sponsor .lbl { width: 100%; }
  .tdsh-list-foot .btn { flex: 1; }
  .tdsh-comm { padding: 56px var(--gutter); }
  .tdsh-comm h2 { font-size: 46px; }
  .tdsh-comm-r p { font-size: 16px; }
  .tdsh-steps li { font-size: 16px; }
  .tdsh-nt { padding: 56px var(--gutter); }
  .tdsh-nt-h h2 { font-size: 39px; }
  .tdsh-posts a { grid-template-columns: 72px minmax(0, 1fr); gap: 16px; }
  .tdsh-posts .ph { width: 72px; height: 72px; }
  .tdsh-posts b { font-size: 18px; }
  .tdsh-tools a { padding: 16px; gap: 20px; }
  .tdsh-tools .h { font-size: 26px; }
  .tdsh-news { padding: 48px var(--gutter); }
  .tdsh-news h2 { font-size: 32px; }
  .tdsh-foot { padding: 40px var(--gutter) 24px; gap: 28px; }
  .tdsh-foot-cols { gap: 28px; flex-wrap: wrap; }
  .tdsh-fab { position: fixed; left: 50%; bottom: 16px; transform: translate(-50%, 140%); display: flex; z-index: 60; background: var(--ink); border-radius: 999px; padding: 4px; transition: transform .25s; }
  .tdsh-fab.on { transform: translate(-50%, 0); }
  .tdsh .tdsh-fab a { color: #fff; font-family: var(--font-mono); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: 12px 18px; border-radius: 999px; }
  .tdsh .tdsh-fab a:hover { background: var(--moss); color: #fff; }
}

/* ---------- diálogo "Configura tu carrera" (al guardar una carrera) ---------- */
.sv { border: 1px solid var(--ink); padding: 0; width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 32px); background: var(--bg); color: var(--ink); font-family: var(--font-text); }
.sv::backdrop { background: rgba(14,14,12,.55); backdrop-filter: blur(3px); }
.sv-in { position: relative; padding: 32px; display: flex; flex-direction: column; gap: 24px; }
.tdsh .sv-x { position: absolute; right: 12px; top: 12px; width: 36px; height: 36px; border: 0; background: transparent; border-radius: 999px; font-size: 15px; color: var(--ink); }
.tdsh .sv-x:hover { background: var(--panel); }
.sv-ok { display: flex; flex-direction: column; gap: 12px; padding-right: 32px; }
.sv-ok .lbl { color: var(--moss); }
.sv-ok .h { font-size: clamp(24px, 4vw, 34px); line-height: .98; margin: 0; }
.sv-q h3 { margin: 0 0 12px; font-size: 15px; font-weight: 700; }
.sv-pills, .sv-prio { display: flex; gap: 8px; flex-wrap: wrap; }
.tdsh .sv-pills button { height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--ink); background: var(--bg); color: var(--ink); font-family: var(--font-mono); font-size: 12px; font-weight: 700; }
.tdsh .sv-pills button:hover { background: var(--panel); }
.tdsh .sv-pills button.on, .tdsh .sv-prio button.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.tdsh .sv-prio button { width: 52px; height: 52px; border-radius: 999px; border: 1px solid var(--ink); background: var(--bg); color: var(--ink); font-family: var(--font-mono); font-size: 16px; font-weight: 700; }
.tdsh .sv-prio button:hover { background: var(--panel); }
.sv-legend { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); }
.sv-legend b { display: inline-block; width: 18px; color: var(--ink); font-family: var(--font-mono); }
.sv-help { margin: 0; font-size: 14px; line-height: 1.5; color: var(--muted); }
.sv-help a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.sv-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.sv-status { font-size: 13px; color: var(--moss); font-weight: 600; }
.sv-status.bad { color: #b3261e; }
@media (max-width: 639px) {
  .sv { margin: auto auto 0; width: 100vw; max-width: 100vw; border-left: 0; border-right: 0; border-bottom: 0; }
  .sv-in { padding: 24px 20px calc(20px + env(safe-area-inset-bottom)); }
}

/* ---------- "Próximos desafíos": misma barra y mismas tarjetas que Explorar ---------- */
.nh-filterbox { display: flex; flex-direction: column; } /* una sola pieza: el espacio entre bloques de la sección no la separa */
.nh-bar { border: 1px solid var(--ink); flex-wrap: wrap; row-gap: 10px; padding: 12px 20px; margin-bottom: 8px; }
.nh-bar .ex-search { width: 250px; }
.nh-bar .ex-pop { z-index: 70; }
.nh-active { margin-bottom: 8px; }
/* la fila de tipos queda pegada a la barra, como una sola pieza */
.nh-bar.has-sub { margin-bottom: 0; border-bottom-color: var(--line); }
.nh-subbar { border: 1px solid var(--ink); border-top: 0; margin-bottom: 8px; padding: 10px 20px; }
.tdsh-list.nh-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; align-items: start; }
.nh-cards .ex-month, .nh-cards .ex-sponsor, .nh-cards .tdsh-empty { grid-column: 1 / -1; }
.nh-cards .ex-month { padding-top: 24px; }
.nh-cards .ex-month:first-child { padding-top: 12px; }
.nh-cards .ex-card { margin-bottom: 12px; }
@media (max-width: 1023px) {
  .nh-bar { overflow: visible; padding: 12px 16px; position: relative; }
  .nh-bar .ex-pills { flex-wrap: wrap; }
  .nh-bar .ex-search { width: 100%; }
  .tdsh-list.nh-cards { grid-template-columns: 1fr; }
}
@media (max-width: 639px) {
  .tdsh .nh-bar { padding: 10px 12px; gap: 8px; row-gap: 8px; }
  .tdsh .nh-bar .ex-search { order: 1; flex: 1 1 0; min-width: 0; width: auto; height: 40px; }
  .tdsh .nh-bar .nh-w-filt { order: 2; }
  .tdsh .nh-bar .ex-pills { order: 3; flex: 0 0 100%; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -12px; padding: 0 12px 2px; width: calc(100% + 24px); }
  .tdsh .nh-bar .ex-pills::-webkit-scrollbar { display: none; }
  .tdsh .nh-bar .ex-pills .ex-tg { flex: none; }
  .tdsh .nh-bar .nh-w-date { order: 4; }
  .tdsh .nh-bar .nh-w-dist { order: 5; }
  .tdsh .nh-bar .ex-sep { display: none; }
  .tdsh .nh-bar .ex-tg { height: 34px; padding: 0 13px; font-size: 14px; }
  .tdsh .nh-bar .ex-seg { order: 6; margin-left: auto; width: auto; display: flex; padding: 2px; }
  .tdsh .nh-bar .ex-seg button { height: 30px; padding: 0 12px; }
  .tdsh .nh-bar .ex-pop, .nh-bar .ex-pop-wide { position: fixed; left: 10px; right: 10px; top: auto; bottom: calc(86px + env(safe-area-inset-bottom)); width: auto; min-width: 0; max-height: calc(100vh - 180px); overflow-y: auto; z-index: 90; margin: 0; box-shadow: 0 -8px 40px rgba(0,0,0,.25); }
}

/* ---------- enlace a Instagram en el menú ---------- */
.tdsh .nav-ig { display: inline-flex; align-items: center; color: var(--muted); }
.tdsh .nav-ig:hover { color: var(--moss); }
.tdsh .ex-links .nav-ig, .tdsh .tdsh-links .nav-ig { padding-bottom: 0; border-bottom: 0; }

/* ---------- barra superior (lo más útil primero + invitación a publicar) ---------- */
.tb { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 42px; padding: 0 var(--gutter); background: var(--ink); color: #fff; font-size: 13px; }
.tdsh .tb a { color: #fff; }
.tdsh .tb a:hover { color: #fff; }
.tb-l { display: flex; align-items: center; gap: 10px; min-width: 0; white-space: nowrap; }
.tb-l b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.tb-full { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.tb-short { display: none; }
.tdsh .tb-l .lbl { color: var(--moss-light); font-size: 10px; }
.tb-arrow { transition: transform .15s; }
.tb-l:hover .tb-arrow { transform: translateX(3px); }
.tb-dot { width: 7px; height: 7px; border-radius: 999px; background: var(--moss-light); flex: none; animation: tb-pulse 2.2s ease-in-out infinite; }
@keyframes tb-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(169,179,138,.55); } 50% { box-shadow: 0 0 0 6px rgba(169,179,138,0); } }
.tb-r { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; white-space: nowrap; flex: none; }
.tb-r u { text-underline-offset: 3px; }
.tb-r:hover u { text-decoration-thickness: 2px; }
.tb-r-short { display: none; }
@media (prefers-reduced-motion: reduce) { .tb-dot { animation: none; } }
@media (max-width: 639px) {
  .tb { padding: 0 16px; min-height: 38px; font-size: 12px; }
  .tb-r-long, .tb-arrow, .tb-full { display: none; }
  .tb-r-short, .tb-short { display: inline; }
}

/* el menú del home se queda fijo arriba al hacer scroll */
.home-page .ex-nav { position: sticky; top: 0; background: var(--bg); }

/* ---------- franja verde de novedades (se desplaza sola; pausa al pasar el cursor) ---------- */
.tk { background: var(--moss); color: #fff; height: 54px; overflow: hidden; display: flex; align-items: center; }
.tk-track { display: flex; width: max-content; animation: tk-scroll 70s linear infinite; }
.tk:hover .tk-track, .tk:focus-within .tk-track { animation-play-state: paused; }
.tk-set { display: flex; align-items: center; list-style: none; margin: 0; padding: 0; flex: none; }
.tk-set li { display: flex; align-items: center; white-space: nowrap; }
.tk-set li::after { content: '◆'; font-size: 9px; opacity: .55; margin: 0 28px; }
.tdsh .tk a { display: inline-flex; align-items: center; gap: 12px; color: #fff; font-size: 14px; font-weight: 600; }
.tdsh .tk a:hover span { text-decoration: underline; text-underline-offset: 4px; }
.tk-tag { font-family: var(--font-mono); font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; background: rgba(0,0,0,.28); padding: 5px 10px; border-radius: 999px; }
@keyframes tk-scroll { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .tk { overflow-x: auto; }
  .tk-track { animation: none; }
  .tk-set[aria-hidden="true"] { display: none; }
}
@media (max-width: 639px) {
  .tk { height: 46px; }
  .tdsh .tk a { font-size: 13px; }
  .tk-set li::after { margin: 0 20px; }
}

.sv-foot-btns { display: inline-flex; gap: 10px; }
.tdsh .sv-foot-btns .btn[disabled] { opacity: .4; cursor: not-allowed; }
.tdsh .sv-foot-btns .btn[disabled]:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

/* Aviso breve (compartir / copiar) */
.tds-toast{position:fixed;left:50%;bottom:28px;transform:translate(-50%,20px);background:var(--ink);color:#fff;padding:12px 20px;font:600 13px/1 'Space Grotesk',sans-serif;z-index:200;opacity:0;pointer-events:none;transition:opacity .2s,transform .2s}
.tds-toast.on{opacity:1;transform:translate(-50%,0)}

/* Menú de compartir (escritorio) */
.tds-share{position:fixed;z-index:210;min-width:190px;background:#fff;border:1.5px solid var(--ink);box-shadow:0 12px 32px rgba(0,0,0,.18);display:flex;flex-direction:column;padding:6px}
.tds-share a,.tds-share button{display:block;width:100%;text-align:left;background:none;border:0;border-radius:0;padding:11px 14px;font:600 14px/1.2 'Space Grotesk',sans-serif;color:var(--ink);cursor:pointer;text-decoration:none}
.tds-share a:hover,.tds-share button:hover{background:var(--ink);color:#fff}

/* Cierre común de ficha de carrera y notas (shared/_end_blocks): carreras → notas → podcast */
.mb { padding: 96px var(--gutter) 24px; display: flex; flex-direction: column; gap: 72px; }
.mb-sec { display: flex; flex-direction: column; gap: 26px; }
.mb-head { display: flex; flex-direction: column; gap: 14px; }
.mb-head h2 { margin: 0; font-size: clamp(26px, 3.2vw, 42px); }
.mb-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px 24px; }
.mb-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.mb-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tdsh .mb-card { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.mb-card .ph { aspect-ratio: 3 / 2; background: var(--panel); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.tdsh .mb-card .ph img { width: 100%; height: 100%; object-fit: cover; }
.mb-card .ph em, .rc-ep .ph em { font: 700 12px/1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; font-style: normal; color: var(--muted); }
.mb-card b { font-size: 17px; line-height: 1.3; }
.mb-card small { font-size: 13px; color: var(--muted); }
.tdsh .mb-card:hover b { color: var(--moss); }
.tdsh .rc-ep { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px; align-items: center; border: 1px solid var(--line); padding: 16px; }
.rc-ep .ph { aspect-ratio: 1; background: var(--panel); overflow: hidden; }
.tdsh .rc-ep .ph img { width: 100%; height: 100%; object-fit: cover; }
.rc-ep-tx { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.rc-ep-tx b { font-size: 20px; line-height: 1.25; }
.rc-ep-tx > span:not(.lbl):not(.rc-ep-go) { font-size: 14px; line-height: 1.5; color: var(--muted); }
.rc-ep-go { font: 700 13px/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; }
.tdsh .rc-ep:hover { border-color: var(--ink); }
.tdsh .rc-ep:hover b { color: var(--moss); }
@media (max-width: 1023px) { .mb-4, .mb-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 639px) {
  .mb { padding-top: 64px; gap: 56px; }
  .mb-4, .mb-3 { gap: 22px 16px; }
  .mb-card b { font-size: 15px; }
  .tdsh .rc-ep { grid-template-columns: 96px minmax(0, 1fr); gap: 14px; padding: 12px; }
  .rc-ep-tx > span:not(.lbl):not(.rc-ep-go) { display: none; }
  .rc-ep-tx b { font-size: 16px; }
}

/* Hero en escritorio: se adapta al alto de la pantalla (cabecera y barra verde descontadas) para que el buscador,
   los botones y los tres meses se vean completos sin hacer scroll, también en notebooks de 13". */
@media (min-width: 1024px) {
  .tdsh-hero { height: clamp(500px, calc(100vh - 170px), 820px); }
  .tdsh-hero-in { padding-top: clamp(24px, 5vh, 64px); padding-bottom: clamp(20px, 3vh, 40px); }
  .tdsh-hero h1 { font-size: clamp(46px, min(6.2vw, 9.7vh), 88px); }
  .tdsh-hero-mid { gap: clamp(16px, 3.4vh, 36px); }
  .tdsh-hero-form { gap: clamp(12px, 2vh, 18px); }
  .tdsh-hero-form p { font-size: clamp(16px, 2.2vh, 19px); }
  .tdsh-counts { padding: clamp(12px, 2vh, 20px) 28px; }
  .tdsh-counts .h { font-size: clamp(36px, 6.5vh, 56px); }
}

/* Fotos en blanco y negro con un poco de grano (ruido) encima, como el hero del home. */
.ex-card .ph, .tdsh-posts .ph, .mb-card .ph { position: relative; }
.nw-fph::after, .nw-ph::after, .ex-card .ph::after, .st-next-photo::after, .rc-media:has(> .rc-photo)::after, .tdsh-feat-photo:has(> img)::after, .tdsh-posts .ph::after, .mb-card .ph:has(> img)::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background-image: url(/nuevo-home/grain.png); background-size: 128px 128px;
  mix-blend-mode: hard-light; opacity: .18;
}
/* Las miniaturas de "Sigue explorando" también van en gris (volvían a color), y recuperan el color al pasar el cursor. */
.mb-card .ph img { filter: grayscale(1) contrast(1.12); transition: filter .2s; }
.tdsh .mb-card:hover .ph img { filter: none; }
@media (prefers-reduced-data: reduce) { .nw-fph::after, .nw-ph::after, .ex-card .ph::after, .st-next-photo::after, .rc-media:has(> .rc-photo)::after, .tdsh-feat-photo:has(> img)::after, .tdsh-posts .ph::after, .mb-card .ph:has(> img)::after { display: none; } }

/* Etiquetas y textos sobre las fotos van por encima del grano. */
.tdsh-feat-tags, .tdsh-feat-big, .rc-media-tags, .st-next-photo .st-chip { z-index: 2; }

/* Hero en escritorio: el bloque principal queda centrado en vertical entre la fila de arriba y el borde inferior. */
@media (min-width: 1024px) {
  .tdsh-hero-mid { margin-block: auto; }
}

.tdsh .ext-ic { display: inline-block; vertical-align: -1px; margin-left: 2px; flex: none; }
