/* ==============================
   Sección: Clientes y portafolio
   Archivo: assets/css/section-clientes.css
   ============================== */

:root{
  --c-card-border: rgba(0,0,0,.08);
  --c-card-bg: #fff;
  --c-soft: rgba(0,0,0,.03);
  --c-shadow: 0 10px 26px rgba(0,0,0,.08);
}

/* Contenedor general de la sección */
.clientes-section{
  padding: 56px 0;
}

/* Encabezado */
.clientes-head{
  text-align:center;
  margin-bottom: 18px;
}

.clientes-title{
  font-size: clamp(26px, 2.3vw, 34px);
  font-weight: 800;
  margin: 0 0 6px;
}

.clientes-subtitle{
  margin: 0;
  opacity: .75;
}

/* Grid de tarjetas */
.clientes-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
  margin-top: 18px;
}

/* Tarjeta clicable */
.cliente-card{
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--c-card-border);
  border-radius: 16px;
  background: var(--c-card-bg);
  text-decoration: none;
  color: inherit;
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
  min-height: 74px;
}

.cliente-card:hover{
  transform: translateY(-1px);
  box-shadow: var(--c-shadow);
  border-color: rgba(0,0,0,.12);
}

/* Caja del logo */
.cliente-logo{
  width: 72px;
  height: 52px;
  border-radius: 12px;
  background: var(--c-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex: 0 0 auto;
}

.cliente-logo img{
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
  display: block;
}

/* Placeholder si no hay logo */
.cliente-logo--empty{
  font-size: 12px;
  opacity: .65;
  letter-spacing: .04em;
}

/* Meta */
.cliente-meta{
  min-width: 0; /* para que ellipsis funcione */
}

.cliente-nombre{
  font-weight: 800;
  line-height: 1.1;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cliente-industria{
  margin-top: 4px;
  font-size: 13px;
  opacity: .75;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Acciones */
.clientes-actions{
  margin-top: 18px;
  display: flex;
  justify-content: center;
  gap: 10px;
}

/* Botones sencillos (puedes mapearlos a tus clases actuales si ya tienes) */
.btn-clientes{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--c-card-border);
  background: #fff;
  color: inherit;
  text-decoration: none;
  font-weight: 700;
  transition: box-shadow .12s ease, transform .12s ease;
}

.btn-clientes:hover{
  transform: translateY(-1px);
  box-shadow: var(--c-shadow);
}

/* Responsive extra */
@media (max-width: 520px){
  .clientes-grid{
    grid-template-columns: 1fr;
  }
  .cliente-card{
    padding: 14px;
  }
  .cliente-logo{
    width: 84px;
    height: 56px;
  }
}
