.page-header, .main-container {
	display: none;
}
/* ==========================================================================
   1. CONTENEDOR Y GRID (MOSAICO)
   ========================================================================== */
.cobaem-mosaico-container {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  /*background-color: #fafafa;*/
  font-family: 'Arial',  sans-serif;
  box-sizing: border-box;
  margin-top: 50px;
  margin-bottom: 50px;
}

.cobaem-mosaico-container *, 
.cobaem-mosaico-container *::before, 
.cobaem-mosaico-container *::after {
  box-sizing: border-box;
}

.mosaico-header {
  text-align: center;
  padding: 3rem 1rem 2rem 1rem;
  max-width: 800px;
  margin: 0 auto;
}

.mosaico-header h2 {
  font-size: 2.2rem;
  color: #1a1a1a;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.mosaico-header p {
  color: #666;
  font-size: 1.1rem;
}

.cobaem-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 260px;
  gap: 6px;
  width: 100%;
}

/* Distribución exacta del mosaico */
.grid-item.item-1 { grid-column: span 2; grid-row: span 1; }
.grid-item.item-2 { grid-column: span 2; grid-row: span 1; }
.grid-item.item-3 { grid-column: span 1; grid-row: span 1; }
.grid-item.item-4 { grid-column: span 1; grid-row: span 1; }
.grid-item.item-5 { grid-column: span 2; grid-row: span 1; }

.grid-item {
  position: relative;
  overflow: hidden;
}

.mosaico-wrapper-inner {
  width: 100%;
  height: 100%;
  position: relative;
  cursor: pointer;
}

/* Componente de Imagen */
.image-wrapper {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Capa oscura (Overlay) */
.overlay-talento {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.35);
  transition: background-color 0.4s ease;
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
}

.overlay-content {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #ffffff;
}

.overlay-content h3 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 500;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.5);
  letter-spacing: 0.5px;
}

.mosaico-icon {
  font-size: 1.8rem;
  font-weight: 300;
  line-height: 1;
}

/* ==========================================================================
   2. EFECTOS HOVER ELEGANTE
   ========================================================================== */
.mosaico-wrapper-inner:hover .image-wrapper img {
  transform: scale(1.07);
}

.mosaico-wrapper-inner:hover .overlay {
  background-color: rgba(0, 0, 0, 0.6);
}

/* ==========================================================================
   3. VENTANA EMERGENTE (LIGHTBOX)
   ========================================================================== */
.lightbox {
  display: none;
  position: fixed;
  z-index: 99999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  align-items: center;
  justify-content: center;
}

.lightbox-content {
  max-width: 85%;
  max-height: 80%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0px 4px 20px rgba(0,0,0,0.5);
}

/* Botones de Navegación */
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s;
}
.lightbox-close:hover { color: #ccc; }

.lightbox-prev, .lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.1);
  color: white;
  border: none;
  font-size: 24px;
  padding: 16px;
  cursor: pointer;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
}
.lightbox-prev:hover, .lightbox-next:hover { background: rgba(255,255,255,0.25); }
.lightbox-prev { left: 30px; }
.lightbox-next { right: 30px; }

/* ==========================================================================
   4. RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 992px) {
  .cobaem-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 220px;
  }
  .grid-item.item-1, .grid-item.item-2, .grid-item.item-3, .grid-item.item-4, .grid-item.item-5 {
    grid-column: span 1;
    grid-row: span 1;
  }
}

@media (max-width: 576px) {
  .cobaem-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 200px;
  }
  .lightbox-prev, .lightbox-next { width: 45px; height: 45px; font-size: 18px; }
  .lightbox-prev { left: 10px; }
  .lightbox-next { right: 10px; }
}