/* ====== Hero Nosotros Fullscreen ====== */
.hero-nosotros {
  position: relative;
  height: 100vh; /* Ocupa toda la altura de la pantalla */
  background-image: url("../assets/img/portada_galeria.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 80px; /* Espacio por el navbar */
  overflow: hidden;
}

.hero-nosotros::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background-color: rgba(
    0,
    0,
    0,
    0.5
  ); /* oscurece para que se lea bien el texto */
  z-index: 1;
}

.hero-nosotros .container {
  position: relative;
  z-index: 2;
}

.hero-nosotros h1,
.hero-nosotros p {
  color: #fff;
  text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.6);
}

/* ====== Gallery Filters ====== */
.gallery-filters {
  position: sticky;
  top: 80px;
  z-index: 1020;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.filter-buttons .btn {
  margin: 0 5px 10px;
  transition: all 0.3s ease;
}

.filter-buttons .btn.active {
  background-color: #003366;
  color: white;
  border-color: #003366;
}

/* ====== Gallery Grid ====== */
.gallery-section {
  background-color: #f8f9fa;
}

.gallery-card {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
}

.gallery-card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 10, 39, 0.8);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-content {
  text-align: center;
  padding: 20px;
  color: white;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.gallery-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.gallery-card:hover .gallery-overlay {
  opacity: 1;
}

.gallery-card:hover .gallery-content {
  transform: translateY(0);
}

.gallery-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.gallery-card p {
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.view-btn {
  transition: all 0.3s ease;
}

.view-btn:hover {
  background-color: #fff;
  color: #003366 !important;
}

/* ====== Gallery Modal ====== */
.gallery-modal .modal-content {
  border-radius: 10px;
  border: none;
}

.gallery-modal .modal-header {
  border-bottom: 1px solid #dee2e6;
  background-color: #f8f9fa;
}

.gallery-modal .modal-body {
  padding: 0;
}

.gallery-modal .modal-body img {
  border-radius: 10px 0 0 10px;
  height: 500px;
  object-fit: cover;
  width: 100%;
}

.gallery-modal .image-details {
  padding: 20px;
}

.gallery-modal .image-details h4 {
  color: #1d6600;
  margin-bottom: 1rem;
}

.gallery-modal #imageDate {
  color: #6c757d;
  margin-bottom: 1rem;
}

.gallery-modal #imageDescription {
  margin-bottom: 1.5rem;
}

/* ====== Responsive Adjustments ====== */
@media (max-width: 992px) {
  .gallery-modal .modal-body img {
    border-radius: 10px 10px 0 0;
    height: 300px;
  }

  .gallery-modal .image-details {
    padding: 15px;
  }
}

@media (max-width: 768px) {
  .gallery-card img {
    height: 220px;
  }

  .filter-buttons .btn {
    margin: 0 3px 5px;
    padding: 5px 10px;
    font-size: 0.8rem;
  }

  .hero-nosotros {
    height: auto;
    padding: 120px 0 80px;
  }
}

@media (max-width: 576px) {
  .gallery-card img {
    height: 180px;
  }

  .gallery-content h3 {
    font-size: 1rem;
  }

  .gallery-content p {
    font-size: 0.8rem;
  }

  .view-btn {
    padding: 3px 8px;
    font-size: 0.8rem;
  }
}
