/* ===== GALERÍA (Fondo secundario) ===== */
.gallery-section {
  background: var(--bg-primary);
  position: relative;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px;
}

.gallery-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}
.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 2rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-icon {
  opacity: 1;
}

/* ============================================================
   HEADER DE GALERÍA - ESTILO PREMIUM
   ============================================================ */

.gallery-header {
  text-align: center;
  margin-bottom: 3.5rem;
  padding: 0 1rem;
  position: relative;
}

/* ===== BADGE ===== */
.gallery-header .success-badge-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 0.75rem;
}

.gallery-header .success-badge {
  display: inline-block;
  background: linear-gradient(
    135deg,
    rgba(26, 61, 46, 0.08),
    rgba(26, 61, 46, 0.03)
  );
  padding: 0.3rem 1.5rem;
  border-radius: 50px;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--accent);
  font-weight: 600;
  border: 1px solid rgba(26, 61, 46, 0.08);
  transition: all 0.3s ease;
}

.gallery-header .success-badge:hover {
  background: linear-gradient(
    135deg,
    rgba(26, 61, 46, 0.12),
    rgba(26, 61, 46, 0.05)
  );
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(26, 61, 46, 0.06);
}

/* ===== TÍTULO PRINCIPAL ===== */
.gallery-header h2 {
  font-family: "Cormorant Garamond", serif;
  font-size: 2.8rem;
  color: #1a3d2e;
  margin-bottom: 0.3rem;
  letter-spacing: 1px;
  position: relative;
  display: inline-block;
}

.gallery-header h2 span {
  color: var(--accent);
  position: relative;
}

/* Efecto de subrayado sutil en la palabra destacada */
.gallery-header h2 span::after {
  content: "";
  position: absolute;
  bottom: 2px;
  left: 0;
  width: 100%;
  height: 4px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 6'%3E%3Cpath d='M0,3 Q25,0 50,3 T100,3' stroke='%23b1cc74' stroke-width='2.5' fill='none' opacity='0.4'/%3E%3C/svg%3E")
    repeat-x;
  background-size: 100px 6px;
}

/* ===== SEPARADOR DECORATIVO ===== */
.gallery-header .gallery-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 0.5rem auto 1.2rem;
  max-width: 200px;
}

.gallery-header .gallery-divider .line {
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent));
  opacity: 0.3;
  border-radius: 2px;
}

.gallery-header .gallery-divider .line:last-child {
  background: linear-gradient(90deg, var(--accent), transparent);
}

.gallery-header .gallery-divider .icon {
  font-size: 1.2rem;
  opacity: 0.5;
  animation: pulse-leaf 3s ease-in-out infinite;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===== DESCRIPCIÓN ===== */
.gallery-header p {
  color: #666;
  max-width: 600px;
  text-align: center;
  margin: 0 auto;
  font-size: 1rem;
  line-height: 1.7;
  font-weight: 400;
  letter-spacing: 0.2px;
}

.gallery-header p strong {
  color: #1a3d2e;
  font-weight: 600;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 768px) {
  .gallery-header {
    margin-bottom: 2.5rem;
  }

  .gallery-header h2 {
    font-size: 2.2rem;
  }

  .gallery-header .gallery-divider {
    max-width: 150px;
    gap: 0.8rem;
  }

  .gallery-header .gallery-divider .icon {
    font-size: 1rem;
  }

  .gallery-header p {
    font-size: 0.9rem;
    padding: 0 0.5rem;
  }

  .gallery-header .success-badge {
    font-size: 0.6rem;
    padding: 0.2rem 1.2rem;
    letter-spacing: 2px;
  }
}

@media (max-width: 480px) {
  .gallery-header {
    margin-bottom: 2rem;
  }

  .gallery-header h2 {
    font-size: 1.8rem;
  }

  .gallery-header h2 span::after {
    height: 3px;
    background-size: 60px 4px;
  }

  .gallery-header .gallery-divider {
    max-width: 120px;
    gap: 0.5rem;
    margin: 0.3rem auto 1rem;
  }

  .gallery-header .gallery-divider .icon {
    font-size: 0.9rem;
  }

  .gallery-header p {
    font-size: 0.85rem;
    line-height: 1.6;
  }

  .gallery-header .success-badge {
    font-size: 0.55rem;
    padding: 0.15rem 1rem;
    letter-spacing: 1.5px;
  }
}
