/* Estilos específicos para Trabajos Realizados - Corteza */

.menu .activo {
  color: #d6a85f !important;
  font-weight: bold;
}

/* HERO TRABAJOS */
.hero-trabajos {
  min-height: 28vh;
  background: linear-gradient(rgba(43, 33, 24, 0.80), rgba(43, 33, 24, 0.80)),
              url("../img/portada.jpg");
  background-size: cover;
  background-position: center;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 8%;
  text-align: center;
}

.hero-trabajos .hero-contenido {
  max-width: 640px;
}

.hero-trabajos h2 {
  font-size: 34px;
  line-height: 1.15;
  margin-bottom: 10px;
}

.hero-trabajos p {
  font-size: 15px;
  margin-bottom: 0;
  opacity: 0.85;
}

.hero-trabajos-stats {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-shrink: 0;
}

.hw-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hw-num {
  font-size: 30px;
  font-weight: 800;
  color: #d6a85f;
  line-height: 1;
}

.hw-label {
  font-size: 11px;
  color: rgba(255,255,255,0.65);
  margin-top: 5px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.hw-divisor {
  width: 1px;
  height: 40px;
  background: rgba(214,168,95,0.3);
}

/* GALERÍA DE TRABAJOS */
.galeria-trabajos {
  padding: 80px 6%;
  background-color: #f7f1e8;
}

.galeria-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.trabajo-item {
  background-color: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.trabajo-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.trabajo-imagen {
  position: relative;
  height: 360px;
  overflow: hidden;
}

.trabajo-imagen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s ease;
}

.trabajo-imagen img.img-puerta {
  object-position: center 0%;
}
.trabajo-imagen img.img-puertatambor {
  object-position: center 30%;
}
.trabajo-imagen img.img-escalera {
  object-position: center 90%;
}

.trabajo-item:hover .trabajo-imagen img {
  transform: scale(1.1);
}

.trabajo-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(43, 33, 24, 0.95));
  padding: 20px 14px 14px;
  color: white;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.trabajo-item:hover .trabajo-overlay {
  transform: translateY(0);
}

.trabajo-overlay h3 {
  color: #d6a85f;
  font-size: 15px;
  margin-bottom: 4px;
}

.trabajo-overlay p {
  font-size: 12px;
  color: #f0f0f0;
  margin: 0;
}

/* RESPONSIVE */
@media (max-width: 1200px) {
  .galeria-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

@media (max-width: 1000px) {
  .galeria-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-trabajos h2 {
    font-size: 42px;
  }
}

@media (max-width: 650px) {
  .galeria-grid {
    grid-template-columns: 1fr;
  }

  .hero-trabajos {
    min-height: 50vh;
  }

  .hero-trabajos h2 {
    font-size: 34px;
  }

  .hero-trabajos p {
    font-size: 17px;
  }

  .trabajo-imagen {
    height: 320px;
  }

  .galeria-trabajos {
    padding: 60px 5%;
  }
}