/* =========================================
   GRITTER — Versión Final Limpia (multi-mensajes normales)
   ========================================= */

/* CONTENEDOR */
#gritter-notice-wrapper {
  position: fixed;
  top: 20px;
  right: 20px;
  width: min(340px, calc(100vw - 40px));
  z-index: 9999;
  display: grid;
  gap: 12px;
}

/* TARJETA */
.gritter-item-wrapper {
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  backdrop-filter: blur(10px) saturate(120%);
  -webkit-backdrop-filter: blur(10px) saturate(120%);
  overflow: hidden;
  color: #fff;
  transition: transform .3s ease, box-shadow .3s ease, opacity .3s ease;
}
.gritter-item-wrapper:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.35);
}

/* COLORES ORIGINALES */
.growl-primary { background: rgba(66,139,202,0.85); }
.growl-success { background: rgba(28,175,154,0.85); }
.growl-warning { background: rgba(240,173,78,0.85); color:#000; }
.growl-danger  { background: rgba(217,83,79,0.85); }
.growl-info    { background: rgba(91,192,222,0.85); }

/* LÍNEA LATERAL */
.growl-primary::before,
.growl-success::before,
.growl-warning::before,
.growl-danger::before,
.growl-info::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  border-radius: 4px 0 0 4px;
  background: rgba(255,255,255,0.3);
}

/* CONTENIDO */
.gritter-item {
  padding: 16px 44px 16px 16px;
  font: 14px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, sans-serif;
  color: inherit;
}

/* TÍTULO EN MAYÚSCULAS */
.gritter-title {
  font-size: 15px;
  font-weight: 800;
  text-transform: uppercase;
  margin: 0 0 10px 0;
  padding-bottom: 6px;
  display: inline-block;
  position: relative;
  line-height: 1.3;
  letter-spacing: .3px;
}
.gritter-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 36%;
  background: rgba(255,255,255,0.7);
  border-radius: 2px;
  transition: width .3s ease;
}
.gritter-item-wrapper:hover .gritter-title::after {
  width: 100%;
  background: rgba(255,255,255,1);
}
.gritter-light .gritter-title::after { background: rgba(0,0,0,0.4); }

/* TEXTO NORMAL */
.gritter-item p {
  margin: 0;
  padding: 0;
  line-height: 1.55;
  font-size: 13.5px;
  opacity: 0.95;
  border: none;
}
.gritter-item br {
  display: block;
  margin: 6px 0; /* solo espacio normal entre líneas */
  content: "";
  height: 0;
  border: 0;
}

/* BADGE LIMPIO EN <b> */
.gritter-item b {
  font-weight: 700;
  color: inherit;
  background: transparent;
  padding: 0;
  margin: 0;
}

/* IMAGEN SIN MARCO */
.gritter-image {
  width: 44px;
  height: 44px;
  float: left;
  border-radius: 0;
  object-fit: cover;
  box-shadow: none;
}
.gritter-with-image,
.gritter-without-image { padding: 0; }
.gritter-with-image {
  width: calc(100% - 54px);
  float: right;
  padding-left: 12px;
}

/* BOTÓN CERRAR */
.gritter-close {
  display: block;
  position: absolute;
  top: 10px;
  right: 10px;
  width: 22px;
  height: 22px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  opacity: 0.85;
  background: rgba(255,255,255,0.15);
  transition: all 0.2s ease;
  text-indent: -9999em;
}
.gritter-close::before {
  content: "";
  position: absolute;
  inset: 0;
  margin: 4px;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='%23000' d='M18.3 5.71a1 1 0 0 0-1.41 0L12 10.59 7.11 5.7a1 1 0 1 0-1.41 1.42L10.59 12l-4.9 4.89a1 1 0 1 0 1.41 1.42L12 13.41l4.89 4.9a1 1 0 0 0 1.42-1.42L13.41 12l4.9-4.89a1 1 0 0 0-.01-1.4z'/></svg>") center/contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='%23000' d='M18.3 5.71a1 1 0 0 0-1.41 0L12 10.59 7.11 5.7a1 1 0 1 0-1.41 1.42L10.59 12l-4.9 4.89a1 1 0 1 0 1.41 1.42L12 13.41l4.89 4.9a1 1 0 0 0 1.42-1.42L13.41 12l4.9-4.89a1 1 0 0 0-.01-1.4z'/></svg>") center/contain no-repeat;
  background: #fff;
  border-radius: 4px;
}
.gritter-close:hover {
  opacity: 1;
  background: rgba(255,255,255,0.25);
  transform: scale(1.05);
}
.gritter-close:active { transform: scale(0.95); }

/* ANIMACIÓN */
@keyframes gritterSlideIn {
  from { transform: translateX(20px); opacity: 0; }
  to   { transform: translateX(0); opacity: 1; }
}
.gritter-item-wrapper.showing { animation: gritterSlideIn .3s ease-out; }
.gritter-item-wrapper.hiding  { opacity: 0; transform: translateX(20px); }

/* RESPONSIVE */
@media (max-width: 480px) {
  #gritter-notice-wrapper {
    top: 12px;
    right: 12px;
    left: 12px;
    width: auto;
  }
  .gritter-item { padding: 14px 38px 14px 14px; }
  .gritter-image { width: 36px; height: 36px; }
  .gritter-with-image { width: calc(100% - 46px); }
}
