/* ==========================================================
   EEP Tips · tarjeta flotante del Home (ticket 54003). Lógica en eep-tips.js
   Colores por variables CSS que llena el bloque de contenido 8.
   ========================================================== */

#eep-tips {
  --eep-tips-titulo: #d07029;
  --eep-tips-fondo: #efefe1;
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 999990;
  box-sizing: border-box;
  width: max-content;
  max-width: min(900px, calc(100vw - 320px));
  padding: 18px 72px 28px;
  text-align: center;
  background: var(--eep-tips-fondo);
  border: 5px solid #fff;
  border-radius: 30px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.28);
  font-family: Montserrat, Arial, sans-serif;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 24px);
  transition: opacity 0.4s ease, transform 0.4s ease, visibility 0s linear 0.4s;
}
#eep-tips[hidden] { display: none; }
#eep-tips.eep-tips-visible {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
  transition: opacity 0.4s ease, transform 0.4s ease, visibility 0s linear 0s;
}

#eep-tips .eep-tips-titulo {
  margin: 0;
  color: var(--eep-tips-titulo);
  font-family: Montserrat, Arial, sans-serif;
  font-weight: 700;
  font-size: 25px;
  line-height: 1.15;
  text-align: center;
}
#eep-tips .eep-tips-sub {
  margin: 2px 0 0;
  color: #000;
  font-family: Montserrat, Arial, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.2;
  text-align: center;
}

/* Barra de carga al pie: cable fino que se llena en el tiempo de la tarjeta
   y lleva una chispa palpitando en la punta. Duración en --eep-tips-dur (la fija el JS). */
#eep-tips .eep-tips-barra {
  position: absolute;
  left: 32px;
  right: 32px;
  bottom: 9px;
  height: 3px;
  pointer-events: none;
}
#eep-tips .eep-tips-barra::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 3px;
  background: var(--eep-tips-titulo);
  opacity: 0.15;
}
#eep-tips .eep-tips-relleno {
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  border-radius: 3px;
  background: var(--eep-tips-titulo);
}
#eep-tips.eep-tips-corre .eep-tips-relleno {
  animation: eepTipsCarga var(--eep-tips-dur, 10s) linear forwards;
}
#eep-tips .eep-tips-chispa {
  position: absolute;
  top: 50%;
  right: -4px;
  width: 9px;
  height: 9px;
  margin-top: -4.5px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff 0 30%, var(--eep-tips-titulo) 75%);
  box-shadow: 0 0 6px 2px var(--eep-tips-titulo);
}
#eep-tips.eep-tips-corre .eep-tips-chispa {
  animation: eepTipsChispa 0.9s ease-in-out infinite;
}
@keyframes eepTipsCarga {
  from { width: 0; }
  to { width: 100%; }
}
@keyframes eepTipsChispa {
  0%, 100% { transform: scale(0.7); opacity: 0.75; }
  50% { transform: scale(1.25); opacity: 1; }
}

/* Celular y tablet: sube por encima de Soli (abajo a la derecha) */
@media (max-width: 1199px) {
  #eep-tips {
    bottom: 160px;
    max-width: calc(100vw - 32px);
    padding: 10px 18px 20px;
    border-radius: 20px;
  }
  #eep-tips .eep-tips-barra { left: 22px; right: 22px; bottom: 7px; }
  #eep-tips .eep-tips-titulo { font-size: 20px; }
  #eep-tips .eep-tips-sub { font-size: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  #eep-tips,
  #eep-tips.eep-tips-visible { transition: none; }
  #eep-tips.eep-tips-corre .eep-tips-chispa { animation: none; }
}
