/* ----------------------------------------------------------
   PROJECT LINK MODULE – subgrafica
   UNIFICADO CON MEDIA HOVERS & VIDEO POPUP
   Underline premium (border-bottom)
----------------------------------------------------------- */

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

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

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

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

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

/* =========================================
   ICONO CENTRADO
========================================= */

.project-link-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.3s ease-in-out;
}

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

/* Estabilizar hover del ícono (igual que Video Popup / Media Hovers) */
.project-link-icon-trigger:hover,
.et_pb_project_link_wrapper.has-link:hover .project-link-icon,
.project-link-trigger:hover {
  opacity: 1 !important;
}

/* No link = sin interacción */
.et_pb_project_link_wrapper.no-link .project-link-icon-trigger {
  cursor: default !important;
  pointer-events: none !important;
}

/* =========================================
   META OVERLAY
========================================= */

.still-meta {
  position: absolute;
  left: 30px;
  right: 30px;
  bottom: 30px;
  z-index: 6;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  color: var(--bl);
  pointer-events: auto;
  transition: color 0.3s ease-in-out;
}

.still-meta-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* =========================================
   TEXTS (underline premium unificado)
========================================= */

.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(--bl);
  text-shadow: 0 1px 1px rgba(0,0,0,0.1);

  text-decoration: none !important;

  /* Underline premium */
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;

  opacity: 1;
  cursor: default;
  transition: color 0.3s ease-in-out, border-bottom-color 0.3s ease-in-out;
}

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

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

/* =========================================
   GROUP HOVER — igual que Media Hovers
========================================= */

.et_pb_project_link_wrapper.has-link .project-link-trigger:hover .still-title,
.et_pb_project_link_wrapper.has-link .project-link-trigger:hover .still-subtitle,
.et_pb_project_link_wrapper.has-link .project-link-trigger:hover .still-category {
  border-bottom-color: currentColor !important;
  color: var(--bl);
  cursor: pointer;
}

/* Hover global del meta */
.et_pb_project_link_wrapper.has-link .still-meta:hover {
  cursor: pointer;
}

/* =========================================
   INTERACTIVIDAD
========================================= */

.et_pb_project_link_wrapper.has-link:hover .still-background {
  opacity: 0.85;
}

.et_pb_project_link_wrapper.no-link .still-meta,
.et_pb_project_link_wrapper.no-link .still-title,
.et_pb_project_link_wrapper.no-link .still-subtitle,
.et_pb_project_link_wrapper.no-link .still-category {
  pointer-events: none !important;
  cursor: default !important;
  border-bottom-color: transparent !important;
}

/* Evitar “clicks” en imagen */
.still-image-wrapper img {
  pointer-events: none;
}

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

@media (max-width: 767px) {
  .still-meta {
    left: 14px;
    right: 14px;
    bottom: 12px;
  }

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