@keyframes slideInRight { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } } @keyframes slideOutRight { from { transform: translateX(0); opacity: 1; } to { transform: translateX(100%); opacity: 0; } } body { margin: 0; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; } .notification-container { position: fixed; top: 20px; right: 20px; display: flex; flex-direction: column; gap: 10px; z-index: 9999; } .notification { color: rgb(255, 255, 255); padding: 10px 15px; border-radius: 8px; display: flex; align-items: center; gap: 10px; min-width: 250px; max-width: 300px; box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2); animation: slideInRight 0.5s forwards; position: relative; font-size: 12px; } .notification.exit { animation: slideOutRight 0.5s forwards; } .notification-icon { font-size: 40px; } .notification-content { display: flex; flex-direction: column; gap: 4px; /* margin-left se ajusta dinámicamente desde scripts.js si hay icon */ } .notification-content strong { font-size: 14px; } .close-btn { position: absolute; top: 5px; right: 8px; background: none; border: none; color: white; font-size: 16px; cursor: pointer; transition: transform 0.2s ease; } .close-btn:hover { transform: scale(1.2); } .notification-tab { width: 80px; /* Más ancho para logos rectangulares */ height: 100%; background: rgb(77, 74, 74); border-radius: 8px 0 0 8px; display: flex; align-items: center; justify-content: center; overflow: hidden; position: absolute; left: 0; top: 0; } .notification-tab img { width: 100%; /* Ocupa todo el ancho del tab */ height: 80%; /* Ocupa la mayor parte del alto del tab */ object-fit: contain; /* Muestra todo el logo, sin recortar */ border-radius: 8px; background: transparent; display: block; }