/* GALERÍA - Fondo visible sin sombras */

body.gallery-page {
  background-color: #f5f5f5;
  background-image:url(/Usadas/Fondos-Fotos/fondo1.jpg);
  transition: background 0.5s ease;
}

/* SIN OVERLAY */
body.gallery-page::before {
  display: none !important;
}

body.gallery-page header, 
body.gallery-page main {
  position: relative;
  z-index: 1;
}

.gallery-title-container {
  background: transparent;
  padding: 1.5rem;
  border-radius: 10px;
  margin-bottom: 2rem;
  box-shadow: none !important;
}

.gallery-main-title {
  color: #000;
  font-weight: 700;
  text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.8);
}

.gallery-subtitle {
  color: #111;
  font-weight: 500;
  text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
}

.section-header {
  background: transparent;
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  box-shadow: none !important;
}

.section-header h2 {
  margin-bottom: 0.5rem;
  color: #000;
  font-weight: 700;
  text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.8);
}

.section-header p {
  margin-bottom: 0;
  color: #111;
  font-weight: 500;
  text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
}

.gallery-filters {
  padding: 1rem;
  background: transparent;
  border-radius: 8px;
  margin-bottom: 2rem;
  box-shadow: none !important;
}

.filter-btn {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  transition: all 0.3s ease;
  border-width: 2px !important;
  padding: 0.65rem 1.25rem;
  box-shadow: none !important;
}

.filter-btn:hover {
  transform: translateY(-2px);
  box-shadow: none !important;
}

.filter-btn.active-filter {
  background-color: #000 !important;
  color: #fff !important;
  border-color: #000 !important;
  box-shadow: none !important;
}

.dropdown-menu {
  border-radius: 8px;
  border: 1px solid #ddd;
  padding: 0.5rem;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: none !important;
  max-height: 60vh;
  overflow-y: auto;
}

.dropdown-item {
  border-radius: 6px;
  padding: 0.65rem 1rem;
  transition: all 0.2s ease;
  font-weight: 500;
  color: #000;
}

.dropdown-item:hover {
  background: #f0f0f0;
  transform: translateX(5px);
  color: #000;
}

.dropdown-item i {
  transition: transform 0.3s ease;
  color: #333;
}

.dropdown-item:hover i {
  transform: scale(1.1);
}

.photo-section {
  display: none;
  margin-bottom: 3rem;
  padding: 1.5rem;
  background: transparent;
  border-radius: 10px;
  box-shadow: none !important;
}

.photo-section.active {
  display: block !important;
  animation: fadeInUp 0.6s ease-out;
}

.photo-item {
  width: 100%;
  height: 320px;
  object-fit: cover;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 0;
  border: none;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}

.photo-item:hover {
  transform: scale(1.05);
  z-index: 10;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.45);
}

.gallery-search-input {
  border-radius: 50px;
  padding: 0.65rem 1.5rem;
  border: 2px solid #ddd;
  transition: all 0.3s ease;
  background: #fff;
  font-weight: 500;
  color: #000;
  box-shadow: none !important;
}

.gallery-search-input::placeholder {
  color: #666;
}

.gallery-search-input:focus {
  border-color: #000;
  background: #fff;
  outline: none;
  box-shadow: none !important;
}

.input-group-text {
  background: #fff;
  border: 2px solid #ddd;
  border-right: none;
  color: #333;
  box-shadow: none !important;
}

.modal-content {
  background: #000 !important;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.05), 0 30px 80px rgba(0, 0, 0, 0.85);
}

.modal-body img {
  max-height: 75vh;
  object-fit: contain;
  border-radius: 0 !important;
  transition: opacity 0.15s ease;
  box-shadow: 0 0 70px rgba(255, 255, 255, 0.12), 0 20px 45px rgba(0, 0, 0, 0.8);
  outline: 1px solid rgba(255, 255, 255, 0.2);
  outline-offset: -1px;
}

.modal-caption {
  margin: 1.25rem 0 0;
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
}

.btn-close-white {
  position: relative;
  width: 2.5rem;
  height: 2.5rem;
  background: transparent;
  border: 2px solid #fff;
  opacity: 1;
  padding: 0;
  border-radius: 50%;
  transition: all 0.3s ease;
}

/* Dibujamos la X a mano: el icono por defecto de Bootstrap
   queda oculto porque "background: transparent" le quita la imagen */
.btn-close-white::before,
.btn-close-white::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1.1rem;
  height: 2px;
  background: #fff;
  transition: background-color 0.3s ease;
}

.btn-close-white::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.btn-close-white::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.btn-close-white:hover {
  transform: rotate(90deg);
  background: #fff;
}

.btn-close-white:hover::before,
.btn-close-white:hover::after {
  background: #000;
}

.photo-counter {
  font-family: 'Oswald', sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 1px;
}

.modal-footer .btn-outline-light {
  background: #fff;
  border: 2px solid #fff;
  color: #000;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  box-shadow: none !important;
}

.modal-footer .btn-outline-light:hover {
  background: #000;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: none !important;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .photo-item {
    height: 260px;
  }
  
  .gallery-filters {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .filter-btn {
    width: 100%;
  }
  
  .section-header {
    padding: 1.5rem 1rem;
  }
  
  .section-header h2 {
    font-size: 1.8rem;
  }
  
  .photo-section {
    padding: 1rem;
  }
}

@media (max-width: 576px) {
  .photo-item {
    height: 280px;
  }
  
  .section-header h2 {
    font-size: 1.5rem;
  }
}