/* PRUEBA AISLADA · Drawer Novedades */

/* Oculta temporalmente el acceso redondo anterior */
.notices-quick-row,
#noticesQuickRow,
#noticesQuickButton {
  display: none !important;
}


/* Pestaña lateral */
#lmDrawerTrialTab {
  position: fixed;
  top: 50%;
  right: 0;
  z-index: 1800;

  width: 36px;
  height: 122px;

  padding: 8px 3px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;

  border: 0;
  border-radius: 17px 0 0 17px;

  background: #111827;
  color: #fff;

  box-shadow: -5px 5px 18px rgba(0,0,0,.20);

  transform: translateY(-50%);

  cursor: pointer;
}

#lmDrawerTrialTab[hidden] {
  display: none !important;
}

.lm-drawer-trial-bell {
  position: relative;
  color: #f26f1d;
  font-size: 15px;
}

.lm-drawer-trial-text {
  writing-mode: vertical-rl;
  transform: rotate(180deg);

  font-size: 8px;
  font-weight: 900;
  letter-spacing: 1.1px;

  text-transform: uppercase;
}


/* Destello de DEMOSTRACIÓN.
   Luego solo ocurrirá si hay avisos sin leer. */
#lmDrawerTrialTab::before,
#lmDrawerTrialTab::after {
  content: "";
  position: absolute;

  width: 3px;
  height: 3px;

  border-radius: 50%;
  background: #f26f1d;

  opacity: 0;
  pointer-events: none;
}

#lmDrawerTrialTab::before {
  top: 13px;
  left: 5px;

  box-shadow:
    16px -3px 0 rgba(242,111,29,.65),
    22px 8px 0 rgba(242,111,29,.30);

  animation: lmDrawerTrialSparkA 6s ease-in-out infinite;
}

#lmDrawerTrialTab::after {
  top: 39px;
  right: 5px;

  box-shadow:
    -19px 5px 0 rgba(242,111,29,.35),
    -9px -15px 0 rgba(242,111,29,.25);

  animation: lmDrawerTrialSparkB 6s ease-in-out infinite;
}

@keyframes lmDrawerTrialSparkA {
  0%, 84%, 95%, 100% {
    opacity: 0;
    transform: scale(.6);
  }

  88% {
    opacity: .65;
    transform: scale(1);
  }

  92% {
    opacity: .12;
    transform: scale(1.3);
  }
}

@keyframes lmDrawerTrialSparkB {
  0%, 86%, 97%, 100% {
    opacity: 0;
  }

  90% {
    opacity: .42;
  }

  94% {
    opacity: .08;
  }
}


/* Fondo */
#lmDrawerTrialBackdrop {
  position: fixed;
  inset: 0;

  z-index: 1900;

  background: rgba(0,0,0,.32);

  opacity: 0;
  pointer-events: none;

  backdrop-filter: blur(2px);

  transition: opacity .25s ease;
}

#lmDrawerTrialBackdrop.open {
  opacity: 1;
  pointer-events: auto;
}


/* Panel */
#lmDrawerTrial {
  position: fixed;

  top: 0;
  right: 0;
  bottom: 0;

  z-index: 1901;

  width: min(88vw, 390px);

  flex-direction: column;

  background: #f6f7f8;

  box-shadow: -18px 0 45px rgba(0,0,0,.25);

  transform: translateX(105%);

  transition: transform .28s cubic-bezier(.22,.75,.25,1);

  overflow: hidden;
}

#lmDrawerTrial.open {
  transform: translateX(0);
}


/* Cabecera */
.lm-drawer-trial-head {
  min-height: 92px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  padding:
    max(18px, env(safe-area-inset-top))
    17px
    16px;

  background: #111827;
  color: #fff;
}

.lm-drawer-trial-kicker {
  display: block;

  color: #f26f1d;

  font-size: 8px;
  font-weight: 900;
  letter-spacing: 1.1px;

  text-transform: uppercase;
}

.lm-drawer-trial-head h2 {
  margin: 4px 0 0;

  color: #fff;

  font-size: 22px;
}

#lmDrawerTrialClose {
  width: 40px;
  height: 40px;

  display: flex;
  align-items: center;
  justify-content: center;

  border: 1px solid rgba(255,255,255,.12);
  border-radius: 50%;

  background: rgba(255,255,255,.08);
  color: #f26f1d;

  font-size: 17px;
}


/* Contenido demo */
.lm-drawer-trial-content {
  flex: 1;
  overflow-y: auto;

  padding: 15px;
}

.lm-drawer-trial-demo {
  margin-bottom: 14px;
  padding: 11px 13px;

  border-radius: 15px;

  background: #111827;
  color: #fff;
}

.lm-drawer-trial-demo strong,
.lm-drawer-trial-demo span {
  display: block;
}

.lm-drawer-trial-demo strong {
  font-size: 10px;
  color: #f26f1d;
}

.lm-drawer-trial-demo span {
  margin-top: 3px;

  color: rgba(255,255,255,.65);
  font-size: 9px;
}


.lm-drawer-trial-card {
  width: 100%;

  display: grid;
  grid-template-columns: 42px 1fr auto;

  align-items: center;
  gap: 11px;

  padding: 13px;

  border: 1px solid rgba(242,111,29,.30);
  border-radius: 18px;

  background: #fffaf6;

  text-align: left;
}

.lm-drawer-trial-card-icon {
  width: 42px;
  height: 42px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 14px;

  background: #111827;
  color: #f26f1d;
}

.lm-drawer-trial-card-copy strong,
.lm-drawer-trial-card-copy span,
.lm-drawer-trial-card-copy small {
  display: block;
}

.lm-drawer-trial-card-copy strong {
  color: #272a2f;
  font-size: 12px;
}

.lm-drawer-trial-card-copy span {
  margin-top: 4px;

  color: #747a84;
  font-size: 9px;
  line-height: 1.4;
}

.lm-drawer-trial-card-copy small {
  margin-top: 5px;

  color: #a0a5ad;
  font-size: 8px;
}

.lm-drawer-trial-new {
  padding: 4px 6px;

  border-radius: 999px;

  background: #f26f1d;
  color: #fff;

  font-size: 7px;
  font-weight: 900;
  text-transform: uppercase;
}


.lm-drawer-trial-help {
  margin-top: 14px;
  padding: 12px;

  border-radius: 15px;

  background: #fff;

  color: #858b94;

  font-size: 9px;
  line-height: 1.5;
}


@media (max-width: 480px) {
  #lmDrawerTrialTab {
    width: 34px;
    height: 112px;
  }

  #lmDrawerTrial {
    width: 89vw;
  }
}


@media (prefers-reduced-motion: reduce) {
  #lmDrawerTrialTab::before,
  #lmDrawerTrialTab::after {
    animation: none !important;
  }

  #lmDrawerTrial,
  #lmDrawerTrialBackdrop {
    transition: none !important;
  }
}

/* AJUSTE · pestaña Novedades más estrecha */
#lmDrawerTrialTab {
  width: 30px !important;
  padding-left: 2px !important;
  padding-right: 2px !important;
  border-radius: 14px 0 0 14px !important;
}

@media (max-width: 480px) {
  #lmDrawerTrialTab {
    width: 29px !important;
  }
}

/* ==========================================================
   PRUEBA · LLAMADA DE ATENCION NOVEDADES
   Tres pulsaciones suaves al abrir
   ========================================================== */

#lmDrawerTrialTab {
  animation:
    lmDrawerAttention
    0.65s
    ease-in-out
    1.2s
    3;
}

@keyframes lmDrawerAttention {

  0% {
    transform:
      translateY(-50%)
      scale(1);
  }

  35% {
    transform:
      translateY(-50%)
      translateX(-3px)
      scale(1.10);
  }

  65% {
    transform:
      translateY(-50%)
      translateX(-1px)
      scale(.97);
  }

  100% {
    transform:
      translateY(-50%)
      scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  #lmDrawerTrialTab {
    animation: none !important;
  }
}

/* ==========================================================
   PRUEBA · GESTO VISUAL DE DESLIZAR HACIA LA IZQUIERDA
   Sustituye el rebote anterior
   ========================================================== */

#lmDrawerTrialTab {
  animation:
    lmDrawerSwipeHint
    0.9s
    cubic-bezier(.22,.75,.25,1)
    1.2s
    3 !important;
}

@keyframes lmDrawerSwipeHint {

  0% {
    transform:
      translateY(-50%)
      translateX(0);
  }

  18% {
    transform:
      translateY(-50%)
      translateX(-3px);
  }

  48% {
    transform:
      translateY(-50%)
      translateX(-13px);
  }

  62% {
    transform:
      translateY(-50%)
      translateX(-13px);
  }

  100% {
    transform:
      translateY(-50%)
      translateX(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  #lmDrawerTrialTab {
    animation: none !important;
  }
}

/* ==========================================================
   PRUEBA · SOLO PULSO DE CAMPANA
   ========================================================== */

/* Eliminar todos los efectos anteriores de la pestaña */
#lmDrawerTrialTab {
  animation: none !important;
}

#lmDrawerTrialTab::before,
#lmDrawerTrialTab::after {
  display: none !important;
  animation: none !important;
}


/* Solo crece la campana */
.lm-drawer-trial-bell {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  transform-origin: center;

  animation:
    lmBellAttention
    .72s
    ease-in-out
    1.3s
    3;
}


@keyframes lmBellAttention {

  0%,
  100% {
    transform: scale(1);
  }

  45% {
    transform: scale(1.42);
  }

  65% {
    transform: scale(1.34);
  }
}


@media (prefers-reduced-motion: reduce) {
  .lm-drawer-trial-bell {
    animation: none !important;
  }
}

/* ==========================================================
   BADGE · NOVEDADES SIN LEER
   ========================================================== */

#lmDrawerTrialTab {
  position: fixed;
  overflow: visible !important;
}

.lm-drawer-trial-badge {
  position: absolute;
  top: 10px;
  left: -10px;
  z-index: 8;

  min-width: 20px;
  height: 20px;
  padding: 0 6px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border-radius: 999px;
  border: 2px solid #111;

  background: #ff5a1f;
  color: #fff;

  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 4px 14px rgba(0,0,0,.28);
}

.lm-drawer-trial-badge[hidden] {
  display: none !important;
}

@media (max-width: 640px) {
  .lm-drawer-trial-badge {
    top: 8px;
    left: -8px;

    min-width: 18px;
    height: 18px;
    padding: 0 5px;

    font-size: 10px;
  }
}

/* AJUSTE · badge abajo en la misma posición lateral */
.lm-drawer-trial-badge {
  top: auto !important;
  bottom: 10px !important;
  left: -10px !important;
}

@media (max-width: 640px) {
  .lm-drawer-trial-badge {
    top: auto !important;
    bottom: 8px !important;
    left: -8px !important;
  }
}

/* ==========================================================
   CONTADOR REAL · ANIMACION SOLO SI HAY NOVEDADES
   ========================================================== */

.lm-drawer-trial-bell {
  animation: none !important;
}

#lmDrawerTrialTab.has-unread
.lm-drawer-trial-bell {
  animation:
    lmBellAttention
    .72s
    ease-in-out
    .9s
    3 !important;
}

@media (prefers-reduced-motion: reduce) {
  #lmDrawerTrialTab.has-unread
  .lm-drawer-trial-bell {
    animation: none !important;
  }
}

/* Novedades reales */
.lm-drawer-real-list {
  display: grid;
  gap: 10px;
}

.lm-drawer-trial-card.is-read {
  border-color: #e4e6e9;
  background: #fff;
  opacity: .74;
}

.lm-drawer-trial-card > .fa-check {
  color: #8a9098;
  font-size: 10px;
}
