/* =====================================
   FONDO GENERAL DEL SITIO
===================================== */
body,
#wrapper,
#content,
.content-wrap {
  background-color: #2E3643 !important;
}

/* =====================================
   HEADER BLANCO COMPACTO (SIEMPRE)
===================================== */
#header {
  background-color: #ffffff !important;
  height: 60px;
}

#header-wrap {
  background-color: #ffffff !important;
  border-bottom: 1px solid #eaeaea;
}

/* Altura real del header */
#header .header-row {
  min-height: 56px;
  padding: 0;
}

/* Quitar padding vertical extra */
#header .header-row > * {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

/* Sticky mantiene mismo tamaño */
#header.sticky-header .header-row {
  min-height: 56px;
}

/* Tamaño del logo */
#logo img {
  max-height: 48px;
  width: auto;
}

/* Evita que el header tape el contenido */
#content {
  padding-top: 70px;
}

/* =====================================
   TEXTO PORTFOLIO
===================================== */
.portfolio-intro {
  text-align: center;
  margin: 30px 0 30px;
}

.portfolio-intro h4 {
  color: #ffffff;
  font-weight: 500;
}

/* Texto sobre imágenes */
.portfolio-desc h4 a {
  color: #ffffff !important;
  transition: color 0.3s ease;
}

.portfolio-image:hover .portfolio-desc h4 a {
  color: #ffffff !important;
}

/* Overlay de imágenes */
.bg-overlay {
  background-color: rgba(0, 0, 0, 0.35);
}

.page-title .breadcrumb {
    display: flex;
    justify-content: center !important;
}

/* NORMALIZAR ALTURA DEL PORTFOLIO */
.portfolio-item .grid-inner {
    height: 100%;
}

.portfolio-image {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 2; /* CLAVE */
    overflow: hidden;
}

/* IMÁGENES */
.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* VIDEOS */
.portfolio-image video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.portfolio-image .fslider,
.portfolio-image .flexslider,
.portfolio-image .slider-wrap,
.portfolio-image .slide {
    height: 100%;
}

.portfolio-image .slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}



