:root{--ink:#223e43;--muted:#597076;--paper:#f7f8f3;--line:#dbe4dc;--teal:#0c686a;--soft:#e6efdd;--accent:#dbed93;font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;color:var(--ink);background:var(--paper)}*{box-sizing:border-box}body{margin:0}a{color:inherit;text-underline-offset:4px}button,input,select{font:inherit}button,summary{cursor:pointer}[hidden]{display:none!important}a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid #d8a432;outline-offset:4px}.skip{position:absolute;top:-100px}.skip:focus{top:4px;left:4px;z-index:50;background:white;padding:12px}.page-header{max-width:1440px;margin:auto;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:22px 4%;border-bottom:1px solid var(--line)}.brand{display:flex;align-items:center;gap:10px;text-decoration:none;font-size:12px;line-height:1.3}.brand-mark{background:var(--ink);color:var(--accent);font-weight:850;padding:14px 10px;border-radius:12px}.page-header nav{display:flex;gap:23px;flex-wrap:wrap;font-size:13px;font-weight:650}.page-header nav a{text-decoration:none}.page-header nav a[aria-current]{color:#00696b}.page-header nav a:hover{text-decoration:underline}main{max-width:1440px;margin:auto;padding:0 4% 48px}.breadcrumbs{display:flex;gap:9px;flex-wrap:wrap;margin:25px 0 0;color:var(--muted);font-size:11px}.breadcrumbs a{text-decoration:none}.breadcrumbs a:hover{text-decoration:underline}.hero{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:35px;align-items:center;padding:35px 0 34px}.eyebrow{font-size:10px;font-weight:750;letter-spacing:.14em;margin:0 0 14px;color:var(--teal)}h1{font-size:clamp(35px,4vw,57px);line-height:1.08;letter-spacing:-.048em;margin:0 0 18px;font-weight:740;max-width:870px}h1 em{font-family:Georgia,serif;font-weight:400}p{line-height:1.65}.hero .lead{font-size:16px;color:var(--muted);max-width:780px;margin:0}.hero .subnote{font-size:12px;color:var(--muted);margin:14px 0 0}.source-stamp{background:#edf1e4;border:1px solid #d6e0ca;border-radius:18px;padding:23px 22px;align-self:stretch;display:flex;flex-direction:column;justify-content:center}.source-stamp .number{font-size:45px;font-weight:650;letter-spacing:-.055em;color:var(--teal);line-height:1}.source-stamp h2{font-size:16px;margin:10px 0 9px;letter-spacing:-.02em}.source-stamp p{font-size:12px;color:var(--muted);margin:0}.source-stamp a{font-size:12px;margin-top:15px;font-weight:650}.fact-strip{display:flex;align-items:center;gap:28px;padding:18px 22px;border:1px solid var(--line);border-radius:12px;background:#fff;margin:0 0 27px}.fact-strip span{font-size:12px;color:var(--muted)}.fact-strip strong{font-size:23px;display:block;color:var(--ink);letter-spacing:-.03em;margin-bottom:3px}.fact-strip .fact-note{font-size:11px;line-height:1.6;border-left:1px solid var(--line);padding-left:25px;max-width:420px;margin-left:auto}.browse-layout{display:grid;grid-template-columns:235px minmax(0,1fr);gap:28px;align-items:start}.filter-panel{padding:22px 18px;background:#fff;border:1px solid var(--line);border-radius:14px;position:sticky;top:20px}.filter-panel h2{font-size:16px;letter-spacing:-.02em;margin:0 0 18px}.filter-panel label{display:block;font-size:12px;font-weight:650;margin:17px 0 7px}input[type=search],select{width:100%;border:1px solid #cbd8d0;border-radius:8px;padding:11px 10px;background:#fafbf7;color:var(--ink);font-size:14px;min-height:43px}input[type=search]::placeholder{color:#71827d}.filter-panel p{font-size:12px;color:var(--muted);line-height:1.6;margin:17px 0 0}.filter-panel a{display:inline-block;font-size:12px;font-weight:650;margin-top:15px}.results-heading{display:flex;align-items:baseline;justify-content:space-between;gap:20px;margin:0 0 17px}.results-heading h2{font-size:20px;letter-spacing:-.03em;margin:0}.results-heading p{font-size:12px;color:var(--muted);margin:0}.subject-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}.subject-card{position:relative;background:#fff;border:1px solid var(--line);border-top:3px solid var(--field);border-radius:13px;padding:22px 20px;display:flex;flex-direction:column;min-height:270px;transition:transform .15s,border-color .15s}.subject-card:hover{transform:translateY(-3px);border-color:var(--field)}.subject-card .subject-symbol{font-size:22px;display:grid;place-items:center;width:47px;height:47px;border-radius:12px;background:var(--tint);color:var(--field);font-family:Georgia,serif;font-weight:700}.subject-card .field-label{font-size:9px;line-height:1.5;color:var(--muted);margin:16px 0 6px;min-height:27px}.subject-card h3{font-size:19px;letter-spacing:-.03em;line-height:1.2;margin:0 0 13px}.subject-card .grades{font-size:11px;color:var(--muted);margin:0 0 16px}.subject-card .card-counts{display:flex;gap:12px;border-top:1px solid var(--line);padding-top:12px;margin-top:auto;color:var(--muted);font-size:10px}.subject-card .card-counts strong{font-size:15px;color:var(--ink)}.subject-card>a{display:flex;justify-content:space-between;gap:9px;align-items:center;text-decoration:none;font-size:12px;font-weight:700;margin-top:19px;color:var(--teal);padding:5px 0}.empty-state{padding:35px;border:1px dashed #bfcec4;border-radius:12px;color:var(--muted);text-align:center}.guidance{display:grid;grid-template-columns:repeat(3,1fr);gap:30px;margin:42px 0 0;padding:30px 0;border-top:1px solid var(--line)}.guidance span{font-size:10px;font-weight:700;color:var(--teal)}.guidance h2{font-size:18px;line-height:1.25;letter-spacing:-.03em;margin:12px 0 9px}.guidance p{font-size:13px;color:var(--muted);margin:0}.totals-section{margin-top:35px}.totals-section h2,.source-section h2{font-size:23px;letter-spacing:-.025em;margin:0 0 12px}.table-scroll{overflow-x:auto;border:1px solid var(--line);border-radius:13px;background:#fff}.summary-table{border-collapse:collapse;width:100%;font-size:13px}.summary-table th,.summary-table td{padding:14px 17px;border-bottom:1px solid var(--line);text-align:right;white-space:nowrap}.summary-table th:first-child,.summary-table td:first-child{text-align:left;white-space:normal;min-width:220px}.summary-table thead th{background:#edf2e7;font-size:11px}.summary-table tfoot th,.summary-table tfoot td{font-weight:750;background:#eff4e9}.summary-table tr:last-child th,.summary-table tr:last-child td{border-bottom:0}.summary-table tbody th{font-weight:550}.table-note{font-size:12px;color:var(--muted);line-height:1.6}.source-section{margin:30px 0 0;padding:25px;border:1px solid var(--line);background:#fff;border-radius:13px}.source-section p,.source-section li{font-size:13px;color:var(--muted);line-height:1.65}.source-section a{font-weight:600;color:var(--teal)}.source-section summary{font-size:13px;font-weight:650}.subject-hero{grid-template-columns:minmax(0,1fr) 255px;padding-bottom:25px}.subject-hero h1{font-size:clamp(32px,3.4vw,46px)}.subject-hero .source-stamp{padding:20px}.subject-hero .source-stamp .number{font-size:37px}.subject-top{display:flex;gap:14px;align-items:flex-end;padding:20px;background:#fff;border:1px solid var(--line);border-radius:13px;margin:0 0 16px;flex-wrap:wrap}.subject-top .field{flex:1;min-width:185px}.subject-top .search-field{flex:2;min-width:260px}.subject-top .grade-field{flex:0 0 160px}.subject-top label{display:block;font-size:11px;font-weight:700;margin-bottom:7px}.subject-top button,.button{border:1px solid #bdcec4;padding:12px 15px;border-radius:8px;color:var(--ink);background:#f4f7ee;font-size:12px;font-weight:650;text-decoration:none;white-space:nowrap}.subject-top button:hover,.button:hover{background:#e7efdb}.selection-bar{display:flex;gap:18px;justify-content:space-between;align-items:center;padding:9px 0 16px}.selection-bar p{font-size:13px;color:var(--muted);margin:0}.selection-bar .actions{display:flex;align-items:center;gap:18px}.text-button{border:0;background:none;padding:4px 0;color:var(--teal);font-size:12px;font-weight:650}.text-button:hover{text-decoration:underline}.curriculum-table{border-collapse:collapse;width:100%;table-layout:fixed;font-size:14px}.curriculum-table thead th{background:#e9efdf;text-align:left;padding:17px;vertical-align:top;font-size:12px;border-bottom:1px solid #cbd7c6}.curriculum-table thead th:first-child{width:25%}.curriculum-table tbody th,.curriculum-table tbody td{padding:20px 19px;text-align:left;vertical-align:top;border-bottom:1px solid var(--line)}.curriculum-table tbody th{font-size:14px;font-weight:600;line-height:1.65;background:#fbfcf8;border-right:1px solid var(--line)}.curriculum-table .code{display:block;font-size:9px;font-weight:700;letter-spacing:.1em;color:#69837b;margin-bottom:10px}.curriculum-table .source-link{display:block;font-weight:500;font-size:10px;margin-top:12px;color:var(--teal)}.curriculum-table ol{padding-left:20px;margin:0;line-height:1.75}.curriculum-table li{padding-left:4px;margin-bottom:16px}.curriculum-table li:last-child{margin-bottom:0}.curriculum-table li::marker{font-size:10px;font-weight:650;color:#6e8e7b}.curriculum-table td+td{border-left:1px solid var(--line)}.pda-details summary{font-size:12px;font-weight:650;color:var(--teal);line-height:1.6}.pda-details[open] summary{margin-bottom:15px}.curriculum-table .not-assigned{color:var(--muted);font-size:12px;font-style:italic}.curriculum-table tr:last-child>th,.curriculum-table tr:last-child>td{border-bottom:0}.grade-note{font-size:12px;color:var(--muted);padding:12px 16px;background:#eef2e4;border-radius:9px;margin:0 0 16px}.row-label{display:none}.toast{position:fixed;bottom:22px;left:50%;transform:translateX(-50%);max-width:90%;padding:13px 20px;border-radius:10px;background:#1e4249;color:#f5f8ee;font-size:13px;box-shadow:0 8px 30px #102f4b22;z-index:10}.footer{max-width:1440px;margin:auto;display:flex;gap:20px;justify-content:space-between;flex-wrap:wrap;padding:25px 4%;border-top:1px solid var(--line);font-size:11px;color:var(--muted)}.footer a{text-decoration:none}.no-script{border:1px solid #d9bc75;background:#fff7df;padding:14px;font-size:13px;border-radius:9px}.print-title{display:none}.showing-filter{font-size:11px;color:var(--muted)}
body[data-grade="1"] [data-grade-cell="2"],body[data-grade="1"] [data-grade-cell="3"],body[data-grade="2"] [data-grade-cell="1"],body[data-grade="2"] [data-grade-cell="3"],body[data-grade="3"] [data-grade-cell="1"],body[data-grade="3"] [data-grade-cell="2"]{display:none}
body:not([data-grade="all"]) .curriculum-table thead th:first-child{width:32%}
@media(max-width:1100px){.subject-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.browse-layout{grid-template-columns:210px minmax(0,1fr)}.hero{grid-template-columns:minmax(0,1fr) 240px}.page-header nav{gap:15px}.fact-strip{gap:21px}.fact-strip .fact-note{max-width:330px}.subject-top .field{min-width:170px}.subject-top .grade-field{flex:1}}
@media(max-width:760px){.page-header{padding:16px 5%;align-items:flex-start}.page-header nav{font-size:11px;gap:12px;justify-content:flex-end;max-width:195px}.page-header nav a:nth-child(3){display:none}.brand{font-size:10px}.brand-mark{padding:11px 7px;font-size:11px}main{padding:0 4% 30px}.breadcrumbs{font-size:10px;margin-top:20px;gap:6px}.hero,.subject-hero{grid-template-columns:1fr;gap:21px;padding:26px 0}.hero h1{font-size:37px;letter-spacing:-.045em}.subject-hero h1{font-size:32px}.hero .lead{font-size:14px}.source-stamp{display:none}.eyebrow{font-size:9px;line-height:1.5}.fact-strip{padding:16px;gap:19px;flex-wrap:wrap;margin-bottom:22px}.fact-strip strong{font-size:24px}.fact-strip span{font-size:10px}.fact-strip .fact-note{padding:12px 0 0;border-top:1px solid var(--line);border-left:0;width:100%;max-width:none;margin:0;font-size:11px}.browse-layout{grid-template-columns:1fr;gap:24px}.filter-panel{position:static;padding:17px;display:grid;grid-template-columns:1fr 1fr;gap:0 12px}.filter-panel h2{grid-column:1/-1;margin:0 0 3px}.filter-panel p,.filter-panel>a{display:none}.filter-panel label{font-size:11px;margin-top:12px}.filter-panel input,.filter-panel select{font-size:16px;padding:10px 8px}.subject-grid{gap:12px}.subject-card{padding:17px 14px;min-height:265px}.subject-card h3{font-size:17px}.subject-card .field-label{font-size:9px;min-height:27px}.subject-card .subject-symbol{width:40px;height:40px;font-size:21px}.subject-card .card-counts{flex-wrap:wrap;gap:7px;font-size:9px}.subject-card .card-counts strong{font-size:14px}.subject-card>a{font-size:11px;margin-top:15px}.results-heading{align-items:flex-start;gap:10px}.results-heading h2{font-size:19px}.results-heading p{font-size:11px;text-align:right}.guidance{grid-template-columns:1fr;gap:25px;padding:25px 0}.guidance h2{margin-top:8px}.guidance p{font-size:14px}.summary-table{font-size:12px}.summary-table th,.summary-table td{padding:12px}.summary-table th:first-child,.summary-table td:first-child{min-width:170px}.totals-section h2,.source-section h2{font-size:20px}.source-section{padding:20px}.subject-top{padding:16px;gap:14px}.subject-top .field{flex:1;min-width:150px}.subject-top .grade-field{min-width:120px}.subject-top .search-field{flex:1 0 100%;min-width:0}.subject-top select,.subject-top input{font-size:16px}.subject-top button{font-size:12px}.selection-bar{align-items:flex-start;gap:12px;flex-direction:column}.selection-bar p{font-size:12px}.selection-bar .actions{justify-content:space-between;width:100%}.curriculum-table{display:block;font-size:15px}.curriculum-table thead{display:none}.curriculum-table tbody{display:block}.curriculum-table tr{display:block;border-bottom:5px solid #eef2e7}.curriculum-table tbody th,.curriculum-table tbody td{display:block;width:100%;padding:20px;border:0}.curriculum-table tbody th{font-size:15px;border-bottom:1px solid var(--line)}.curriculum-table td+td{border-left:0;border-top:1px solid var(--line)}.curriculum-table .row-label{display:block;color:var(--teal);font-size:10px;font-weight:700;margin:0 0 14px}.curriculum-table .source-link{font-size:11px}.curriculum-table ol{line-height:1.75}.pda-details summary{font-size:13px}.curriculum-table .not-assigned{font-size:13px}.footer{font-size:10px}.footer span:last-child{display:none}.table-note{font-size:12px}.grade-note{font-size:12px;line-height:1.6}}
@media(max-width:360px){.subject-grid{grid-template-columns:1fr}.subject-card{min-height:220px}.subject-card .field-label{min-height:0}.hero h1{font-size:32px}.page-header nav{max-width:150px;gap:9px}.fact-strip{gap:16px}}
@media print{@page{size:landscape;margin:12mm}:root{background:#fff;color:#111}.page-header,.breadcrumbs,.source-stamp,.subject-top,.actions,.filter-panel,.footer,.guidance,.hero .subnote,.toast,.source-section{display:none!important}main{max-width:none;padding:0}.hero{display:block;padding:0 0 13px}.hero h1{font-size:23px;margin-bottom:7px}.hero .eyebrow{margin-bottom:7px;font-size:9px}.hero .lead{font-size:11px}.fact-strip{padding:10px;margin-bottom:15px}.fact-strip strong{font-size:17px}.curriculum-table{display:table;table-layout:auto;font-size:10px}.curriculum-table thead{display:table-header-group}.curriculum-table tbody{display:table-row-group}.curriculum-table tr{display:table-row}.curriculum-table tbody th,.curriculum-table tbody td{display:table-cell;padding:10px;font-size:10px;border-bottom:1px solid #bbb}.curriculum-table ol{line-height:1.45}.curriculum-table li{margin-bottom:9px}.curriculum-table thead th{font-size:10px;padding:10px}.pda-details summary,.row-label{display:none!important}.curriculum-table .source-link{font-size:8px}.curriculum-table .code{font-size:8px}a{color:#111;text-decoration:none}.table-scroll{overflow:visible;border-color:#bbb}.table-note{font-size:9px}.selection-bar p{font-size:10px}.print-title{display:block;font-size:9px}.totals-section h2{font-size:16px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
@media(max-width:760px){.curriculum-table caption{display:block;width:100%;font-size:11px;line-height:1.6}}

/* Orientaciones editoriales: separadas del texto curricular oficial. */
.pda-original{display:block}
.pda-explanation{margin:12px 0 3px;border-left:3px solid #97b7a0;padding:0 0 0 13px;max-width:75ch;break-inside:avoid}
.curriculum-table .pda-explanation>summary{font-size:13px;font-weight:650;line-height:1.6;color:#145f60;padding:5px 0;min-height:34px}
.curriculum-table .pda-explanation[open]>summary{margin-bottom:8px}
.curriculum-table .pda-explanation p{margin:0;padding:0 0 8px;font-size:14px;line-height:1.8;color:#405b56;overflow-wrap:anywhere}
.explanation-guide{border:1px solid #c8d9cb;border-left:4px solid #397768;background:#edf4eb;border-radius:10px;padding:17px 20px;margin:8px 0 22px;max-width:1100px}
.explanation-guide>strong{font-size:15px}.explanation-guide p{font-size:14px;line-height:1.75;margin:7px 0 0;max-width:95ch;color:#405b56}
.editorial-attribution{border-top:1px solid var(--line);padding-top:13px}
@media(max-width:760px){.explanation-guide{padding:15px}.curriculum-table .pda-explanation p{font-size:14px}.pda-explanation{padding-left:11px}}
@media print{.pda-explanation,.explanation-guide{display:none!important}}


.pda-lesson {
  max-width: 890px;
  margin: 0 auto;
  padding: 1.2rem clamp(1rem, 5vw, 2.4rem) 3rem;
}
.pda-hero {
  background: var(--ink);
  color: #fff;
  border-radius: 1.3rem;
  padding: clamp(1.35rem, 5vw, 3rem);
}
.pda-kicker {
  margin: 0 0 .7rem;
  color: var(--accent);
  font-weight: 700;
}
.pda-hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 6vw, 3.75rem);
  letter-spacing: -.045em;
  line-height: 1.08;
  overflow-wrap: anywhere;
}
.pda-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}
.pda-tags span {
  border: 1px solid #91a7a7;
  border-radius: 100px;
  padding: .32rem .65rem;
}
.pda-download {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: .65rem 1rem;
  border-radius: .55rem;
  color: var(--ink);
  background: var(--accent);
  text-decoration: none;
  font-weight: 800;
}
.pda-content {
  padding: clamp(1rem, 4vw, 1.8rem);
  border: 1px solid var(--line);
  border-radius: 1rem;
  margin: 1.2rem 0;
  background: white;
  line-height: 1.6;
}
.pda-content h2 {
  margin: 0 0 .5rem;
  line-height: 1.2;
}
.pda-topic { font-weight: 720; }
.pda-content blockquote {
  margin: .8rem 0;
  padding: .55rem .8rem;
  border-left: 4px solid var(--teal);
  background: var(--paper);
}
.pda-guide {
  max-width: 1440px;
  margin: 1rem auto;
  padding: 0 4%;
  color: var(--ink);
}
.pda-plan-link {
  display: table;
  margin: .5rem 0;
  padding: .33rem .6rem;
  border-radius: .42rem;
  background: var(--soft);
  color: var(--ink);
  font-weight: 720;
}
.pda-plan-link:hover { background: var(--accent); }
.pda-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
@media print {
  .pda-guide, .pda-plan-link, .pda-download { display: none !important; }
}


/* Planeaciones use the same visual language as the Aprendiendo con Sentido home. */
@media screen {
  :root {
    --ink: #181f2f;
    --heading: #241a45;
    --muted: #505871;
    --paper: #f9f9fb;
    --line: #e3deef;
    --teal: #5a2eb2;
    --soft: #f1ebfc;
    --accent: #b6f4e6;
    --primary: #6d28d9;
    --primary-dark: #5027a0;
    --turquoise: #5eead4;
    --copy: 1rem;
    --meta: .875rem;
    --title: clamp(2rem, 1.38rem + 2.55vw, 3.35rem);
    --section-title: clamp(1.25rem, 1.1rem + .55vw, 1.65rem);
    --layout: min(1240px, calc(100% - 2.5rem));
    --round: 16px;
    --shadow: 0 8px 25px rgba(42, 28, 89, .065);
    font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--paper);
  }

  body {
    min-height: 100vh;
    background:
      radial-gradient(ellipse at top left, #efe8ff 0, transparent 32rem),
      radial-gradient(ellipse at top right, #e4f7f6 0, transparent 30rem),
      var(--paper);
    font-size: var(--copy);
    line-height: 1.62;
  }
  ::selection { color: white; background: var(--primary-dark); }
  a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible {
    outline-color: var(--primary);
  }
  main, .footer { width: var(--layout); margin-inline: auto; padding-inline: 0; }
  main { padding-bottom: 3rem; }
  h1, h2, h3 { color: var(--heading); }
  h2, h3 { letter-spacing: -.025em; }
  :where(h1, h2, h3) { overflow-wrap: anywhere; }

  body > .page-header {
    max-width: none;
    min-height: 74px;
    padding: .8rem max(1.25rem, (100% - 1240px) / 2);
    gap: 1rem;
    align-items: center;
    background: rgba(255, 255, 255, .94);
    border-color: var(--line);
  }
  .page-header .brand {
    gap: .75rem;
    color: var(--heading);
    font-size: 1rem;
    line-height: 1.28;
    font-weight: 800;
    letter-spacing: -.02em;
  }
  .page-header .brand-mark {
    display: grid;
    place-items: center;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    padding: 0;
    border-radius: 14px;
    color: white;
    background: linear-gradient(145deg, #6d28d9, #4f46e5 60%, #147e93);
    box-shadow: 0 6px 18px rgba(109, 40, 217, .22);
    font-size: var(--meta);
  }
  .page-header nav {
    max-width: none;
    align-items: center;
    justify-content: flex-start;
    gap: .24rem;
    font-size: var(--meta);
    font-weight: 700;
  }
  .page-header nav a, .page-header nav a:nth-child(3) {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: .42rem .72rem;
    border-radius: 10px;
    color: var(--muted);
  }
  .page-header nav a[aria-current], .page-header nav a:hover {
    background: var(--soft);
    color: var(--primary-dark);
    text-decoration: none;
  }
  .breadcrumbs {
    margin: 1.15rem 0 .85rem;
    gap: .55rem;
    font-size: var(--meta);
  }
  body > .breadcrumbs { width: min(880px, calc(100% - 2.5rem)); margin-inline: auto; }
  .footer { font-size: var(--meta); color: var(--muted); padding-block: 1.4rem; }

  main .hero, main .pda-hero {
    color: white;
    background:
      radial-gradient(ellipse at 94% 2%, rgba(94, 234, 212, .22), transparent 40%),
      linear-gradient(115deg, #211743, #432b84 62%, #1a5465);
    box-shadow: var(--shadow);
    border-radius: 22px;
  }
  main .hero {
    grid-template-columns: minmax(0, 1fr) minmax(220px, 27%);
    gap: clamp(1rem, 3vw, 2.3rem);
    align-items: center;
    padding: clamp(1.5rem, 4vw, 3.25rem);
    margin: 0 0 1.25rem;
  }
  main .hero h1, main .pda-hero h1 {
    color: white;
    font-family: inherit;
    font-size: var(--title);
    font-weight: 780;
    line-height: 1.09;
    letter-spacing: -.043em;
    margin: 0 0 .9rem;
  }
  main .hero h1 em {
    color: #e4d8ff;
    font: inherit;
  }
  main .hero .eyebrow, main .pda-hero .pda-kicker {
    color: var(--accent);
    font-size: .8125rem;
    letter-spacing: .105em;
    line-height: 1.45;
    font-weight: 800;
    margin: 0 0 .72rem;
    text-transform: uppercase;
  }
  main .hero .lead, main .pda-hero > p:not(.pda-kicker) {
    color: #f3eefb;
    font-size: var(--copy);
    line-height: 1.62;
    max-width: 64ch;
  }
  main .hero .subnote { color: #dfd4f5; font-size: var(--meta); }
  .hero .source-stamp, .subject-hero .source-stamp {
    padding: 1.15rem 1.2rem;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: var(--round);
    background: rgba(24, 18, 53, .26);
    color: white;
  }
  .hero .source-stamp .number {
    color: var(--accent);
    font-size: clamp(1.75rem, 3vw, 2.45rem);
    font-weight: 770;
    line-height: 1.12;
  }
  .hero .source-stamp h2 { color: white; font-size: 1.05rem; margin: .4rem 0; }
  .hero .source-stamp p, .hero .source-stamp a { color: #f3eefb; font-size: var(--meta); }

  .fact-strip, .filter-panel, .subject-top, .source-section, .table-scroll {
    border-color: var(--line);
    border-radius: var(--round);
    box-shadow: var(--shadow);
  }
  .fact-strip { gap: clamp(1rem, 3vw, 2rem); padding: .95rem 1.2rem; }
  .fact-strip span, .fact-strip .fact-note { font-size: var(--meta); }
  .fact-strip strong { font-size: 1.45rem; color: var(--heading); line-height: 1.25; }
  .fact-strip .fact-note { max-width: 390px; }
  .filter-panel { padding: 1.2rem; }
  .filter-panel h2, .guidance h2 { font-size: 1.125rem; }
  .filter-panel label, .subject-top label { font-size: var(--meta); font-weight: 750; }
  .filter-panel p, .filter-panel a { font-size: var(--meta); }
  input[type=search], select {
    border-color: #cbc3de;
    background: #fdfcff;
    border-radius: 10px;
    font-size: var(--copy);
    min-height: 44px;
  }
  input[type=search]::placeholder { color: #626982; }
  .results-heading { align-items: baseline; }
  .results-heading h2, .totals-section h2, .source-section h2 { font-size: var(--section-title); }
  .results-heading p, .table-note, .source-section summary { font-size: var(--meta); }
  .subject-grid { gap: 1rem; }
  .subject-card {
    --tile-ink: #5c33a0;
    --tile-bg: #f2ebff;
    border: 1px solid var(--line);
    border-radius: var(--round);
    padding: 1.2rem;
    min-height: 0;
    box-shadow: var(--shadow);
  }
  .subject-card[data-field="Saberes y Pensamiento Científico"] { --tile-ink: #086568; --tile-bg: #def8f3; }
  .subject-card[data-field="Ética, Naturaleza y Sociedades"] { --tile-ink: #4338a1; --tile-bg: #e9ecff; }
  .subject-card[data-field="De lo Humano y lo Comunitario"] { --tile-ink: #9a2f61; --tile-bg: #fbe8f1; }
  .subject-card:hover { border-color: var(--tile-ink); }
  .subject-card .subject-symbol {
    background: var(--tile-bg);
    color: var(--tile-ink);
    border-radius: 12px;
    font-family: inherit;
    font-size: 1.25rem;
  }
  .subject-card .field-label, .subject-card .grades, .subject-card .card-counts, .subject-card>a {
    font-size: var(--meta);
  }
  .subject-card .field-label {
    color: var(--tile-ink);
    margin: .85rem 0 .22rem;
    min-height: 0;
    font-weight: 700;
  }
  .subject-card h3 { font-size: 1.2rem; margin: 0 0 .35rem; }
  .subject-card .grades { margin: 0 0 .8rem; }
  .subject-card .card-counts { gap: .45rem .85rem; flex-wrap: wrap; padding-top: .7rem; }
  .subject-card .card-counts strong { font-size: 1rem; }
  .subject-card>a {
    min-height: 44px;
    padding: .45rem .7rem;
    margin-top: .65rem;
    color: var(--tile-ink);
    background: var(--tile-bg);
    border-radius: 9px;
  }
  .subject-card>a:hover { text-decoration: underline; }

  body .acs-subject-intro {
    border-top: 0;
    max-width: none;
    padding: .35rem 0 0;
    margin: 0 0 .9rem;
  }
  body .acs-overline { color: var(--primary-dark); font-size: .8125rem !important; }
  body .acs-subject-intro>p:not(.acs-overline) {
    color: var(--muted);
    line-height: 1.62;
    font-size: var(--copy);
    margin-bottom: .8rem;
  }
  body .acs-grade-links a {
    color: var(--primary-dark);
    font-size: var(--meta);
    border-color: var(--line);
    border-radius: 10px;
  }
  body .acs-grade-links a:hover { background: var(--soft); }
  body .acs-grade-links span { background: var(--soft); }
  body .acs-content-index {
    margin-top: .75rem;
    border-color: var(--line);
    border-radius: 10px;
    padding: .55rem .9rem;
  }
  body .acs-content-index summary { color: var(--primary-dark); font-size: var(--meta); }
  body .pda-guide {
    margin: .6rem 0 .9rem;
    padding: .72rem .9rem;
    background: #e7f9f5;
    color: #164c4c;
    border: 1px solid #c7ebe4;
    border-radius: 10px;
    font-size: var(--meta);
    font-weight: 690;
  }
  .subject-top { padding: 1rem; }
  .subject-top .grade-field { flex: 0 1 12.25rem; min-width: 11.5rem; }
  .subject-top button, .button {
    min-height: 44px;
    background: var(--soft);
    color: var(--primary-dark);
    border: 1px solid var(--line);
    border-radius: 10px;
    font-size: var(--meta);
  }
  .subject-top button:hover, .button:hover { background: #e4d8fa; }
  .selection-bar p, .selection-bar button { font-size: var(--meta); }
  .selection-bar .actions { flex-wrap: wrap; row-gap: .35rem; }
  .text-button { color: var(--primary-dark); min-height: 32px; }
  .curriculum-table, .curriculum-table tbody th, .curriculum-table .pda-original {
    font-size: var(--copy);
    line-height: 1.62;
  }
  .curriculum-table caption, .curriculum-table thead th, .summary-table thead th,
  .curriculum-table .not-assigned, .pda-details > summary {
    font-size: var(--meta);
  }
  .summary-table { font-size: var(--meta); }
  .curriculum-table thead th, .summary-table thead th, .summary-table tfoot th, .summary-table tfoot td {
    background: #efe9fb;
    color: var(--heading);
    border-color: var(--line);
  }
  .curriculum-table tbody th { background: #fcfaff; }
  .curriculum-table .code, .curriculum-table .source-link, .curriculum-table .row-label {
    font-size: var(--meta);
    color: var(--primary-dark);
  }
  .curriculum-table li::marker { color: var(--primary-dark); font-size: .875em; }
  .curriculum-table tbody tr { border-color: #eee8f8; }
  .curriculum-table .pda-explanation { border-left-color: #a78bd8; }
  .curriculum-table .pda-explanation > summary { color: var(--primary-dark); font-size: var(--meta); }
  .curriculum-table .pda-explanation p { color: var(--muted); font-size: var(--copy); line-height: 1.62; }
  body .pda-plan-link {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    min-height: 44px;
    padding: .35rem .68rem;
    background: var(--soft);
    color: var(--primary-dark);
    border-radius: 9px;
    font-size: var(--meta);
    text-decoration: none;
  }
  body .pda-plan-link:hover { background: #e6dbfb; text-decoration: underline; }
  .grade-note, .explanation-guide {
    background: #f3effc;
    border-color: #d9caef;
    color: var(--muted);
    border-radius: 12px;
  }
  .grade-note, .explanation-guide > strong, .explanation-guide p { font-size: var(--meta); }
  .explanation-guide p { color: var(--muted); }
  .explanation-guide > strong { color: var(--heading); }
  body .acs-planning-faq, body .acs-related, body .acs-planning-faq > details { border-color: var(--line); }
  body .acs-planning-faq h2, body .acs-related h2 { font-size: var(--section-title); }
  body .acs-planning-faq > details > summary,
  body .acs-related-grid strong, body .acs-related-grid h3 { color: var(--heading); }
  body .acs-planning-faq > details > p, body .acs-related-grid span, body .acs-related-grid p,
  body .source-section p, body .source-section li, .guidance p { color: var(--muted); font-size: var(--copy); }
  body .acs-related-grid > a, body .acs-related-grid > article { border-color: var(--line); }
  .toast { background: var(--heading); color: white; font-size: var(--meta); }

  body .pda-lesson { width: min(880px, calc(100% - 2.5rem)); padding: 0 0 3rem; }
  main .pda-hero { padding: clamp(1.35rem, 4vw, 2.65rem); }
  main .pda-hero h1 { max-width: 24ch; }
  .pda-tags span {
    font-size: var(--meta);
    border-color: rgba(238, 224, 255, .55);
    background: rgba(255, 255, 255, .07);
  }
  main .pda-download {
    background: linear-gradient(125deg, #6af0dc, #2dd4bf);
    color: #083a37;
    min-height: 48px;
    border-radius: 11px;
    font-size: var(--copy);
  }
  main .pda-download:hover { background: #9bf6e8; }
  main .pda-download:focus-visible { outline-color: #fff; }
  main .pda-content { border-radius: var(--round); box-shadow: var(--shadow); line-height: 1.62; }
  main .pda-content h2 { font-size: var(--section-title); }
  main .pda-content blockquote {
    padding: .8rem 1rem;
    color: var(--ink);
    background: #f5f0fe;
    border-color: #8b5bd5;
  }
  main .pda-content p:last-child { margin-bottom: 0; }

  @media (max-width: 900px) {
    main .hero { grid-template-columns: 1fr; }
    .hero .source-stamp { display: none; }
    .browse-layout { grid-template-columns: minmax(0, 1fr); gap: 1.2rem; }
    .filter-panel { position: static; }
    .fact-strip { flex-wrap: wrap; }
    .fact-strip .fact-note { max-width: none; padding: .72rem 0 0; margin: 0; border: 0; border-top: 1px solid var(--line); width: 100%; }
  }
  @media (max-width: 620px) {
    :root { --layout: calc(100% - 2rem); }
    body > .page-header { padding: .75rem 1rem .5rem; align-items: flex-start; flex-direction: column; gap: .25rem; }
    .page-header nav { gap: 0 .18rem; }
    .page-header nav a, .page-header nav a:nth-child(3) { padding-inline: .5rem; }
    .breadcrumbs { margin-block: .75rem; gap: .35rem; }
    .hero, main .pda-hero { border-radius: 16px; }
    .results-heading { gap: .5rem; }
    .subject-grid { grid-template-columns: minmax(0, 1fr); }
    .subject-card {
      display: grid;
      grid-template-columns: 42px minmax(0, 1fr);
      column-gap: .8rem;
      padding: .95rem;
    }
    .subject-card .subject-symbol { grid-row: span 3; }
    .subject-card .field-label { margin-top: 0; }
    .subject-card .card-counts, .subject-card > a { grid-column: 1 / -1; }
    .filter-panel { grid-template-columns: minmax(0, 1fr); padding: .9rem; }
    .subject-top .field { flex-basis: 100%; min-width: 0; }
    .curriculum-table tbody th, .curriculum-table tbody td { padding: .95rem; }
    .curriculum-table .row-label { margin-bottom: .45rem; }
    body .pda-lesson, body > .breadcrumbs:has(+ .pda-lesson) { width: var(--layout); }
  }
}
