/* ============================================================
   AZIST — CLIENTS
   ============================================================ */

/* HERO ------------------------------------------------------ */
.clients-hero {
  padding-top: calc(var(--nav-height) + clamp(64px, 8vw, 100px));
  padding-bottom: clamp(64px, 8vw, 100px);
  background-color: var(--color-near-black);
  position: relative;
  overflow: hidden;
}
.clients-hero__bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 100% 0%,
    rgba(65,100,254,0.12) 0%,
    transparent 60%);
  pointer-events: none;
}
.clients-hero__ghost {
  bottom: -15%;
  right: -4%;
  font-size: clamp(100px, 16vw, 200px);
  color: rgba(255,255,255,0.03);
  -webkit-text-stroke: none;
}
.clients-hero__content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}
.clients-hero__title {
  font-family: var(--font-frama);
  font-weight: 400;
  font-size: clamp(56px, 8vw, 112px);
  line-height: 1.0;
  letter-spacing: -0.025em;
  color: var(--color-white);
  margin-bottom: var(--space-6);
}
.clients-hero__body {
  font-family: var(--font-manrope);
  font-weight: 300;
  font-size: clamp(17px, 1.9vw, 21px);
  line-height: 1.75;
  color: rgba(255,255,255,0.55);
  max-width: 880px;          /* wider measure → 2 lines */
  text-wrap: balance;
}

/* STATS STRIP ----------------------------------------------- */
.clients-stats {
  background-color: var(--color-blue);
  padding-block: clamp(40px, 5vw, 60px);
}
.clients-stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
  text-align: center;
}
.clients-stat__num {
  font-family: var(--font-frama);
  font-weight: 400;
  font-size: clamp(36px, 4vw, 56px);
  line-height: 1.0;
  color: var(--color-white);
  letter-spacing: -0.02em;
  display: block;
}
.clients-stat__label {
  font-family: var(--font-manrope);
  font-weight: 400;
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.65);
  margin-top: var(--space-2);
  display: block;
}

/* GRID DE CLIENTES ------------------------------------------ */
.clients-grid-section {
  padding-block: clamp(80px, 10vw, 130px);
  background-color: var(--color-off-white);
  position: relative;
  overflow: hidden;
}
.clients-grid-section__header {
  text-align: center;
  max-width: 760px;   /* wider so the heading fits 2 lines, not 3 */
  margin-inline: auto;
  margin-bottom: clamp(56px, 7vw, 96px);
}
.clients-grid-section__title {
  font-family: var(--font-frama);
  font-weight: 200;
  font-size: clamp(36px, 4.5vw, 60px);
  line-height: 1.1;
  color: var(--color-near-black);
  margin-bottom: var(--space-5);
  text-wrap: balance;
}
.clients-grid-section__sub {
  font-family: var(--font-manrope);
  font-weight: 300;
  font-size: var(--text-md);
  line-height: 1.7;
  color: var(--color-grey);
  text-wrap: balance;
}
.clients-logo-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--space-4);
}
.client-logo-cell {
  background-color: var(--color-white);
  border: 1px solid var(--color-light-grey);
  border-radius: var(--radius-xl);
  aspect-ratio: 3/2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(24px, 3vw, 40px);
  transition: transform var(--duration-base) var(--ease-out),
              box-shadow var(--duration-base) var(--ease-out),
              border-color var(--duration-base) var(--ease-out);
  position: relative;
  overflow: hidden;
}
.client-logo-cell:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-light-grey);
}
.client-logo-cell img {
  max-width: 100%;
  max-height: 83px;   /* +30% */
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.5;
  transition: filter var(--duration-base) var(--ease-out),
              opacity var(--duration-base) var(--ease-out),
              transform 0.25s ease;
}
.client-logo-cell:hover img {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.12);
}
.client-logo-cell__placeholder {
  font-family: var(--font-manrope);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-light-grey);
}

/* INDUSTRIES ----------------------------------------------- */
.clients-industries {
  padding-block: clamp(80px, 10vw, 130px);
  background-color: var(--color-white);
  position: relative;
  overflow: hidden;
}
.clients-industries__ghost {
  top: -10%;
  left: -4%;
  font-size: clamp(90px, 14vw, 180px);
  color: rgba(0,0,0,0.03);
  -webkit-text-stroke: none;
}
.clients-industries__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 5vw, 72px) clamp(48px, 8vw, 96px);
  align-items: start;     /* title/body + quote share the top row */
  position: relative;
  z-index: 1;
}
.clients-industries__title {
  font-family: var(--font-frama);
  font-weight: 200;
  font-size: clamp(36px, 4.5vw, 56px);
  line-height: 1.15;
  color: var(--color-near-black);
  margin-bottom: var(--space-5);
  text-wrap: balance;
}
.clients-industries__body {
  font-family: var(--font-manrope);
  font-weight: 300;
  font-size: var(--text-md);
  line-height: 1.8;
  color: var(--color-grey);
  margin-bottom: var(--space-8);
  text-wrap: pretty;
}
.clients-industries__list {
  grid-column: 1 / -1;                       /* full width, below the title/body + quote */
  display: grid;
  grid-template-columns: repeat(4, 1fr);     /* spread the 12 tags evenly across the width */
  gap: var(--space-3);
  margin-top: clamp(40px, 5vw, 64px);
}
.clients-industry-tag {
  font-family: var(--font-manrope);
  font-weight: 500;
  font-size: var(--text-sm);
  color: var(--color-near-black);
  background-color: var(--color-off-white);
  border: 1px solid var(--color-light-grey);
  border-radius: var(--radius-lg);
  padding: var(--space-3) var(--space-4);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-align: left;
  cursor: default;
  transition: transform var(--duration-base) var(--ease-out),
              box-shadow var(--duration-base) var(--ease-out),
              border-color var(--duration-base) var(--ease-out),
              background-color var(--duration-base) var(--ease-out);
}
.clients-industry-tag:hover {
  transform: translateY(-4px);
  background-color: var(--color-white);
  border-color: rgba(65,100,254,0.35);
  box-shadow: var(--shadow-md);
}
.clients-industry-tag__label {
  display: block;
}
/* Ilustración brand (flat multicolor) dentro del tag de industria.
   Ratio ~0.82 (más alta que ancha) — la dejamos respirar sin recortar. */
.clients-industry-tag .brand-illu {
  height: 48px;
  width: 48px;            /* slot fijo: alinea todos los labels al mismo x */
  object-fit: contain;
  object-position: center;
  display: block;
  flex-shrink: 0;
  transition: transform var(--duration-base) var(--ease-out);
}
.clients-industry-tag:hover .brand-illu {
  transform: scale(1.08) rotate(-4deg);
}
@media (prefers-reduced-motion: reduce) {
  .clients-industry-tag:hover { transform: none; }
  .clients-industry-tag:hover .brand-illu { transform: none; }
}
.clients-industries__quote-card {
  background-color: var(--color-off-white);
  border: 1px solid var(--color-light-grey);
  border-radius: var(--radius-xl);
  padding: clamp(32px, 4vw, 52px);
  position: relative;
  overflow: hidden;
  align-self: center;   /* centre the quote card against the taller left column */
}
.clients-industries__quote {
  font-family: var(--font-eiko);
  font-weight: 100;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.32;
  color: var(--color-near-black);
  text-wrap: balance;
}
.clients-industries__quote em {
  font-style: italic;
  color: var(--color-blue);
}

/* TESTIMONIALS ---------------------------------------------- */
.clients-testimonials {
  padding-block: clamp(80px, 10vw, 130px);
  background-color: var(--color-near-black);
  position: relative;
  overflow: hidden;
}
.clients-testimonials__ghost {
  bottom: -15%;
  right: -4%;
  font-size: clamp(90px, 14vw, 180px);
  color: rgba(255,255,255,0.03);
  -webkit-text-stroke: none;
}
.clients-testimonials__header {
  text-align: center;
  max-width: 560px;
  margin-inline: auto;
  margin-bottom: clamp(56px, 7vw, 96px);
  position: relative;
  z-index: 1;
}
.clients-testimonials__title {
  font-family: var(--font-frama);
  font-weight: 200;
  font-size: clamp(36px, 4.5vw, 60px);
  line-height: 1.1;
  color: var(--color-white);
  margin-bottom: var(--space-5);
}
.clients-testimonials__sub {
  font-family: var(--font-manrope);
  font-weight: 300;
  font-size: var(--text-md);
  line-height: 1.7;
  color: rgba(255,255,255,0.50);
  text-wrap: balance;
}
.clients-testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
  position: relative;
  z-index: 1;
}
.clients-testimonial {
  background-color: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-xl);
  padding: clamp(32px, 4vw, 48px);
  position: relative;
  display: flex;
  flex-direction: column;
}
.clients-testimonial__quote-mark {
  font-family: var(--font-eiko);
  font-weight: 100;
  font-size: 64px;
  line-height: 0.8;
  color: var(--color-blue);
  display: block;
  margin-bottom: var(--space-5);
  opacity: 0.6;
}
.clients-testimonial__text {
  font-family: var(--font-eiko);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(16px, 1.6vw, 20px);
  line-height: 1.6;
  color: rgba(255,255,255,0.80);
  margin-bottom: var(--space-6);
  text-wrap: pretty;
}
.clients-testimonial__attribution {
  font-family: var(--font-manrope);
  font-weight: 600;
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.40);
  margin-top: auto;
}

/* RESPONSIVE ------------------------------------------------ */
@media (max-width: 1024px) {
  .clients-stats__grid { grid-template-columns: repeat(2, 1fr); }
  .clients-logo-grid { grid-template-columns: repeat(4, 1fr); }
  .clients-industries__grid { grid-template-columns: 1fr; }
  .clients-industries__list { grid-template-columns: repeat(3, 1fr); }
  .clients-testimonials__grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .clients-logo-grid { grid-template-columns: repeat(3, 1fr); }
  .clients-stats__grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-4); }
  .clients-industries__list { grid-template-columns: repeat(2, 1fr); }
}
