/* Card base 4:5 */
.ea-card-45 {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 30px;
  background: #f3f4f6; /* similar a bg-gray-100 */
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
  transition:
    box-shadow 700ms ease,
    transform 700ms ease;
}

/* fallback sin aspect-ratio */
@supports not (aspect-ratio: 4 / 5) {
  .ea-card-45 {
    padding-top: 125%;
  }
  .ea-card-45 .ea-card-bg,
  .ea-card-45 .ea-card-link {
    position: absolute;
    inset: 0;
  }
}

.ea-card-link {
  position: absolute;
  inset: 0;
  display: block;
  z-index: 1;
}

/* Imagen como background cover center */
.ea-card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1);
  transition: transform 1000ms ease;
}

/* Hover: zoom + sombra fuerte */
.ea-card-45:hover {
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
}
.ea-card-45:hover .ea-card-bg {
  transform: scale(1.1);
}

/* Badge tipo pill arriba izquierda */
.ea-badge {
  position: absolute;
  top: 2rem;
  left: 2rem;
  z-index: 3;
  padding: 0.65rem 1.25rem;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;

  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.06);

  /* backdrop blur (con fallback) */
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

/* FAB bottom-right */
.ea-fab {
  position: absolute;
  bottom: 2rem;
  right: 2rem;
  z-index: 4;

  width: 64px;
  height: 64px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;

  background: #fff;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);

  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 500ms ease,
    transform 500ms ease,
    background-color 250ms ease,
    color 250ms ease;
}

/* aparece en hover */
.ea-card-45:hover .ea-fab {
  opacity: 1;
  transform: translateY(0);
}

.ea-fab:hover {
  background: #111827; /* si quieres "primary", dímelo y lo conecto a var */
  color: #fff;
}

.ea-fab-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 28px;
  line-height: 1;
  color: inherit;
}

@media (max-width: 767px) {
  .ea-card-45 {
    min-height: 480px; /* ajusta a gusto */
    max-width: 380px;
    margin-inline: auto;
  }
}

@media (max-width: 445px) {
  .ea-card-45 {
    min-height: 365px;
    max-width: 290px;
  }
}
