/* Barra de Navegación (Dock) */
.bottom-navbar {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: space-around;
  align-items: center;
  width: 90%;
  max-width: 500px;
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-radius: 50px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.5);
  z-index: 1000;
}
.nav-item {
  background: none;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 5px;
  flex: 1;
}
.nav-item i {
  font-size: 1.4rem;
  margin-bottom: 4px;
  transition: transform 0.2s;
}
.nav-item span {
  font-size: 0.75rem;
  font-weight: bold;
  opacity: 0.7;
}
.nav-item.active {
  color: var(--primary-color);
}
.nav-item.active i {
  transform: translateY(-5px);
  filter: drop-shadow(0 5px 10px rgba(216, 27, 96, 0.3));
}
.nav-item:hover {
  color: var(--primary-dark-color);
}

/* Flechas de Navegación del Carrusel */
.carousel-navigation {
  position: absolute;
  top: 50%;
  width: 100%;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  padding: 0 5px;
  pointer-events: none;
  z-index: var(--z-controls);
}
.nav-btn {
  pointer-events: auto;
  background-color: rgba(255, 255, 255, 0.8);
  color: var(--primary-color);
  border: none;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.2s;
}
.nav-btn:hover {
  background-color: white;
  transform: scale(1.1);
}

/* Lightbox (Visor de Fotos) */
.lightbox-overlay {
  display: none;
  position: fixed;
  z-index: 1000;
  padding-top: 50px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.9);
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(5px);
}
.lightbox-overlay.active {
  display: flex;
  animation: fadeIn 0.3s;
}
.lightbox-img {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 5px;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
  z-index: 1001;
}
.lightbox-close:hover {
  color: var(--primary-color);
}

/* Webcam Modal */
.webcam-container {
  background: white;
  padding: 20px;
  border-radius: 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  max-width: 90%;
}
.webcam-container h3 {
  color: var(--primary-color);
  margin-bottom: 15px;
  font-family: "Dancing Script", cursive;
  font-size: 2rem;
}
#webcamVideo {
  width: 100%;
  max-width: 640px;
  height: auto;
  border-radius: 10px;
  background-color: #000;
  transform: scaleX(-1);
}
.webcam-controls {
  display: flex;
  gap: 20px;
  margin-top: 20px;
}
.action-btn {
  padding: 10px 20px;
  border: none;
  border-radius: 25px;
  font-size: 1rem;
  cursor: pointer;
  font-weight: bold;
  transition: transform 0.2s;
}
.action-btn:hover {
  transform: scale(1.05);
}
.capture-btn {
  background-color: var(--primary-color);
  color: white;
}
.cancel-btn {
  background-color: #e0e0e0;
  color: #333;
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* MEDIA QUERIES (UI) */
@media (min-width: 1024px) {
  .bottom-navbar {
    bottom: 30px;
    padding: 15px 30px;
    max-width: 600px;
  }
  .nav-item i {
    font-size: 1.6rem;
  }
  .nav-item span {
    font-size: 0.9rem;
  }

  .nav-btn {
    width: 55px;
    height: 55px;
    font-size: 1.4rem;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  }
}
