/* ODEx — visor transparente, sin tarjeta ni separadores estructurales. */
:root {
  color-scheme: light;
  --text: #1d293d;
  --muted: #5b687d;
  --accent: #3858bd;
  --accent-rgb: 56 88 189;
  --accent-light: #3858bd;
  --line: rgb(128 148 175 / .18);
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-soft: cubic-bezier(.25, .1, .25, 1);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  background: transparent;
}

body {
  overflow: hidden;
  background: transparent;
  color: var(--text);
  font: 15px/1.55 Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
  cursor: pointer;
}

button,
summary,
input {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
summary:focus-visible,
input:focus-visible,
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

button:disabled {
  cursor: default;
  opacity: .45;
}

button svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 100;
  padding: 12px 16px;
  border-radius: 8px;
  background: #fff;
  color: var(--accent);
}

.skip-link:focus {
  top: 12px;
}

.slideshow {
  position: relative;
  isolation: isolate;
  width: 100%;
  max-width: none;
  height: 100vh;
  height: 100dvh;
  margin: auto;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 294px;
  grid-template-rows: auto minmax(0, 1fr);
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  transition: grid-template-columns 560ms var(--ease-out);
}

.slideshow.index-hidden {
  grid-template-columns: minmax(0, 1fr) 0px;
}

.slideshow::before {
  content: none;
}

.page-header {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 32px;
  border: 0;
  background: transparent;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  transition: opacity 200ms ease;
}

.heading {
  min-width: 0;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 7px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 550;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.document-code {
  color: var(--accent);
  font-weight: 700;
  letter-spacing: .045em;
  transition: color 700ms ease;
}

.eyebrow-divider {
  display: none;
}

.page-header h1 {
  margin: 0;
  font-size: clamp(21px, 1.8vw, 29px);
  font-weight: 580;
  line-height: 1.15;
  letter-spacing: -.035em;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.text-button,
.icon-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-width: 44px;
  min-height: 44px;
  padding: 10px 13px;
  border: 1px solid transparent;
  border-radius: 12px;
  color: var(--muted);
  background: transparent;
  font-size: 13px;
  font-weight: 550;
  transition: color 280ms ease, background-color 240ms ease, border-color 240ms ease, box-shadow 240ms ease, transform 180ms var(--ease-out);
}

.icon-button {
  padding: 10px;
}

.text-button[aria-expanded="true"] {
  background: rgb(var(--accent-rgb) / .065);
  color: var(--accent);
  border-color: rgb(var(--accent-rgb) / .09);
}

.text-button:active,
.icon-button:active {
  transform: scale(.95);
}

.icon-button svg {
  transition: transform 300ms var(--ease-out);
}

.fullscreen-exit {
  display: none;
}

.is-presenting .fullscreen-enter {
  display: none;
}

.is-presenting .fullscreen-exit {
  display: block;
}

.viewer {
  grid-column: 1;
  grid-row: 2;
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  background: transparent;
  transition: opacity 200ms ease;
}

.slide-stage {
  position: relative;
  isolation: isolate;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: clamp(16px, 2.6vw, 40px);
  touch-action: pan-y pinch-zoom;
}

/* No surface tint or blurred artwork: the host page shows through. */
.slide-stage::before {
  content: none;
}

.slide-ambient {
  display: none;
}

.slide-stage img {
  grid-area: 1 / 1;
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  object-fit: contain;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.slide-stage img.slide-outgoing {
  z-index: 1;
  pointer-events: none;
}

.slide-loading {
  position: absolute;
  bottom: 12px;
  left: 50%;
  z-index: 4;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 13px;
  white-space: nowrap;
  border: 1px solid rgb(var(--accent-rgb) / .09);
  border-radius: 100px;
  background: rgb(255 255 255 / .91);
  color: var(--muted);
  font-size: 11px;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.loading-orbit {
  width: 13px;
  height: 13px;
  border: 1.5px solid rgb(var(--accent-rgb) / .2);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: loading-turn 900ms linear infinite;
}

@keyframes loading-turn {
  to {
    transform: rotate(360deg);
  }
}

.slide-error {
  position: absolute;
  inset: 24px;
  z-index: 5;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 12px;
  padding: 24px;
  background: transparent;
  text-align: center;
  color: var(--muted);
}

.slide-stage.has-error>img {
  visibility: hidden;
}

.slide-error p {
  margin: 0;
}

.slide-error a {
  color: var(--accent);
  font-size: 13px;
  text-underline-offset: 4px;
}

.slide-error button {
  color: var(--accent);
  background: rgb(var(--accent-rgb) / .07);
}

.viewer-footer {
  padding: 0 32px 16px;
  border: 0;
  background: transparent;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

/* Progress remains available to assistive technology; no horizontal rule. */
.progress {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding-top: 16px;
}

.slide-context {
  min-width: 0;
}

.slide-context p {
  margin: 0;
}

.context-label {
  color: #637086;
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .13em;
}

#sectionTitle {
  max-width: 46ch;
  margin-top: 3px;
  color: #35465f;
  font-size: 13px;
  font-weight: 550;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.navigation {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.navigation .icon-button {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgb(255 255 255 / .65);
  border-color: var(--line);
}

.navigation #next {
  color: var(--accent);
  background: rgb(var(--accent-rgb) / .075);
  border-color: rgb(var(--accent-rgb) / .12);
}

.counter {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 7px;
  color: #67758a;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

#slideNumber {
  width: 35px;
  min-height: 44px;
  padding: 4px;
  border: 1px solid transparent;
  border-radius: 9px;
  color: var(--text);
  background: transparent;
  font-weight: 650;
  text-align: center;
  appearance: textfield;
  -moz-appearance: textfield;
  transition: background-color 200ms ease, border-color 200ms ease;
}

#slideNumber::-webkit-inner-spin-button,
#slideNumber::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

#slideNumber:focus {
  background: rgb(var(--accent-rgb) / .045);
  border-color: rgb(var(--accent-rgb) / .2);
}

.shortcut-hint {
  margin: 10px 0 0;
  color: #66758a;
  font-size: 10px;
  text-align: right;
}

kbd {
  display: inline-block;
  min-width: 16px;
  margin-inline: 1px;
  font: inherit;
  text-align: center;
  color: #4d5f79;
}

dialog.contents {
  grid-column: 2;
  grid-row: 2;
  position: static;
  width: 294px;
  max-width: none;
  height: 100%;
  max-height: none;
  min-height: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: transparent;
  color: var(--text);
  border: 0;
  border-radius: 0;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

dialog.contents[open] {
  display: flex;
  flex-direction: column;
}

.contents-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 20px 17px 14px 25px;
}

.contents-header h2 {
  margin: 0;
  color: #5b687d;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 650;
}

.contents-header .icon-button {
  border-radius: 50%;
}

.menu {
  position: relative;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  padding: 0 15px 24px;
  scrollbar-width: thin;
  scrollbar-color: #d5ddea transparent;
}

.menu details {
  margin: 3px 0;
}

.menu summary,
.menu .section-link,
.menu .slide-button {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 44px;
  margin: 0;
  padding: 11px 11px;
  border: 0;
  border-radius: 7px;
  list-style: none;
  color: var(--muted);
  background: transparent;
  font-size: 12px;
  line-height: 1.5;
  font-weight: 450;
  text-align: left;
  cursor: pointer;
  transition: color 300ms ease, background-color 300ms ease;
}

.menu summary::-webkit-details-marker {
  display: none;
}

.menu>details>summary,
.menu>.section-link {
  color: #3e4e65;
  font-size: 12.5px;
  font-weight: 550;
}

.summary-title {
  flex: 1;
  min-width: 0;
}

.summary-chev {
  display: block;
  flex: 0 0 6px;
  width: 6px;
  height: 6px;
  margin: 0 3px 3px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  opacity: .55;
  transform: rotate(45deg);
  transition: transform 340ms var(--ease-out), opacity 240ms ease;
}

.menu details[open]:not([data-expanded])>summary .summary-chev,
.menu details[data-expanded="true"]>summary .summary-chev {
  transform: rotate(225deg);
  opacity: .85;
}

.menu__items {
  margin: 2px 0 7px 12px;
  padding-left: 8px;
  border: 0;
}

/* JavaScript animates disclosure height in both directions, retaining [open] until the closing frame. */
.slide-number {
  min-width: 20px;
  color: #68798f;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  transition: color 300ms ease;
}

.menu [aria-current="page"] {
  color: var(--accent);
  background: rgb(var(--accent-rgb) / .07);
}

.menu details.has-active>summary,
.menu [aria-current="page"] .slide-number {
  color: var(--accent);
}

.menu-indicator {
  position: absolute;
  top: 0;
  left: 7px;
  z-index: 1;
  width: 2px;
  height: 20px;
  border-radius: 2px;
  background: var(--accent);
  opacity: 0;
  pointer-events: none;
  transition: transform 480ms var(--ease-out), height 400ms var(--ease-out), opacity 220ms ease, background-color 700ms ease;
}

.contents-footer {
  flex: 0 0 auto;
  margin: auto 25px 0;
  padding: 16px 0 19px;
  border: 0;
  color: #637086;
  font-size: 10px;
  letter-spacing: .02em;
}

.slideshow.is-presenting {
  position: fixed;
  inset: 0;
  z-index: 1000;
  max-width: none;
  background: transparent;
}

.slideshow::backdrop {
  background: transparent;
}

.slideshow.is-presenting .page-header {
  padding-block: 12px;
}

@keyframes interface-enter {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

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

.is-ready .heading {
  animation: interface-enter 650ms var(--ease-out) both;
}

.is-ready .header-actions {
  animation: interface-enter 650ms 65ms var(--ease-out) both;
}

.is-ready .viewer-footer {
  animation: interface-enter 650ms 100ms var(--ease-out) both;
}

@media (hover: hover) and (pointer: fine) {

  .text-button:hover,
  .icon-button:hover {
    color: var(--accent);
    background: rgb(var(--accent-rgb) / .06);
    border-color: rgb(var(--accent-rgb) / .11);
  }

  .navigation .icon-button:hover {
    color: var(--accent);
    background: rgb(var(--accent-rgb) / .08);
    border-color: rgb(var(--accent-rgb) / .22);
    box-shadow: 0 3px 12px rgb(var(--accent-rgb) / .055);
  }

  .navigation #next:hover {
    background: rgb(var(--accent-rgb) / .12);
  }

  #next:hover svg {
    transform: translateX(2px);
  }

  #previous:hover svg {
    transform: translateX(-2px);
  }

  .menu summary:hover,
  .menu button:hover {
    color: var(--accent);
    background: rgb(var(--accent-rgb) / .045);
  }

  .menu [aria-current="page"]:hover {
    background: rgb(var(--accent-rgb) / .09);
  }
}

@media (max-width: 900px) {

  .slideshow,
  .slideshow.index-hidden {
    grid-template-columns: minmax(0, 1fr) 0px;
  }

  .page-header {
    padding: 18px 22px;
  }

  dialog.contents {
    position: fixed;
    inset: 0 0 0 auto;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    margin: 0;
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
    background: transparent;
  }

  dialog.contents::backdrop {
    background: transparent;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  /* A transparent mobile menu must not overlap the slide's text. */
  .slideshow.mobile-index-open .page-header,
  .slideshow.mobile-index-open .viewer {
    opacity: 0;
    pointer-events: none;
  }

  .viewer-footer {
    padding: 0 22px 14px;
  }

  .slide-stage {
    padding: 14px;
  }
}

@media (max-width: 560px) {
  .page-header {
    padding: 15px 14px;
    gap: 8px;
  }

  .page-header h1 {
    font-size: 21px;
  }

  .eyebrow {
    font-size: 8px;
    gap: 7px;
    margin-bottom: 5px;
    letter-spacing: .06em;
  }

  .eyebrow-divider {
    width: 10px;
  }

  .header-actions {
    gap: 0;
  }

  .text-button .button-label {
    display: none;
  }

  .text-button {
    padding: 10px;
  }

  .footer-row {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding-top: 12px;
  }

  .navigation {
    justify-content: center;
  }

  .slide-context {
    text-align: center;
  }

  #sectionTitle {
    max-width: none;
    margin: 0;
    font-size: 12px;
  }

  .context-label,
  .shortcut-hint {
    display: none;
  }

  .viewer-footer {
    padding: 0 14px 12px;
    padding-bottom: max(12px, env(safe-area-inset-bottom));
  }

  .slide-stage {
    padding: 6px;
  }
}

@media (max-height: 500px) and (orientation: landscape) {

  .page-header,
  .slideshow.is-presenting .page-header {
    padding-block: 5px;
  }

  .eyebrow,
  .shortcut-hint,
  .slide-context {
    display: none;
  }

  .page-header h1 {
    font-size: 18px;
  }

  .viewer-footer {
    padding-bottom: 5px;
  }

  .footer-row {
    padding-top: 5px;
    flex-direction: row;
    justify-content: center;
  }

  .slide-stage {
    padding: 4px;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* Fondo blanco SOLO en pantalla completa */

.slideshow:fullscreen {
  background: #ffffff !important;
}

.slideshow:fullscreen::backdrop {
  background: #ffffff !important;
}

/* Safari */
.slideshow:-webkit-full-screen {
  background: #ffffff !important;
}

.slideshow:-webkit-full-screen::backdrop {
  background: #ffffff !important;
}

/* =========================================================
   CABECERA ESTABLE DESPUÉS DE LA CARGA
   ========================================================= */

.heading,
.header-actions,
.viewer-footer {
  opacity: 1;
  transform: none;
}

/* El cambio del índice no debe animar la cabecera */
.slideshow.index-hidden .heading,
.slideshow.index-hidden .header-actions,
.slideshow.index-hidden .viewer-footer {
  animation: none;
  transform: none;
}

.slideshow {
  position: relative;
  isolation: isolate;

  width: 100%;
  max-width: none;

  height: 100vh;
  height: 100dvh;

  margin: auto;
  overflow: hidden;

  display: grid;

  grid-template-columns:
    minmax(0, 1fr) 294px;

  grid-template-rows:
    auto minmax(0, 1fr);

  border: 0;
  border-radius: 0;
  box-shadow: none;

  background: transparent;

  transition:
    grid-template-columns 260ms cubic-bezier(.22, 1, .36, 1);
}

/* =========================================================
   ÍNDICE ESTABLE
   ========================================================= */

dialog.contents {
  opacity: 1;
  transform: none !important;

  transition: none !important;
}

/*
 * Oculto: no recibe clicks.
 * NO animamos opacity ni transform.
 * Solo se anima la columna del grid.
 */
.slideshow.index-hidden dialog.contents {
  pointer-events: none;
  visibility: hidden;
}

/*
 * Al volver a aparecer permanece estable.
 */
.slideshow:not(.index-hidden) dialog.contents {
  pointer-events: auto;
  visibility: visible;
}

/* =========================================================
   ESTILO IGUAL A "ON THIS PAGE"
   ========================================================= */

:root {
  /* Equivalentes a tu globals.css */
  --ui-foreground: hsl(0 0% 13.9%);
  --ui-muted-foreground: hsl(0 0% 45.1%);
  --ui-primary: hsl(231 48% 48%);

  /* Tailwind transition-colors */
  --ui-transition:
    color 150ms cubic-bezier(.4, 0, .2, 1),
    border-color 150ms cubic-bezier(.4, 0, .2, 1),
    background-color 150ms cubic-bezier(.4, 0, .2, 1);
}


/* =========================================================
   QUITAR ANIMACIONES / EFECTOS ANTIGUOS
   ========================================================= */

.text-button,
.icon-button,
.menu summary,
.menu .section-link,
.menu .slide-button {
  transform: none !important;
  box-shadow: none !important;

  transition: var(--ui-transition) !important;
}

.text-button:active,
.icon-button:active,
.menu summary:active,
.menu .section-link:active,
.menu .slide-button:active {
  transform: none !important;
}

#next:hover svg,
#previous:hover svg {
  transform: none !important;
}


/* =========================================================
   BOTÓN "ÍNDICE"
   Igual al enlace de OnThisPage
   ========================================================= */

.text-button {
  min-height: 36px;
  min-width: 0;

  padding: 4px 10px 4px 12px;

  border: 0 !important;
  border-left: 2px solid transparent !important;
  border-radius: 0 !important;

  background: transparent !important;

  color: var(--ui-muted-foreground);

  font-size: 13px;
  line-height: 1.5;
  font-weight: 500;
  letter-spacing: normal;

  box-shadow: none !important;
}


/* Hover = hover:text-primary */

.text-button:hover {
  color: var(--ui-primary);

  background: transparent !important;
  border-left-color: transparent !important;
}


/* Índice abierto = activeId */

.text-button[aria-expanded="true"] {
  color: var(--ui-primary);

  background: transparent !important;

  border-left-color:
    var(--ui-primary) !important;

  font-weight: 500;
}


/* Focus sin recuadro */

.text-button:focus,
.text-button:focus-visible {
  outline: none !important;
  box-shadow: none !important;

  color: var(--ui-primary);

  background: transparent !important;
}


/* =========================================================
   BOTONES DE ICONOS
   Fullscreen, cerrar índice, anterior, siguiente...
   ========================================================= */

.icon-button {
  min-width: 36px;
  min-height: 36px;

  width: 36px;
  height: 36px;

  padding: 7px;

  border: 0 !important;
  border-radius: 0 !important;

  background: transparent !important;

  color: var(--ui-muted-foreground);

  box-shadow: none !important;

  transition: var(--ui-transition) !important;
}


.icon-button:hover {
  color: var(--ui-primary);

  background: transparent !important;

  border: 0 !important;
  box-shadow: none !important;
}


.icon-button:focus,
.icon-button:focus-visible {
  color: var(--ui-primary);

  background: transparent !important;

  border: 0 !important;

  outline: none !important;
  box-shadow: none !important;
}


.icon-button:active {
  color: var(--ui-primary);

  background: transparent !important;

  transform: none !important;
}


/* SVG sin desplazamientos ni zoom */

.icon-button svg {
  transform: none !important;

  transition:
    color 150ms cubic-bezier(.4, 0, .2, 1),
    stroke 150ms cubic-bezier(.4, 0, .2, 1) !important;
}


/* =========================================================
   ANTERIOR / SIGUIENTE
   ========================================================= */

.navigation .icon-button,
.navigation #previous,
.navigation #next {
  width: 36px;
  height: 36px;

  border: 0 !important;
  border-radius: 0 !important;

  background: transparent !important;

  color: var(--ui-muted-foreground);

  box-shadow: none !important;
}


.navigation .icon-button:hover,
.navigation #previous:hover,
.navigation #next:hover {
  color: var(--ui-primary);

  background: transparent !important;

  border: 0 !important;

  box-shadow: none !important;
}


/* =========================================================
   CABECERA DEL ÍNDICE
   ========================================================= */

.contents-header {
  padding:
    16px 15px 10px 15px;
}


.contents-header h2 {
  margin: 0;

  color: var(--ui-foreground);

  font-size: 14px;

  font-weight: 600;

  line-height: 1.5;

  letter-spacing: -0.01em;

  text-transform: none;
}


/* =========================================================
   MENÚ LATERAL
   Base exacta del OnThisPage:
   block
   py-1
   pl-4
   border-l-2
   transition-colors
   ========================================================= */

.menu {
  padding:
    0 15px 24px 15px;
}


.menu details {
  margin: 0;
}


.menu summary,
.menu .section-link,
.menu .slide-button {
  position: relative;

  display: flex;
  align-items: center;

  width: 100%;

  min-height: 32px;

  margin: 0;

  padding:
    4px 8px 4px 16px;

  border: 0 !important;

  border-left:
    2px solid transparent !important;

  border-radius: 0 !important;

  background: transparent !important;

  color: var(--ui-muted-foreground);

  font-size: 13px;

  line-height: 1.5;

  font-weight: 400;

  letter-spacing: normal;

  text-align: left;

  box-shadow: none !important;

  transition: var(--ui-transition) !important;
}


/* =========================================================
   NIVEL PRINCIPAL
   heading.level === 1
   text-[14px] font-medium text-foreground
   ========================================================= */

.menu>details>summary,
.menu>.section-link {
  color: var(--ui-foreground);

  font-size: 14px;

  font-weight: 500;
}


/* =========================================================
   SUBNIVELES
   Equivalente a ml-4
   ========================================================= */

.menu__items {
  margin:
    0 0 2px 16px;

  padding: 0;

  border: 0;
}


.menu__items .slide-button,
.menu__items .section-link,
.menu__items summary {
  font-size: 13px;

  color: var(--ui-muted-foreground);

  font-weight: 400;
}


/* =========================================================
   HOVER
   border-transparent hover:text-primary
   ========================================================= */

.menu summary:hover,
.menu .section-link:hover,
.menu .slide-button:hover,
.menu button:hover {
  color: var(--ui-primary) !important;

  background: transparent !important;

  border-left-color:
    transparent !important;

  box-shadow: none !important;
}


/* =========================================================
   ELEMENTO ACTIVO
   text-primary border-primary font-medium
   ========================================================= */

.menu [aria-current="page"] {
  color: var(--ui-primary) !important;

  background: transparent !important;

  border-left-color:
    var(--ui-primary) !important;

  font-weight: 500;
}


/* Número del elemento activo */

.menu [aria-current="page"] .slide-number {
  color: var(--ui-primary) !important;

  font-weight: 500;
}


/*
 * Si una sección contiene la diapositiva activa,
 * el título se ilumina pero NO añadimos otra línea.
 */

.menu details.has-active>summary {
  color: var(--ui-primary) !important;

  background: transparent !important;

  font-weight: 500;
}


/* Solo el elemento realmente seleccionado lleva línea */

.menu details.has-active>summary:not([aria-current="page"]) {
  border-left-color:
    transparent !important;
}


/* =========================================================
   FOCUS
   Igual visualmente al estado hover/activo.
   Sin rectángulo exterior.
   ========================================================= */

.menu summary:focus,
.menu summary:focus-visible,
.menu .section-link:focus,
.menu .section-link:focus-visible,
.menu .slide-button:focus,
.menu .slide-button:focus-visible {
  color: var(--ui-primary) !important;

  background: transparent !important;

  outline: none !important;
  box-shadow: none !important;
}


/* =========================================================
   NÚMEROS
   ========================================================= */

.slide-number {
  min-width: 20px;

  color: var(--ui-muted-foreground);

  font-size: 11px;

  font-weight: 400;

  font-variant-numeric:
    tabular-nums;

  transition:
    color 150ms cubic-bezier(.4, 0, .2, 1) !important;
}


/* =========================================================
   FLECHA DE DESPLEGABLE
   ========================================================= */

.summary-chev {
  color: currentColor;

  opacity: .6;

  transition:
    transform 150ms cubic-bezier(.4, 0, .2, 1),
    opacity 150ms cubic-bezier(.4, 0, .2, 1) !important;
}


.menu details[open]>summary .summary-chev,
.menu details[data-expanded="true"]>summary .summary-chev {
  transform: rotate(225deg);

  opacity: 1;
}


/* =========================================================
   QUITAMOS EL INDICADOR ANTIGUO
   Ya usamos border-left-2 como OnThisPage
   ========================================================= */

.menu-indicator {
  display: none !important;
}


/* =========================================================
   CONTADOR DE DIAPOSITIVAS
   ========================================================= */

.counter {
  color: var(--ui-muted-foreground);

  font-size: 12px;

  font-weight: 400;
}


#slideNumber {
  color: var(--ui-foreground);

  background: transparent !important;

  border: 0 !important;
  border-radius: 0 !important;

  font-weight: 500;

  outline: none !important;

  box-shadow: none !important;

  transition:
    color 150ms cubic-bezier(.4, 0, .2, 1) !important;
}


#slideNumber:hover,
#slideNumber:focus {
  color: var(--ui-primary);

  background: transparent !important;

  border: 0 !important;

  outline: none !important;
  box-shadow: none !important;
}


/* =========================================================
   SIN RECUADROS DE FOCUS ANTIGUOS
   ========================================================= */

button:focus,
button:focus-visible,
summary:focus,
summary:focus-visible,
input:focus,
input:focus-visible,
a:focus,
a:focus-visible {
  outline: none !important;
  box-shadow: none !important;
}


/* =========================================================
   MÓVIL
   Conservamos targets algo mayores
   ========================================================= */

@media (max-width: 900px) {

  .text-button,
  .icon-button {
    min-height: 44px;
  }

  .icon-button {
    width: 44px;
    height: 44px;
  }

  .menu summary,
  .menu .section-link,
  .menu .slide-button {
    min-height: 44px;
  }
}

/* =========================================================
   HEADER — MISMO ESTILO QUE LA WEB
   ========================================================= */

.odex-hero {
  position: relative;

  padding-left: 8px;
  padding-right: 8px;

  max-width: 896px;

  animation:
    odexFadeUp 0.85s ease-out both;
}


/* ODEx-05 */

.odex-kicker {
  margin: 0;

  font-size: 12px;
  line-height: 16px;

  font-weight: 600;

  text-transform: uppercase;

  letter-spacing: 0.22em;

  color: rgb(63 81 181 / 0.65);
}


/* Título */

.page-header .odex-title {
  margin: 12px 0 0;

  color: #3f51b5;

  font-size: 30px;
  line-height: 1.15;

  font-weight: 600;

  letter-spacing: -0.025em;
}


/* Línea inferior */

.odex-title-line {
  width: 64px;
  height: 1px;

  margin-top: 16px;

  border-radius: 9999px;

  background:
    linear-gradient(to right,
      rgb(14 165 233 / 0.45),
      rgb(63 81 181 / 0.45),
      transparent);

  transform-origin: left;

  animation:
    odexGrowLine 1s ease-out both;
}


/* Entrada suave */

@keyframes odexFadeUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

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


/* Línea creciendo */

@keyframes odexGrowLine {
  from {
    opacity: 0;
    transform: scaleX(0);
  }

  to {
    opacity: 1;
    transform: scaleX(1);
  }
}


/* md:px-4 + md:text-5xl */

@media (min-width: 768px) {
  .odex-hero {
    padding-left: 16px;
    padding-right: 16px;
  }

  .page-header .odex-title {
    font-size: 48px;
  }
}


/* lg:px-6 */

@media (min-width: 1024px) {
  .odex-hero {
    padding-left: 24px;
    padding-right: 24px;
  }
}

.odex-kicker {
  margin: 0;

  font-size: 12px;
  line-height: 16px;
  font-weight: 600;

  text-transform: uppercase;
  letter-spacing: 0.22em;

  color: rgb(63 81 181 / 0.65);
}

.page-header .odex-title {
  margin: 12px 0 0;

  font-size: 30px;
  /* text-3xl */
  line-height: 1.15;

  font-weight: 600;
  letter-spacing: -0.025em;

  color: #3f51b5;
}

@media (min-width: 768px) {
  .page-header .odex-title {
    font-size: 33px;
    /* md:text-5xl */
  }
}

/* =========================================================
   ODEX — MOTION SYSTEM
   Animaciones suaves sin modificar el diseño
   ========================================================= */


/* =========================================================
   1. CABECERA
   Entrada escalonada: kicker -> título -> línea
   ========================================================= */

/* Evitamos que la animación antigua se sume a esta */
.odex-hero {
  animation: none !important;
}

.odex-kicker {
  animation:
    odexKickerEnter 520ms cubic-bezier(.22, 1, .36, 1) 40ms both;
}

.page-header .odex-title {
  animation:
    odexTitleEnter 720ms cubic-bezier(.22, 1, .36, 1) 110ms both;
}

.odex-title-line {
  animation:
    odexLineEnter 850ms cubic-bezier(.22, 1, .36, 1) 300ms both;
}


@keyframes odexKickerEnter {
  from {
    opacity: 0;
    transform: translateY(5px);
    letter-spacing: .28em;
  }

  to {
    opacity: 1;
    transform: translateY(0);
    letter-spacing: .22em;
  }
}


@keyframes odexTitleEnter {
  from {
    opacity: 0;
    transform: translateY(12px);
    filter: blur(3px);
  }

  60% {
    filter: blur(0);
  }

  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}


@keyframes odexLineEnter {
  from {
    opacity: 0;
    transform: scaleX(0);
  }

  to {
    opacity: 1;
    transform: scaleX(1);
  }
}


/* =========================================================
   2. BOTONES SUPERIORES
   Aparecen suavemente al cargar
   ========================================================= */

.header-actions {
  animation:
    odexActionsEnter 650ms cubic-bezier(.22, 1, .36, 1) 210ms both !important;
}


@keyframes odexActionsEnter {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }

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


/* Evitamos duplicar la animación antigua */
.is-ready .header-actions {
  animation:
    odexActionsEnter 650ms cubic-bezier(.22, 1, .36, 1) 210ms both !important;
}


/* =========================================================
   3. BOTONES
   Microinteracciones muy suaves
   ========================================================= */

.text-button,
.icon-button {
  transition:
    color 150ms cubic-bezier(.4, 0, .2, 1),
    border-color 150ms cubic-bezier(.4, 0, .2, 1),
    background-color 150ms cubic-bezier(.4, 0, .2, 1),
    opacity 150ms ease,
    transform 180ms cubic-bezier(.22, 1, .36, 1) !important;
}


@media (hover: hover) and (pointer: fine) {

  .text-button:hover {
    transform: translateY(-1px) !important;
  }

  .icon-button:hover {
    transform:
      translateY(-1px) scale(1.035) !important;
  }

  .text-button:active,
  .icon-button:active {
    transform:
      translateY(0) scale(.97) !important;

    transition-duration: 80ms !important;
  }
}


/* Iconos */
.icon-button svg {
  transition:
    transform 220ms cubic-bezier(.22, 1, .36, 1),
    stroke 150ms ease !important;
}


@media (hover: hover) and (pointer: fine) {

  .icon-button:hover svg {
    transform:
      scale(1.06) !important;
  }

}


/* Las flechas anterior/siguiente sí pueden desplazarse ligeramente */

@media (hover: hover) and (pointer: fine) {

  #next:hover svg {
    transform:
      translateX(2px) !important;
  }

  #previous:hover svg {
    transform:
      translateX(-2px) !important;
  }

}


/* =========================================================
   4. VIEWER / PRESENTACIÓN
   Entrada inicial
   ========================================================= */

.slide-stage {
  animation:
    odexStageEnter 800ms cubic-bezier(.22, 1, .36, 1) 180ms both;
}


@keyframes odexStageEnter {
  from {
    opacity: 0;
    transform: translateY(8px) scale(.995);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}


/* =========================================================
   5. FOOTER
   ========================================================= */

.viewer-footer {
  animation:
    odexFooterEnter 650ms cubic-bezier(.22, 1, .36, 1) 300ms both !important;
}


@keyframes odexFooterEnter {
  from {
    opacity: 0;
    transform: translateY(7px);
  }

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


/* =========================================================
   6. ÍNDICE LATERAL
   Solo animamos su CONTENIDO.
   El ancho continúa controlado por el grid.
   ========================================================= */

.slideshow:not(.index-hidden) .contents-header {
  animation:
    odexMenuHeaderEnter 360ms cubic-bezier(.22, 1, .36, 1) both;
}


@keyframes odexMenuHeaderEnter {
  from {
    opacity: 0;
    transform: translateX(5px);
  }

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


/* Elementos principales */

.slideshow:not(.index-hidden) .menu>* {
  animation:
    odexMenuItemEnter 420ms cubic-bezier(.22, 1, .36, 1) both;
}


.slideshow:not(.index-hidden) .menu>*:nth-child(1) {
  animation-delay: 40ms;
}

.slideshow:not(.index-hidden) .menu>*:nth-child(2) {
  animation-delay: 65ms;
}

.slideshow:not(.index-hidden) .menu>*:nth-child(3) {
  animation-delay: 90ms;
}

.slideshow:not(.index-hidden) .menu>*:nth-child(4) {
  animation-delay: 115ms;
}

.slideshow:not(.index-hidden) .menu>*:nth-child(5) {
  animation-delay: 140ms;
}

.slideshow:not(.index-hidden) .menu>*:nth-child(6) {
  animation-delay: 165ms;
}

.slideshow:not(.index-hidden) .menu>*:nth-child(n + 7) {
  animation-delay: 190ms;
}


@keyframes odexMenuItemEnter {
  from {
    opacity: 0;
    transform: translateX(6px);
  }

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


/* =========================================================
   7. HOVER DEL MENÚ
   Estilo OnThisPage + desplazamiento mínimo
   ========================================================= */

.menu summary,
.menu .section-link,
.menu .slide-button {
  transition:
    color 150ms cubic-bezier(.4, 0, .2, 1),
    border-color 150ms cubic-bezier(.4, 0, .2, 1),
    background-color 150ms cubic-bezier(.4, 0, .2, 1),
    transform 200ms cubic-bezier(.22, 1, .36, 1) !important;
}


@media (hover: hover) and (pointer: fine) {

  .menu summary:hover,
  .menu .section-link:hover,
  .menu .slide-button:hover {
    transform:
      translateX(2px) !important;
  }

}


/* Al pulsar vuelve suavemente al sitio */

.menu summary:active,
.menu .section-link:active,
.menu .slide-button:active {
  transform:
    translateX(0) scale(.99) !important;
}


/* =========================================================
   8. ELEMENTO ACTIVO
   Flash muy ligero al cambiar de diapositiva
   ========================================================= */

.menu [aria-current="page"] {
  animation:
    odexActiveItem 420ms cubic-bezier(.22, 1, .36, 1);
}


@keyframes odexActiveItem {
  0% {
    background:
      rgb(var(--accent-rgb) / 0);
  }

  45% {
    background:
      rgb(var(--accent-rgb) / .075);
  }

  100% {
    background:
      transparent;
  }
}


/* Línea izquierda activa */

.menu [aria-current="page"] {
  transition:
    color 150ms ease,
    border-color 220ms ease,
    background-color 220ms ease,
    transform 200ms cubic-bezier(.22, 1, .36, 1) !important;
}


/* =========================================================
   9. SUBMENÚS
   Los hijos aparecen escalonados
   ========================================================= */

.menu details[data-expanded="true"]>.menu__items>* {
  animation:
    odexSubItemEnter 330ms cubic-bezier(.22, 1, .36, 1) both;
}


.menu details[data-expanded="true"]>.menu__items>*:nth-child(1) {
  animation-delay: 20ms;
}

.menu details[data-expanded="true"]>.menu__items>*:nth-child(2) {
  animation-delay: 45ms;
}

.menu details[data-expanded="true"]>.menu__items>*:nth-child(3) {
  animation-delay: 70ms;
}

.menu details[data-expanded="true"]>.menu__items>*:nth-child(4) {
  animation-delay: 95ms;
}

.menu details[data-expanded="true"]>.menu__items>*:nth-child(n + 5) {
  animation-delay: 110ms;
}


@keyframes odexSubItemEnter {
  from {
    opacity: 0;
    transform: translateX(-4px);
  }

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


/* =========================================================
   10. CHEVRON
   ========================================================= */

.summary-chev {
  transition:
    transform 300ms cubic-bezier(.22, 1, .36, 1),
    opacity 180ms ease !important;
}


.menu details[data-expanded="true"]>summary .summary-chev {
  transform:
    rotate(225deg) scale(1.08);

  opacity: 1;
}


/* =========================================================
   11. CONTADOR
   ========================================================= */

#slideNumber {
  transition:
    color 160ms ease,
    transform 200ms cubic-bezier(.22, 1, .36, 1) !important;
}


#slideNumber:focus {
  transform:
    scale(1.07);
}


/* =========================================================
   12. LOADING
   ========================================================= */

.slide-loading:not([hidden]) {
  animation:
    odexLoadingEnter 300ms cubic-bezier(.22, 1, .36, 1) both;
}


@keyframes odexLoadingEnter {
  from {
    opacity: 0;
    transform:
      translateX(-50%) translateY(5px) scale(.97);
  }

  to {
    opacity: 1;
    transform:
      translateX(-50%) translateY(0) scale(1);
  }
}


/* =========================================================
   13. FULLSCREEN
   Entrada suave
   ========================================================= */

.slideshow.is-presenting {
  animation:
    odexFullscreenEnter 320ms ease-out;
}


@keyframes odexFullscreenEnter {
  from {
    opacity: .96;
  }

  to {
    opacity: 1;
  }
}


/* =========================================================
   14. ACCESIBILIDAD
   Respeta la preferencia del sistema
   ========================================================= */

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

  .odex-kicker,
  .odex-title,
  .odex-title-line,
  .header-actions,
  .slide-stage,
  .viewer-footer,
  .contents-header,
  .menu>*,
  .menu__items>*,
  .menu [aria-current="page"],
  .slide-loading,
  .slideshow.is-presenting {
    animation: none !important;
  }

  .text-button,
  .icon-button,
  .icon-button svg,
  .menu summary,
  .menu .section-link,
  .menu .slide-button,
  .summary-chev,
  #slideNumber {
    transition: none !important;
    transform: none !important;
  }
}

.menu {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
  overflow-anchor: none;
}

/* =========================================================
   PESOS FIJOS
   Seleccionar una diapositiva NO cambia el grosor del texto
   ========================================================= */

/* Nivel principal */
.menu>details>summary,
.menu>.section-link {
  font-weight: 500 !important;
}


/* Subniveles */
.menu__items .slide-button,
.menu__items .section-link,
.menu__items summary {
  font-weight: 400 !important;
}


/*
 * Activo dentro de un subnivel:
 * cambia de color, pero NO pasa a negrita.
 */
.menu__items [aria-current="page"] {
  font-weight: 400 !important;
}


/*
 * Número de diapositiva:
 * tampoco cambia de grosor al seleccionarlo.
 */
.menu [aria-current="page"] .slide-number {
  font-weight: 400 !important;
}


/*
 * Los elementos principales mantienen siempre
 * exactamente el mismo peso.
 */
.menu>.section-link[aria-current="page"],
.menu>details>summary[aria-current="page"],
.menu>details.has-active>summary {
  font-weight: 500 !important;
}

/* =========================================================
   ODEX — MICROINTERACCIONES DEL MENÚ V2
   Despliegue más suave de subsecciones
   Sin punto junto a la flecha
   ========================================================= */


/* =========================================================
   1. BASE
   ========================================================= */

.menu summary,
.menu .section-link,
.menu .slide-button {
  isolation: isolate;
  overflow: hidden;

  transition:
    color 180ms cubic-bezier(.4, 0, .2, 1),
    background-color 220ms cubic-bezier(.4, 0, .2, 1),
    border-color 220ms cubic-bezier(.4, 0, .2, 1),
    opacity 180ms ease !important;
}


/* Fondo visual muy sutil */

.menu summary::before,
.menu .section-link::before,
.menu .slide-button::before {
  content: "";

  position: absolute;
  inset: 1px 0;

  z-index: -1;

  border-radius: 5px;

  background:
    linear-gradient(90deg,
      rgb(var(--accent-rgb) / .07),
      rgb(var(--accent-rgb) / .02) 70%,
      transparent);

  opacity: 0;

  pointer-events: none;

  transform:
    scaleX(.97);

  transform-origin:
    left center;

  transition:
    opacity 240ms ease,
    transform 340ms cubic-bezier(.22, 1, .36, 1);
}


/* =========================================================
   2. HOVER
   ========================================================= */

@media (hover: hover) and (pointer: fine) {

  .menu summary:hover::before,
  .menu .section-link:hover::before,
  .menu .slide-button:hover::before {
    opacity: .5;
    transform: scaleX(1);
  }

}


/* =========================================================
   3. CLICK
   ========================================================= */

.menu summary:active::before,
.menu .section-link:active::before,
.menu .slide-button:active::before {
  animation:
    odexMenuPressSoft 260ms cubic-bezier(.22, 1, .36, 1);
}


@keyframes odexMenuPressSoft {

  0% {
    opacity: .15;
  }

  45% {
    opacity: .65;
  }

  100% {
    opacity: .1;
  }

}


/* =========================================================
   4. CHEVRON
   Más fluido y natural
   ========================================================= */

.summary-chev {
  transform-origin: center;

  transition:
    transform 460ms cubic-bezier(.22, 1, .36, 1),
    opacity 220ms ease,
    filter 220ms ease !important;
}


.menu details[data-expanded="true"]>summary .summary-chev {

  transform:
    rotate(225deg) scale(1.05);

  opacity: 1;

  filter:
    drop-shadow(0 0 2px rgb(var(--accent-rgb) / .12));
}


.menu details[data-expanded="false"]>summary .summary-chev {

  transform:
    rotate(45deg) scale(1);

  opacity: .6;

  filter: none;
}


/* Rebote muy ligero, sin exagerar */

.menu details[data-expanded="true"]>summary .summary-chev {
  animation:
    odexChevronOpenSoft 520ms cubic-bezier(.22, 1, .36, 1);
}


@keyframes odexChevronOpenSoft {

  0% {
    transform:
      rotate(45deg) scale(.97);
  }

  72% {
    transform:
      rotate(229deg) scale(1.07);
  }

  100% {
    transform:
      rotate(225deg) scale(1.05);
  }

}


/* =========================================================
   5. APERTURA DE SUBSECCIÓN
   Más progresiva
   ========================================================= */

.menu details[data-expanded="true"]>.menu__items {

  transform-origin:
    top center;

  animation:
    odexSubmenuOpenSmooth 520ms cubic-bezier(.22, 1, .36, 1) both;
}


@keyframes odexSubmenuOpenSmooth {

  0% {
    opacity: 0;
    transform:
      translateY(-3px) scaleY(.985);

    filter:
      blur(1px);
  }

  35% {
    opacity: .45;

    filter:
      blur(.5px);
  }

  70% {
    opacity: .88;

    transform:
      translateY(-1px) scaleY(.997);
  }

  100% {
    opacity: 1;

    transform:
      translateY(0) scaleY(1);

    filter:
      blur(0);
  }

}


/* =========================================================
   6. CIERRE DE SUBSECCIÓN
   ========================================================= */

.menu details[data-expanded="false"][open]>.menu__items {

  transform-origin:
    top center;

  animation:
    odexSubmenuCloseSmooth 360ms cubic-bezier(.4, 0, .2, 1) both;
}


@keyframes odexSubmenuCloseSmooth {

  0% {
    opacity: 1;

    transform:
      translateY(0) scaleY(1);

    filter:
      blur(0);
  }

  55% {
    opacity: .55;
  }

  100% {
    opacity: 0;

    transform:
      translateY(-2px) scaleY(.985);

    filter:
      blur(.7px);
  }

}


/* =========================================================
   7. HIJOS AL ABRIR
   Fade escalonado suave
   ========================================================= */

.menu details[data-expanded="true"]>.menu__items>* {

  animation:
    odexChildFadeSmooth 440ms cubic-bezier(.22, 1, .36, 1) both;
}


.menu details[data-expanded="true"]>.menu__items>*:nth-child(1) {
  animation-delay: 25ms;
}

.menu details[data-expanded="true"]>.menu__items>*:nth-child(2) {
  animation-delay: 50ms;
}

.menu details[data-expanded="true"]>.menu__items>*:nth-child(3) {
  animation-delay: 75ms;
}

.menu details[data-expanded="true"]>.menu__items>*:nth-child(4) {
  animation-delay: 100ms;
}

.menu details[data-expanded="true"]>.menu__items>*:nth-child(5) {
  animation-delay: 125ms;
}

.menu details[data-expanded="true"]>.menu__items>*:nth-child(n + 6) {
  animation-delay: 145ms;
}


@keyframes odexChildFadeSmooth {

  from {
    opacity: 0;

    transform:
      translateY(-2px);

    filter:
      blur(.45px);
  }

  to {
    opacity: 1;

    transform:
      translateY(0);

    filter:
      blur(0);
  }

}


/* =========================================================
   8. FLASH MUY SUAVE EN EL SUMMARY AL ABRIR
   ========================================================= */

.menu details[data-expanded="true"]>summary::before {

  animation:
    odexSummaryOpenSoft 520ms cubic-bezier(.22, 1, .36, 1);
}


@keyframes odexSummaryOpenSoft {

  0% {
    opacity: 0;
  }

  35% {
    opacity: .45;
  }

  100% {
    opacity: 0;
  }

}


/* =========================================================
   9. ELEMENTO ACTIVO
   ========================================================= */

.menu [aria-current="page"]::before {

  animation:
    odexCurrentRevealSoft 460ms cubic-bezier(.22, 1, .36, 1);
}


@keyframes odexCurrentRevealSoft {

  0% {
    opacity: 0;
  }

  40% {
    opacity: .55;
  }

  100% {
    opacity: 0;
  }

}


/* =========================================================
   10. NÚMEROS
   ========================================================= */

.slide-number {

  transition:
    color 180ms ease,
    opacity 180ms ease !important;
}


.menu .slide-button:hover .slide-number {
  opacity: .75;
}


.menu [aria-current="page"] .slide-number {
  opacity: 1;
}


/* =========================================================
   11. INDICADOR DESLIZANTE
   ========================================================= */

.menu-indicator {

  transition:
    transform 560ms cubic-bezier(.22, 1, .36, 1),
    height 420ms cubic-bezier(.22, 1, .36, 1),
    opacity 180ms ease,
    box-shadow 260ms ease !important;

  box-shadow:
    0 0 0 rgb(var(--accent-rgb) / 0);
}


/* =========================================================
   12. CERRAR ÍNDICE
   ========================================================= */

.contents-header .icon-button:active svg {

  animation:
    odexClosePressSoft 260ms cubic-bezier(.22, 1, .36, 1);
}


@keyframes odexClosePressSoft {

  0% {
    transform: rotate(0deg);
  }

  50% {
    transform:
      rotate(6deg) scale(.94);
  }

  100% {
    transform:
      rotate(0deg);
  }

}


/* =========================================================
   13. SCROLLBAR
   ========================================================= */

.menu::-webkit-scrollbar {
  width: 5px;
}


.menu::-webkit-scrollbar-track {
  background: transparent;
}


.menu::-webkit-scrollbar-thumb {

  background:
    rgb(var(--accent-rgb) / .12);

  border-radius:
    999px;
}


.menu:hover::-webkit-scrollbar-thumb {

  background:
    rgb(var(--accent-rgb) / .22);
}


/* =========================================================
   14. ASEGURAR QUE NO APARECE NINGÚN PUNTO
   ========================================================= */

.menu details.has-active>summary::after {

  content: none !important;
  display: none !important;
}


/* =========================================================
   15. ACCESIBILIDAD
   ========================================================= */

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

  .menu summary::before,
  .menu .section-link::before,
  .menu .slide-button::before,
  .menu details>.menu__items,
  .menu details>.menu__items>*,
  .summary-chev,
  .menu [aria-current="page"]::before,
  .contents-header .icon-button svg {

    animation:
      none !important;

    transition:
      none !important;

    transform:
      none !important;

    filter:
      none !important;
  }

}

/* =========================================================
   HOVER DEL MENÚ — MÁS SUAVE Y SIN SALTO
   ========================================================= */

.menu summary,
.menu .section-link,
.menu .slide-button {
  transform: none !important;

  transition:
    color 320ms cubic-bezier(.22, 1, .36, 1),
    background-color 320ms cubic-bezier(.22, 1, .36, 1),
    border-color 320ms cubic-bezier(.22, 1, .36, 1),
    opacity 260ms ease !important;
}


/* El texto NO se desplaza al pasar el ratón */

@media (hover: hover) and (pointer: fine) {

  .menu summary:hover,
  .menu .section-link:hover,
  .menu .slide-button:hover {
    transform: none !important;
  }

}


/* Fondo suave que entra progresivamente */

.menu summary::before,
.menu .section-link::before,
.menu .slide-button::before {
  opacity: 0;

  transform:
    scaleX(.985);

  transition:
    opacity 360ms cubic-bezier(.22, 1, .36, 1),
    transform 420ms cubic-bezier(.22, 1, .36, 1) !important;
}


@media (hover: hover) and (pointer: fine) {

  .menu summary:hover::before,
  .menu .section-link:hover::before,
  .menu .slide-button:hover::before {
    opacity: .38;

    transform:
      scaleX(1);
  }

}


/* Color también más progresivo */

@media (hover: hover) and (pointer: fine) {

  .menu summary:hover,
  .menu .section-link:hover,
  .menu .slide-button:hover,
  .menu button:hover {
    color: var(--ui-primary) !important;

    background: transparent !important;

    border-left-color:
      transparent !important;
  }

}


/* Chevron también acompaña el hover suavemente */

.summary-chev {
  transition:
    transform 460ms cubic-bezier(.22, 1, .36, 1),
    opacity 300ms ease,
    filter 300ms ease,
    color 320ms ease !important;
}


@media (hover: hover) and (pointer: fine) {

  .menu summary:hover .summary-chev {
    opacity: .85;
  }

}


/* Número de diapositiva */

.slide-number {
  transition:
    color 320ms cubic-bezier(.22, 1, .36, 1),
    opacity 300ms ease !important;
}


/* Al pulsar tampoco desplazamos el texto */

.menu summary:active,
.menu .section-link:active,
.menu .slide-button:active {
  transform: none !important;
}

/* =========================================================
   REDONDEAR LAS ESQUINAS REALES DE LA DIAPOSITIVA
   ========================================================= */

.slide-stage img {
  width: auto !important;
  height: auto !important;

  max-width: 113% !important;
  max-height: 113% !important;

  object-fit: contain;

  border-radius: 14px !important;

  overflow: hidden;
}
.footer-row {
  justify-content: center !important;
}

.navigation {
  margin: 0 auto;
}

.navigation {
  margin: 0 auto;
  transform: translateY(-10px);
}


/*# sourceMappingURL=styles.css.map */