/* =========================================================
   MATCAT LAYOUT
========================================================= */

.matcat-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

body.matcat-context .ct-header {
  display: none !important;
}

/* Tooltip */

.matcat-diagram {
  position: relative;
  max-width: 650px;
  margin: auto;
}

.sector-tooltip {
  position: fixed;
  top: 0;
  left: 0;
  width: 260px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  padding: 12px;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.2s ease;
  pointer-events: none;
  z-index: 9999;
}

.sector-tooltip img {
  width: 100%;
  border-radius: 6px;
  margin-bottom: 8px;
}

.sector-tooltip.active {
  opacity: 1;
  transform: translateY(0);
}

/* MatCat Grid */

.matcat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.matcat-card {
  text-align: center;
}

.matcat-card-img img {
  border-radius: 12px;
  width: 100%;
  height: auto;
}

.matcat-card-title {
  margin-top: 12px;
  font-size: 18px;
}

/* Grid */

.matcat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 40px;
}

/* Grid */

.matcat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 40px;
}

/* Card */

.matcat-card {
  text-align: center;
}

/* Imagen tamaño fijo */

.matcat-card-img {
  width: 100%;
  aspect-ratio: 1 / 1;   /* Cuadradas */
  overflow: hidden;
  border-radius: 16px;
}

.matcat-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;     /* Recorte elegante */
}

/* Texto */

.matcat-card-title {
  margin-top: 15px;
  font-size: 18px;
}

.matcat-role {
  font-weight: 600;
  color: #666;
  margin-top: 5px;
}

.matcat-meta {
  font-size: 14px;
  margin-top: 4px;
  color: #555;
}
