/* ====== SINGLE PORTFOLIO ====== */
.container-portfolio {
	max-width: 90%;
	width: 1820px;
}
/* Hero */
.portfolio-hero { padding-top: 2rem; padding-bottom: 2rem; }
.ag-hero-left { max-width: 520px; }/* Wrapper mantiene el hueco original, la caja interior se fija */
.ag-hero-left-wrapper {
  position: relative;
}

/* Caja fija */
.ag-hero-left {
  position: fixed;
  top: 35vh;  
  width: 25vw;          
  max-width: 360px;     
  padding-right: 1rem;
  opacity: 1;
  transition: opacity .15s linear;
  pointer-events: auto;
  z-index: 10;
}

/* En móvil no queremos fixed porque rompe el flujo */
@media (max-width: 991.98px) {
  .ag-hero-left {
    position: static;
    width: auto;
    max-width: 100%;
    top: auto;
    left: auto;
  }
  .ag-hero-left-wrapper {
    max-width: 100%;
  }
}

.ag-hero-title, .ag-related-section-title { font-size: 22px; line-height: 1.25; margin: 0 0 .5rem; color: #1a1919; font-weight: 500}
.ag-hero-cats { margin: 0 0 .5rem; font-size: 16px; color: #313131; }
.ag-hero-cats a { color: #313131; text-decoration: none; }
.ag-hero-cats a:hover { opacity: .8; } /* o cambia color si prefieres */

.ag-hero-subtitle { font-size: 14px; color: #313131; margin: 0 0 .5rem; }
.ag-hero-text { font-size: 12px; color: #313131; margin: 0; }

/*.ag-hero-center { background: #f7f7f7; } */
.ag-hero-featured.contain { width: 100%; height: 100%; max-height: 85vh; object-fit: contain; filter: drop-shadow(2px 8px 6px #c1c1c1)}
.ag-hero-placeholder { width: 100%; height: 100%; background: #eaeaea; }

.ag-hero-right { min-height: 120px; }

/* ====== RELATED SWIPER ====== */
/* Contenedor sin scroll horizontal */
.portfolio-related { overflow: hidden; }
.portfolio-related .swiper { overflow: hidden; }

/* slides no aumentan el ancho */
.ag-related-swiper .swiper-slide { box-sizing: border-box; }

/* Imagen perfectamente encajada en el ratio */
.ag-related-thumb { position: relative;}
.ag-related-thumb > img.ag-related-img {
  position: absolute; inset: 0;
  width: 80%; height: 100%; margin: 0 auto;
  object-fit: contain; display: block;
}

/* Meta solo visible en el activo */
.ag-related-card {text-decoration: none;}
.ag-related-meta { padding-top: .5rem; } 
.ag-related-title { font-size: 20px; color: #1a1919; margin: 0 0 .25rem; display: none; text-align: center}
.ag-related-cats  { font-size: 12px; color: #1a1919; margin: 0; display: none; text-align: center}

.swiper-slide.swiper-slide-active .ag-related-title,
.swiper-slide.swiper-slide-active .ag-related-cats { display: block; }

/* Dots */
.ag-related-swiper .swiper-pagination-bullet { background: #c6c6c6; opacity: 1; }
.ag-related-swiper .swiper-pagination-bullet-active { background: #1a1919; }
.ag-related-swiper .swiper-pagination {
 position: relative;
  margin-top: .5rem
}

/* Responsive separación del hero */
@media (max-width: 991.98px) {
  .portfolio-hero { padding-top: 1.5rem; padding-bottom: 1.5rem; }
}
