@font-face { font-family: 'Russo One'; src: url(fuentes/RussoOne-Regular.ttf); }
@font-face { font-family: 'Chakra Petch'; font-weight: 600 700; src: url(fuentes/ChakraPetch-Bold.ttf); }
/* Alertas garcy100 · versión sencilla */
html, body { margin: 0; background: transparent; overflow: hidden; }
#stage { position: absolute; left: 0; top: 0; width: 640px; height: 420px; }

.al {
  position: absolute; left: 30px; top: 170px;
  display: flex; align-items: center;
  filter: drop-shadow(0 8px 16px rgba(0,0,0,.45));
}
.al .emb {
  width: 88px; height: 88px; position: relative; z-index: 3; margin-right: -30px;
  animation: embIn .7s cubic-bezier(.2,1.4,.4,1) both;
}
/* Borde naranja fino + caja negra con esquinas cortadas, como tu overlay */
.al .cuerpo { position: relative; z-index: 2; }
.al .borde {
  position: relative; z-index: 2;
  padding: 2px; background: #FD8500;
  clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
  animation: cajaIn .5s .2s cubic-bezier(.2,1,.3,1) both;
}
.al .caja {
  position: relative; width: 400px; box-sizing: border-box;
  padding: 12px 28px 15px 42px;
  background: linear-gradient(90deg, #17181c, #0e0f12);
  clip-path: polygon(13px 0, 100% 0, 100% calc(100% - 13px), calc(100% - 13px) 100%, 0 100%, 0 13px);
}
.tag {
  font: 400 13px/1 'Russo One', sans-serif; color: #FD8500;
  letter-spacing: 2px; text-transform: uppercase;
}
.nombre {
  margin-top: 5px;
  font: 400 32px/1.05 'Russo One', sans-serif; color: #fff;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.frase {
  margin-top: 3px;
  font: 600 16px/1.25 'Chakra Petch', sans-serif; color: #bdbdbd;
}
.frase b { color: #FD8500; font-weight: 700; }

/* La X de pinceladas (sacada de tu pack) detrás de la tarjeta */
.al .x { position: absolute; left: 26px; top: -148px; width: 496px; height: 372px; z-index: 0; pointer-events: none; }
.al .x img { position: absolute; left: 0; top: 0; width: 496px; height: 372px; }
.al .xb { animation: xBlanca .35s .05s cubic-bezier(.3,.8,.3,1) both; }
.al .xn { animation: xNaranja .35s .22s cubic-bezier(.3,.8,.3,1) both; }

/* Barrita que se va vaciando mientras dura la alerta */
.barra {
  position: absolute; left: 0; bottom: 0; height: 3px; width: 100%;
  background: #FD8500; transform-origin: left;
  animation: barra var(--dur) linear forwards;
}

.al.out { animation: salir .45s ease-in forwards; }

@keyframes embIn  { from { transform: rotate(-540deg) scale(0); } to { transform: rotate(0) scale(1); } }
@keyframes cajaIn { from { opacity: 0; transform: translateX(-30px); } to { opacity: 1; transform: none; } }
@keyframes xBlanca  { from { clip-path: inset(0 100% 100% 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes xNaranja { from { clip-path: inset(100% 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes barra  { from { transform: scaleX(1); } to { transform: scaleX(0); } }
@keyframes salir  { to { opacity: 0; transform: translateX(-40px); } }

/* ===== Estilo elegido: placa con pestaña naranja ===== */
.vB .cuerpo { position: relative; z-index: 2; margin-top: 26px; animation: cajaIn .5s .25s cubic-bezier(.2,1,.3,1) both; }
.vB .borde { animation: none !important; filter: drop-shadow(0 0 10px rgba(253,133,0,.55)); }
.vB .caja { width: 380px !important; padding: 16px 24px 14px 44px !important; text-align: center; }
.vB .tag {
  position: absolute; z-index: 3; top: -27px; left: calc(50% + 10px); transform: translateX(-50%);
  background: linear-gradient(#FFA233, #FD8500); color: #111; font-size: 15px; letter-spacing: 1.5px;
  padding: 7px 26px 6px; white-space: nowrap;
  clip-path: polygon(10px 0, calc(100% - 10px) 0, 100% 100%, 0 100%);
}
.vB .nombre { margin-top: 0; }

.vB .x { top: -128px; }

#aviso { display: none; position: fixed; left: 8px; top: 8px; max-width: 600px; padding: 8px 12px; background: #b3261e; color: #fff; font: 600 15px 'Chakra Petch', sans-serif; border-radius: 4px; }
