/* ============================================================
   RACING MOTION — líneas roja y gris (RM-BR-001)
   Lenguaje de apoyo, idéntico en Essential, Momentum y Unlimited.
   No es logo ni emblema: acompaña el contenido sin competir con él.
   Paleta oficial: #E51E26 · #666666.
   NOTA: marcador de posición construido con los colores oficiales.
   Reemplazar --rm-motion por el archivo oficial de la biblioteca
   Racing Motion cuando esté disponible (un solo punto de cambio).
   ============================================================ */

:root {
  --rm-motion: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 300' preserveAspectRatio='none'%3E%3Cpath d='M0 300 L400 8 L400 24 Z' fill='%23E51E26'/%3E%3Cpath d='M0 300 L400 38 L400 50 Z' fill='%23666666' fill-opacity='.9'/%3E%3Cpath d='M60 300 L400 64 L400 72 Z' fill='%23E51E26' fill-opacity='.75'/%3E%3Cpath d='M130 300 L400 86 L400 92 Z' fill='%23666666' fill-opacity='.7'/%3E%3C/svg%3E");
}

.acc-card,
.acc-modal-inner {
  overflow: hidden;
}

.acc-modal-inner {
  overflow-y: auto;
}

/* Líneas desde la mitad de la tarjeta (bajo el precio) hasta la esquina inferior izquierda */
.acc-motion {
  position: absolute;
  bottom: 0;
  left: -24px;
  right: 0;
  height: 64%;
  background-image: var(--rm-motion);
  background-repeat: no-repeat;
  background-size: 100% 100%;
  opacity: 0.8;
  pointer-events: none;
  z-index: 0;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

.acc-card.is-top .acc-motion {
  opacity: 1;
}

/* El contenido siempre queda por encima de las líneas */
.acc-card > :not(.acc-motion):not(.acc-badge-top) {
  position: relative;
  z-index: 1;
}

.acc-badge-top {
  z-index: 2;
}

@media (hover: hover) {
  .acc-card:hover .acc-motion {
    transform: translateX(18px);
    opacity: 1;
  }
}

/* Variante ventana "Explícame más" */
.acc-modal-inner > .acc-motion {
  bottom: 0;
  left: -24px;
  height: 55%;
  opacity: 0.55;
}

.acc-modal-inner > #modalBody {
  position: relative;
  z-index: 1;
}

.acc-modal-close {
  z-index: 2;
}

@media (prefers-reduced-motion: reduce) {
  .acc-motion {
    transition: none;
  }
  .acc-card:hover .acc-motion {
    transform: none;
  }
}