/* =========================
   Tarjetas Tipos de Cliente (hover elegante y fluido)
   ========================= */

.tipos-cliente-cards {
  width: 100vw;
  max-width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  padding: clamp(56px, 6vw, 96px) 0;
  font-family: 'Inter', Arial, sans-serif;
}

.tipos-cliente-cards * {
  box-sizing: border-box;
}

.tcc-container {
  width: min(1200px, 90%);
  margin: 0 auto;
}

.tcc-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2.2vw, 28px);
  align-items: stretch;
}

/* =========================
   Card base
   ========================= */
.tcc-card {
  background: #ffffff;
  border-radius: 22px;
  padding: clamp(28px, 3.2vw, 44px) clamp(18px, 2.4vw, 28px);
  text-decoration: none;
  text-align: center;
  border: none;
  outline: none;

  /* Control preciso de desplazamiento */
  --fadeY: 0px;
  --hoverY: 0px;
  transform: translateY(calc(var(--fadeY) + var(--hoverY)));

  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.1);
  transition:
    transform 600ms cubic-bezier(0.25, 0.46, 0.45, 0.94),
    box-shadow 600ms cubic-bezier(0.25, 0.46, 0.45, 0.94),
    opacity 400ms ease;

  min-height: 240px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;

  position: relative;
  will-change: transform, box-shadow;
}

/* Borde animado con fade muy suave */
.tcc-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 2px #4338ca;
  opacity: 0;
  transition: opacity 600ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
  pointer-events: none;
}

/* Hover: flotado elegante */
.tcc-card:hover {
  --hoverY: -10px;
  box-shadow: 0 24px 60px rgba(67, 56, 202, 0.18);
}

.tcc-card:hover::after {
  opacity: 1;
}

/* Accesibilidad: al navegar con teclado */
.tcc-card:focus-visible::after {
  opacity: 1;
}
.tcc-card:focus-visible {
  --hoverY: -10px;
  box-shadow: 0 24px 60px rgba(67, 56, 202, 0.18);
}

/* =========================
   Icono
   ========================= */
.tcc-icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: #4338ca;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  transition: transform 600ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.tcc-card:hover .tcc-icon {
  transform: translateY(-3px);
}

.tcc-icon svg {
  width: 26px;
  height: 26px;
  fill: #ffffff;
  display: block;
}

.tcc-icon img {
  width: 26px;
  height: 26px;
  object-fit: contain;
  display: block;
  filter: brightness(0) invert(1);
}

/* =========================
   Textos
   ========================= */
.tcc-title {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 800;
  color: #0f172a;
}

.tcc-desc {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #64748b;
}

/* =========================
   FadeUp (entrada)
   ========================= */
.FadeUpItem {
  opacity: 0;
  --fadeY: 24px;
  transition:
    opacity 0.6s ease-out,
    transform 0.6s ease-out;
}

.FadeUpItem.FadeUpIn {
  opacity: 1;
  --fadeY: 0px;
}

/* =========================
   Responsive
   ========================= */
@media (max-width: 980px) {
  .tcc-grid {
    grid-template-columns: 1fr;
  }

  .tcc-card {
    min-height: auto;
  }
}
