/* ============================================================
   NOTIFICACIONES TOAST
   ============================================================ */
#notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    pointer-events: none;
}

.toast {
    background: #333;
    color: #fff;
    padding: 15px 25px;
    border-radius: 8px;
    margin-bottom: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
    border-left: 5px solid var(--accent);
    animation: slideIn 0.3s ease-out forwards;
    pointer-events: auto;
    min-width: 250px;
}

.toast.toast-success {
    background-color: #1e2b22;
    border-left: 5px solid #2ecc71;
    color: #ecf0f1;
}

.toast.toast-info {
    background-color: #1a2535;
    border-left: 5px solid #5e81ac;
    color: #ecf0f1;
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to   { transform: translateX(0); opacity: 1; }
}

/* ============================================================
   INDICADOR DE GUARDADO
   ============================================================ */
#save-indicator {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: rgba(30, 43, 34, 0.95);
    color: #2ecc71;
    font-size: 0.75rem;
    font-family: 'Courier New', monospace;
    letter-spacing: 0.1em;
    padding: 6px 16px;
    border-radius: 20px;
    border: 1px solid rgba(46, 204, 113, 0.3);
    box-shadow: 0 4px 14px rgba(0,0,0,0.4);
    z-index: 8000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

#save-indicator.visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ============================================================
   FAB — BOTÓN FLOTANTE "VER CV" (MÓVIL)
   ============================================================ */
#fabVerCV {
    position: fixed;
    bottom: 24px;
    right: 20px;
    z-index: 8000;
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #4a6fa5, #7aa3d4);
    color: #fff;
    border: none;
    border-radius: 28px;
    padding: 12px 20px;
    font-size: 0.85rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(74, 111, 165, 0.5);
    width: auto;
    /* Oculto por defecto, aparece tras primera generación */
    opacity: 0;
    transform: translateY(20px) scale(0.9);
    pointer-events: none;
    transition: opacity 0.35s ease, transform 0.35s ease, box-shadow 0.2s;
}

#fabVerCV.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

#fabVerCV:hover {
    box-shadow: 0 8px 28px rgba(74, 111, 165, 0.7);
    transform: translateY(-2px) scale(1);
    background: linear-gradient(135deg, #5d8bc9, #7aa3d4);
}

.fab-icon {
    font-size: 1rem;
    line-height: 1;
}

.fab-label {
    letter-spacing: 0.04em;
}

/* En escritorio el FAB no es necesario (el scroll automático lo gestiona) */
@media (min-width: 768px) {
    #fabVerCV { display: none; }
}

/* ============================================================
   SW UPDATE TOAST — Botón "Actualizar"
   ============================================================ */
.sw-update-btn {
    display: inline-block;
    margin-left: 12px;
    padding: 4px 12px;
    background: #5e81ac;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 0.78rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    pointer-events: auto;
    transition: background 0.2s;
    vertical-align: middle;
}

.sw-update-btn:hover {
    background: #7aa3d4;
}

/* ============================================================
   FOOTER DE VERSIÓN — Efecto "hundido" con inset shadow
   ============================================================ */
#sw-version-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 0.62rem;
    font-family: 'Courier New', monospace;
    letter-spacing: 0.14em;
    color: rgba(255, 255, 255, 0.28);
    background: #111;
    padding: 4px 0 5px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: inset 0 3px 8px rgba(0, 0, 0, 0.9);
    z-index: 9000;
    pointer-events: none;
    user-select: none;
}
