/* ============================================
   clientes.css — Página de clientes
   ============================================ */

/* ══ HERO ══ */
.cl-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(130px, 14vw, 180px) 0 clamp(60px, 7vw, 90px);
  background: var(--ink);
}
.cl-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../img/portadas/clport.jpg') center / cover no-repeat;
  z-index: 0;
}
.cl-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(5,3,14,0.88) 0%,
    rgba(5,3,14,0.68) 55%,
    rgba(5,3,14,0.48) 100%
  );
  z-index: 1;
}
.cl-hero-wrap {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  align-items: flex-end;
}
.cl-hero-left { display: flex; flex-direction: column; gap: 20px; }
.cl-hero-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-end;
}
.cl-hero-eyebrow {
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}
.cl-hero-wrap h1 {
  font-family: var(--mono);
  font-size: clamp(32px, 4.5vw, 54px);
  font-weight: 700;
  color: #fff;
  line-height: 1;
  letter-spacing: -0.04em;
  margin: 0;
}
.cl-hero-wrap h1 em { color: var(--accent); font-style: normal; }
.cl-hero-sub {
  font-size: clamp(14px, 1.4vw, 17px);
  color: rgba(255,255,255,0.45);
  line-height: 1.75;
  max-width: 52ch;
  margin: 0;
}
.cl-hero-count {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
}
.cl-hero-count em { color: var(--accent); font-style: normal; font-size: 14px; margin-right: 4px; }

/* Label reutilizable */
.cl-label {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ══ LISTA EDITORIAL DE CLIENTES ══ */
.cl-cases {
  background: #fafaf9;
  padding: clamp(56px, 7vw, 96px) 0;
}
.cl-list {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(24px, 5vw, 100px);
}

/* ── Fila de cliente ── */
.cl-row {
  display: grid;
  grid-template-columns: 56px 1fr;
  align-items: center;
  gap: clamp(24px, 3.5vw, 56px);
  padding: clamp(36px, 5vw, 68px) 0;
  border-bottom: 1px solid rgba(0,0,0,0.07);
  text-decoration: none;
  color: var(--ink);
  position: relative;
  transition: background 0.4s;
  cursor: none;
}
.cl-row:first-child { border-top: 1px solid rgba(0,0,0,0.07); }

.cl-row::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.55s cubic-bezier(.2,.8,.25,1);
}
.cl-row:hover { background: rgba(236,0,140,0.02); }
.cl-row:hover::after { transform: scaleX(1); }

/* Número */
.cl-row-num {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.24em;
  color: rgba(0,0,0,0.15);
  align-self: flex-start;
  padding-top: 8px;
  transition: color 0.35s;
}
.cl-row:hover .cl-row-num { color: var(--accent); }

/* Cuerpo texto */
.cl-row-body { display: flex; flex-direction: column; gap: 14px; }

.cl-row-name {
  font-family: var(--mono);
  font-size: clamp(26px, 3.6vw, 52px);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.03em;
  line-height: 1;
  transition: color 0.35s, transform 0.4s cubic-bezier(.2,.8,.25,1);
}
.cl-row:hover .cl-row-name {
  color: var(--accent);
  transform: translateX(8px);
}

.cl-row-sector {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(0,0,0,0.6);
  transition: transform 0.4s cubic-bezier(.2,.8,.25,1) 0.04s;
}
.cl-row-sector::before {
  content: '';
  display: inline-block;
  width: 18px; height: 1px;
  background: var(--accent);
  flex-shrink: 0;
}
.cl-row:hover .cl-row-sector { transform: translateX(8px); }

/* ── Preview flotante que sigue el cursor ── */
.cl-cursor-preview {
  position: fixed;
  width: clamp(860px, 76vw, 1120px);
  min-height: 250px;
  display: grid;
  grid-template-columns: minmax(250px, .65fr) minmax(560px, 1.35fr);
  gap: 18px;
  border-radius: 4px;
  overflow: visible;
  pointer-events: none;
  z-index: 9999;
  opacity: 0;
  background: transparent;
  transform: scale(0.92) translateY(10px);
  transition: opacity 0.35s cubic-bezier(.2,.8,.25,1),
              transform 0.35s cubic-bezier(.2,.8,.25,1);
  will-change: transform, left, top;
}
.cl-cursor-preview.is-visible {
  opacity: 1;
  transform: scale(1) translateY(0);
}
.cl-preview-media {
  position: relative;
  overflow: visible;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cl-preview-media::after {
  content: none;
}
.cl-cursor-preview img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 250px;
  object-fit: contain;
  object-position: center;
  display: block;
  box-sizing: border-box;
  padding: 0;
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: 4px;
}
.cl-preview-media.is-contain img {
  object-fit: contain;
}
.cl-preview-info {
  position: relative;
  padding: 28px 30px;
  background: var(--ink);
  border-radius: 4px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.22), 0 0 0 1px rgba(236,0,140,0.15);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-width: 0;
  max-width: 560px;
}
.cl-preview-info::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(236,0,140,0.18), transparent 46%);
  pointer-events: none;
}
.cl-preview-info::after {
  content: '';
  position: absolute;
  top: 22px;
  right: 24px;
  width: 46px;
  height: 40px;
  border: 1px solid rgba(236,0,140,0.58);
  clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
  opacity: .8;
}
.cl-preview-kicker,
.cl-preview-title,
.cl-preview-info dl {
  position: relative;
  z-index: 1;
}
.cl-preview-kicker {
  display: none;
}
.cl-preview-title {
  display: block;
  font-family: var(--mono);
  font-size: clamp(15px, 1.05vw, 19px);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -.025em;
  margin-bottom: 18px;
  color: #fff;
  padding-left: 12px;
  border-left: 3px solid var(--accent);
  white-space: normal;
  overflow-wrap: anywhere;
  max-width: calc(100% - 58px);
}
.cl-preview-info dl {
  display: grid;
  gap: 0;
  margin: 0;
  border-top: 1px solid rgba(255,255,255,0.12);
}
.cl-preview-info dl div {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 14px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.cl-preview-info dt {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.34);
}
.cl-preview-info dd {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.88);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ══ CTA ══ */
.cl-cta {
  background: var(--ink);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: clamp(80px, 11vw, 140px) 0;
  text-align: center;
}
.cl-cta-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 24px;
  margin: 0 auto;
}
.cl-cta-inner h2 {
  font-family: var(--mono);
  font-size: clamp(32px, 4.5vw, 64px);
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin: 0;
}
.cl-cta-inner h2 em { color: var(--accent); font-style: normal; }
.cl-cta-inner p {
  font-size: clamp(16px, 1.4vw, 19px);
  color: rgba(255,255,255,0.4);
  line-height: 1.8;
  max-width: 44ch;
  margin: 0;
}
.cl-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  background: var(--accent);
  color: #fff;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  padding: 18px 48px;
  text-decoration: none;
  margin-top: 8px;
  transition: background .2s, gap .2s;
}
.cl-cta-btn:hover { background: #c20074; gap: 22px; }

/* ══ RESPONSIVE ══ */
@media (max-width: 900px) {
  .cl-hero-wrap { grid-template-columns: 1fr; }
  .cl-row { grid-template-columns: 40px 1fr; gap: 20px; }

  /* Preview: 561–900px — horizontal, proporciones equilibradas */
  .cl-cursor-preview {
    width: clamp(400px, 86vw, 680px);
    grid-template-columns: 1fr 1.5fr;
    min-height: 200px;
    gap: 0;
  }
  .cl-preview-media {
    min-height: 200px;
    border-radius: 4px 0 0 4px;
    overflow: hidden;
  }
  .cl-cursor-preview img {
    max-height: none;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: none;
    border-radius: 0;
  }
  .cl-preview-info {
    max-width: 100%;
    padding: 16px 18px;
    border-radius: 0 4px 4px 0;
  }
  .cl-preview-title { font-size: 13px; margin-bottom: 12px; }
  .cl-preview-kicker { font-size: 11px; margin-bottom: 10px; }
  .cl-preview-info dl div { grid-template-columns: 70px minmax(0,1fr); gap: 8px; padding: 6px 0; }
  .cl-preview-info dt, .cl-preview-info dd { font-size: 11px; }
}
@media (max-width: 560px) {
  .cl-cursor-preview { display: none; }
}
@media (max-width: 600px) {
  .cl-hero-wrap h1 { font-size: clamp(32px, 10vw, 52px); }
  .cl-row { grid-template-columns: 1fr; gap: 14px; }
  .cl-row-num { display: none; }
}
