/* Updated: 2026-02-03 */
/* Evidencia Section */
.evidencia-section {
  width: 100%;
  background: #f5f5f5;
  padding: 72px 0;
}

.evidencia-badge {
  background: rgba(212, 164, 69, 0.15);
  border: 1px solid rgba(212, 164, 69, 0.3);
  color: #d4a445;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  display: inline-block;
  margin-bottom: 12px;
  text-align: center;
  text-transform: capitalize;
  letter-spacing: 0.5px;
}

.evidencia-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 40px;
}

.evidencia-header {
  text-align: center;
  margin-bottom: 48px;
}

.evidencia-title {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  color: #000;
  margin-bottom: 8px;
}

.evidencia-title .highlight {
  color: #d4a445;
}

/* Masonry Grid */
.evidencia-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 0;
  max-width: 1100px;
  margin: 0 auto;
  aspect-ratio: 1 / 1;
}

.evidencia-image {
  position: relative;
  overflow: hidden;
  border-radius: 0;
  background: #ddd;
  box-shadow: none;
  transition: all 0.3s ease;
  border: 2px solid #f5f5f5;
  cursor: pointer;
}

.evidencia-image::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(212, 164, 69, 0.2);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.evidencia-image:hover::after {
  opacity: 1;
}

.evidencia-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.evidencia-image:hover img {
  transform: scale(1.05);
}

/* Lightbox Modal */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 10000;
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.3s ease;
}

.lightbox.active {
  display: flex;
}

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
}

.lightbox-image {
  width: 100%;
  height: auto;
  max-height: 85vh;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #fff;
  font-size: 2.5rem;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s ease;
  background: none;
  border: none;
  padding: 0;
}

.lightbox-close:hover {
  color: #d4a445;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  padding: 10px 15px;
  background: rgba(0, 0, 0, 0.5);
  border: none;
  transition: background 0.3s ease;
  z-index: 10001;
}

.lightbox-nav:hover {
  background: rgba(212, 164, 69, 0.5);
}

.lightbox-prev {
  left: 20px;
}

.lightbox-next {
  right: 20px;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Grid positioning for masonry effect - no gaps */
.evidencia-image:nth-child(1) {
  grid-column: 1 / 3;
  grid-row: 1 / 3;
}

.evidencia-image:nth-child(2) {
  grid-column: 3 / 5;
  grid-row: 1 / 2;
}

.evidencia-image:nth-child(3) {
  grid-column: 5 / 7;
  grid-row: 1 / 2;
}

.evidencia-image:nth-child(4) {
  grid-column: 3 / 5;
  grid-row: 2 / 3;
}

.evidencia-image:nth-child(5) {
  grid-column: 5 / 7;
  grid-row: 2 / 3;
}

.evidencia-image:nth-child(6) {
  grid-column: 1 / 3;
  grid-row: 3 / 4;
}

.evidencia-image:nth-child(7) {
  grid-column: 3 / 5;
  grid-row: 3 / 4;
}

.evidencia-image:nth-child(8) {
  grid-column: 5 / 7;
  grid-row: 3 / 4;
}

/* Responsive */
@media (max-width: 1024px) {
  .evidencia-title {
    font-size: 2rem;
  }

  .evidencia-grid {
    aspect-ratio: 1 / 1;
  }
}

@media (max-width: 768px) {
  .evidencia-section {
    padding: 48px 16px;
  }

  .evidencia-title {
    font-size: 1.75rem;
  }

  .evidencia-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
    aspect-ratio: auto;
    gap: 12px;
  }

  .evidencia-image {
    grid-column: auto !important;
    grid-row: auto !important;
    min-height: 180px;
    border: 1px solid #ddd;
  }

  .evidencia-image:nth-child(1) {
    grid-column: 1 / 2 !important;
    min-height: 180px;
  }

  .evidencia-image:nth-child(2) {
    grid-column: 2 / 3 !important;
    min-height: 180px;
  }

  .evidencia-image:nth-child(3) {
    grid-column: 1 / 2 !important;
    min-height: 180px;
  }

  .evidencia-image:nth-child(4) {
    grid-column: 2 / 3 !important;
    min-height: 180px;
  }

  .evidencia-image:nth-child(5) {
    grid-column: 1 / 3 !important;
    min-height: 160px;
  }

  .evidencia-image:nth-child(6) {
    grid-column: 1 / 2 !important;
    min-height: 180px;
  }

  .evidencia-image:nth-child(7) {
    grid-column: 2 / 3 !important;
    min-height: 180px;
  }

  .evidencia-image:nth-child(8) {
    grid-column: 1 / 3 !important;
    min-height: 160px;
  }
}
