:root {
  --ink: #142018;
  --muted: #647064;
  --leaf: #2f7f43;
  --leaf-dark: #123e22;
  --olive: #6f7f2c;
  --gold: #d8a441;
  --clay: #b95b31;
  --cream: #f7f1e6;
  --paper: #fffaf1;
  --line: #d9d0ba;
  --charcoal: #10140f;
  --shadow: 0 20px 46px rgba(7, 9, 8, 0.16);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background:
    linear-gradient(rgba(247, 241, 230, 0.9), rgba(247, 241, 230, 0.94)),
    url("IMAGEN SUBPAGINA.jpg") center / cover fixed;
  line-height: 1.58;
}

body.course-body {
  background:
    linear-gradient(rgba(10, 21, 12, 0.88), rgba(247, 241, 230, 0.92) 34%, rgba(247, 241, 230, 0.96)),
    url("IMAGEN SUBPAGINA.jpg") center / cover fixed;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: Merriweather, Georgia, serif;
  line-height: 1.12;
  letter-spacing: 0;
}

p {
  margin: 0;
}

.page-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(216, 164, 65, 0.28);
  background: rgba(255, 250, 241, 0.95);
  backdrop-filter: blur(16px);
}

.nav-inner {
  width: min(1180px, calc(100% - 32px));
  min-height: 82px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand-duo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  min-width: 0;
}

.brand-duo img {
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.brand-duo .municipal-logo {
  width: 66px;
}

.brand-title {
  display: grid;
  gap: 2px;
}

.brand-title strong {
  color: var(--leaf-dark);
  font-family: Merriweather, Georgia, serif;
  font-size: 1rem;
  line-height: 1.1;
}

.brand-title span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.nav-links {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  font-weight: 900;
}

.nav-links a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 10px;
  border-radius: var(--radius);
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--leaf-dark);
  background: #e7f4df;
}

.nav-button {
  display: none;
  width: 44px;
  min-width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
}

.hero-page {
  position: relative;
  min-height: 520px;
  display: grid;
  align-items: end;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(7, 9, 8, 0.88), rgba(7, 9, 8, 0.58), rgba(7, 9, 8, 0.18)),
    var(--hero-image, url("IMAGEN SUBPAGINA.jpg")) center / cover;
  overflow: hidden;
}

.hero-page::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(0deg, rgba(247, 241, 230, 1), rgba(247, 241, 230, 0));
}

.hero-inner,
.section,
.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding: 118px 0 82px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: #fff4d9;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-page h1 {
  max-width: 880px;
  font-size: clamp(2.3rem, 5vw, 5rem);
}

.hero-page p {
  max-width: 720px;
  margin-top: 18px;
  color: #edf8ef;
  font-size: 1.08rem;
  font-weight: 730;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.btn {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 16px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 900;
  cursor: pointer;
}

.btn.primary {
  color: #fff;
  background: var(--leaf);
}

.btn.secondary {
  color: var(--ink);
  background: #fffaf1;
  border-color: var(--line);
}

.btn.gold {
  color: #2b1906;
  background: var(--gold);
}

.content {
  padding: 64px 0 78px;
}

.section {
  margin-top: 54px;
}

.section:first-child {
  margin-top: 0;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 24px;
}

.section-head h2 {
  color: var(--leaf-dark);
  font-size: clamp(1.65rem, 3vw, 2.55rem);
}

.section-head p {
  max-width: 720px;
  margin-top: 8px;
  color: var(--muted);
  font-weight: 760;
}

.grid {
  display: grid;
  gap: 18px;
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.panel,
.story-card,
.course-card,
.quiz-card,
.media-empty,
.source-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 250, 241, 0.96);
  box-shadow: 0 14px 30px rgba(7, 9, 8, 0.1);
}

.panel {
  padding: 24px;
}

.panel h3,
.story-card h3,
.course-card h3,
.quiz-card h3 {
  color: var(--leaf-dark);
  font-size: 1.18rem;
}

.panel p,
.story-card p,
.course-card p,
.quiz-card p {
  margin-top: 9px;
  color: var(--muted);
  font-weight: 700;
}

.image-card {
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.image-card img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
}

.story-card {
  overflow: hidden;
}

.story-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.story-card div {
  padding: 18px;
}

.timeline {
  display: grid;
  gap: 14px;
  counter-reset: steps;
}

.timeline article {
  position: relative;
  padding: 20px 20px 20px 68px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 250, 241, 0.96);
}

.timeline article::before {
  counter-increment: steps;
  content: counter(steps);
  position: absolute;
  left: 18px;
  top: 20px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--leaf);
  font-weight: 900;
}

.badge-row,
.source-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.badge,
.source-list a {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: var(--radius);
  background: #e7f4df;
  color: var(--leaf-dark);
  font-size: 0.84rem;
  font-weight: 900;
  text-decoration: none;
}

.media-empty {
  min-height: 260px;
  display: grid;
  place-items: center;
  padding: 24px;
  border-style: dashed;
  text-align: center;
}

.media-empty i {
  width: 40px;
  height: 40px;
  color: var(--leaf);
}

.course-hero {
  min-height: 560px;
  display: grid;
  align-items: end;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(7, 9, 8, 0.9), rgba(7, 9, 8, 0.62), rgba(7, 9, 8, 0.2)),
    url("IMAGEN SUBPAGINA.jpg") center / cover;
}

.course-board {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.module-menu {
  position: sticky;
  top: 102px;
  display: grid;
  gap: 10px;
}

.module-tab {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 250, 241, 0.96);
  color: var(--ink);
  cursor: pointer;
  font-weight: 900;
  text-align: left;
}

.module-tab.active {
  color: #fff;
  background: linear-gradient(135deg, var(--leaf), #1f5b32);
  border-color: transparent;
}

.course-module {
  display: none;
  gap: 18px;
}

.course-module.active {
  display: grid;
  animation: slideUp 380ms ease both;
}

.module-visual {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  min-height: 310px;
  box-shadow: var(--shadow);
}

.module-visual img {
  width: 100%;
  height: 100%;
  min-height: 310px;
  object-fit: cover;
  animation: slowZoom 12s ease-in-out infinite alternate;
}

.module-visual .caption {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  padding: 14px;
  border-radius: var(--radius);
  background: rgba(7, 9, 8, 0.76);
  color: #fff;
  font-weight: 850;
}

.lesson-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.lesson-step {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fffaf1;
}

.lesson-step strong {
  display: block;
  color: var(--leaf-dark);
  font-family: Merriweather, Georgia, serif;
}

.lesson-step p {
  margin-top: 8px;
  color: var(--muted);
  font-weight: 700;
}

.didactic-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.mini-card {
  min-height: 128px;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 16px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #17321f, #315f37);
  color: #fff;
  transform-style: preserve-3d;
  transition: transform 260ms ease;
}

.mini-card:hover {
  transform: rotateY(8deg) translateY(-4px);
}

.mini-card span {
  color: #fff4d9;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.quiz-card {
  padding: 20px;
}

.quiz-options {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.quiz-options button {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font-weight: 800;
  text-align: left;
  padding: 9px 12px;
}

.quiz-options button.correct {
  color: #11391f;
  background: #dff1d8;
  border-color: #8fc786;
}

.quiz-options button.wrong {
  color: #4b1d13;
  background: #f8ddd4;
  border-color: #d79480;
}

.quiz-result {
  min-height: 26px;
  margin-top: 10px;
  color: var(--leaf-dark);
  font-weight: 900;
}

.progress-shell {
  overflow: hidden;
  height: 12px;
  border-radius: 999px;
  background: #dce6d4;
}

.progress-bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--leaf), var(--gold));
  transition: width 300ms ease;
}

.site-footer {
  border-top: 1px solid rgba(216, 164, 65, 0.26);
  background: #062817;
  color: #d3ead8;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 26px 0;
  font-size: 0.92rem;
}

@keyframes slowZoom {
  from { transform: scale(1); }
  to { transform: scale(1.08); }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 980px) {
  .nav-button {
    display: inline-grid;
    place-items: center;
  }

  .nav-links {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 88px;
    display: none;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fffaf1;
    box-shadow: var(--shadow);
  }

  .nav-links.open {
    display: grid;
  }

  .grid.two,
  .grid.three,
  .course-board,
  .lesson-grid,
  .didactic-strip {
    grid-template-columns: 1fr;
  }

  .module-menu {
    position: static;
  }
}

@media (max-width: 640px) {
  .nav-inner,
  .hero-inner,
  .section,
  .footer-inner {
    width: min(100% - 24px, 1180px);
  }

  .brand-duo .municipal-logo {
    display: none;
  }

  .brand-title strong {
    font-size: 0.9rem;
  }

  .brand-title span {
    display: none;
  }

  .hero-page,
  .course-hero {
    min-height: 520px;
  }

  .hero-actions,
  .section-head,
  .footer-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }
}

.eyebrow.dark {
  color: var(--leaf-dark);
}

.hero-institutional {
  background:
    linear-gradient(90deg, rgba(3, 8, 5, 0.82), rgba(13, 35, 19, 0.42), rgba(13, 35, 19, 0.08)),
    var(--hero-image, url("IMAGEN SUBPAGINA.jpg")) center / cover;
  isolation: isolate;
}

.hero-institutional::before,
.hero-gallery::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 72% 24%, rgba(216, 164, 65, 0.26), transparent 30%);
  pointer-events: none;
}

.institutional-live {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(420px, 1.12fr);
  gap: 34px;
  align-items: center;
}

.live-copy {
  padding: 30px;
  border: 1px solid rgba(47, 127, 67, 0.2);
  border-radius: var(--radius);
  background: rgba(255, 250, 241, 0.96);
  box-shadow: var(--shadow);
}

.live-copy h2,
.mentor-card h2,
.certificate-actions h2 {
  color: var(--leaf-dark);
  font-size: clamp(1.7rem, 3vw, 2.7rem);
}

.live-copy p:not(.eyebrow),
.mentor-card p:not(.eyebrow),
.certificate-actions p {
  margin-top: 12px;
  color: var(--muted);
  font-weight: 760;
}

.live-visual-stack {
  position: relative;
  min-height: 500px;
}

.live-main,
.live-float {
  position: absolute;
  border: 4px solid #fffaf1;
  border-radius: var(--radius);
  object-fit: cover;
  box-shadow: var(--shadow);
}

.live-main {
  inset: 0 9% 10% 0;
  width: 78%;
  height: 82%;
}

.live-float.one {
  right: 0;
  top: 9%;
  width: 42%;
  height: 36%;
  animation: floatSoft 5s ease-in-out infinite;
}

.live-float.two {
  right: 8%;
  bottom: 0;
  width: 38%;
  height: 32%;
  animation: floatSoft 5s ease-in-out infinite 700ms;
}

.institutional-live-redesign {
  grid-template-columns: minmax(320px, 0.8fr) minmax(480px, 1.2fr);
}

.lab-stack {
  min-height: 560px;
}

.lab-stack .live-main {
  inset: 0 18% 12% 0;
  width: 74%;
  height: 74%;
  object-position: center top;
}

.lab-stack .live-float.one {
  right: 0;
  top: 8%;
  width: 38%;
  height: 34%;
}

.lab-stack .live-float.two {
  left: 8%;
  right: auto;
  bottom: 0;
  width: 36%;
  height: 30%;
}

.live-float.three {
  right: 5%;
  bottom: 4%;
  width: 36%;
  height: 31%;
  animation: floatSoft 5s ease-in-out infinite 1100ms;
}

.focus-stage {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.75fr);
  gap: 18px;
}

.focus-main {
  position: relative;
  overflow: hidden;
  min-height: 520px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: #0d1f12;
}

.focus-main img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
  transition: transform 620ms ease, opacity 260ms ease;
}

.focus-main img.contain-image {
  object-fit: contain;
  background: #fffaf1;
}

.focus-main img.aula-focus-image {
  height: 100%;
  min-height: 0;
  object-fit: cover;
  object-position: center top;
  background: transparent;
  transform: none;
  transform-origin: top center;
}

.focus-main.is-changing img {
  opacity: 0.55;
  transform: scale(1.04);
}

.focus-main.aula-focus.is-changing img.aula-focus-image {
  opacity: 0.55;
  transform: scale(1.02);
}

.focus-main.aula-focus {
  min-height: 650px;
  display: grid;
  grid-template-rows: minmax(370px, 1fr) auto;
  background: #03150a;
}

.focus-copy {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  padding: 18px;
  border-radius: var(--radius);
  background: rgba(6, 22, 12, 0.78);
  color: #fff;
  backdrop-filter: blur(8px);
}

.focus-main.aula-focus .focus-copy {
  position: relative;
  left: auto;
  right: auto;
  bottom: auto;
  padding: 22px 26px;
  border-radius: 0 0 var(--radius) var(--radius);
  background: linear-gradient(180deg, rgba(5, 28, 11, 0.86), rgba(5, 22, 10, 0.96));
}

.focus-main.aula-focus .focus-copy h3 {
  font-size: clamp(1.35rem, 3vw, 2.35rem);
}

.focus-main.aula-focus .focus-copy p {
  max-width: 850px;
}

.focus-copy span {
  color: #ffe7ad;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.focus-copy h3 {
  margin-top: 6px;
  font-size: clamp(1.25rem, 2.6vw, 2.1rem);
}

.focus-copy p {
  margin-top: 8px;
  color: #edf8ef;
  font-weight: 760;
}

.focus-thumbs {
  display: grid;
  gap: 12px;
}

.focus-thumbs button {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 104px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 250, 241, 0.96);
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  font-weight: 900;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.focus-thumbs button:hover,
.focus-thumbs button.active {
  transform: translateY(-3px);
  border-color: rgba(47, 127, 67, 0.5);
  background: #edf7e8;
}

.focus-thumbs img {
  width: 96px;
  height: 78px;
  border-radius: var(--radius);
  object-fit: cover;
}

.story-card-lift {
  transition: transform 230ms ease, box-shadow 230ms ease;
}

.story-card-lift:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.history-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.86fr) minmax(0, 1.14fr);
  gap: 26px;
  align-items: stretch;
}

.history-gallery {
  display: grid;
  gap: 14px;
}

.history-gallery figure {
  position: relative;
  min-height: 170px;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  animation: slideUp 600ms ease both;
}

.history-gallery figure:nth-child(2) {
  animation-delay: 120ms;
}

.history-gallery figure:nth-child(3) {
  animation-delay: 220ms;
}

.history-gallery img {
  width: 100%;
  height: 100%;
  min-height: 170px;
  object-fit: cover;
  transition: transform 420ms ease;
}

.history-gallery figure:hover img {
  transform: scale(1.06);
}

.history-gallery figcaption {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 6px 10px;
  border-radius: var(--radius);
  background: rgba(6, 22, 12, 0.76);
  color: #fffaf1;
  font-weight: 900;
}

.history-timeline article {
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.history-timeline article:hover {
  transform: translateX(6px);
  box-shadow: 0 16px 34px rgba(7, 9, 8, 0.12);
}

.lab-origin {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(300px, 1fr) minmax(220px, 0.72fr);
  gap: 18px;
  align-items: stretch;
}

.origin-visual {
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.origin-visual img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
}

.origin-visual.secondary img {
  object-position: center;
}

.origin-copy h3 {
  color: var(--leaf-dark);
  font-size: clamp(1.45rem, 2.4vw, 2.1rem);
}

.mission-vision {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
}

.mission-avatar {
  position: relative;
  width: 170px;
  height: 170px;
  display: grid;
  place-items: center;
  justify-self: center;
  border-radius: 50%;
  background: rgba(255, 250, 241, 0.9);
  box-shadow: var(--shadow);
  animation: avatarBob 3.8s ease-in-out infinite;
}

.area-photo-card img {
  transition: transform 450ms ease;
}

.area-photo-card:hover img {
  transform: scale(1.06);
}

.mission-panel,
.area-panel {
  position: relative;
  overflow: hidden;
}

.mission-panel > i,
.area-panel > i {
  width: 38px;
  height: 38px;
  margin-bottom: 14px;
  color: var(--leaf);
}

.hero-gallery {
  background:
    linear-gradient(90deg, rgba(5, 12, 7, 0.86), rgba(14, 38, 22, 0.52), rgba(14, 38, 22, 0.1)),
    var(--hero-image, url("IMAGEN SUBPAGINA.jpg")) center / cover;
}

.gallery-focus .focus-main {
  min-height: 560px;
}

.activity-carousel {
  overflow: hidden;
  padding: 10px 0;
}

.activity-track {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: carouselDrift 32s linear infinite;
}

.activity-carousel:hover .activity-track {
  animation-play-state: paused;
}

.activity-track figure {
  width: min(340px, 78vw);
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 250, 241, 0.96);
  box-shadow: 0 16px 34px rgba(7, 9, 8, 0.12);
}

.activity-track img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.activity-track figcaption {
  padding: 12px 14px;
  color: var(--leaf-dark);
  font-weight: 900;
}

.video-slot {
  background:
    linear-gradient(rgba(255, 250, 241, 0.88), rgba(255, 250, 241, 0.88)),
    url("AULA VIRTUAL.png") center / cover;
}

[data-course-content][hidden],
[data-certificate-panel][hidden] {
  display: none !important;
}

.course-gate {
  scroll-margin-top: 110px;
}

.register-panel {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(320px, 1.28fr);
  gap: 26px;
  align-items: start;
}

.register-panel h2 {
  color: var(--leaf-dark);
  font-size: clamp(1.7rem, 3vw, 2.55rem);
}

.register-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.register-form label {
  display: grid;
  gap: 7px;
  color: var(--leaf-dark);
  font-size: 0.84rem;
  font-weight: 900;
}

.register-form input,
.register-form select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 720;
  padding: 0 12px;
}

.register-form .btn,
.form-status {
  grid-column: 1 / -1;
}

.form-status {
  min-height: 24px;
  color: var(--leaf-dark);
  font-weight: 900;
}

.mentor-card {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  padding: 24px;
  border: 1px solid rgba(47, 127, 67, 0.24);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 250, 241, 0.98), rgba(232, 244, 225, 0.95)),
    url("IMAGEN SUBPAGINA.jpg") center / cover;
  box-shadow: var(--shadow);
}

.mentor-avatar {
  position: relative;
  width: 132px;
  height: 132px;
  display: grid;
  place-items: center;
}

.mentor-avatar img {
  width: 96px;
  height: 96px;
  border: 4px solid #fffaf1;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 16px 26px rgba(7, 9, 8, 0.18);
  animation: avatarBob 3.8s ease-in-out infinite;
}

.mentor-avatar.chrys-avatar img,
.mission-avatar img {
  width: 132px;
  height: 132px;
  border-radius: 50%;
  object-fit: contain;
  background: radial-gradient(circle, #fffaf1 0%, #e5f5df 70%);
}

.mentor-avatar.chrys-avatar::before,
.mission-avatar::before {
  content: "";
  position: absolute;
  inset: 8px;
  z-index: -1;
  border-radius: 50%;
  background: conic-gradient(from 120deg, rgba(216, 164, 65, 0.2), rgba(47, 127, 67, 0.35), rgba(255, 250, 241, 0.7), rgba(216, 164, 65, 0.2));
  animation: avatarGlow 6s linear infinite;
}

.mentor-message {
  display: inline-flex;
  max-width: 720px;
  margin-top: 14px;
  padding: 14px 16px;
  border: 1px solid rgba(47, 127, 67, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.74);
  color: var(--leaf-dark) !important;
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 900 !important;
  box-shadow: 0 12px 26px rgba(7, 9, 8, 0.08);
  transition: opacity 240ms ease;
}

.mentor-avatar .wing {
  position: absolute;
  top: 22px;
  width: 58px;
  height: 82px;
  border: 2px solid rgba(47, 127, 67, 0.38);
  border-radius: 58% 42% 60% 40%;
  background: rgba(215, 237, 205, 0.42);
  transform-origin: bottom center;
}

.mentor-avatar .wing.left {
  left: 0;
  transform: rotate(-24deg);
  animation: wingBeatLeft 900ms ease-in-out infinite alternate;
}

.mentor-avatar .wing.right {
  right: 0;
  transform: rotate(24deg) scaleX(-1);
  animation: wingBeatRight 900ms ease-in-out infinite alternate;
}

.quiz-score {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: var(--radius);
  background: #e7f4df;
  color: var(--leaf-dark);
}

.course-validation {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.final-validation-panel .course-validation {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.final-validation-panel h2 {
  margin-top: 4px;
  color: var(--leaf-dark);
  font-size: clamp(1.35rem, 2.8vw, 2rem);
}

.course-validation p {
  max-width: 560px;
  color: var(--muted);
  font-weight: 800;
}

.course-validation .btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.detail-trigger {
  display: block;
  width: 100%;
  border: 0;
  padding: 0;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.detail-trigger::after {
  content: "Ver detalle";
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: var(--radius);
  background: rgba(255, 250, 241, 0.92);
  color: var(--leaf-dark);
  font-size: 0.78rem;
  font-weight: 900;
}

.module-detail {
  display: none;
  padding: 22px;
  border: 1px solid rgba(47, 127, 67, 0.24);
  border-radius: var(--radius);
  background: #fffaf1;
  box-shadow: 0 12px 26px rgba(7, 9, 8, 0.08);
}

.module-detail.open {
  display: block;
  animation: slideUp 280ms ease both;
}

.module-detail h3 {
  color: var(--leaf-dark);
}

.module-detail p {
  margin-top: 10px;
  color: var(--muted);
  font-weight: 720;
}

.quiz-stack {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.quiz-options button:disabled {
  cursor: default;
}

.certificate-grid {
  display: grid;
  grid-template-columns: minmax(320px, 1.05fr) minmax(280px, 0.95fr);
  gap: 22px;
  align-items: center;
}

.certificate-preview {
  position: relative;
  overflow: visible;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
  aspect-ratio: 3 / 2;
}

.certificate-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.certificate-preview strong {
  position: absolute;
  left: 23%;
  right: 23%;
  top: 52.8%;
  color: #143d22;
  font-family: Merriweather, Georgia, serif;
  font-size: clamp(0.64rem, 1.25vw, 1.05rem);
  line-height: 1.1;
  text-align: center;
  text-wrap: balance;
  transform: translateY(-50%);
}

.certificate-actions small {
  display: block;
  margin-top: 14px;
  color: var(--muted);
  font-weight: 760;
}

.certificate-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.certificate-buttons .btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

@keyframes floatSoft {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(1.4deg); }
}

@keyframes carouselDrift {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-50% - 8px)); }
}

@keyframes avatarBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes avatarGlow {
  to { transform: rotate(360deg); }
}

@keyframes wingBeatLeft {
  from { opacity: 0.72; transform: rotate(-18deg) scale(0.96); }
  to { opacity: 0.92; transform: rotate(-34deg) scale(1.02); }
}

@keyframes wingBeatRight {
  from { opacity: 0.72; transform: rotate(18deg) scaleX(-1) scale(0.96); }
  to { opacity: 0.92; transform: rotate(34deg) scaleX(-1) scale(1.02); }
}

@media (max-width: 980px) {
  .institutional-live,
  .focus-stage,
  .history-layout,
  .lab-origin,
  .mission-vision,
  .register-panel,
  .mentor-card,
  .certificate-grid,
  .quiz-stack {
    grid-template-columns: 1fr;
  }

  .live-visual-stack {
    min-height: 440px;
  }

  .register-form {
    grid-template-columns: 1fr;
  }

  .mission-avatar {
    order: -1;
  }
}

@media (max-width: 640px) {
  .focus-main,
  .focus-main img,
  .gallery-focus .focus-main {
    min-height: 430px;
  }

  .focus-main.aula-focus {
    min-height: 610px;
    grid-template-rows: minmax(285px, 1fr) auto;
  }

  .focus-main.aula-focus img.aula-focus-image {
    min-height: 0;
  }

  .focus-main.aula-focus .focus-copy {
    padding: 18px;
  }

  .focus-thumbs button {
    grid-template-columns: 82px minmax(0, 1fr);
  }

  .focus-thumbs img {
    width: 82px;
    height: 70px;
  }

  .live-visual-stack {
    min-height: 390px;
  }

  .live-main {
    width: 92%;
    height: 78%;
  }

  .live-float.one {
    width: 48%;
    height: 30%;
  }

  .live-float.two {
    width: 50%;
    height: 30%;
    right: 0;
  }

  .live-float.three {
    width: 48%;
    height: 28%;
    right: 0;
  }

  .mentor-card {
    padding: 20px;
  }

  .mentor-avatar {
    margin: 0 auto;
  }

  .certificate-buttons .btn {
    width: 100%;
  }
}
