:root {
  --primary: #72256b;
  --secondary: #fff9eb;
  --text-white: #ffffff;
  --light-gray: #ececec;
  --green: #365843;
}

@font-face {
  font-family: "Acumin Pro";
  src: url("../fonts/Acumin_Pro.oft") format("opentype"),
    url("../fonts/Acumin_Pro.otf") format("opentype");
  font-display: swap;
}

@font-face {
  font-family: "Acumin Pro Wide Bold";
  src: url("../fonts/Acumin_Pro_Wide_Bold.oft") format("opentype"),
    url("../fonts/Acumin_Pro_Wide_Bold.otf") format("opentype");
  font-display: swap;
}

.text-acumin {
  font-family: "Acumin Pro", "Segoe UI", sans-serif;
}

.text-acumin-bold {
  font-family: "Acumin Pro Wide Bold", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  height: 100%;
  min-height: 100%;
  font-family: "Acumin Pro", "Segoe UI", sans-serif;
  background: radial-gradient(circle at 80% 20%, #9d4b95 0%, var(--primary) 46%, #4f174b 100%);
  color: var(--text-white);
}

body {
  overflow: hidden;
}

.app-shell {
  height: 100vh;
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  position: relative;
}

.app-header {
  background: #ffffff;
  color: var(--primary);
  padding: 14px 22px;
}

.header-page {
  font-size: 0.82rem;
}

.header-title {
  font-family: "Acumin Pro Wide Bold", "Segoe UI", sans-serif;
  font-size: 1.25rem;
  line-height: 1.1;
}

.bold {
  font-family: "Acumin Pro Wide Bold", "Segoe UI", sans-serif;
}

.normal {
  font-family: "Acumin Pro", "Segoe UI", sans-serif;
  line-height: 1.1;
}

.line_15 {
  line-height: 1.5;
}

.line_14 {
  line-height: 1.4;
}

.white {
  color: var(--text-white) !important;
}

.primary {
  color: var(--primary) !important;
}

.secondary {
  color: var(--secondary);
}

.accent {
  color: var(--green);
}

.back-primary {
  background-color: var(--primary);
}

.back-secondary {
  background-color: var(--secondary);
}

.icon-min {
  width: auto;
  height: 50px;
}

.icon-btn {
  border: 0;
  background: transparent;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 999px;
  transition: transform 0.18s ease, background-color 0.18s ease, box-shadow 0.2s ease;
}

.icon-btn img {
  width: 24px;
  height: 24px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.icon-clic {
  height: 5rem;
  width: 5rem;
}

sup {
  font-size: 0.65em;
}

#menuBtn:hover,
#menuBtn:focus-visible {
  background: rgba(114, 37, 107, 0.1);
  box-shadow: 0 0 0 2px rgba(114, 37, 107, 0.2);
}

#menuBtn:active {
  transform: scale(0.94);
}

#menuBtn:hover img,
#menuBtn:focus-visible img {
  transform: scale(1.08);
}

.slide-stage {
  position: relative;
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  min-height: 0;
  height: 100%;
  overflow: hidden;
}

.slide-content {
  width: 100%;
  max-width: 100%;
  text-align: center;
  min-height: 0;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
}

.slide-title {
  font-family: "Acumin Pro Wide Bold", "Segoe UI", sans-serif;
  font-size: clamp(1.8rem, 4vw, 3.1rem);
  margin-bottom: 14px;
}

.slide-description {
  font-size: clamp(1rem, 2vw, 1.35rem);
  margin: 0 auto;
  max-width: 780px;
}

.slide-controls {
  position: absolute;
  right: 22px;
  bottom: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.nav-btn {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: 0;
  background: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
  transition: transform 0.18s ease, box-shadow 0.2s ease, background-color 0.2s ease, opacity 0.2s ease;
}

.nav-btn img {
  width: 20px;
  height: 20px;
  transition: transform 0.2s ease;
}

.nav-btn:hover:not(:disabled),
.nav-btn:focus-visible:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.24);
}

.nav-btn:active:not(:disabled) {
  transform: scale(0.95);
}

.nav-btn:hover:not(:disabled) img,
.nav-btn:focus-visible:not(:disabled) img {
  transform: scale(1.08);
}

.nav-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}

.app-footer {
  height: 56px;
  padding: 0 22px;
  color: var(--text-white);
  background: transparent;
  font-size: 0.95rem;
}

.footer-left img {
  height: 22px;
}

.sidebar {
  position: fixed;
  top: 0;
  right: 0;
  width: min(420px, 94vw);
  height: 100vh;
  background: #ffffff;
  z-index: 1050;
  transform: translateX(100%);
  transition: transform 0.25s ease;
  display: flex;
  flex-direction: column;
}

.sidebar.open {
  transform: translateX(0);
}

.sidebar-top {
  background: var(--primary);
  color: var(--text-white);
  padding: 18px;
  position: relative;
  flex: 0 0 auto;
}

.close-sidebar {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

.close-sidebar img {
  width: 18px;
  height: 18px;
  transition: transform 0.2s ease;
}

.close-sidebar:hover,
.close-sidebar:focus-visible {
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.25);
}

.close-sidebar:active {
  transform: scale(0.92);
}

.close-sidebar:hover img,
.close-sidebar:focus-visible img {
  transform: rotate(90deg);
}

.sidebar-module {
  margin-top: 30px;
}

.sidebar-module img {
  /* width: 24px; */
  height: 4rem;
  margin-top: 2px;
}

.sidebar-module p,
.sidebar-module h3 {
  font-size: 0.95rem;
  line-height: 1.35;
}

.progress-wrap {
  margin-top: 14px;
}

.progress-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.8rem;
  font-family: "Acumin Pro Wide Bold", "Segoe UI", sans-serif;
  letter-spacing: 0.02em;
}

.progress-title,
.progress-value {
  text-transform: uppercase;
}

.progress {
  height: 12px;
  background: rgba(255, 255, 255, 0.35);
}

.progress-bar {
  background: #ffffff;
  width: 7%;
}

.sidebar-bottom {
  background: var(--light-gray);
  padding: 14px;
  overflow-y: auto;
  flex: 1 1 auto;
  min-height: 0;
}

.slides-label {
  color: var(--primary);
  font-size: 0.86rem;
  margin-bottom: 10px;
}

.slides-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 9px;
}

.slides-list li a {
  width: 100%;
  border: 0;
  border-radius: 14px;
  background: #f3f3f3;
  color: #145e52;
  text-align: left;
  padding: 8px 10px;
  min-height: 58px;
  font-size: 0.92rem;
  font-family: "Acumin Pro", "Segoe UI", sans-serif;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.slide-main {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.slide-chip {
  min-width: 48px;
  min-height: 40px;
  border-radius: 10px;
  background: #dfe4e4;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "Acumin Pro Wide Bold", "Segoe UI", sans-serif;
  font-size: 1.05rem;
  line-height: 1;
  flex: 0 0 auto;
}

.slide-name {
  font-size: 0.88rem;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.slide-order {
  font-family: "Acumin Pro Wide Bold", "Segoe UI", sans-serif;
  font-size: 0.95rem;
  color: #4f8074;
  flex: 0 0 auto;
}

.slides-list li a:hover,
.slides-list li a:focus-visible {
  transform: translateX(3px);
  box-shadow: 0 8px 18px rgba(114, 37, 107, 0.18);
}

.slides-list li a.active {
  background: var(--primary);
  color: #ffffff;
  font-family: "Acumin Pro Wide Bold", "Segoe UI", sans-serif;
  box-shadow: 0 12px 26px rgba(114, 37, 107, 0.35);
}

.slides-list li a.active .slide-chip {
  background: #a77ca8;
  color: #fff9eb;
}

.slides-list li a.active .slide-name,
.slides-list li a.active .slide-order {
  color: #ffffff;
}

.slides-list li a:active {
  transform: scale(0.98);
}

@media (max-width: 768px) {
  .slides-list li a {
    min-height: 52px;
    padding: 7px 9px;
  }

  .slide-main {
    gap: 8px;
  }

  .slide-chip {
    min-width: 40px;
    min-height: 34px;
    font-size: 0.92rem;
  }

  .slide-name {
    font-size: 0.8rem;
  }

  .slide-order {
    font-size: 0.82rem;
  }
}

.sidebar.open .slides-list li {
  animation: itemReveal 0.26s ease both;
}

.sidebar.open .slides-list li:nth-child(1) {
  animation-delay: 0.01s;
}

.sidebar.open .slides-list li:nth-child(2) {
  animation-delay: 0.02s;
}

.sidebar.open .slides-list li:nth-child(3) {
  animation-delay: 0.03s;
}

.sidebar.open .slides-list li:nth-child(4) {
  animation-delay: 0.04s;
}

.sidebar.open .slides-list li:nth-child(5) {
  animation-delay: 0.05s;
}

.sidebar.open .slides-list li:nth-child(6) {
  animation-delay: 0.06s;
}

.sidebar.open .slides-list li:nth-child(7) {
  animation-delay: 0.07s;
}

.sidebar.open .slides-list li:nth-child(8) {
  animation-delay: 0.08s;
}

.sidebar.open .slides-list li:nth-child(9) {
  animation-delay: 0.09s;
}

.sidebar.open .slides-list li:nth-child(10) {
  animation-delay: 0.1s;
}

.sidebar.open .slides-list li:nth-child(11) {
  animation-delay: 0.11s;
}

.sidebar.open .slides-list li:nth-child(12) {
  animation-delay: 0.12s;
}

.sidebar.open .slides-list li:nth-child(13) {
  animation-delay: 0.13s;
}

.sidebar.open .slides-list li:nth-child(14) {
  animation-delay: 0.14s;
}

.sidebar.open .slides-list li:nth-child(15) {
  animation-delay: 0.15s;
}

@keyframes itemReveal {
  from {
    opacity: 0;
    transform: translateX(12px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (prefers-reduced-motion: reduce) {

  .icon-btn,
  .icon-btn img,
  .nav-btn,
  .nav-btn img,
  .close-sidebar,
  .close-sidebar img,
  .slides-list li a,
  .sidebar {
    transition: none !important;
  }

  .sidebar.open .slides-list li {
    animation: none !important;
  }
}

.sidebar-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: 1040;
}

.percent h3 {
  font-size: 5rem;
}

.percent p {
  line-height: 1;
}

.correct {
  border: 5px solid green;
  border-radius: 10px;
}

.incorrect {
  border: 5px solid red;
  border-radius: 10px;
}

.button-answer {
  cursor: pointer;
  background-color: #6ca07b;
  color: white;
}

button.button-answer:hover {
  background-color: #5b8a66;
  color: white;
}

.reference {
  font-size: .9rem;
}

.img-fit {
  max-height: 100%;
  width: auto;
}

.image-reference {
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-reference img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}

@media (max-width: 768px) {
  .app-header {
    padding: 10px 12px;
  }

  .header-title {
    font-size: 1.05rem;
  }

  .slide-content {
    max-width: 100%;
    padding: 16px 64px 16px 12px;
  }

  .app-footer {
    padding: 0 12px;
    font-size: 0.85rem;
  }

  .slide-controls {
    right: 12px;
    bottom: 66px;
  }
}

.text-left {
  text-align: left;
}



.slide01-hero {
  text-align: left;
  color: #fff9eb;
}

.slide01-hero .row {
  min-height: 0;
}

.slide01-copy {
  padding: clamp(8px, 2vw, 24px) clamp(8px, 2vw, 24px) clamp(10px, 2.2vw, 28px) clamp(8px, 2vw, 12px);
}

.slide01-brand {
  width: clamp(180px, 22vw, 280px);
  max-width: 100%;
  margin-bottom: clamp(24px, 6vh, 90px);
}

.slide01-heading {
  font-family: "Acumin Pro Wide Bold", "Segoe UI", sans-serif;
  font-size: clamp(2rem, 4.1vw, 4rem);
  line-height: 1.04;
  letter-spacing: 0.01em;
  max-width: 24ch;
}

.slide01-media {
  min-height: 0;
  height: 100%;
  position: relative;
  background-image: url("../img/Slides/slide01/oxiris-derecha.png");
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: contain;
  transform-origin: bottom center;
}

.slide02-media {
  min-height: 0;
  height: 100%;
  position: relative;
  background-image: url("../img/Slides/slide02/oxiris_back.svg");
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: contain;
  transform-origin: bottom center;
}

.slide02-media>img {
  transform: rotate(-20deg);
  margin-left: -1rem;
  transform-origin: center center;
}

.slide-char {
  display: inline-block;
  white-space: pre;
}

.slide-word {
  display: inline-block;
  white-space: nowrap;
}

.slide04-click-icon {
  cursor: pointer;
}

.slide10-click-text {
  cursor: pointer;
  display: inline-block;
  transform-origin: center center;
}

.slide04-text {
  visibility: hidden;
  opacity: 0;
}

.slide04-footnote {
  font-size: 0.72rem;
  line-height: 1.25;
}

/* Slide05 — background video column */
[data-fade-seq] {
  visibility: hidden;
  opacity: 0;
}

.slide05-video-col {
  position: relative;
  overflow: hidden;
}

.slide05-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 991px) {
  .slide01-copy {
    padding-top: 14px;
    padding-left: 6px;
    padding-right: 6px;
  }

  .slide01-brand {
    margin-bottom: 18px;
  }

  .slide01-heading {
    max-width: none;
  }

  .slide01-media {
    min-height: 250px;
    margin-top: 14px;
    background-position: center bottom;
  }

}