/* ============================================================
   FLUXO · Páginas de caso
   Un solo layout para los seis. Lo que cambia es el contenido.
   ============================================================ */

/* ── Hero ───────────────────────────────────────────────────── */

.caso-hero {
  padding-top: calc(var(--nav-h) + clamp(2.5rem, 6vw, 4.5rem));
  padding-bottom: clamp(3rem, 6vw, 5rem);
  position: relative;
  overflow: hidden;
}
.caso-hero::before {
  content: '';
  position: absolute;
  top: -30%;
  left: 50%;
  width: 100vw;
  height: 80vw;
  max-height: 900px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(30, 123, 232, .16) 0%, transparent 62%);
  pointer-events: none;
  z-index: -1;
}

.caso-volver {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: var(--t-small);
  color: var(--muted);
  margin-bottom: var(--s-3);
  transition: color var(--dur) var(--ease);
}
.caso-volver:hover { color: var(--cyan); }
.caso-volver svg { width: 14px; height: 14px; }

.caso-hero-copy { display: flex; flex-direction: column; gap: var(--s-2); align-items: flex-start; max-width: 760px; }
.caso-hero h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); }
.caso-hero .lead { font-size: var(--t-lead); }
.caso-cliente { font-size: var(--t-small); color: var(--dim); }

/* Métricas del encabezado */
.caso-metricas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-4);
  margin-top: var(--s-3);
  padding-top: var(--s-3);
  border-top: 1px solid var(--line);
  width: 100%;
}
.caso-metrica { display: flex; flex-direction: column; gap: .125rem; }
.caso-metrica b {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.75rem, 3.4vw, 2.5rem);
  line-height: 1;
  letter-spacing: -.035em;
  font-variant-numeric: tabular-nums;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.caso-metrica span { font-size: var(--t-small); color: var(--muted); }

/* ── La captura, con perspectiva ─────────────────────────────
   La imagen es real; la presentación es diseño. Inclinación,
   sombra y resplandor se hacen acá, no dentro del archivo, así
   las seis quedan idénticas y reemplazar una no rompe nada.   */

.shot3d {
  margin-top: clamp(2.5rem, 6vw, 4rem);
  perspective: 2000px;
  perspective-origin: 50% 20%;
}
.shot3d-marco {
  position: relative;
  transform: rotateX(9deg) rotateZ(-.6deg) scale(.97);
  transform-style: preserve-3d;
  border-radius: var(--r-lg);
  border: 1px solid var(--line-2);
  overflow: hidden;
  box-shadow:
    0 2px 0 rgba(255, 255, 255, .06) inset,
    0 40px 80px -30px rgba(0, 0, 0, .9),
    0 0 90px -20px rgba(30, 123, 232, .45);
  transition: transform .6s var(--ease);
}
.shot3d:hover .shot3d-marco { transform: rotateX(4deg) rotateZ(0deg) scale(1); }
.shot3d-marco img { width: 100%; height: auto; display: block; }

/* Brillo que recorre el borde superior, como el filo de un vidrio */
.shot3d-marco::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(to bottom, rgba(56, 182, 255, .16), transparent 28%);
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .shot3d-marco { transform: none; transition: none; }
}
@media (max-width: 760px) {
  .shot3d { perspective: none; }
  .shot3d-marco { transform: none; }
}

/* Las tres líneas arriba de todo, iguales a las de la home */
.trans--hero {
  margin-top: var(--s-4);
  padding-left: var(--s-4);
  max-width: 620px;
}
.trans--hero .trans-fila::before { left: calc(var(--s-4) * -1); }
.trans--hero .trans-txt { font-size: var(--t-body); }

/* ── Bloques de contenido ───────────────────────────────────── */

.caso-bloques { display: flex; flex-direction: column; gap: var(--pad-section); padding-block: var(--pad-section); }

.caso-dos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.caso-texto { display: flex; flex-direction: column; gap: var(--s-2); }
.caso-texto h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.caso-texto p { color: var(--muted); max-width: 58ch; }

/* Flujo horizontal */
.flujo {
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
  gap: .75rem;
}
.flujo-paso {
  flex: 1 1 140px;
  display: flex;
  flex-direction: column;
  gap: .375rem;
  padding: var(--s-2) var(--s-2) var(--s-3);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  position: relative;
}
.flujo-paso b { font-family: var(--display); font-weight: 600; font-size: var(--t-h4); }
.flujo-paso span { font-size: var(--t-small); color: var(--muted); line-height: 1.45; }
.flujo-paso::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 28px; height: 2px;
  background: var(--grad);
  border-radius: 0 0 2px 0;
}

/* Funcionalidades */
.funcs { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .625rem; }
.func {
  display: flex;
  align-items: center;
  gap: .625rem;
  font-size: var(--t-small);
  color: var(--muted);
  padding: .75rem var(--s-2);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface);
}
.func svg { width: 14px; height: 14px; color: var(--cyan); flex: none; }

/* Resultado destacado */
.caso-resultado {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  padding: clamp(2rem, 5vw, 3.5rem);
  border: 1px solid rgba(56, 182, 255, .28);
  border-radius: var(--r-lg);
  background: linear-gradient(150deg, rgba(56, 182, 255, .08), rgba(108, 99, 232, .05)), var(--surface);
}
.caso-resultado p { font-family: var(--display); font-weight: 600; font-size: var(--t-h3); letter-spacing: -.02em; max-width: 34ch; }

/* ── Otros casos ────────────────────────────────────────────── */

.otros { border-top: 1px solid var(--line); background: var(--bg-2); }
.otros .wrap { display: flex; flex-direction: column; gap: var(--s-4); }
.otros-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--s-3); }
