.tilted-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  outline: none;
  touch-action: pan-y pinch-zoom;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
  perspective: 800px;
  width: 100%;
  max-width: 260px;
}

.tilted-card[data-active] {
  z-index: 2;
}

.tilted-card__shadow {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 100%;
  height: 100%;
  background: var(--tc-shadow-color, rgba(0, 0, 0, 0.45));
  filter: blur(18px);
  opacity: 0;
  pointer-events: none;
  will-change: transform, opacity;
  border-radius: var(--tc-radius, 14px);
}

.tilted-card__body {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-width: 100%;
  transform-style: preserve-3d;
  will-change: transform;
}

.tilted-card__face {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: var(--tc-radius, 14px);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  isolation: isolate;
  background-color: #FE2E2E;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.25);
}

.tilted-card__img {
  position: absolute;
  top: -12px;
  left: -12px;
  width: calc(100% + 24px);
  height: calc(100% + 24px);
  display: block;
  object-fit: cover;
  pointer-events: none;
  transform: translate3d(
    calc(var(--tc-px, 0) * -12px),
    calc(var(--tc-py, 0) * -12px),
    0
  );
}

/* Brillo y reflejo holográfico */
.tilted-card__glare {
  position: absolute;
  inset: 0;
  z-index: 5;
  background: radial-gradient(
    farthest-corner circle at var(--tc-gx, 50%) var(--tc-gy, 50%),
    rgba(255, 255, 255, calc(var(--tc-glare, 0) * 0.55)) 0%,
    rgba(255, 220, 220, calc(var(--tc-glare, 0) * 0.35)) 20%,
    rgba(255, 255, 255, calc(var(--tc-glare, 0) * 0.15)) 40%,
    rgba(255, 255, 255, 0) 65%
  );
  mix-blend-mode: screen;
  pointer-events: none;
}

.tilted-card__rim {
  display: none;
}

.tilted-card__edge {
  display: none;
}
