/* =========================================================
   8. TRABAJOS
   ========================================================= */
.works-section {
  padding: 90px 0;
  background-color: var(--white);
  overflow: hidden;
}

.works-header {
  max-width: 760px;
  margin-bottom: 34px;
}

.works-title {
  margin: 0 0 16px 0;
  color: #111827;
  font-size: clamp(2.1rem, 3vw, 3.4rem);
  line-height: 1.04;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.works-title span {
  display: block;
  color: var(--primary);
}

.works-text {
  max-width: 620px;
  color: #667085;
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 0;
}

.works-grid .col-md-6,
.works-grid .col-lg-4 {
  display: flex;
}

.work-card {
  width: 100%;
  height: 100%;
  padding: 0;
  border: none;
  border-radius: 24px;
  overflow: hidden;
  background-color: var(--white);
  box-shadow: 0 10px 28px rgba(17, 17, 17, 0.06);
  transition: all 0.25s ease;
  cursor: pointer;
}

.work-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 34px rgba(17, 17, 17, 0.1);
}

.work-image {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
}

.works-actions {
  margin-top: 34px;
  text-align: center;
}

.works-btn {
  background-color: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
  font-weight: 700;
  padding: 14px 24px;
  border-radius: 14px;
  text-transform: uppercase;
  transition: all 0.25s ease;
}

.works-btn:hover {
  background-color: var(--primary);
  color: var(--white);
}


/* =========================================================
   9. MODALES DE TRABAJOS
   ========================================================= */
.work-modal-content,
.gallery-modal-content {
  border: none;
  border-radius: 22px;
  overflow: hidden;
  background-color: #0f1720;
}

.work-modal-body {
  padding: 20px;
}

.work-modal-image {
  width: 100%;
  border-radius: 16px;
  margin-bottom: 16px;
}

.work-modal-title {
  color: var(--white);
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0;
}

.work-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 10;
  background-color: var(--white);
  border-radius: 50%;
  opacity: 1;
}

.gallery-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 22px 0;
}

.gallery-modal-title {
  color: var(--white);
  margin: 0;
  font-size: 1.3rem;
  font-weight: 700;
}

.gallery-modal-body {
  padding: 22px;
}

.gallery-image {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 16px;
}
