/* Course page (/rrhh-el-salvador/). Loads after styles.css and reuses its tokens, nav pill, hero and closing panel. */

@font-face { font-family: "Caveat"; src: url("/fonts/caveat-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
.course {
  --hand: "Caveat", "Segoe Print", "Bradley Hand", cursive;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --cs: #f9f5ec;
  --cs2: #ede4d2;
  --muted: var(--ink-2);
  --ok: #1f6b4f;
  --ok-soft: #dcebdd;
  --bad: #a3231b;
  --bad-soft: #f6ddd4;
  --mod: var(--slate-deep);
  --on: var(--cream);
  --acc: var(--slate-deep);
  --chip: rgb(247 242 232 / 0.2);
}
html { scroll-padding-top: 150px; }
.course .pill__cta { display: inline-block; }
.course .ic { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* module colors, taken from the portfolio palette */
.c-blue { --mod: var(--slate-deep); --acc: var(--slate-deep); }
.c-blue2 { --mod: var(--slate); --acc: var(--slate-deep); }
.c-navy { --mod: var(--ink); --acc: var(--slate-ink); }
.c-amber { --mod: var(--terra-deep); --acc: var(--terra-deep); }

/* HERO */
.chero__grid { position: relative; display: grid; gap: 34px; align-items: end; }
.chero h1 { max-width: 16ch; }
.chero__facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.chero__facts div { padding: 16px 18px; border-radius: 18px; background: rgb(247 242 232 / 0.08); border: 1px solid rgb(247 242 232 / 0.2); }
.chero__facts b { display: block; font-size: 2rem; font-weight: 900; line-height: 1; color: var(--terra-soft); }
.chero__facts span { display: block; margin-top: 6px; font-size: 0.9rem; color: rgb(247 242 232 / 0.82); }
.chero__note { margin-top: 26px; font-size: 0.9rem; color: rgb(247 242 232 / 0.7); }

/* TOOLBAR (progress + law toggle + mobile module chips) */
.ctools { position: sticky; top: 78px; z-index: 20; margin: 0 0 30px; padding: 8px 10px 8px 20px; border-radius: 26px; background: rgb(249 245 236 / 0.94); backdrop-filter: blur(10px); border: 1px solid var(--line); }
.ctools__row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.prog { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 190px; font-size: 0.9rem; font-weight: 700; color: var(--ink-2); }
.prog .trk { flex: 1; height: 10px; min-width: 80px; border-radius: 99px; background: var(--line); overflow: hidden; }
.prog .fill { display: block; height: 100%; width: 0; background: var(--terra); border-radius: 99px; transition: width 0.3s; }
.mnav { display: none; position: sticky; top: 78px; z-index: 20; margin: -14px 0 26px; padding: 8px 12px; overflow-x: auto; white-space: nowrap; -webkit-overflow-scrolling: touch; border-radius: 999px; background: rgb(249 245 236 / 0.94); backdrop-filter: blur(10px); border: 1px solid var(--line); }
.mnav a { display: inline-block; margin-right: 6px; padding: 6px 13px; border-radius: 999px; font-size: 0.85rem; font-weight: 700; text-decoration: none; background: var(--cs2); border: 1px solid var(--line); }
.mnav a.on { background: var(--slate-deep); border-color: var(--slate-deep); color: var(--cream); }

/* LAYOUT */
.cwrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; }
.side { display: none; }
@media (min-width: 980px) {
  .cwrap { grid-template-columns: 236px minmax(0, 1fr); gap: 40px; }
  .side { display: block; position: sticky; top: 150px; align-self: start; max-height: calc(100vh - 170px); overflow: auto; padding-right: 4px; }
  .mnav { display: none !important; }
}
@media (max-width: 979px) {
  .mnav { display: block; }
  .ctools { position: static; backdrop-filter: none; margin-bottom: 18px; }
}
.side a { display: flex; gap: 10px; align-items: center; padding: 7px 10px; margin-bottom: 2px; border-radius: 12px; text-decoration: none; color: var(--ink-2); font-size: 0.93rem; line-height: 1.3; font-weight: 500; }
.side a .dot { width: 11px; height: 11px; border-radius: 50%; background: var(--mod); flex: none; }
.side a:hover { background: var(--cs2); color: var(--ink); }
.side a.on { background: var(--cs); color: var(--ink); font-weight: 700; border: 1px solid var(--line); padding: 6px 9px; }
.side a.done::after { content: "\2713"; margin-left: auto; color: var(--ok); font-weight: 900; }
.side .grp { margin: 18px 10px 6px; font-size: 0.8rem; font-weight: 700; color: var(--terra-deep); }
.cmain { min-width: 0; }

/* WHAT CHANGED + MAP */
.now h2, .map h2 { font-size: clamp(1.5rem, 3.4vw, 2rem); line-height: 1.15; }
.nowg { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin-top: 16px; }
.nowc { background: var(--cs); border: 1px solid var(--line); border-radius: 20px; padding: 16px 18px; }
.nowc .top2 { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.nowc .ib { width: 38px; height: 38px; border-radius: 12px; background: var(--mod); color: var(--on); display: grid; place-items: center; font-size: 1.3rem; flex: none; }
.nowc b { font-size: 1.05rem; line-height: 1.2; }
.nowc p { font-size: 0.95rem; color: var(--ink-2); line-height: 1.55; }
.map { margin-top: 48px; }
.map p.s { margin: 6px 0 16px; color: var(--ink-2); }
.mapg { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.tile { display: flex; flex-direction: column; justify-content: space-between; text-decoration: none; background: var(--mod); color: var(--on); border-radius: 22px; padding: 14px 16px; min-height: 148px; position: relative; transition: transform 0.15s; }
.tile:hover { transform: translateY(-3px); }
.tile .n { font-size: 2.8rem; font-weight: 900; line-height: 1; }
.tile b { font-size: 1.02rem; line-height: 1.25; display: block; margin-top: 8px; }
.tile small { display: block; font-size: 0.85rem; opacity: 0.85; margin-top: 2px; }
.tile .ti { position: absolute; right: 14px; top: 14px; font-size: 1.6rem; opacity: 0.85; }
.tile.done::after { content: "\2713  visto"; position: absolute; right: 12px; bottom: 12px; font-size: 0.78rem; font-weight: 700; background: var(--cream); color: var(--mod); padding: 1px 10px; border-radius: 99px; }

/* MODULES */
.mod { padding-top: 60px; }
.mb { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 6px 22px; align-items: center; background: var(--mod); color: var(--on); border-radius: 26px; padding: 22px 28px; margin-bottom: 22px; }
.mb .num { font-size: clamp(3.6rem, 9vw, 6.4rem); font-weight: 900; line-height: 0.9; letter-spacing: -0.04em; }
.mb h2 { font-size: clamp(1.5rem, 3.6vw, 2.4rem); line-height: 1.12; }
.mb .min { display: inline-block; margin-top: 10px; background: var(--chip); padding: 3px 12px; border-radius: 99px; font-size: 0.85rem; font-weight: 700; }
.mb .big { font-size: clamp(3rem, 7vw, 5rem); opacity: 0.9; }
.idea { background: color-mix(in srgb, var(--mod) 9%, var(--cs)); border: 1px solid var(--line); border-radius: 18px; padding: 16px 22px; font-weight: 700; font-size: clamp(1.1rem, 2.2vw, 1.3rem); line-height: 1.45; margin: 0 0 18px; }
.two2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 6px; }
@media (max-width: 760px) { .two2 { grid-template-columns: minmax(0, 1fr); } }
.why, .learn { background: var(--cs); border: 1px solid var(--line); border-radius: 20px; padding: 16px 20px; }
.learn { background: color-mix(in srgb, var(--mod) 8%, var(--cs)); }
.why h3, .learn h3 { font-size: 1rem; margin-bottom: 6px; color: var(--acc); }
.why p { font-size: 1rem; }
.learn ul { list-style: none; }
.learn li { padding-left: 26px; position: relative; margin: 5px 0; font-size: 1rem; }
.learn li::before { content: "\2713"; position: absolute; left: 0; color: var(--acc); font-weight: 900; }
.figs { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin: 20px 0; }
.fig { background: var(--cs); border: 1px solid var(--line); border-radius: 18px; padding: 14px 16px; }
.fig::before, .path::before, .calc::before { content: ""; display: block; width: 36px; height: 5px; margin-bottom: 10px; border-radius: 99px; background: var(--mod); }
.fig b { display: block; font-size: 1.6rem; font-weight: 900; line-height: 1.1; color: var(--acc); }
.fig span { display: block; font-size: 0.9rem; line-height: 1.45; color: var(--ink-2); margin-top: 6px; }
.read { max-width: 46em; }
.read p { margin: 12px 0; }
.read h3 { font-size: 1.4rem; margin: 28px 0 6px; line-height: 1.2; }
.steps { list-style: none; counter-reset: s; margin: 14px 0; padding: 0; }
.steps li { counter-increment: s; position: relative; padding: 4px 0 4px 48px; margin: 12px 0; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 2px; width: 34px; height: 34px; border-radius: 50%; background: var(--mod); color: var(--on); display: grid; place-items: center; font-weight: 900; font-size: 1rem; }
.ex { background: color-mix(in srgb, var(--terra) 10%, var(--cs)); border: 1px solid var(--line); border-radius: 16px; padding: 12px 18px; margin: 14px 0; font-size: 1rem; }
.ex b:first-child { color: var(--terra-deep); }
details.law { margin: 22px 0; background: var(--cs); border: 1px solid var(--line); border-radius: 18px; }
details.law > summary { cursor: pointer; padding: 14px 20px; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px; align-items: center; }
details.law > summary::-webkit-details-marker { display: none; }
details.law > summary::after { content: "+"; font-size: 1.5rem; line-height: 1; color: var(--acc); font-weight: 700; }
details.law[open] > summary::after { content: "\2212"; }
details.law > .in { padding: 2px 22px 16px; border-top: 1px solid var(--line); }
.in ul { margin: 10px 0 0; padding-left: 20px; list-style: disc; }
.in li { margin: 8px 0; }
details.try { margin: 18px 0; background: color-mix(in srgb, var(--terra) 14%, var(--cs)); border: 1px solid var(--line); border-radius: 18px; }
details.try > summary { cursor: pointer; padding: 13px 20px; font-weight: 700; list-style: none; }
details.try > summary::-webkit-details-marker { display: none; }
details.try > summary::before { content: "?"; display: inline-grid; place-items: center; width: 26px; height: 26px; margin-right: 10px; border-radius: 50%; background: var(--terra-deep); color: var(--cream); font-weight: 900; }
details.try > .in2 { padding: 2px 22px 14px 56px; }
.tag { display: inline-block; font-size: 0.78rem; font-weight: 700; padding: 1px 9px; border-radius: 8px; background: color-mix(in srgb, var(--mod) 14%, var(--cs)); color: var(--acc); white-space: nowrap; vertical-align: 1px; }
.alert { border-radius: 18px; padding: 14px 20px; margin: 18px 0; max-width: 46em; background: color-mix(in srgb, var(--terra) 14%, var(--cs)); border: 1px solid var(--terra-soft); }
.alert.bad { background: var(--bad-soft); border-color: var(--bad); }
.alert b:first-child { color: var(--terra-deep); }
.alert.bad b:first-child { color: var(--bad); }
.done-btn { appearance: none; border: 1.5px solid var(--slate-deep); background: none; color: var(--slate-deep); font: 700 0.95rem/1 "Satoshi", sans-serif; padding: 12px 22px; border-radius: 999px; cursor: pointer; margin: 16px 0 4px; transition: background 0.15s, color 0.15s; }
.done-btn:hover { background: var(--slate-deep); color: var(--cream); }
.done-btn[aria-pressed="true"] { background: var(--ok-soft); border-color: var(--ok); color: var(--ok); }
.tw { overflow-x: auto; margin: 16px 0; border-radius: 16px; background: var(--cs); border: 1px solid var(--line); }
table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: 0.97rem; line-height: 1.5; }
th, td { text-align: left; padding: 11px 15px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--cs2); font-size: 0.85rem; color: var(--ink-2); }
tr:last-child td { border-bottom: 0; }
td.n, th.n { text-align: right; font-variant-numeric: tabular-nums; }
.cap { font-size: 0.9rem; color: var(--ink-2); margin: -4px 0 14px; max-width: 46em; }

/* visuals */
.cstack { display: grid; gap: 8px; margin: 18px 0; max-width: 46em; }
.cstack div { border-radius: 14px; padding: 10px 16px; color: var(--cream); font-weight: 700; line-height: 1.35; }
.cstack div small { display: block; font-weight: 400; font-size: 0.85rem; opacity: 0.92; }
.cstack div:nth-child(1) { background: var(--ink); }
.cstack div:nth-child(2) { background: var(--slate-ink); }
.cstack div:nth-child(3) { background: var(--slate-deep); }
.cstack div:nth-child(4) { background: var(--slate); }
.cstack div:nth-child(5) { background: var(--terra-deep); }
.cbar { display: flex; height: 38px; border-radius: 12px; overflow: hidden; margin: 8px 0; }
.cbar span { display: block; height: 100%; }
.leg { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 0.9rem; color: var(--ink-2); margin: 8px 0 14px; }
.leg i { display: inline-block; width: 12px; height: 12px; border-radius: 4px; margin-right: 6px; vertical-align: -1px; }
.bt { font-weight: 700; font-size: 1.05rem; margin: 22px 0 0; }
.flow { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; margin: 20px 0; }
.path { background: var(--cs); border: 1px solid var(--line); border-radius: 20px; padding: 16px 20px; }
.path h3 { font-size: 1.15rem; margin-bottom: 8px; }
.step { display: flex; gap: 10px; align-items: flex-start; margin: 7px 0; font-size: 0.97rem; line-height: 1.45; }
.step::before { content: "\2192"; color: var(--acc); font-weight: 900; }
.step.end { font-weight: 700; }
.step.end.y { color: var(--ok); }
.step.end.n { color: var(--bad); }
.chips2 { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.cchip { background: var(--cs); border: 1px solid var(--line); border-radius: 999px; padding: 5px 14px; font-size: 0.92rem; }
.cchip b { color: var(--acc); }
.tl { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 6px; margin: 16px 0; font-size: 0.8rem; }
.tl .m { text-align: center; color: var(--ink-2); padding: 2px 0; border-bottom: 3px solid var(--line); font-weight: 700; }
.tl .b { border-radius: 12px; padding: 7px 10px; color: var(--cream); font-weight: 700; font-size: 0.82rem; line-height: 1.3; }
@media (max-width: 700px) { .tl { grid-template-columns: repeat(12, minmax(40px, 1fr)); overflow-x: auto; } }
.gl { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; margin-top: 10px; }
.gl div { background: var(--cs); border: 1px solid var(--line); border-radius: 18px; padding: 14px 18px; }
.gl b { display: block; font-size: 1rem; color: var(--slate-deep); margin-bottom: 2px; }
.gl span { font-size: 0.95rem; color: var(--ink-2); line-height: 1.5; }

/* calculators */
.calcs { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; margin-top: 16px; }
.calc { background: var(--cs); border: 1px solid var(--line); border-radius: 24px; padding: 22px; }
.calc h3 { font-size: 1.3rem; margin-bottom: 12px; }
.f { display: grid; gap: 10px; margin-bottom: 14px; }
.f label { display: grid; gap: 4px; font-size: 0.9rem; font-weight: 700; color: var(--ink-2); }
.f input, .f select { font: inherit; font-size: 1rem; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--ink); width: 100%; }
.f input:focus, .f select:focus { border-color: var(--slate); }
.f .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.f .chk { display: flex; gap: 8px; align-items: center; }
.f .chk input { width: auto; }
.out { border-top: 2px dashed var(--line); padding-top: 12px; font-variant-numeric: tabular-nums; }
.out .r { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; }
.out .r.sum { font-weight: 900; font-size: 1.1rem; border-top: 2px solid var(--line); margin-top: 6px; padding-top: 8px; }
.out .r.sub { color: var(--ink-2); font-size: 0.93rem; }
.out .note { font-size: 0.9rem; color: var(--ink-2); margin-top: 10px; }
.cpill { display: inline-block; font-size: 0.8rem; font-weight: 700; padding: 2px 10px; border-radius: 999px; }
.cpill.ok { background: var(--ok-soft); color: var(--ok); }
.cpill.bad { background: var(--bad-soft); color: var(--bad); }

/* cases */
details.case { background: var(--cs); border: 1px solid var(--line); border-radius: 20px; margin: 12px 0; overflow: hidden; }
details.case summary { cursor: pointer; padding: 16px 20px; font-weight: 700; list-style: none; display: flex; gap: 12px; align-items: baseline; }
details.case summary::-webkit-details-marker { display: none; }
details.case summary::before { content: "+"; font-weight: 900; color: var(--terra-deep); font-size: 1.4rem; width: 16px; flex: none; }
details.case[open] summary::before { content: "\2212"; }
details.case .body { padding: 4px 22px 20px; border-top: 1px solid var(--line); }
.case h4 { margin: 16px 0 4px; font-size: 0.95rem; color: var(--slate-deep); }
.case p { margin: 4px 0; }
.case ul { margin: 4px 0; padding-left: 20px; list-style: disc; }
.case li { margin: 4px 0; }
.calcline { font-variant-numeric: tabular-nums; background: var(--cs2); border-radius: 12px; padding: 11px 14px; margin: 8px 0; font-size: 0.97rem; }
.answer { background: var(--ok-soft); border-radius: 12px; padding: 10px 14px; margin: 10px 0; font-weight: 700; }
.lesson { background: color-mix(in srgb, var(--terra) 14%, var(--cs)); border-radius: 12px; padding: 10px 14px; margin: 10px 0; }

/* quiz */
.q { background: var(--cs); border: 1px solid var(--line); border-radius: 20px; padding: 18px 20px; margin: 12px 0; }
.q p.t { font-weight: 700; font-size: 1.05rem; line-height: 1.4; margin: 0 0 12px; }
.q .opts { display: grid; gap: 9px; }
.q button.o { appearance: none; text-align: left; font: inherit; font-size: 1rem; padding: 11px 14px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--bg); color: var(--ink); cursor: pointer; }
.q button.o:hover:not(:disabled) { border-color: var(--slate); }
.q button.o.good { background: var(--ok-soft); border-color: var(--ok); }
.q button.o.wrong { background: var(--bad-soft); border-color: var(--bad); }
.q .why2 { margin: 12px 0 0; font-size: 0.97rem; color: var(--ink-2); display: none; }
.q.done .why2 { display: block; }
.score { font-weight: 900; font-size: 1.25rem; margin: 16px 0; }
.cbtn { appearance: none; border: 0; background: var(--terra-deep); color: var(--cream); font: 700 0.97rem/1 "Satoshi", sans-serif; padding: 13px 24px; border-radius: 999px; cursor: pointer; }
.cbtn:hover { background: #b24f31; }

.sec2 { padding-top: 60px; }
.sec2 h2 { font-size: clamp(1.8rem, 4.4vw, 2.6rem); line-height: 1.12; }
.sec2 .lead { color: var(--ink-2); font-size: 1.1rem; max-width: 46em; margin: 10px 0 20px; }
.src ul { padding-left: 20px; list-style: disc; }
.src li { margin: 6px 0; font-size: 0.97rem; word-break: break-word; }
.src a { color: var(--slate-deep); }
.legal { font-size: 0.9rem; color: var(--ink-2); margin-top: 30px; max-width: 46em; }
.cmain a { text-underline-offset: 3px; }

/* closing panel on the course page */
.course .closing { margin-top: 12px; }

@media (min-width: 760px) {
  .chero__grid { grid-template-columns: 1.2fr 0.8fr; gap: 40px; }
}
@media (max-width: 560px) {
  .mb { grid-template-columns: minmax(0, 1fr); padding: 20px; }
  .mb .big { display: none; }
  .mb .num { font-size: 3.6rem; }
  .ctools { padding: 8px 12px 8px 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .tile, .prog .fill, .done-btn { transition: none; }
  .tile:hover { transform: none; }
}

/* artículos */
a.tag--art { text-decoration: none; cursor: pointer; border: 1px dashed var(--acc); background: transparent; transition: background 0.15s, color 0.15s; }
a.tag--art::after { content: " \2197"; font-size: 0.8em; }
a.tag--art:hover { background: var(--acc); color: var(--cream); }
.fig b a.tag--art { font-size: inherit; font-weight: inherit; padding: 0 10px; border-radius: 10px; color: var(--acc); white-space: nowrap; vertical-align: baseline; }
.fig b a.tag--art:hover { color: var(--cream); }
.arts { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 12px; margin-top: 18px; }
.art { background: var(--cs); border: 1px solid var(--line); border-radius: 18px; padding: 16px 20px; scroll-margin-top: 150px; }
.art h3 { font-size: 1.2rem; color: var(--acc); margin-bottom: 6px; }
.art__text p, .artdlg__art p { margin: 7px 0; font-size: 0.97rem; line-height: 1.6; }
.art__note { margin-top: 10px; padding: 10px 14px; border-radius: 12px; background: color-mix(in srgb, var(--terra) 14%, var(--cs)); font-size: 0.9rem; }
.art__use { margin-top: 10px; font-size: 0.85rem; color: var(--ink-2); }
.art__use a { color: var(--slate-deep); }
.art:target { outline: 3px solid var(--terra-soft); }
.artdlg { width: min(640px, 94vw); max-height: min(86vh, 800px); padding: 0; border: 0; border-radius: 22px; background: var(--bg); color: var(--ink); overflow: hidden; }
.artdlg[open] { display: flex; flex-direction: column; }
.artdlg::backdrop { background: rgb(20 32 40 / 0.7); backdrop-filter: blur(4px); }
.artdlg__bar { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px 12px 22px; background: var(--panel); border-bottom: 1px solid var(--line); }
.artdlg__bar h2 { font-size: 1rem; }
.artdlg__x { width: 38px; height: 38px; border-radius: 50%; border: 1.5px solid var(--slate-deep); background: none; color: var(--slate-deep); font: 700 0.95rem/1 "Satoshi", sans-serif; cursor: pointer; }
.artdlg__x:hover { background: var(--slate-deep); color: var(--cream); }
.artdlg__body { overflow: auto; padding: 8px 22px 6px; }
.artdlg__art { padding: 10px 0; }
.artdlg__art + .artdlg__art { border-top: 1px dashed var(--line); }
.artdlg__art h3 { font-size: 1.5rem; color: var(--terra-deep); }
.artdlg__foot { padding: 10px 22px 16px; font-size: 0.9rem; }
.artdlg__foot a { color: var(--slate-deep); }

/* ===== pase "hecho a mano" ===== */
.cmain h2, .cmain h3, .mb h2, .idea, .now h2, .map h2 { font-family: var(--serif); font-weight: 700; letter-spacing: -0.01em; }
.idea { font-weight: 600; font-style: italic; }
.mb, .tile, .calc, .why, .learn, .fig, .nowc, .inst__c, .path, .art, .q { border-radius: 26px 22px 28px 20px / 22px 28px 20px 26px; }
.tile:nth-child(odd) { transform: rotate(-0.7deg); }
.tile:nth-child(even) { transform: rotate(0.6deg); }
.tile:hover { transform: rotate(0) translateY(-3px); }
.mb .big { filter: url(#rough); position: relative; }
.mb .big { background: none; }
.nowc .ib svg, .tile .ti svg, .inst__c > svg { filter: url(#rough); }
/* subrayado a mano bajo los títulos de sección */
.sec2 h2::after, .now h2::after, .map h2::after { content: ""; display: block; width: min(220px, 60%); height: 12px; margin-top: 6px; background: var(--terra); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 12'%3E%3Cpath d='M3 7c14-6 22 5 38 0s24-6 40 0 26 5 42-1 26-4 40 1 24 3 34-2' fill='none' stroke='black' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 12'%3E%3Cpath d='M3 7c14-6 22 5 38 0s24-6 40 0 26 5 42-1 26-4 40 1 24 3 34-2' fill='none' stroke='black' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat; }
/* notas a mano */
.why h3, .learn h3, .alert b:first-child, .ex b:first-child, .lesson b:first-child, .answer, .bt, .side .grp, .mb .min { font-family: var(--hand); font-weight: 600; }
.why h3, .learn h3 { font-size: 1.5rem; line-height: 1; margin-bottom: 4px; }
.alert b:first-child, .ex b:first-child, .lesson b:first-child { font-size: 1.35rem; margin-right: 4px; }
.alert { transform: rotate(-0.3deg); }
.bt { font-size: 1.5rem; }
.side .grp { font-size: 1.2rem; }
.mb .min { font-size: 1.1rem; padding: 1px 14px; }
details.try > summary::before { font-family: var(--hand); font-size: 1.2rem; }
/* instituciones */
.inst { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px; margin: 18px 0; }
.inst__c { position: relative; background: var(--cs); border: 1px solid var(--line); padding: 18px 20px 16px; display: flex; flex-direction: column; gap: 6px; }
.inst__c > svg { font-size: 2.1rem; color: var(--terra-deep); margin-bottom: 2px; }
.inst__c h4 { font-family: var(--serif); font-size: 1.25rem; line-height: 1.15; }
.inst__c h4 small { display: block; font-family: "Satoshi", sans-serif; font-weight: 500; font-size: 0.85rem; color: var(--ink-2); margin-top: 2px; }
.inst__c p { font-size: 0.95rem; color: var(--ink-2); line-height: 1.5; }
.inst__t { margin-top: auto; padding-top: 6px; font-family: var(--hand); font-size: 1.2rem; line-height: 1.1; color: var(--terra-deep); }
/* flechas dibujadas en los flujos */
.step::before { font-family: var(--hand); font-size: 1.4rem; line-height: 1; }
@media (prefers-reduced-motion: reduce) { .tile:nth-child(odd), .tile:nth-child(even) { transform: none; } }

/* enlaces, PDF, aviso, ilustraciones */
.inst__l { align-self: flex-start; margin-top: 8px; font-size: 0.9rem; font-weight: 700; color: var(--slate-deep); text-underline-offset: 3px; }
.pdfcta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 0 0 18px; }
.pdfcta__n { font-size: 0.9rem; color: var(--ink-2); max-width: 36ch; }
.wip { margin: 0 0 18px; padding: 12px 18px; border-radius: 18px; background: color-mix(in srgb, var(--terra) 14%, var(--cs)); border: 1px dashed var(--terra); font-size: 0.95rem; line-height: 1.5; }
.wip a { color: var(--terra-deep); font-weight: 700; }
.sk { margin: 22px auto; max-width: 480px; padding: 14px 14px 10px; background: var(--cs); border: 1px dashed var(--line); border-radius: 26px 22px 28px 20px / 22px 28px 20px 26px; }
.sk svg { display: block; width: 100%; height: auto; }
.sk figcaption { margin-top: 6px; font-size: 0.85rem; color: var(--ink-2); text-align: center; }
.sk .s { fill: var(--panel); stroke: var(--ink); stroke-width: 2.2; }
.sk .s.a { fill: color-mix(in srgb, var(--terra) 22%, var(--cs)); }
.sk .s.ok { fill: var(--ok-soft); }
.sk .s.dk { fill: var(--slate-deep); }
.sk .s.sun { fill: #f2c46d; }
.sk .s.moon { fill: var(--cream); }
.sk .s2 { filter: url(#rough); }
.sk .l { fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.sk text { font-family: "Satoshi", sans-serif; fill: var(--ink); }
.sk .t { font-size: 17px; font-weight: 700; }
.sk .n { font-size: 15px; fill: var(--ink-2); }
.sk .n.b { font-weight: 700; fill: var(--ink); }
.sk .h { font-family: var(--hand); font-weight: 600; font-size: 26px; fill: var(--terra-deep); }
.sk .h.big { font-size: 32px; }
.sk .w { fill: var(--cream); }
.sk .h.w { fill: var(--terra-soft); }
.sk .n.w { fill: rgb(247 242 232 / 0.85); }
/* teléfono */
@media (max-width: 760px) {
  body.course { font-size: 1.03rem; }
  .sheet { padding: 28px 14px 40px; }
  .mod, .sec2 { padding-top: 40px; }
  a.tag--art { padding: 5px 11px; font-size: 0.85rem; line-height: 1.6; }
  .done-btn, .cbtn { min-height: 46px; }
  .q button.o { min-height: 46px; }
  details.try > summary, details.law > summary, details.case summary { min-height: 48px; }
  .calc { padding: 18px 16px; }
  .out .r { font-size: 0.97rem; }
  .figs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .fig b { font-size: 1.3rem; }
  .arts { grid-template-columns: minmax(0, 1fr); }
  .pdfcta .btn { width: 100%; }
}
@media (max-width: 560px) {
  .artdlg { width: 100vw; max-width: 100vw; max-height: 86dvh; margin: auto 0 0; border-radius: 22px 22px 0 0; }
  .chero__facts { grid-template-columns: repeat(2, 1fr); }
  .chero__facts b { font-size: 1.7rem; }
  .cta .btn { width: 100%; }
  .steps li { padding-left: 44px; }
  .tw { margin-left: -4px; margin-right: -4px; }
}

/* teléfono: el índice de módulos es una tira plana de pestañas, no una segunda píldora */
@media (max-width: 979px) {
  .mnav { top: 72px; margin: -14px -14px 22px; padding: 0 14px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: var(--bg); backdrop-filter: none; box-shadow: 0 -12px 0 var(--bg); scrollbar-width: none; }
  .mnav::-webkit-scrollbar { display: none; }
  .mnav a { margin: 0 18px 0 0; padding: 13px 2px 10px; border: 0; border-bottom: 3px solid transparent; border-radius: 0; background: none; font-size: 0.92rem; color: var(--ink-2); }
  .mnav a.on { background: none; color: var(--ink); border-bottom-color: var(--terra); }
}
