/* ----------------------------------------------------------
   PROJECT LINK MODULE
   FINAL CSS – META PROTEGIDO DE OPACITY
----------------------------------------------------------- */

/* =========================================
   WRAPPER
========================================= */

.et_pb_project_link_wrapper {
  position: relative;
  width: 100%;
  display: block;
}

/* =========================================
   STILL IMAGE
========================================= */

.still-image-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.still-background {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  object-position: center;
  transition: opacity 0.3s ease-in-out;
}

/* Hover SOLO afecta a la imagen */
.et_pb_project_link_wrapper.has-link:hover .still-background {
  opacity: 0.85;
}

/* =========================================
   PLAY ICON
========================================= */

.project-link-icon {
  width: 40px;
  height: auto;
  pointer-events: none;
}

.project-link-icon-trigger,
.project-link-icon-wrapper {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 5;
  cursor: pointer;
}

/* =========================================
   META BASE
========================================= */

.still-meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  color: var(--ne);
  text-decoration: none;
}

/* PROTECCIÓN CLAVE */
.project-link-trigger {
  opacity: 1 !important;
}

.project-link-trigger:hover {
  opacity: 1 !important;
}

/* =========================================
   META IN (OVERLAY)
========================================= */

.still-image-wrapper .still-meta {
  position: absolute;
  left: 30px;
  right: 30px;
  bottom: 30px;
  z-index: 6;
}

/* =========================================
   META OUT (EDITORIAL)
========================================= */

.et_pb_project_link_wrapper > .project-link-trigger,
.et_pb_project_link_wrapper > .still-meta {
  display: block;
}

.et_pb_project_link_wrapper > .project-link-trigger .still-meta,
.et_pb_project_link_wrapper > .still-meta {
  position: relative;
  margin-top: 24px;
}

/* =========================================
   TEXTOS
========================================= */

.still-title,
.still-subtitle,
.still-category {
  font-family: var(--ffa);
  font-weight: var(--fwl-reg);
  line-height: var(--flh0);
  text-transform: uppercase;
  margin: 0;
  color: var(--ne);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
  transition: color 0.3s ease-in-out, border-bottom-color 0.3s ease-in-out;
}

.still-title {
  font-size: var(--fs-h1);
  font-weight: var(--fwl-med);
}

.still-subtitle,
.still-category {
  font-size: var(--fs-h2);
}

/* =========================================
   HOVER (LINK)
========================================= */

.project-link-trigger:hover .still-title,
.project-link-trigger:hover .still-subtitle,
.project-link-trigger:hover .still-category {
  border-bottom-color: currentColor;
  cursor: pointer;
}

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

@media (max-width: 767px) {

  .still-image-wrapper .still-meta {
    left: 14px;
    right: 14px;
    bottom: 12px;
  }

  .still-title    { font-size: 16px; }
  .still-subtitle { font-size: 13px; }
  .still-category { font-size: 13px; }

  .et_pb_project_link_wrapper > .project-link-trigger .still-meta,
  .et_pb_project_link_wrapper > .still-meta {
    margin-top: 16px;
  }
}