/* ========================================
   Equipo Page Styles — equipo/*/index.html
   Compartido por todas las subpáginas de equipo
   ======================================== */

/* ========================================
   Hero (Subpage)
   ======================================== */
.hero {
  padding: 5rem 1.5rem 3rem;
  text-align: center;
  border-bottom: 1px solid rgba(252, 246, 230, 0.06);
}

.hero__container {
  max-width: var(--max-width);
  margin: 0 auto;
}

.hero__back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--color-white-muted);
  margin-bottom: 2rem;
  transition: color 0.2s ease;
}

.hero__back:hover {
  color: var(--color-white);
}

.hero__back svg {
  width: 18px;
  height: 18px;
}

.hero__title {
  font-size: clamp(2.75rem, 6vw, 4.5rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  color: var(--color-red);
  justify-self: center;
}

.hero__description {
  font-size: 1.15rem;
  color: var(--color-white-muted);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ========================================
   Gallery
   ======================================== */
.gallery {
  padding: 4rem 1.5rem;
}

.gallery__container {
  max-width: var(--max-width);
  margin: 0 auto;
}

.gallery__title {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 2rem;
  text-align: center;
}

/* ========================================
   Carousel
   ======================================== */
.carousel {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.carousel__viewport {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  background: var(--color-gray);
  aspect-ratio: 16/10;
}

.carousel__track {
  display: flex;
  transition: transform 0.4s ease;
  height: 100%;
}

.carousel__slide {
  min-width: 100%;
  height: 100%;
}

.carousel__slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  cursor: pointer;
}

.carousel__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(252, 246, 230, 0.15);
  color: var(--color-white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 10;
}

.carousel__btn:hover {
  background: rgba(0, 0, 0, 0.8);
  border-color: rgba(252, 246, 230, 0.3);
}

.carousel__btn--prev {
  left: 1rem;
}

.carousel__btn--next {
  right: 1rem;
}

.carousel__btn svg {
  width: 24px;
  height: 24px;
}

.carousel__dots {
  display: flex;
  justify-content: center;
  gap: 0.25rem;
  margin-top: 1.5rem;
}

.carousel__dot {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Visual dot inside the touch target */
.carousel__dot::after {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-gray-light);
  transition: all 0.2s ease;
}

.carousel__dot--active::after {
  background: var(--color-red);
  transform: scale(1.2);
}

/* ========================================
   Lightbox
   ======================================== */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox--open {
  opacity: 1;
  visibility: visible;
}

.lightbox__content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
}

.lightbox__img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
}

.lightbox__close {
  position: absolute;
  top: -50px;
  right: 0;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  color: var(--color-white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox__close svg {
  width: 32px;
  height: 32px;
}

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(252, 246, 230, 0.1);
  border: 1px solid rgba(252, 246, 230, 0.2);
  color: var(--color-white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.lightbox__nav:hover {
  background: rgba(252, 246, 230, 0.2);
}

.lightbox__nav--prev {
  left: -70px;
}

.lightbox__nav--next {
  right: -70px;
}

.lightbox__nav svg {
  width: 24px;
  height: 24px;
}

@media (max-width: 768px) {
  .lightbox__nav--prev {
    left: 10px;
  }
  .lightbox__nav--next {
    right: 10px;
  }
}
