:root {
  --ink: #142d45;
  --muted: #617887;
  --bg: #f2f7f5;
  --line: #d9e5e0;
  --teal: #137d73;
  --gold: #ffd66d;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: radial-gradient(ellipse at 10% 0, #d9efe8, transparent 38%), var(--bg);
  color: var(--ink);
  font:
    15px/1.5 system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
}
a {
  color: inherit;
}
.shell {
  width: min(1100px, calc(100% - 28px));
  margin: auto;
}
.top {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  background: #ffffffdd;
}
.top .shell {
  display: flex;
  justify-content: space-between;
}
.brand {
  color: var(--teal);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.1em;
  text-decoration: none;
}
.back {
  font-size: 12px;
  font-weight: 800;
  color: var(--muted);
  text-decoration: none;
}
.hero {
  margin: 18px 0;
  padding: clamp(22px, 5vw, 48px);
  border-radius: 24px;
  color: #fff;
  background: linear-gradient(120deg, #153149, #176c71);
  box-shadow: 0 15px 34px #173b4d1c;
}
.kicker {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #c8f1df;
}
.hero h1 {
  max-width: 760px;
  margin: 9px 0;
  font-size: clamp(28px, 5vw, 48px);
  line-height: 1.03;
}
.hero p {
  max-width: 720px;
  margin: 0;
  color: #e0efec;
  font-size: 14px;
}
.links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 19px;
}
.pilllink {
  padding: 9px 13px;
  border-radius: 10px;
  background: var(--gold);
  color: #20384a;
  font-size: 11px;
  font-weight: 900;
  text-decoration: none;
}
.pilllink.alt {
  border: 1px solid #ffffff55;
  background: #ffffff12;
  color: white;
}
.section {
  padding: 25px 0 8px;
}
.sectionhead {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.sectionhead h2 {
  margin: 0;
  font-size: clamp(22px, 3vw, 30px);
}
.sectionhead p {
  max-width: 480px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}
.layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 14px;
}
.panel {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: white;
  box-shadow: 0 7px 20px #193d4e0b;
}
.panel h3 {
  margin: 0 0 6px;
  font-size: 18px;
}
.panel > p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 12px;
}
.formgrid {
  display: grid;
  gap: 9px;
}
.field label {
  display: block;
  margin-bottom: 4px;
  color: #526c78;
  font-size: 10px;
  font-weight: 900;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #d5e1dc;
  border-radius: 9px;
  background: #fbfdfc;
  color: var(--ink);
  font: inherit;
  font-size: 12px;
}
.field textarea {
  min-height: 72px;
  resize: vertical;
}
.btn {
  padding: 10px 13px;
  border: 0;
  border-radius: 10px;
  background: var(--gold);
  color: #23384a;
  font-size: 11px;
  font-weight: 950;
  cursor: pointer;
}
.btn.secondary {
  border: 1px solid var(--line);
  background: #f2f7f4;
  color: #3d5e68;
}
.preview {
  min-height: 210px;
}
.empty {
  display: grid;
  min-height: 180px;
  place-items: center;
  text-align: center;
  color: #81939a;
  font-size: 12px;
}
.slides {
  display: grid;
  gap: 8px;
}
.slide {
  padding: 12px;
  border-left: 4px solid var(--teal);
  border-radius: 9px;
  background: #f4f9f6;
}
.slide small {
  color: var(--teal);
  font-size: 9px;
  font-weight: 950;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.slide h4 {
  margin: 4px 0;
  font-size: 14px;
}
.slide p {
  margin: 0;
  color: #536b78;
  font-size: 11px;
  white-space: pre-line;
}
.downloadrow {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.tip {
  margin: 14px 0;
  padding: 13px 15px;
  border: 1px solid #efdaa2;
  border-radius: 13px;
  background: #fff8e6;
  color: #67552c;
  font-size: 11px;
}
.resource-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 11px;
}
.resource {
  display: flex;
  flex-direction: column;
  min-height: 175px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fff;
}
.icon {
  font-size: 25px;
}
.resource h3 {
  margin: 8px 0 4px;
  font-size: 15px;
}
.resource p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}
.resource a {
  margin-top: auto;
  padding-top: 12px;
  color: var(--teal);
  font-size: 11px;
  font-weight: 900;
  text-decoration: none;
}
.footer {
  margin: 35px 0 18px;
  padding: 15px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
}
.footer a {
  font-weight: 850;
  color: var(--teal);
}
:focus-visible {
  outline: 3px solid #e7b637;
  outline-offset: 2px;
}
@media (max-width: 760px) {
  .layout {
    grid-template-columns: 1fr;
  }
  .sectionhead {
    display: block;
  }
  .sectionhead p {
    margin-top: 6px;
  }
}
@media (max-width: 560px) {
  .resource-grid {
    grid-template-columns: 1fr;
  }
  .shell {
    width: calc(100% - 22px);
  }
}
@media print {
  body {
    background: white;
  }
  .top,
  .hero,
  #estudiantes,
  .formgrid,
  .tip,
  .footer,
  .sectionhead,
  .preview > h3,
  .preview > p,
  .downloadrow {
    display: none !important;
  }
  .section#docentes {
    padding: 0;
  }
  .layout {
    display: block;
  }
  .panel.preview {
    padding: 0;
    border: 0;
    box-shadow: none;
  }
  .slide {
    min-height: 92vh;
    padding: 12mm;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    break-after: page;
    background: white;
  }
  .slide:last-child {
    break-after: auto;
  }
}
.dialog-icon {
  display: none !important;
}
.downloadrow[hidden] {
  display: none !important;
}
.exam-settings {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 10px;
}
.exam-settings label:not(.timer-choice) {
  display: grid;
  gap: 4px;
}
.exam-settings select {
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: white;
  color: var(--ink);
  font: inherit;
  font-size: 12px;
}
.timer-choice {
  align-items: center;
}
.exam-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 13px;
}
.exam-game {
  margin-top: 18px;
  padding: clamp(14px, 3vw, 24px);
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #f6faf8;
}
.exam-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 900;
}
.question-stimulus {
  margin: 14px 0 8px;
  padding: 13px 15px;
  border-left: 4px solid var(--teal);
  border-radius: 9px;
  background: white;
  color: #385464;
  font-size: 13px;
  line-height: 1.65;
  white-space: pre-line;
}
.exam-game h3 {
  margin: 18px 0;
  font-size: clamp(17px, 2.4vw, 24px);
  line-height: 1.4;
}
.question-options {
  display: grid;
  gap: 9px;
}
.answer-option {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px;
  border: 1px solid #d9e5e0;
  border-radius: 11px;
  background: #fff;
  cursor: pointer;
  font-size: 13px;
}
.answer-option:has(input:checked) {
  border-color: var(--teal);
  box-shadow: 0 0 0 2px #137d7322;
}
.answer-option input {
  margin-top: 3px;
  accent-color: var(--teal);
}
.question-feedback {
  margin-top: 14px;
  padding: 13px;
  border-radius: 10px;
  background: #e7f4ed;
  color: #244d42;
  font-size: 13px;
}
.question-feedback.wrong {
  background: #fff2df;
  color: #704d17;
}
.exam-result {
  margin-top: 14px;
  padding: 16px;
  border-radius: 12px;
  background: #e7f4ed;
  color: #244d42;
}
.exam-result h3 {
  margin: 0 0 5px;
}
.exam-footnote {
  margin-top: 15px;
}
.ai-review {
  margin-top: 16px;
  padding: 14px;
  border: 1px solid #d6e8dc;
  border-radius: 13px;
  background: #f6faf7;
}
.ai-review > h3 {
  margin: 0;
}
.ai-review > p,
.ai-review-item p {
  color: var(--muted);
  font-size: 11px;
}
.ai-review-list {
  display: grid;
  gap: 8px;
  margin: 10px 0;
}
.ai-review-item {
  padding: 11px;
  border-radius: 9px;
  background: white;
  font-size: 12px;
}
.ai-review-item b {
  display: block;
}
.ai-review-item p {
  margin: 5px 0;
}
.ai-review-item small {
  color: var(--teal);
  font-weight: 800;
}
.ai-mark {
  display: inline-block;
  padding: 3px 7px;
  border-radius: 20px;
  background: #e7f4ed;
  color: var(--teal);
  font-size: 9px;
  font-weight: 900;
}
@media (max-width: 560px) {
  .plan-fields {
    grid-template-columns: 1fr;
  }
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.feature {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: #fff;
}
.feature h3 {
  margin: 0 0 5px;
  font-size: 18px;
}
.feature > p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 12px;
}
.checkrow {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 9px 10px;
  border: 1px solid #e2ebe7;
  border-radius: 10px;
  background: #fbfdfc;
  font-size: 12px;
}
.checkrow input {
  margin-top: 3px;
  accent-color: var(--teal);
}
.progressline {
  height: 8px;
  margin: 12px 0 5px;
  overflow: hidden;
  border-radius: 8px;
  background: #e9f0ed;
}
.progressline span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--teal);
  transition: width 0.2s;
}
.smallnote {
  color: var(--muted);
  font-size: 10px;
}
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0;
}
.filters select {
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 11px;
}
.study-results {
  display: grid;
  gap: 8px;
}
.study-card {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fbfdfc;
}
.study-card b {
  font-size: 13px;
}
.study-card p {
  margin: 3px 0;
  color: var(--muted);
  font-size: 11px;
}
.study-card small {
  color: var(--teal);
  font-weight: 800;
}
.plan-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}
.story-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 11px;
}
.story {
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}
.story blockquote {
  margin: 0 0 10px;
  font-size: 12px;
}
.story b {
  font-size: 11px;
  color: var(--teal);
}
.lesson-steps {
  display: grid;
  gap: 8px;
}
.guide-step {
  padding: 10px;
  border-left: 3px solid var(--teal);
  border-radius: 8px;
  background: #f4f9f6;
}
.guide-step b {
  font-size: 12px;
}
.guide-step p {
  margin: 4px 0 0;
  color: #536b78;
  font-size: 11px;
}
.guide-meta {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 11px;
}
@media (max-width: 760px) {
  .feature-grid,
  .story-grid {
    grid-template-columns: 1fr;
  }
}
/* Ajustes visuales: jerarquía, aire y lectura más clara */
.shell {
  width: min(1160px, calc(100% - 36px));
}
.top {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(12px);
  box-shadow: 0 3px 14px #173b4d08;
}
.top .shell {
  align-items: center;
}
.brand {
  font-size: 12px;
}
.hero {
  position: relative;
  overflow: hidden;
  margin: 24px 0;
  padding: clamp(28px, 6vw, 58px);
  border-radius: 26px;
  background: linear-gradient(118deg, #153149 0%, #176c71 72%, #258b7d 100%);
  box-shadow: 0 18px 40px #173b4d20;
}
.hero:after {
  position: absolute;
  right: -55px;
  bottom: -125px;
  width: 300px;
  height: 300px;
  border: 1px solid #ffffff22;
  border-radius: 50%;
  box-shadow:
    0 0 0 34px #ffffff09,
    0 0 0 70px #ffffff07;
  content: "";
  pointer-events: none;
}
.hero h1 {
  letter-spacing: -0.035em;
}
.hero p {
  font-size: 15px;
  line-height: 1.65;
}
.links {
  gap: 10px;
}
.pilllink {
  padding: 10px 15px;
  transition:
    transform 0.18s ease,
    background 0.18s ease;
}
.pilllink:hover {
  transform: translateY(-2px);
}
.section {
  padding: 32px 0 10px;
  scroll-margin-top: 78px;
}
.sectionhead {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.sectionhead h2 {
  letter-spacing: -0.025em;
}
.sectionhead p {
  line-height: 1.65;
}
.feature,
.resource,
.panel {
  box-shadow: 0 8px 24px #193d4e0a;
}
.feature,
.resource,
.panel,
.story {
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease;
}
.resource:hover,
.story:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px #193d4e12;
}
.resource {
  min-height: 190px;
  padding: 19px;
}
.resource h3 {
  font-size: 16px;
}
.resource p {
  font-size: 12px;
  line-height: 1.6;
}
.resource a {
  font-size: 12px;
}
.tip {
  font-size: 12px;
  line-height: 1.65;
}
.footer {
  margin-top: 44px;
  padding-top: 18px;
}
.exam-game {
  box-shadow: inset 0 1px #fff;
}
@media (max-width: 760px) {
  .shell {
    width: calc(100% - 24px);
  }
  .hero {
    margin: 14px 0;
    padding: 25px 20px;
  }
  .section {
    padding-top: 24px;
  }
}
