/* Venus FM · banner "Activar notificaciones" (vive dentro del header) */

.vfcm {
  --vfcm-pink: #ff3d9a;
  --vfcm-pink-2: #d4147a;
  --vfcm-card-1: #1b0b30;
  --vfcm-card-2: #12061f;
  --vfcm-ok: #3ddc97;

  box-sizing: border-box;
  position: relative;
  z-index: 60;
  width: 100%;
  padding: 10px 12px;
  background: #000;
  color: #fff;
  font-family: inherit;
  line-height: 1.25;
  animation: vfcm-in .45s cubic-bezier(.2, .8, .2, 1) both;
  transition: opacity .3s ease, transform .3s ease, max-height .35s ease, padding .35s ease;
  max-height: 140px;
  overflow: hidden;
}

.vfcm *,
.vfcm *::before,
.vfcm *::after { box-sizing: border-box; }

.vfcm.is-out {
  opacity: 0;
  transform: translateY(-8px);
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
}

.vfcm__inner {
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 8px 10px 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 61, 154, .6);
  background: linear-gradient(90deg, var(--vfcm-card-1), var(--vfcm-card-2));
  box-shadow: 0 0 0 1px rgba(255, 61, 154, .08), 0 8px 28px rgba(255, 45, 149, .2);
}

/* icono */
.vfcm__icon {
  position: relative;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--vfcm-pink), var(--vfcm-pink-2));
  box-shadow: 0 4px 14px rgba(255, 45, 149, .45);
}
.vfcm__icon svg { width: 20px; height: 20px; fill: #fff; transform-origin: 50% 0; animation: vfcm-ring 3.2s ease-in-out 1s infinite; }
.vfcm__icon::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--vfcm-pink);
  opacity: 0;
  animation: vfcm-pulse 3.2s ease-out 1s infinite;
}

/* textos */
.vfcm__text {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 10px;
  row-gap: 2px;
}
.vfcm__title {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .01em;
  color: #fff;
}
.vfcm__sub {
  font-size: 13.5px;
  font-weight: 400;
  color: rgba(255, 255, 255, .72);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  max-width: 100%;
}

/* acciones */
.vfcm__actions { flex: 0 0 auto; display: flex; align-items: center; gap: 6px; }

.vfcm__btn {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  border: 0;
  border-radius: 999px;
  padding: 10px 24px;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .02em;
  color: #fff;
  background: linear-gradient(90deg, var(--vfcm-pink), var(--vfcm-pink-2));
  box-shadow: 0 4px 16px rgba(255, 45, 149, .4);
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
  white-space: nowrap;
}
.vfcm__btn:hover { transform: translateY(-1px); filter: brightness(1.08); box-shadow: 0 6px 20px rgba(255, 45, 149, .55); }
.vfcm__btn:active { transform: translateY(0); }

.vfcm__close {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: rgba(255, 255, 255, .6);
  transition: background .15s ease, color .15s ease;
}
.vfcm__close svg { width: 14px; height: 14px; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; fill: none; }
.vfcm__close:hover { background: rgba(255, 255, 255, .1); color: #fff; }

.vfcm__btn:focus-visible,
.vfcm__close:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* estados */
.vfcm.is-busy .vfcm__btn { opacity: .65; pointer-events: none; }
.vfcm.is-busy .vfcm__btn::after { content: "…"; }
.vfcm.is-ok .vfcm__inner { border-color: rgba(61, 220, 151, .6); box-shadow: 0 8px 28px rgba(61, 220, 151, .15); }
.vfcm.is-ok .vfcm__icon { background: linear-gradient(135deg, #3ddc97, #1aa874); box-shadow: 0 4px 14px rgba(61, 220, 151, .4); }
.vfcm.is-ok .vfcm__icon::after,
.vfcm.is-ok .vfcm__icon svg { animation: none; }
.vfcm.is-ok .vfcm__btn,
.vfcm.is-error .vfcm__btn { display: none; }
.vfcm.is-ok .vfcm__sub,
.vfcm.is-error .vfcm__sub { display: none; }

/* ---------- Tablet / móvil ---------- */
@media (max-width: 820px) {
  .vfcm__sub { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .vfcm__text { display: block; }
  .vfcm__title { display: block; margin-bottom: 1px; }
}

@media (max-width: 640px) {
  .vfcm { padding: 8px 8px; }
  .vfcm__inner {
    gap: 10px;
    padding: 8px 8px 8px 10px;
    border-radius: 18px;
  }
  .vfcm__icon { width: 34px; height: 34px; }
  .vfcm__icon svg { width: 18px; height: 18px; }
  .vfcm__title { font-size: 13.5px; }
  .vfcm__sub { font-size: 12px; -webkit-line-clamp: 2; }
  .vfcm__btn { padding: 9px 16px; font-size: 13px; }
  .vfcm__close { width: 28px; height: 28px; }
}

@media (max-width: 380px) {
  .vfcm__icon { display: none; }
  .vfcm__sub { -webkit-line-clamp: 2; font-size: 11.5px; }
  .vfcm__btn { padding: 8px 13px; }
}

/* ---------- Animaciones ---------- */
@keyframes vfcm-in { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
@keyframes vfcm-ring {
  0%, 60%, 100% { transform: rotate(0); }
  66% { transform: rotate(14deg); }
  72% { transform: rotate(-12deg); }
  78% { transform: rotate(8deg); }
  84% { transform: rotate(-5deg); }
  90% { transform: rotate(0); }
}
@keyframes vfcm-pulse {
  0% { opacity: .7; transform: scale(.9); }
  60%, 100% { opacity: 0; transform: scale(1.35); }
}

@media (prefers-reduced-motion: reduce) {
  .vfcm, .vfcm * { animation: none !important; transition: none !important; }
}
