html {
  scroll-behavior: smooth;
  background: #020617 url("../images/capa-site.webp") center / cover fixed no-repeat;
}

body.bg-slate-900 {
  min-height: 100vh;
  background: rgb(2 6 23 / 76%);
}

:focus-visible {
  outline: 3px solid #fbbf24;
  outline-offset: 4px;
}

.portfolio-carousel {
  overflow: hidden;
  border: 1px solid rgb(51 65 85 / 85%);
  border-radius: 1rem;
  background: rgb(15 23 42 / 88%);
  backdrop-filter: blur(0.5rem);
}

.portfolio-carousel__viewport {
  aspect-ratio: 4 / 3;
  background: rgb(15 23 42 / 65%);
}

.portfolio-slide {
  position: relative;
  width: 100%;
  height: 100%;
  margin: 0;
}

.portfolio-slide[hidden] {
  display: none;
}

.portfolio-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.portfolio-slide figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 2rem 1rem 1rem;
  background: linear-gradient(transparent, rgb(2 6 23 / 90%));
  color: #f8fafc;
  font-size: 0.875rem;
  font-weight: 700;
}

.portfolio-carousel__controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1rem;
  border-top: 1px solid #1e293b;
}

.portfolio-carousel__arrow {
  border-radius: 9999px;
  padding: 0.5rem 0.75rem;
  color: #fbbf24;
  font-size: 0.875rem;
  font-weight: 700;
}

.portfolio-carousel__arrow:hover {
  background: #1e293b;
}

.portfolio-carousel__indicators {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.portfolio-carousel__indicators button {
  width: 0.625rem;
  height: 0.625rem;
  border-radius: 9999px;
  background: #475569;
}

.portfolio-carousel__indicators button[aria-pressed="true"] {
  background: #fbbf24;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}