/* RESET Y BASE */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: #fdfdfd; 
    background-image: radial-gradient(#dcdcdc 2px, transparent 2px);
    background-size: 20px 20px;
    font-family: 'Tahoma', sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 60px 20px 100px 20px;
    min-height: 100vh;
}

/* BARRAS */
.mac-top-bar {
    position: fixed; top: 0; left: 0; width: 100%; height: 32px;
    background: white; border-bottom: 1px solid #ccc;
    z-index: 9999; display: flex; align-items: center; padding: 0 20px;
    font-size: 13px; font-weight: bold;
}

.win-bottom-bar {
    position: fixed; bottom: 20px; right: 20px;
    background: white; border: 1px solid #aaa;
    border-radius: 8px; padding: 10px 15px;
    display: flex; gap: 10px; z-index: 9999;
}

/* CONTENEDOR */
.main-content {
    width: 100%; max-width: 850px;
    display: flex; flex-direction: column; gap: 20px;
}

.widget-row { display: flex; gap: 20px; width: 100%; }

/* --- WIDGETS (Todos los cuadros blancos) --- */
.widget {
    background: white;
    border: 2px solid #ddd;
    border-radius: 12px;
    padding: 20px;
    flex: 1;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Efecto hover para TODOS los widgets */
.widget:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
    border-color: #ccc;
}

/* Clases para la animación JS */
.js-animar { opacity: 0; transform: translateY(20px); }
.js-visible { opacity: 1 !important; transform: translateY(0) !important; }

/* --- BOTONES ESPECÍFICOS --- */
.app-grid { display: flex; justify-content: center; gap: 15px; flex-wrap: wrap; }

.app-btn {
    width: 90px; height: 110px; background: #fff;
    border: 1px solid #bbb; border-radius: 12px;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    box-shadow: 0 4px 0 #999; cursor: pointer;
    transition: all 0.2s ease;
}

.app-btn:hover {
    transform: translateY(-5px);
    border-color: #0089d0;
    box-shadow: 0 6px 0 #969696;
    background-color: #f0fbff;
}

.app-btn:active {
    transform: translateY(2px);
    box-shadow: 0 1px 0 #969696;
}

.icon-square { width: 45px; height: 45px; background: #eee; border-radius: 8px; margin-bottom: 8px; border: 1px solid #ddd; display: flex;
    align-items: center;    /* Centrado vertical */
    justify-content: center; /* Centrado horizontal */
    overflow: hidden;        /* Evita que la imagen se salga del cuadro */
}

.icon-square img {
    /* Esto asegura que la imagen no se deforme */
    max-width: 75%; 
    max-height: 75%;
    object-fit: contain;
}
.app-btn span { font-size: 10px; font-weight: bold; color: #555; text-align: center; }

/* OTROS */
.widget-title { color: #0089d0; margin-bottom: 10px; }
.img-placeholder { width: 100%; height: 100px; background: #f0f0f0; border: 1px dashed #ccc; border-radius: 8px; margin-bottom: 10px; }
.sys-btn { padding: 8px 15px; border: 1px solid #999; background: white; border-radius: 4px; font-weight: bold; cursor: pointer; }

/* --- COLORES PERSONALIZADOS CON TEXTO ILUMINADO --- */

/* 1. Acerca de mí - ROJO */
.app-grid .app-btn:nth-child(1):hover {
    border-color: #e60012;
    background-color: #fff0f1;
    box-shadow: 0 6px 0 #b3000e;
}
.app-grid .app-btn:nth-child(1):hover span {
    color: #e60012; /* El texto se vuelve rojo */
    text-shadow: 0 0 5px rgba(230, 0, 18, 0.2); /* Opcional: un pequeño brillo */
}

/* 2. Inicio - AZUL */
.app-grid .app-btn:nth-child(2):hover {
    border-color: #0089d0;
    background-color: #f0faff;
    box-shadow: 0 6px 0 #006699;
}
.app-grid .app-btn:nth-child(2):hover span {
    color: #0089d0; /* El texto se vuelve azul */
}

/* 3. Blog - VERDE */
.app-grid .app-btn:nth-child(3):hover {
    border-color: #4caf50;
    background-color: #f1f8f1;
    box-shadow: 0 6px 0 #388e3c;
}
.app-grid .app-btn:nth-child(3):hover span {
    color: #4caf50; /* El texto se vuelve verde */
}

/* 4. Media - AMARILLO */
.app-grid .app-btn:nth-child(4):hover {
    border-color: #ffcc00;
    background-color: #fffdf0;
    box-shadow: 0 6px 0 #cca300;
}
.app-grid .app-btn:nth-child(4):hover span {
    color: #cca300; /* Usamos un tono un poco más oscuro para que sea legible */
}

/* 5. Dump - MORADO */
.app-grid .app-btn:nth-child(5):hover {
    border-color: #9c27b0;
    background-color: #f3e5f5;
    box-shadow: 0 6px 0 #7b1fa2;
}
.app-grid .app-btn:nth-child(5):hover span {
    color: #9c27b0; /* El texto se vuelve morado */
}

/* Transición suave para el color del texto */
.app-btn span {
    transition: color 0.2s ease;
}
/* CENTRO DE NOTIFICACIONES */
.notif-container {
    position: fixed;
    top: 35px; /* Justo debajo de tu nueva barra superior */
    right: 20px;
    z-index: 10000;
}

/* La pestaña que se ve siempre */
.notif-tab {
    background: #0089d0;
    color: white;
    padding: 5px 15px;
    border-radius: 0 0 10px 10px;
    cursor: pointer;
    font-size: 11px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}

.notif-tab:hover { background: #0077b5; }

/* El panel oculto */
.notif-panel {
    position: absolute;
    top: -400px; /* Escondido arriba */
    right: 0;
    width: 250px;
    background: white;
    border: 2px solid #0089d0;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0;
    pointer-events: none;
}

/* Lógica para mostrar/ocultar */
#notif-toggle:checked ~ .notif-panel {
    top: 45px;
    opacity: 1;
    pointer-events: auto;
}

#notif-toggle:checked ~ .notif-tab {
    transform: translateY(-40px); /* Esconde la pestaña al abrir el panel */
}

/* Detalles internos del panel */
.notif-header {
    background: #0089d0;
    color: white;
    padding: 10px;
    border-radius: 8px 8px 0 0;
    display: flex;
    justify-content: space-between;
}

.notif-content { padding: 10px; }

.notif-item {
    border-bottom: 1px solid #eee;
    padding: 8px 0;
}

.notif-item p { font-size: 12px; color: #333; }
.notif-item small { color: #888; font-size: 10px; }

.view-all {
    display: block;
    text-align: center;
    margin-top: 10px;
    font-size: 11px;
    color: #0089d0;
    text-decoration: none;
    font-weight: bold;
}

.close-btn { cursor: pointer; font-size: 18px; line-height: 1; }