/* =================================================================
   Visual Nails — proceso-cards.css
   Sección "Cómo funciona": tarjetas expandibles (hover/focus),
   escala de grises → color, número de paso y descripción que se
   revela. Adaptado a la paleta de marca. CSS puro (sin JS).
   ================================================================= */

.proceso-cards {
  display: flex;
  flex-wrap: nowrap;
  gap: .7rem;
  height: 440px;
}

.proceso-card {
  flex: 1 1 0;
  min-width: 0;
  height: 100%;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: flex .55s var(--ease), box-shadow .4s var(--ease);
  will-change: flex;
}
.proceso-card:hover,
.proceso-card:focus-within {
  flex: 2.6;
  box-shadow: var(--shadow-md);
}

/* Imagen con shimmer de carga + grises → color */
.proceso-card img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  filter: grayscale(70%) brightness(.95);
  transition: transform .6s var(--ease), filter .5s var(--ease);
  will-change: transform, filter;
  background: linear-gradient(90deg, var(--cream-2) 25%, var(--blush-soft) 50%, var(--cream-2) 75%);
  background-size: 200% 100%;
  animation: proceso-shimmer 1.6s infinite;
}
@keyframes proceso-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.proceso-card:hover img,
.proceso-card:focus-within img {
  transform: scale(1.12);
  filter: grayscale(0%) brightness(1);
}

/* Velo para legibilidad del texto */
.proceso-card::after {
  content: "";
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(to top, rgba(43,30,44,.82) 0%, rgba(43,30,44,.18) 48%, transparent 72%);
}

/* Número del paso */
.proceso-card__num {
  position: absolute; top: 14px; left: 14px; z-index: 3;
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--cta); color: #fff; font-weight: 700; font-size: .95rem;
  box-shadow: 0 4px 12px rgba(192,67,111,.4);
}

/* Contenido inferior */
.proceso-card__body {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 1.2rem 1.3rem 1.4rem;
  color: #fff;
}
.proceso-card__title {
  color: #fff;
  font-family: var(--font-serif);
  font-size: 1.25rem; font-weight: 700; line-height: 1.15;
  margin: 0;
  text-shadow: 0 2px 10px rgba(0,0,0,.4);
}
.proceso-card__desc {
  margin: 0;
  color: rgba(255,255,255,.92);
  font-size: .92rem; line-height: 1.45;
  max-height: 0; opacity: 0; overflow: hidden;
  transition: max-height .5s var(--ease), opacity .4s var(--ease), margin-top .45s var(--ease);
}
.proceso-card:hover .proceso-card__desc,
.proceso-card:focus-within .proceso-card__desc {
  max-height: 9rem; opacity: 1; margin-top: .55rem;
}

/* Accesibilidad por teclado */
.proceso-card:focus-visible {
  outline: 3px solid var(--lavender-deep);
  outline-offset: 3px;
}

/* MÓVIL: se apilan y se muestran completas (sin hover) */
@media (max-width: 720px) {
  .proceso-cards { flex-direction: column; height: auto; gap: 1rem; }
  .proceso-card { flex: none; width: 100%; height: 240px; }
  .proceso-card:hover, .proceso-card:focus-within { flex: none; }
  .proceso-card img { filter: grayscale(0%) brightness(.98); }
  .proceso-card__desc { max-height: 9rem; opacity: 1; margin-top: .55rem; }
}

/* Movimiento reducido */
@media (prefers-reduced-motion: reduce) {
  .proceso-card, .proceso-card img, .proceso-card__desc { transition: none; }
  .proceso-card img { animation: none; }
}
