/* ================================
   HI PROYECTOS (VERSIÓN LUMINOSA)
   ================================ */

/* CONTENEDOR */
.hi-projects-module {
  padding: 100px 24px;
  background: #fff;
}

/* GRID */
.hi-projects-grid {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 40px;
}

/* NEUTRALIZAR INTERFERENCIAS WP/ASTRA */
.hi-projects-grid > * {
  width: 100% !important;
  margin: 0 !important;
  float: none !important;
}

/* TARJETA */
.hi-project-card {
  position: relative;
  display: block;
  height: 220px;
  overflow: hidden;
  border-radius: 10px;
  text-decoration: none;
  color: #fff;
  background: #f0f0f0; /* Fondo neutro por si carga la imagen */
}

/* IMAGEN (100% Brillo y Color) */
.hi-project-card__image {
  position: absolute;
  inset: 0;
}

.hi-project-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease, filter 0.4s ease;
  filter: brightness(1) !important; /* Brillo original del render */
}

/* OVERLAY ULTRA SUAVE (Solo en la base para leer el texto) */
.hi-project-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.7) 0%,     /* Sombra solo al fondo para el texto */
    rgba(0, 0, 0, 0.2) 25%,    /* Transición rápida */
    transparent 50%            /* Del 50% hacia arriba la imagen está 100% limpia */
  );
  z-index: 1;
}

/* CONTENIDO */
.hi-project-card__content {
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 16px;
  z-index: 2;
}

/* TEXTO */
.hi-project-card__content span {
  display: block;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--hi-accent);
  margin-bottom: 4px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8); /* Garantiza lectura */
}

.hi-project-card__content h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

/* HOVER (Zoom elegante sin oscurecer) */
.hi-project-card:hover img {
  transform: scale(1.05);
  filter: brightness(1.05) !important; /* Ligero destello de luz al pasar el cursor */
}

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

/* TABLET */
@media (max-width: 1024px) {
  .hi-projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* MÓVIL */
@media (max-width: 600px) {
  .hi-projects-grid {
    grid-template-columns: 1fr;
  }
}