* { box-sizing: border-box; }
body { margin: 0; font-family: Arial, sans-serif; }
body.is-loading { overflow: hidden; }
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  background: #fff;
  color: #0a3d91;
  transition: opacity .35s ease, visibility .35s ease;
}
.page-loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.page-loader__content {
  display: grid;
  justify-items: center;
  gap: 16px;
  padding: 24px;
}
.page-loader__spinner {
  width: 54px;
  height: 54px;
  border: 5px solid #dbe7fb;
  border-top-color: #f5b400;
  border-radius: 50%;
  animation: loader-spin .8s linear infinite;
}
.page-loader__text {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .02em;
}
@keyframes loader-spin {
  to { transform: rotate(360deg); }
}
.slider-wrapper {
  display: flex;
  width: 100%;
  max-width: 1200px;
  margin: 40px auto;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
}
.slider { position: relative; flex: 1; min-width: 0; aspect-ratio: 4 / 3; overflow: hidden; }
.slide {
  position: absolute;
  inset: 0;
  background: center / contain no-repeat;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .3s ease-in-out;
}
.slide.active { opacity: 1; visibility: visible; }
.side-nav {
  flex: 0 0 90px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 12px;
}
.side-nav button {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: #0a3d91;
  color: #fff;
  font-weight: bold;
  cursor: pointer;
}
.side-nav button.active { background: #f5b400; color: #000; }
/* Las flechas ya estan dibujadas en las imagenes. */
.nav-arrows {
  position: absolute;
  bottom: 0;
  left: 44%;
  width: 20%;
  height: 8.3%;
  display: flex;
  z-index: 5;
}
.nav-arrows button { width: 50%; height: 100%; border: none; background: transparent; cursor: pointer; }
.nav-arrows button:disabled { cursor: default; }
button:focus-visible { outline: 3px solid #f5b400; outline-offset: -3px; }
.video-frame {
  position: absolute;
  top: 13.25%;
  left: 26.7%;
  width: 68.7%;
  height: 55%;
  border-radius: 4%;
  overflow: hidden;
}
.slide.active .video-frame { pointer-events: auto; }
.video-frame video { display: block; width: 100%; height: 100%; object-fit: contain; background: #000; }
@media (max-width: 1080px) {
  .slider-wrapper { max-width: 100%; margin: 0; border-radius: 0; }
}
@media (max-width: 900px) {
  .slider-wrapper { flex-direction: column; }
  .slider { flex: none; width: 100%; }
  .side-nav { flex: none; width: 100%; flex-direction: row; flex-wrap: wrap; gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .slide,
  .page-loader { transition: none; }
  .page-loader__spinner { animation: none; }
}
