:root {
    --corinto: #8B1837;
    --azul: #0F3051;
    --gris: #878787;
    --dorado: #EFB810;
    --blanco: #ffffff;
    --fondo: #f4f7f6;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--fondo);
    margin: 0;
}

/* Estilo para el botón principal con identidad GAIA */
.btn-gaia {
    background-color: var(--corinto);
    color: var(--blanco);
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-gaia:hover {
    background-color: var(--azul);
    border-bottom: 3px solid var(--dorado);
}
.login-body {
    background: linear-gradient(135deg, var(--azul) 0%, var(--corinto) 100%);
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
}

.login-card {
    background: var(--blanco);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    width: 100%;
    max-width: 400px;
    text-align: center;
    border-top: 5px solid var(--dorado); /* Detalle dorado institucional */
}

.login-card img {
    max-width: 200px;
    margin-bottom: 1.5rem;
    /* Si el logo es blanco, aquí le pondremos un fondo del azul institucional para que resalte */
    background-color: var(--azul);
    padding: 10px;
    border-radius: 8px;
}

.form-group {
    margin-bottom: 1rem;
    text-align: left;
}

.form-group label {
    display: block;
    color: var(--azul);
    font-weight: bold;
    margin-bottom: 5px;
}

.form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--gris);
    border-radius: 5px;
    box-sizing: border-box;
}

.btn-login {
    width: 100%;
    background-color: var(--corinto);
    color: white;
    padding: 12px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s;
}

.btn-login:hover {
    background-color: var(--azul);
}
/* Sidebar Fijo a la izquierda */
.sidebar-gaia {
    width: 260px;
    height: 100vh;
    background-color: var(--azul);
    color: white;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    overflow-y: auto;
}

/* --- 2. CONTENIDO UNIFICADO (Elimina el espacio libre innecesario) --- */
.content-wrapper {
    margin-left: 260px;
    padding: 25px 30px 30px 30px; /* Ajustado para que el muro suba */
    background-color: var(--fondo);
    min-height: 100vh;
    box-sizing: border-box;
}

/* Ajuste del Header para que también respete el sidebar */

.sidebar-gaia {
    width: 260px;
    height: 100vh;
    background-color: var(--azul); /* El azul oscuro hace que el logo blanco brille */
    color: white;
    position: fixed;
}

.sidebar-header {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar-header img {
    width: 80%; /* Ajuste proporcional */
}

.sidebar-menu ul {
    list-style: none;
    padding: 0;
}

.sidebar-menu ul li a {
    display: block;
    padding: 15px 20px;
    color: var(--gris);
    text-decoration: none;
    transition: 0.3s;
}

.sidebar-menu ul li a:hover {
    background-color: var(--corinto);
    color: white;
    border-left: 4px solid var(--dorado); /* El toque dorado institucional */
}
/* --- 1. HEADER UNIFICADO (Sin duplicados y con fondo blanco) --- */
.main-header {
    height: 70px;
    background-color: var(--blanco);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 260px; /* Alineado al sidebar */
    width: calc(100% - 260px); /* Ocupa el resto de la pantalla */
    z-index: 1000;
    box-sizing: border-box; /* Evita desbordamientos */
}

.section-title {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--azul);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 25px;
}

.header-icon {
    position: relative;
    color: var(--gris);
    cursor: pointer;
}

.badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: var(--corinto);
    color: white;
    font-size: 10px;
    padding: 2px 5px;
    border-radius: 50%;
    border: 2px solid white;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 15px;
    border-left: 1px solid var(--gris);
    padding-left: 20px;
}

.user-info {
    display: flex;
    flex-direction: column;
    text-align: right;
}

.user-name {
    font-weight: bold;
    color: var(--azul);
    font-size: 0.9rem;
}

.user-role {
    color: var(--dorado); /* Resaltamos el rol con el dorado institucional */
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}
/* Contenedor relativo para el posicionamiento */
.user-dropdown-container {
    position: relative;
    cursor: pointer;
}

/* El menú oculto por defecto */
.user-dropdown-menu {
    display: none; 
    position: absolute;
    top: 60px;
    right: 0;
    width: 280px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    border-top: 4px solid var(--dorado);
    z-index: 2000;
    overflow: hidden;
}

/* Mostrar cuando se activa */
.user-dropdown-menu.active {
    display: block;
    animation: fadeInDown 0.2s ease-out;
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.widget-header-dropdown {
    background-color: var(--azul);
    padding: 15px;
    text-align: center;
}

.widget-header-dropdown img {
    max-width: 100px;
}

.user-badge-dropdown {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    margin: -35px auto 10px auto;
    background: white;
    border: 3px solid var(--dorado);
    overflow: hidden;
}

.user-badge-dropdown img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    text-decoration: none;
    color: var(--azul);
    font-size: 0.9rem;
    transition: 0.2s;
}

.dropdown-item:hover {
    background-color: var(--fondo);
}

.logout-item {
    color: var(--corinto);
    font-weight: bold;
}

.avatar-header {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--azul);
}

.logout-btn {
    color: var(--gris);
    text-decoration: none;
    transition: 0.3s;
}

.logout-btn:hover {
    color: var(--corinto);
}

.main-footer {
    margin-left: 260px; /* Al igual que el header, respeta el espacio del sidebar */
    padding: 15px 30px;
    background: var(--blanco);
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--gris);
    font-size: 0.85rem;
    position: relative;
    bottom: 0;
}

.footer-left strong {
    color: var(--azul);
}

.version-tag {
    background-color: var(--azul);
    color: var(--dorado);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: bold;
}
.dashboard-container {
    display: grid;
    grid-template-columns: 1fr 350px; /* Muro ancho, Widgets estrechos */
    gap: 25px;
    align-items: start;
}

/* Estilo del Muro */
.news-feed {
    background: transparent;
}

.news-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.news-author {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.news-author img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
}

.author-name {
    display: block;
    font-weight: bold;
    color: var(--azul);
}

.news-date {
    font-size: 0.75rem;
    color: var(--gris);
}

/* Widgets Laterales */
.widget-header {
    padding: 20px;
    text-align: center;
    background-color: var(--azul);
    height: 80px; /* Altura fija para el encabezado del widget */
}

.widget-header img {
    max-width: 120px; /* Controlamos el tamaño del logo blanco */
    margin-top: 5px;
}

.user-badge {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    margin: -45px auto 10px auto; /* Sube la mitad del círculo */
    background: white;
    border: 4px solid var(--dorado); /* Marco dorado institucional */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.user-badge img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.widget-body {
    padding: 20px;
}

.user-badge {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: -60px auto 10px auto; /* Efecto de sobresalir del header del widget */
    background: white;
    overflow: hidden;
}

.user-badge img {
    width: 100%;
}

.role-tag {
    color: var(--corinto);
    font-weight: bold;
    font-size: 0.8rem;
    text-transform: uppercase;
}

/* Estilo de Tareas Mini */
.task-list-mini {
    list-style: none;
    padding: 15px;
    margin: 0;
}

.task-item {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.task-item.urgent {
    border-left: 3px solid var(--corinto);
    padding-left: 10px;
}

.view-all {
    display: block;
    text-align: center;
    padding: 10px;
    background: var(--azul);
    color: white;
    text-decoration: none;
    font-size: 0.8rem;
}
/* --- ESTILOS DEL MODAL (GAIA CORE) --- */
.modal {
    display: none; /* Oculto por defecto */
    position: fixed;
    z-index: 2000; /* Por encima de todo */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 48, 81, 0.8); /* Azul institucional con transparencia */
    backdrop-filter: blur(5px); /* Efecto de desenfoque moderno */
}

.modal-content {
    background-color: var(--blanco);
    margin: 5% auto;
    padding: 30px;
    border-radius: 15px;
    width: 50%;
    max-width: 600px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.5);
    border-top: 6px solid var(--dorado); /* Detalle dorado superior */
    position: relative;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.close {
    position: absolute;
    right: 20px;
    top: 15px;
    color: var(--gris);
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: var(--corinto);
}

/* Estilos de inputs dentro del modal */
.form-gaia-input {
    width: 100%;
    padding: 12px;
    margin: 10px 0 20px 0;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    transition: border 0.3s;
}

.form-gaia-input:focus {
    border: 1px solid var(--azul);
    box-shadow: 0 0 5px rgba(15, 48, 81, 0.2);
}

/* Botón pequeño para abrir el muro */
.btn-gaia-small {
    background-color: var(--dorado);
    color: var(--azul);
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: bold;
    cursor: pointer;
    font-size: 0.8rem;
    transition: 0.3s;
}

.btn-gaia-small:hover {
    background-color: var(--corinto);
    color: white;
}
.gaia-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 10px;
    overflow: hidden;
}

.gaia-table th {
    background-color: var(--azul);
    color: white;
    padding: 15px;
    text-align: left;
}

.gaia-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    color: var(--azul);
}

.badge-role {
    background-color: #eef2f7;
    color: var(--corinto);
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
}

.btn-icon {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--gris);
    transition: 0.3s;
}

.btn-icon:hover {
    color: var(--azul);
}
/* Lista de usuarios lateral refinada */
.user-status-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid #f8f9fa;
}

.avatar-status {
    position: relative;
    width: 32px;  /* Tamaño más discreto */
    height: 32px;
}

.avatar-status img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.user-status-info {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.u-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--azul);
}

.u-role {
    font-size: 0.65rem;
    color: var(--dorado); /* El rol en dorado para que resalte sutilmente */
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.task-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.task-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    border-left: 5px solid var(--gris);
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.task-card.priority-urgente { border-left-color: var(--corinto); }
.task-card.priority-alta { border-left-color: var(--dorado); }
.task-card.priority-media { border-left-color: var(--azul); }

.task-card h4 { margin: 10px 0; color: var(--azul); }
.task-card p { font-size: 0.85rem; color: #666; height: 40px; overflow: hidden; }

.task-card-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    font-size: 0.75rem;
    color: var(--gris);
    border-top: 1px solid #eee;
    padding-top: 10px;
}

.badge-priority {
    font-size: 0.6rem;
    padding: 2px 8px;
    border-radius: 10px;
    background: #f0f0f0;
    text-transform: uppercase;
}
.task-item .material-icons:hover {
    color: #2ecc71 !important; /* Verde éxito de GAIA */
    transform: scale(1.2);
    transition: 0.2s;
}

/* Opcional: Si quieres que las tareas que están por vencer se vean más llamativas */
.task-item.urgent p {
    color: var(--corinto);
}
.observers-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.observer-badge {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background-color: var(--azul);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: bold;
    cursor: help;
    border: 2px solid var(--dorado);
    text-transform: uppercase;
}
#lista_comentarios div {
    background: #f1f1f1;
    padding: 8px 12px;
    border-radius: 12px;
    margin-bottom: 8px;
    width: fit-content;
    max-width: 90%;
}

#lista_comentarios strong {
    display: block;
    font-size: 0.75rem;
    color: var(--corinto);
}

#lista_comentarios small {
    display: block;
    text-align: right;
    font-size: 0.65rem;
    margin-top: 3px;
}
/* Clase para tareas terminadas */
.task-card.completada {
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.4s ease;
}

/* Ocultar por defecto si no estamos en el filtro "Completadas" */
.task-card.hidden {
    display: none !important;
}
/* Limitar la imagen para que no desplace los botones */
#det_imagen {
    width: 100%;
    max-height: 200px; /* Reducido de 300px a 200px */
    object-fit: contain;
    border-radius: 8px;
    background: #f0f0f0;
}

/* Asegurar que el pie del modal (botones) siempre esté visible */
.modal-footer {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 10px;
    background: white; /* Para que no se transparente al hacer scroll */
}
/* Animación de parpadeo suave para tareas vencidas */
@keyframes pulse-red {
    0% { box-shadow: 0 0 0 0 rgba(198, 40, 40, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(198, 40, 40, 0); }
    100% { box-shadow: 0 0 0 0 rgba(198, 40, 40, 0); }
}

.tarea-critica {
    border: 2px solid #c62828 !important;
    background-color: #fff5f5 !important;
    animation: pulse-red 2s infinite;
}

.fecha-vencida {
    color: #c62828;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 3px;
}
#chat-messages {
    display: flex;
    flex-direction: column;
    padding: 20px;
    gap: 8px; /* Espacio entre burbujas */
}

/* Burbuja enviada (Derecha) */
.msg.sent {
    align-self: flex-end;
    background: #004d40; /* Verde oscuro o el Azul de GAIA */
    color: white;
    border-radius: 15px 15px 2px 15px;
}

/* Burbuja recibida (Izquierda) */
.msg.received {
    align-self: flex-start;
    background: #ffffff;
    color: #333;
    border-radius: 15px 15px 15px 2px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.msg-container { position: relative; display: flex; flex-direction: column; width: 100%; }
.msg-actions { 
    display: none; position: absolute; top: 0; background: rgba(255,255,255,0.9); 
    border-radius: 5px; box-shadow: 0 2px 5px rgba(0,0,0,0.2); z-index: 10;
}
.msg.sent:hover .msg-actions { display: flex; right: 0; top: -20px; }
.msg-actions span { cursor: pointer; padding: 5px; font-size: 18px; color: #666; }
.msg-actions span:hover { color: var(--azul); }
.msg.deleted { font-style: italic; opacity: 0.6; }

.status-dot-chat {
    width: 12px; height: 12px;
    background-color: #28a745; /* Verde */
    border: 2px solid white;
    border-radius: 50%;
    position: absolute; bottom: 2px; right: 2px;
}
/* Estilo para el botón Cancelar que faltaba */
.btn-secondary {
    background-color: #f1f3f4;
    color: var(--gris);
    border: 1px solid #ddd;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s;
    margin-right: 10px;
}

.btn-secondary:hover {
    background-color: #e0e0e0;
    color: var(--corinto);
}

/* Mejora para la lista de selección de miembros */
.user-selection-list div {
    padding: 8px;
    transition: background 0.2s;
    border-radius: 5px;
}

.user-selection-list div:hover {
    background-color: var(--fondo);
}

.user-selection-list input[type="checkbox"] {
    accent-color: var(--azul); /* El check ahora será azul GAIA */
    transform: scale(1.2);
}
/* Estilos para el Modal de Usuarios */
.modal {
    display: none; 
    position: fixed; 
    z-index: 2000; /* Asegura que esté por encima del sidebar */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5); /* Fondo oscuro traslúcido */
    backdrop-filter: blur(2px); /* Efecto moderno de desenfoque */
}

.modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 25px;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    position: relative;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from { transform: translateY(-20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.close {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 24px;
    font-weight: bold;
    color: #999;
    cursor: pointer;
}

.close:hover { color: var(--corinto); }

/* Ajuste para los botones de acción en la tabla */
.btn-icon {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    transition: transform 0.2s;
}

.btn-icon:hover {
    transform: scale(1.1);
}
.badge-notif {
    background: #c62828; /* Rojo GAIA */
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: bold;
    margin-left: auto; /* Lo empuja a la derecha */
}

/* Badge Estilo WhatsApp */
.whatsapp-badge {
    background-color: #25D366; /* Verde para chat */
    color: white;
    font-size: 0.7rem;
    padding: 2px 7px;
    border-radius: 12px;
    font-weight: bold;
    margin-left: auto;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.whatsapp-badge:not(.chat-color) {
    background-color: #c62828; /* Rojo GAIA para tareas */
}

/* --- SISTEMA RESPONSIVE --- */
@media (max-width: 768px) {
    .sidebar {
        width: 70px; /* Sidebar colapsado en tablets */
    }
    .sidebar span:not(.material-icons) {
        display: none; /* Oculta el texto, deja solo iconos */
    }
    .admin-container {
        margin-left: 70px;
        padding: 10px;
    }
    .task-grid {
        grid-template-columns: 1fr !important; /* Tareas en una sola columna */
    }
    .section-header {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start !important;
    }
}
/* Contenedor para alinear icono y badge */
.icon-container {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
}

/* La burbuja de alerta (Estilo WhatsApp) */
.gaia-alert-badge {
    position: absolute;
    top: -5px;
    right: -10px;
    background-color: #c62828; /* Rojo para tareas */
    color: white;
    font-size: 10px;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    border: 2px solid #1a1a1a; /* Color del fondo del sidebar para resaltar */
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    animation: pulse-alert 2s infinite;
}

/* Color verde para el chat */
.chat-badge {
    background-color: #25D366 !important;
}

/* Animación de pulso para llamar la atención */
@keyframes pulse-alert {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Ajuste para ocultar texto en responsive si lo necesitas */
@media (max-width: 768px) {
    .menu-text { display: none; }
    .icon-container { margin-right: 0; }
}
/* Contenedor del icono para permitir que el badge flote sobre él */
.icon-relative {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px; /* Espacio entre icono y texto */
}

/* La Alerta estilo WhatsApp */
.badge-whatsapp {
    position: absolute;
    top: -6px;      /* Lo posiciona arriba del icono */
    right: -10px;   /* Lo posiciona a la derecha del icono */
    background-color: #c62828; /* Rojo GAIA para tareas */
    color: white;
    font-size: 10px;
    min-width: 18px;
    height: 18px;
    border-radius: 50%; /* Lo hace circular */
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    border: 2px solid #1a2226; /* Ajusta este color al fondo de tu sidebar */
    box-shadow: 0 2px 4px rgba(0,0,0,0.4);
    z-index: 10;
}

/* Color verde para el Chat */
.chat-bg {
    background-color: #25D366 !important;
}

/* Asegura que el texto y el icono se alineen bien */
.menu-item-flex {
    display: flex !important;
    align-items: center;
    padding: 10px 20px;
}
.chat-img {
    max-width: 250px;
    max-height: 300px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 5px;
    cursor: pointer;
    display: block;
    border: 1px solid rgba(0,0,0,0.05);
    transition: opacity 0.3s;
}

.chat-img:hover {
    filter: brightness(0.9);
}